Ideal Gas Calculator (PV=nRT)
Select the unknown variable (P, V, n, or T) and enter the other three to solve the ideal gas law.
About the Ideal Gas Law
- PV = nRT (ideal gas equation)
- R = 0.08206 L·atm/(mol·K)
- Temperature must be in Kelvin (K). K = °C + 273.15
PV = nRT
R = 0.08206 L·atm/(mol·K)
Temperature conversion: K = °C + 273.15
Select unknown variable
Equivalent in Celsius: —°C
Worked examples
One mole at 1 atm and 273.15 K fills 1 × 0.08206 × 273.15 ÷ 1 = 22.41 L, the classic molar volume at standard conditions.
Two moles in 10 L at 300 K exert 2 × 0.08206 × 300 ÷ 10 = 4.92 atm.
What the model assumes
The ideal gas law ignores molecular volume and intermolecular attraction, so it is accurate at low pressure and high temperature and drifts near condensation or above roughly 10 atm. Temperature must be absolute and the gas constant must match the units: 0.08206 for L·atm, 8.314 for J/(mol·K).
Frequently asked questions
- Why must temperature be in kelvin?
- The law is a proportionality to absolute temperature; with Celsius, 0 °C would give zero volume. Add 273.15 to convert.
- What is the standard molar volume?
- At 0 °C and 1 atm one mole of ideal gas takes 22.414 L; at 25 °C and 1 atm it is 24.47 L, which is why textbook answers differ by a few percent.
- When does a real gas stop following the law?
- High pressure, low temperature and large or polar molecules deviate most: steam near 100 °C is far from ideal while helium at room temperature is nearly perfect.