Ideal Gas Law Calculator

The ideal gas law, PV = nRT, links a gas's pressure (P), volume (V), amount in moles (n) and temperature (T) through the gas constant R. Pick what you want to find, enter the other three in any units, and the answer appears with the working. One mole of gas at 0 °C and 1 atmosphere fills 22.414 liters.

mol
Volume
22.414 L

1 mol of gas at 1 atm and 0 °C takes up 22.414 L.

Cubic meters 0.022414 m³
US gallons 5.92114 gal
Cubic feet 0.791542 ft³

How to use the ideal gas law

Put the temperature in kelvin (°C + 273.15), then rearrange PV = nRT for the one you need. We turn every unit into pascals, cubic meters and kelvin first, so R is one exact number, and turn the answer back at the end.

V = nRT ÷ P

Here it is with your numbers:

  1. Turn the temperature into kelvin: 0 + 273.15 = 273.15 K.
  2. Turn the pressure into pascals: 1 × 101,325 = 101,325 Pa.
  3. Multiply n, R and T, then divide by P: 1 × 8.314462618… × 273.15 ÷ 101,325 = 0.02241396954… m³.
  4. Turn cubic meters into liters: 0.02241396954… × 1,000 = 22.41396954… L.
  5. Round to 6 significant figures: 22.414 L.

It means an ideal gas under these conditions would have a volume of 22.414 L. Real gases come close at low pressures and high temperatures.

Source OpenStax Chemistry 2e · 9.2 Relating Pressure, Volume, Amount, and Temperature: The Ideal Gas Law ↗

Ideal gas law formulas

To findFormula
Pressure (P)P = nRT ÷ V
Volume (V)V = nRT ÷ P
Amount (n)n = PV ÷ RT
Temperature (T)T = PV ÷ nR

What is the gas constant R?

R is the same in every gas; only its number changes with the units. Since 2019 it is exact: the Avogadro constant times the Boltzmann constant.

UnitsR
J/(mol·K)8.31446261815…
kPa·L/(mol·K)8.31446
L·atm/(mol·K)0.0820574
L·torr/(mol·K)62.3636

Values after the first are rounded to 6 significant figures; textbooks often round to 8.314 and 0.08206.

Source NIST CODATA · Molar gas constant ↗

FAQs

What is the formula for the ideal gas law?

PV = nRT: pressure × volume = moles × the gas constant × temperature, with the temperature in kelvin.

Source OpenStax Chemistry 2e · 9.2 Relating Pressure, Volume, Amount, and Temperature: The Ideal Gas Law ↗

Is 0.0821 always R?

No. R is the same constant, but its number depends on the units: 0.08206 L·atm/(mol·K), 8.314 kPa·L/(mol·K), or exactly 8.314 462 618… J/(mol·K). Use 0.0821 only with liters, atmospheres, moles and kelvin.

How to calculate R for ideal gas?

Since 2019, R is the Avogadro constant times the Boltzmann constant, both exact: 6.022 140 76 × 10²³ × 1.380 649 × 10⁻²³, which is 8.314 462 618… J/(mol·K).

Source NIST CODATA · Molar gas constant ↗

What are the assumptions of the ideal gas law?

It treats the gas as an ideal gas, which real gases match well only at fairly low pressures and high temperatures. At high pressure or low temperature, real gases drift from the answer.

Source OpenStax Chemistry 2e · 9.2 Relating Pressure, Volume, Amount, and Temperature: The Ideal Gas Law ↗

How to calculate PV nRT?

Put the temperature in kelvin and use an R that matches your units. Then rearrange for the one you need: P = nRT ÷ V, V = nRT ÷ P, n = PV ÷ RT or T = PV ÷ nR.

Sources

Related calculators