Ideal Gas Law Calculator: PV = nRT
Ideal Gas Law Calculator (PV = nRT)
R = 8.314 J/(mol·K). Enter 3 of 4 values.
What Is the Ideal Gas Law?
The ideal gas law PV = nRT is the single equation that captures the macroscopic behaviour of an ideal gas. It states that the product of pressure and volume equals the number of moles times the universal gas constant R times the absolute temperature.
Each variable has a clear role: P is pressure (Pa, kPa, atm, etc.), V is volume (L, m³), n is the amount of substance in moles, R is the universal gas constant 8.314 J/(mol·K), and T is the absolute temperature in Kelvin. The equation was assembled from the earlier work of Boyle, Charles, Gay-Lussac, and Avogadro by Émile Clapeyron in 1834.
An ideal gas is a theoretical construct: point-like particles with no intermolecular forces and no volume of their own. Real gases approximate this behaviour well at moderate temperatures and low-to-moderate pressures.
Common Values of R
| R | Units | Use with |
|---|---|---|
| 8.314 | J/(mol·K) | SI: Pa, m³, K |
| 0.08206 | L·atm/(mol·K) | atm, L, K |
| 0.08314 | L·bar/(mol·K) | bar, L, K |
| 62.36 | L·mmHg/(mol·K) | mmHg, L, K |
Special Cases: Charles', Boyle's and Gay-Lussac's Laws
Fix two variables in PV = nRT and you recover one of the simple gas laws. Fixing n and P gives V ∝ T, Charles' law. Fixing n and T gives PV = constant, Boyle's law. Fixing n and V gives P ∝ T, Gay-Lussac's law. Fixing n alone gives the combined gas law P₁V₁/T₁ = P₂V₂/T₂.
Worked Example 1: Moles at STP
How many moles of gas occupy 5.0 L at STP (273.15 K, 101.325 kPa)? n = PV/(RT) = (101325 × 0.005) / (8.314 × 273.15) = 0.223 mol. As a check: 5.0 L / 22.4 L per mol = 0.223 mol.
Worked Example 2: Pressure of CO₂ in a Tank
A 10 L tank holds 0.5 mol of CO₂ at 350 K. The pressure: P = nRT/V = (0.5 × 8.314 × 350) / 0.010 = 145,495 Pa ≈ 1.44 atm.
Real Gases and Van der Waals
For very dense gases or low-temperature gases, replace PV = nRT with the Van der Waals equation which adds corrections for molecular volume (b) and intermolecular attraction (a). Real gases such as air, nitrogen, and oxygen follow PV = nRT closely at moderate pressure and temperature, which is why the ideal gas law remains the default tool for everyday chemistry and engineering problems.
What Makes a Gas Ideal
An ideal gas is a model built on three assumptions: its molecules take up no volume of their own, they exert no attractive or repulsive forces on each other, and every collision between them is perfectly elastic. No real gas fully meets these conditions, but light, non-polar molecules such as helium, hydrogen, and nitrogen come close under normal conditions. Heavier or polar molecules, such as water vapour or ammonia, deviate more, especially as pressure rises or temperature falls toward the point where the gas would condense into a liquid.