- Practice
- About 14 min
- 5 practice questions
Gas density, molar mass and PV = nRT in problems
Find density from molar mass, molar mass from density or from a measured volume and mass, and use relative density to identify a gas.
If something looks wrong, please tell us.
Gas questions in exams come disguised: a density, a relative density, or a volume at room temperature. Behind each one is the same pair of tools: the molar volume at STP and the ideal gas equation PV = nRT. This lesson trains you to turn each disguise back into moles.
Density of a gas
Density = mass ÷ volume. At STP, one mole occupies 22.4 L, so the density of a gas at STP is its molar mass divided by 22.4, in g/L. Turning the formula around gives a quick way to find molar mass from density.
At STP: density (g/L) = M ÷ 22.4, so M = density × 22.4. At other conditions use PV = nRT with n = mass ÷ M, which gives M = (mass × R × T) ÷ (P × V).
Relative density
The density of one gas relative to another, at the same temperature and pressure, equals the ratio of their molar masses: d₁ ÷ d₂ = M₁ ÷ M₂. If a gas is 2.5 times as dense as oxygen (M = 32), its molar mass is 2.5 × 32 = 80 g/mol.
Worked example 1: density at STP
Find the density of carbon dioxide at STP (C = 12, O = 16). M = 44 g/mol, so density = 44 ÷ 22.4 = 1.96 g/L, which is more than the density of air. Ammonia (M = 17) has density 17 ÷ 22.4 = 0.76 g/L.
Worked example 2: molar mass from density
A gas has a density of 1.25 g/L at STP. M = 1.25 × 22.4 = 28 g/mol. This agrees with nitrogen (N₂) or carbon monoxide (CO).
Worked example 3: molar mass from a measurement at room conditions
3.2 g of a gas occupies 2.463 L at 300 K and 1 atm (R = 0.0821 L atm mol⁻¹ K⁻¹). n = PV ÷ RT = 2.463 ÷ (0.0821 × 300) = 2.463 ÷ 24.63 = 0.1 mol. M = 3.2 ÷ 0.1 = 32 g/mol. A molar mass of 32 g/mol fits oxygen, O₂.
Density at other conditions
Since n = mass ÷ M, the equation PV = nRT can be rearranged to d = PM ÷ RT, where d is the density in g/L. At 300 K and 1 atm, carbon dioxide has d = 1 × 44 ÷ (0.0821 × 300) = 44 ÷ 24.63 = 1.79 g/L. This is lower than the STP value because the gas is hotter and so less dense.
Worked example 4: gas from a reaction at room temperature
6.5 g of zinc reacts with excess acid to give hydrogen. What volume is collected at 300 K and 1 atm? Zinc = 0.1 mol, so H₂ = 0.1 mol. V = nRT ÷ P = 0.1 × 0.0821 × 300 ÷ 1 = 2.463 L. At STP the same amount would be only 2.24 L, so using 22.4 here would be wrong.
Worked example 5: mass from volume
What mass of CO₂ occupies 4.926 L at 300 K and 1 atm? n = 4.926 ÷ 24.63 = 0.2 mol. Mass = 0.2 × 44 = 8.8 g.
Common traps
- Using 22.4 L for conditions other than STP.
- Using °C instead of K.
- Using mass in grams as n; always divide by molar mass first.
Check your understanding
-
1. What is the density of ammonia, NH₃, at STP (N = 14, H = 1)?
- About 1.96 g/L
- About 0.76 g/L
- About 1.32 g/L
- About 0.38 g/L
Show answer
Answer: B. M = 17 g/mol, so density = 17 ÷ 22.4 = 0.76 g/L.
-
2. A gas has density 1.25 g/L at STP. What is its molar mass?
- 14 g/mol
- 32 g/mol
- 56 g/mol
- 28 g/mol
Show answer
Answer: D. M = 1.25 × 22.4 = 28 g/mol.
-
3. What is the volume of 0.5 mol of an ideal gas at 300 K and 1 atm (R = 0.0821)?
- 12.3 L
- 22.4 L
- 11.2 L
- 24.6 L
Show answer
Answer: A. V = nRT ÷ P = 0.5 × 0.0821 × 300 = 12.3 L.
-
4. A gas is 2.5 times as dense as oxygen under the same conditions. What is its molar mass?
- 32 g/mol
- 80 g/mol
- 64 g/mol
- 40 g/mol
Show answer
Answer: B. M = 2.5 × 32 = 80 g/mol.
-
5. What mass of CO₂ (44 g/mol) occupies 4.926 L at 300 K and 1 atm?
- 4.4 g
- 11.0 g
- 22.0 g
- 8.8 g
Show answer
Answer: D. n = 4.926 ÷ 24.63 = 0.2 mol; mass = 0.2 × 44 = 8.8 g.
Sign in to keep track of the lessons you finish.