The formula behind it
PV = nRT- P
- absolute pressure (atm, kPa or Pa)
- V
- volume (L, mL or m³)
- n
- amount of gas in moles
- R
- 0.0820574 L·atm/(mol·K) — or 8.314462618 J/(mol·K) in SI units
- T
- absolute temperature in kelvin
The ideal gas law bundles Boyle's, Charles's and Avogadro's laws into one equation of state. It solves any fourth quantity from the other three — leave exactly one blank. The critical habit is absolute units: kelvin (never °C) and absolute pressure (not gauge). The model treats molecules as points with no interactions, which is excellent at room conditions and increasingly wrong near boiling points or at hundreds of atmospheres.
How to use this calculator
- 1
Choose which quantity to solve for — leave that field blank and fill the other three.
- 2
Enter pressure in atm/kPa/Pa, volume in L/mL/m³, moles, and temperature in K or °C.
- 3
Press Calculate; the steps show the rearranged equation with your numbers.
Worked examples
Molar volume
1 mol at 1 atm, 273.15 K: V = 0.0820574 × 273.15 ÷ 1 = 22.414 L — the classic STP volume.
Tank check
2 mol in 10 L at 300 K → P = 2 × 0.0820574 × 300 ÷ 10 = 4.923 atm.