The equation
P = nRT / V · V = nRT / P · n = PV / RT · T = PV / nR
R = 8.314 J/(mol·K) = 0.08206 L·atm/(mol·K)
The calculator converts every input to SI units (pascals, cubic metres, kelvin), solves with the exact SI gas constant, and converts the answer back to the unit you selected. 1 atm = 101,325 Pa, 1 bar = 100,000 Pa, 1 mmHg = 133.322 Pa.
Worked examples
Molar volume. One mole at 0 °C (273.15 K) and 1 atm: V = 1 × 8.314 × 273.15 ÷ 101,325 = 0.02241 m³ = 22.41 L.
Pressure in a container. 2 mol of gas in a 10 L container at 25 °C (298.15 K): P = 2 × 8.314 × 298.15 ÷ 0.010 = 495,800 Pa = 4.89 atm.
When real gases differ
- High pressure. Molecules take up a real share of the volume, and the ideal law underestimates the volume needed.
- Low temperature. Near condensation, attractions between molecules pull the pressure below the ideal value. Steam, ammonia and carbon dioxide close to their boiling points deviate the most.
- Everyday conditions. For air, nitrogen, oxygen, helium and similar gases near room temperature and atmospheric pressure, the ideal law is accurate to well under 1%.