• 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).

— Rule to remember

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. 1. What is the density of ammonia, NH₃, at STP (N = 14, H = 1)?

    1. About 1.96 g/L
    2. About 0.76 g/L
    3. About 1.32 g/L
    4. About 0.38 g/L
    Show answer

    Answer: B. M = 17 g/mol, so density = 17 ÷ 22.4 = 0.76 g/L.

  2. 2. A gas has density 1.25 g/L at STP. What is its molar mass?

    1. 14 g/mol
    2. 32 g/mol
    3. 56 g/mol
    4. 28 g/mol
    Show answer

    Answer: D. M = 1.25 × 22.4 = 28 g/mol.

  3. 3. What is the volume of 0.5 mol of an ideal gas at 300 K and 1 atm (R = 0.0821)?

    1. 12.3 L
    2. 22.4 L
    3. 11.2 L
    4. 24.6 L
    Show answer

    Answer: A. V = nRT ÷ P = 0.5 × 0.0821 × 300 = 12.3 L.

  4. 4. A gas is 2.5 times as dense as oxygen under the same conditions. What is its molar mass?

    1. 32 g/mol
    2. 80 g/mol
    3. 64 g/mol
    4. 40 g/mol
    Show answer

    Answer: B. M = 2.5 × 32 = 80 g/mol.

  5. 5. What mass of CO₂ (44 g/mol) occupies 4.926 L at 300 K and 1 atm?

    1. 4.4 g
    2. 11.0 g
    3. 22.0 g
    4. 8.8 g
    Show answer

    Answer: D. n = 4.926 ÷ 24.63 = 0.2 mol; mass = 0.2 × 44 = 8.8 g.

Privacy · Terms · Refunds · Delivery