Ideal Gas Law Calculator

Enter any three of pressure, volume, amount of gas and temperature to find the fourth, with unit conversions and the full PV = nRT working.

Volume22.4140 L

1e-30 – 1e+30

mol

1e-30 – 1e+30

-1000000 – 1000000000000

Volume

22.4140 L

  • Cubic meters0.0224 m³
  • Liters22.4140 L

Real gases deviate from PV = nRT at high pressure and near condensation. Use absolute (not gauge) pressure. R = N_A × k = 8.314462618… J/(mol·K), exact since 2019.

How this was calculated

P = 1 atm = 101,325 Pa.

T = 0 °C + 273.15 = 273.15 K.

V = nRT ÷ P = 1 mol × 8.314462618 J/(mol·K) × 273.15 K ÷ 101,325 Pa = 0.0224139696 m³.

The ideal gas law

PV = nRT links absolute pressure P (Pa), volume V (m³), amount of gas n (mol) and absolute temperature T (K). R is the molar gas constant, 8.314462618 J/(mol·K), which has been exact since the 2019 SI redefinition because it is the product of the Avogadro and Boltzmann constants.

Rearranged: P = nRT ÷ V, V = nRT ÷ P, n = PV ÷ RT and T = PV ÷ nR. The calculator converts your units to SI first.

Unit conversions used
UnitSI value
1 atm101,325 Pa
1 bar100,000 Pa
1 kPa1,000 Pa
1 L0.001 m³
0 °C273.15 K

Worked examples

One mole at 0 °C and 1 atm: V = 1 × 8.314462618 × 273.15 ÷ 101,325 = 0.022414 m³, or 22.414 L.

Two moles at 25 °C in a 10 L container: P = 2 × 8.314462618 × 298.15 ÷ 0.010 = 495,791 Pa, about 4.89 atm.

Limits

Real gases follow PV = nRT closely at low pressure and well above their boiling point. At high pressure or near condensation, intermolecular forces and molecular size matter; use a real-gas equation such as van der Waals. Always use absolute pressure, not gauge pressure, and temperatures above absolute zero.

References

Frequently asked questions

Why must temperature be in kelvin?

The law needs absolute temperature, which is zero at absolute zero. The calculator accepts °C and adds 273.15 for you, and rejects values at or below 0 K.

What is the volume of one mole of gas?

About 22.414 L at 0 °C and 1 atm, and 22.711 L at 0 °C and 1 bar (100 kPa).

Which value of R should I use?

8.314462618 J/(mol·K) works with pascals and cubic meters. The calculator handles unit conversion, so you do not need other forms such as 0.082057 L·atm/(mol·K).

Last updated . Results are estimates for informational purposes only.