molecalculator

Moles & Molar Mass

Moles and Pressure Formula: Calculate Gas Amount

Calculator No. 01-0776 · Updated · Formula and assumptions shown below

Amount of gas 1.0000 mol
Amount of gas
1,000.00 mmol
= Amount of gas × 1000
Gas pressure
101.325 kPa
Set in the form below
Gas volume
22.414 L
Set in the form below
You enter
Gas pressure (kPa), Gas volume (L), Temperature (°C)
You get
Amount of gas (mol), Amount of gas (mmol)
Rounding
4 dp · 2 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

The moles-and-pressure formula comes from the ideal gas law: n = PV/(RT), where pressure, volume, and temperature determine the amount of gas in moles. Enter those three measured quantities in the calculator below to get moles; it also reports the result in millimoles.

Formula

The ideal gas law is PV = nRT. Rearranging for amount gives n = PV/(RT). In this calculator, pressure is entered in kilopascals, volume in liters, and temperature in degrees Celsius, so the equivalent expression is:

n (mol) = [P (kPa) / 101.325] × V (L) / [0.0820574 L·atm/(mol·K) × (T (°C) + 273.15)].

  • n is the amount of gas, in moles (mol).
  • P is absolute gas pressure, in kilopascals (kPa). The calculator converts it to atmospheres by dividing by 101.325 kPa per atm.
  • V is gas volume, in liters (L).
  • T is absolute temperature, in kelvins (K). Convert Celsius by adding 273.15.
  • R is the gas constant used here: 0.0820574 L·atm/(mol·K).

The second output is the same amount expressed in millimoles: mmol = mol × 1000. This is a unit conversion, not a different estimate of the gas amount.

Worked Example

Using the defaults—101.325 kPa, 22.414 L, and 0 °C—first convert pressure and temperature:

P = 101.325 / 101.325 = 1 atm
T = 0 + 273.15 = 273.15 K

Then substitute into the ideal gas equation:

n = (1 atm × 22.414 L) / [0.0820574 L·atm/(mol·K) × 273.15 K]
n = 22.414 / 22.4140… ≈ 1.0000 mol

The calculator displays 1.0000 mol, or 1000.00 mmol. Minor differences in the final digits can arise from the displayed precision of the gas constant and intermediate calculations.

Assumptions

  • The gas is treated as ideal: its particles have negligible volume and intermolecular attractions for the calculation.
  • Pressure is absolute pressure, not gauge pressure. It must be zero or greater in the calculator.
  • Temperature is in the Celsius scale at input and is converted to kelvins; temperatures below absolute zero are not physically meaningful.
  • The gas occupies the stated volume at the stated pressure and temperature, and the entered values refer to the same sample and conditions.

How Pressure Determines Moles

At fixed volume and temperature, increasing pressure means more gas particles occupy that volume, so the calculated number of moles rises in direct proportion to pressure. At fixed pressure and temperature, a larger volume likewise corresponds to more moles. Temperature matters because gas particles move more energetically as temperature rises: for the same amount and volume, the pressure increases with absolute temperature.

The equation is useful when you can measure or otherwise know a gas sample’s pressure, volume, and temperature but need its chemical amount. That amount can then support a stoichiometric calculation, a particle-count conversion, or a comparison between gas samples. For reference, one mole contains exactly 6.02214076 × 1023 specified entities, such as molecules or atoms; the pressure formula itself returns moles, not a count of particles.

A familiar connection is the molar volume of an ideal gas. The defaults use 22.414 L at 1 atm and 273.15 K, giving about one mole. This is a result for those stated conditions, not a universal volume for a mole of gas. Change the pressure or temperature and the molar volume changes as well.

Choosing Inputs and Reading the Result

Use pressure, volume, and temperature measured for the same gas sample. A gas-law answer is only as meaningful as those inputs: a pressure recorded before the gas was transferred, for example, may not describe its later volume and temperature.

  • Pressure: enter absolute pressure. If your instrument reports gauge pressure, convert it using the local atmospheric pressure: absolute pressure equals gauge pressure plus atmospheric pressure. Do not treat gauge pressure as absolute pressure.
  • Volume: enter liters. Convert milliliters to liters by dividing by 1000; for example, 250 mL is 0.250 L.
  • Temperature: enter degrees Celsius. The calculator adds 273.15 to obtain kelvins. Do not put a Celsius value directly into the gas-law equation.

The first result is moles, rounded to four decimal places. The second is millimoles, rounded to two decimal places. Rounding is for display; retain unrounded measurements and intermediate values when using the result in a longer calculation. The number of displayed digits does not imply that the original measurements were that precise.

Ideal Gas Law and Its Limits

The ideal gas law is a useful approximation for many calculations, especially when a gas is at relatively low pressure and sufficiently far from condensation. Real gas particles occupy space and interact with one another, effects that the simple equation does not include. At high pressure or near a gas’s condensation conditions, the ideal-gas estimate may become inaccurate; use a suitable real-gas model and substance-specific data when that precision matters.

The formula also assumes the sample is a gas in a well-defined state. It does not determine pressure from a sealed container’s geometry alone, identify the gas, or account automatically for chemical reactions, leaks, mixtures, or water vapor. For a gas mixture, the equation can apply to a component only when that component’s partial pressure is used with the relevant volume and temperature. If total pressure is used, the answer represents the total amount of the mixture under the ideal-mixture approximation.

For ordinary lab planning, treat this as a calculation, not a substitute for a validated method or safe handling instructions. Follow your lab method, the safety data sheet (SDS), and your supervisor.

Common Mistakes

  • Using gauge pressure: gauge pressure is measured relative to atmospheric pressure; the gas law needs absolute pressure.
  • Mixing units: the calculator accepts kPa and L. Entering Pa as though it were kPa makes the pressure 1000 times too large; entering mL as though it were L makes volume 1000 times too small.
  • Skipping the Celsius conversion: gas-law temperature must be in kelvins, so add 273.15 to Celsius.
  • Assuming “standard conditions” has one meaning: reference conditions vary by convention. Always state the pressure and temperature rather than relying on an unnamed standard.
  • Overinterpreting precision: a calculator’s decimal places do not correct uncertain measurements or limitations of the ideal-gas model.

Frequently Asked Questions

What is the formula for moles using pressure?
For an ideal gas, use n = PV/(RT). Use absolute pressure, volume in units compatible with the chosen gas constant, and temperature in kelvins.

How do I calculate moles from kPa, liters, and Celsius?
Convert kPa to atm by dividing by 101.325, convert Celsius to kelvins by adding 273.15, then use n = PV/(RT) with R = 0.0820574 L·atm/(mol·K). The calculator performs those conversions.

Can I use gauge pressure in the formula?
Not directly. Convert gauge pressure to absolute pressure by adding the local atmospheric pressure, expressed in the same pressure units.

Why does temperature have to be in kelvins?
The gas-law relationships use absolute temperature, whose zero corresponds to absolute zero. Celsius has a shifted zero, so it must be converted before substitution.

Is 22.4 liters always one mole of gas?
No. It is approximately one mole for an ideal gas near 1 atm and 273.15 K. The volume per mole changes with pressure and temperature, and real gases can differ from the ideal prediction.

Related

Formula used
in p | Gas pressure | kPa | 101.325 | 0
in v | Gas volume | L | 22.414 | 0
in t | Temperature | °C | 0 | -273.15
out n | Amount of gas | mol | (p / 101.325) * v / (0.0820574 * (t + 273.15)) | 4
out nm | Amount of gas | mmol | n * 1000 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →