Sub topic 4
The ideal gas equation PV = nRT
Prerequisites and scope
This chapter assumes you know pressure as force per area, the SI units (pascal, cubic metre, kelvin), and basic algebra. It also assumes you have met Boyle's, Charles's, Gay-Lussac's and Avogadro's laws in the previous chapter. Here we combine them into one equation of state and learn to use it without the usual unit and mass errors.
From four laws to one equation
Each gas law holds one or two quantities fixed:
- Boyle: P ∝ 1/V at fixed n and T.
- Charles: V ∝ T at fixed n and P.
- Gay-Lussac: P ∝ T at fixed n and V.
- Avogadro: V ∝ n at fixed P and T.
Combining the four proportionalities gives PV ∝ nT. Writing the constant of proportionality as R gives the ideal gas equation:
PV = nRT
Here P is pressure in Pa, V is volume in m³, n is the amount of gas in moles, T is the absolute temperature in kelvin, and R = 8.314 J/(mol·K) is the universal gas constant. The same R applies to every ideal gas.
An ideal gas is a model in which molecules have negligible size and exert no forces on each other except in collisions. Real gases behave this way at low pressure and high temperature.
Equivalent forms
The equation appears in several forms. Pick the one that matches the data you are given.
| Form | Symbols | Use when |
|---|---|---|
| PV = nRT | n = moles | You know the amount in moles |
| PV = (m/M)RT | m = mass, M = molar mass | You know the mass of gas |
| PV = NkT | N = number of molecules, k = R/N_A = 1.38 × 10⁻²³ J/K | You count molecules |
| P = ρRT/M | ρ = density | You need density or want to compare gases |
| P₁V₁/T₁ = P₂V₂/T₂ | fixed n | The same gas changes state |
The Boltzmann constant k is the gas constant per molecule. Since N = nN_A, we get Nk = nR, which shows that the first and third forms are the same equation.
Units and the value of R
The most common source of error is unit mismatch. In SI, use pascals, cubic metres and kelvin, and R = 8.314 J/(mol·K). Useful conversions:
- 1 atm = 1.013 × 10⁵ Pa
- 1 L = 10⁻³ m³
- T(K) = t(°C) + 273 (or 273.15)
If you want to use litres and atmospheres, use R = 0.0821 L·atm/(mol·K). Never mix this value with pascals or cubic metres.
At standard temperature and pressure (0 °C and 1 atm), one mole of any ideal gas occupies about 22.4 L. You can check this: V = nRT/P = (1)(8.314)(273)/(1.013 × 10⁵) ≈ 0.0224 m³.
Worked example
Find the mass of oxygen (M = 32 g/mol) in a 10 L cylinder at 27 °C and 5 atm.
- Convert: T = 300 K, V = 10 L, P = 5 atm.
- Find n using R = 0.0821 L·atm/(mol·K): n = PV/RT = (5)(10)/(0.0821 × 300) ≈ 2.03 mol.
- Find the mass: m = nM = 2.03 × 32 ≈ 65 g.
Here is the same calculation in code, using SI units.
R = 8.314 # J/(mol K)
P = 5 * 1.013e5 # Pa
V = 10e-3 # m^3
T = 300.0 # K
M = 32.0 # g/mol, O2
n = P * V / (R * T)
print(round(n, 2)) # about 2.03 mol
print(round(n * M)) # about 65 gUsing the ratio form
When the same fixed amount of gas goes from state 1 to state 2, R and n cancel:
P₁V₁/T₁ = P₂V₂/T₂
This is faster than computing n. Pressure and volume units only need to be consistent between the two states, but T must still be in kelvin.
Example: a gas at 2 atm, 4 L and 300 K is heated to 600 K at constant pressure. Then V₂ = V₁(T₂/T₁) = 8 L. Doubling the Celsius temperature instead (27 °C to 54 °C) would give a wrong answer.
The P–V–T picture
On a P–V diagram, PV = nRT at fixed T is a hyperbola called an isotherm. A higher temperature gives a hyperbola farther from the axes. This is why isotherms never cross: one state has only one temperature.
Common errors
- Using °C in the equation. T must be absolute, so the equation fails at 0 °C if you substitute 0.
- Using mass in grams as n. Divide by the molar mass first.
- Mixing R values with the wrong pressure and volume units.
- Using gauge pressure. The equation needs absolute pressure, which is gauge pressure plus atmospheric pressure.
- Forgetting that N₂, O₂ and H₂ are diatomic, so their molar masses are 28, 32 and 2 g/mol, not 14, 16 and 1.
Limits of the model
Real gases deviate when molecules are close together (high pressure) or moving slowly (low temperature). The attraction between molecules lowers the pressure, and their finite size reduces the free volume. The van der Waals equation corrects for both, but NEET problems almost always assume ideal behaviour.
Exercise
A sealed 2 L flask holds a gas at 27 °C and 1 atm. It is heated to 127 °C. What is the final pressure in atm? Then state how many moles are in the flask, using R = 0.0821 L·atm/(mol·K).
Show answer
The volume and the amount of gas are fixed, so P₁/T₁ = P₂/T₂. With T₁ = 300 K and T₂ = 400 K, P₂ = 1 × 400/300 ≈ 1.33 atm. The amount is n = PV/RT = (1)(2)/(0.0821 × 300) ≈ 0.081 mol, and it does not change on heating.
Exercise
Two identical containers hold equal masses of hydrogen (M = 2 g/mol) and oxygen (M = 32 g/mol) at the same temperature. Which gas has the higher pressure, and by what factor?
Show answer
At equal V, T and mass, P = (m/M)RT/V, so P ∝ 1/M. Hydrogen has the higher pressure, by a factor of 32/2 = 16.