Ideal Gas Law Formula
Ideal gas law PV = nRT. Choose which quantity to solve for (pressure, volume, temperature or amount of gas) and enter the other three.
How it works
The ideal gas law links the pressure, volume, temperature and amount of a gas. It is accurate for air and most gases near atmospheric pressure and well above their boiling point, and it is the starting point for compressors, tanks and combustion.
P × V = n × R × T
R = 8.314462618 J/(mol·K)
| Symbol | Meaning | SI unit |
|---|---|---|
| P | Absolute pressure | Pa |
| V | Volume | m³ |
| n | Amount of gas | mol |
| R | Universal gas constant | J/(mol·K) |
| T | Absolute temperature | K |
Pressure must be absolute (gauge pressure plus atmospheric) and temperature in kelvin. With a fixed amount of gas, P₁V₁ ÷ T₁ = P₂V₂ ÷ T₂. At the old standard conditions of 0 °C and 101.325 kPa one mole occupies 22.414 liters; at 25 °C it is 24.46 liters. For a specific gas, P V = m Rs T with Rs = R ÷ M (air: 287 J/(kg·K)). Departures from ideal behavior (compressibility factor Z) appear at high pressure and near condensation.
Related: Thermodynamics and Steam guide, Density formula. All formulas are listed in the Formulas library.
Worked example
One mole at 0 °C in 22.414 L: P = n R T ÷ V = 1 × 8.3145 × 273.15 ÷ 0.022414 = 101.32 kPa, one atmosphere. This is the standard molar volume.
A tank: 0.5 m³ of air at 300 K and 200 kPa absolute holds n = P V ÷ (R T) = 40.1 mol, which is 1.16 kg of air (M = 28.97 g/mol).
Things to know
The most common error is using gauge pressure or a Celsius temperature. Both must be absolute.
Real gases deviate at high pressure (above roughly 10 bar) or low temperature. Use the compressibility factor Z: P V = Z n R T.
The law works for mixtures too: use the total moles, or add partial pressures (Dalton’s law).
Common questions
What is the ideal gas law?
P V = n R T: the pressure times the volume equals the amount of gas times the gas constant times the absolute temperature.
What is the value of R?
8.314462618 J/(mol·K) in SI. It is 0.08206 L·atm/(mol·K) and 1.987 cal/(mol·K) in other units.
How many liters are in a mole of gas?
22.414 L at 0 °C and 1 atm; 24.465 L at 25 °C and 1 atm.
When does the ideal gas law fail?
At high pressure, low temperature, or near the condensation point, where molecular volume and attraction matter.
Sources
- Cengel, Y. A. and Boles, M. A., Thermodynamics: An Engineering Approach, McGraw-Hill.
- CODATA 2018 molar gas constant (NIST).
Last reviewed: November 10, 2026
