Gas Density and Molar Mass
Deriving M = rho RT/P under ideal behaviour
Lesson 2424 of 4,500 · Physical Chemistry Problem Solving
Learning objectives
- Derive the ideal-gas relation between density and molar mass
- Use gas-density data with consistent units and sensible identification limits
Introduction
Gas density is not a fixed fingerprint unless pressure and temperature are specified. A gas becomes denser when compressed and usually less dense when heated at constant pressure. The ideal-gas equation provides a direct relation between density and molar mass, allowing a measured mass, volume, temperature and pressure to estimate the molar mass of an unknown gas.
Core explanation
Start from PV = nRT and substitute n = m/M, where m is gas mass and M is molar mass. Then PV = (m/M)RT. Divide by V and rearrange: P = (m/V)RT/M. Since density ρ = m/V, we obtain ρ = PM/(RT), or M = ρRT/P. The derivation shows the unit logic. For ρ in g L⁻¹, R = 0.08206 L atm mol⁻¹ K⁻¹, P in atm and T in K, the result M is in g mol⁻¹.
At fixed P and T, a gas with a larger molar mass has greater density in the ideal model. At fixed gas identity, ρ is proportional to P and inversely proportional to T. This explains why reporting only “gas density 1.2 g L⁻¹” without state conditions is insufficient to determine M. Density can be found experimentally as mass difference between an evacuated container and the same container filled with gas, divided by its calibrated volume. Small mass differences make leaks, moisture and buoyancy relevant to precise measurements.
For an ideal gas mixture , the same equation gives mean molar mass M mean = m total/n total. This is a mole-fraction-weighted mean: M mean = ΣxᵢMᵢ. It does not necessarily equal the molar mass of any individual component. If a measured gas contains water vapour or carrier gas, applying M = ρRT/P to total density and total pressure returns a mixture average, not the target's pure molar mass. To identify an unknown pure compound, a molar mass also may be nonunique: distinct molecules can have the same or nearly the same molar mass.
The equation inherits the ideal-gas assumption. At high pressures or near condensation, real-gas density can differ from PM/(RT). A compressibility factor Z defined by PV = ZnRT gives ρ = PM/(ZRT), so M = ρZRT/P if Z is known. The ordinary ideal calculation implicitly takes Z = 1. A problem should not silently use a real-gas correction unless data for it are provided.
Step-by-step reasoning
1. Establish whether the sample is a pure gas or a mixture and what pressure and temperature apply. 2. Convert density to a mass-per-volume unit compatible with the chosen R. 3. Convert temperature to kelvin and use absolute pressure. 4. Substitute into M = ρRT/P, carrying units until they cancel to mass per mole. 5. Interpret the result as a molar mass estimate or mixture mean, and check model limitations.
Visual explanation
Draw two equal-volume containers at the same P and T. Both have the same ideal-gas mole amount n = PV/(RT). If the particles in the second container each have twice the molar mass, its gas mass and density are twice as large. Beneath the sketch, link n = m/M with ρ = m/V to show the algebraic route to M = ρRT/P.
Real-world analogy
Two identical classrooms each hold the same number of people. If one room's occupants each carry heavier backpacks, the total carried mass per room volume is larger even though the head count is unchanged. At equal P, V and T, ideal-gas vessels have equal molecule counts; heavier molecules therefore create greater mass per volume.
Real-world example
A laboratory can fill a known-volume flask with an unknown gas at recorded pressure and temperature, then weigh it against an evacuated reference. The measured gas mass gives density and an estimated molar mass. That estimate can narrow candidates, but spectroscopic or chemical evidence is needed to distinguish compounds of similar mass.
Why?
Why can gas density reveal molar mass? At a fixed P and T, the ideal equation fixes moles per unit volume as P/(RT). Multiplying those moles per volume by grams per mole gives grams per volume. Reversing that multiplication produces M = ρRT/P.
Common misconception
“Denser gas always means larger molecules.” At different pressures or temperatures, density can change without changing molecular identity. Compare gases at the same state, or correct for P and T. Also, a mixture's inferred mean molar mass does not identify each constituent.
Worked example
An unknown dry gas has density 1.80 g L⁻¹ at 25.0 °C and 1.00 atm. Convert temperature to 298.15 K. Using R = 0.08206 L atm mol⁻¹ K⁻¹, M = (1.80 g L⁻¹)(0.08206 L atm mol⁻¹ K⁻¹)(298.15 K)/(1.00 atm) = 44.0 g mol⁻¹ to three significant figures. Carbon dioxide is one candidate, but nitrous oxide has a nearly identical molar mass; density alone does not establish chemical identity. If the gas were wet, a total-density calculation would describe the mixture unless its components were separated analytically.
Quick check
1. At fixed gas identity and absolute pressure, what happens to ideal-gas density when Kelvin temperature doubles? Answer: Density halves, because ρ = PM/(RT) is inversely proportional to T at fixed P and M.
Exam focus
Derive the relation from PV = nRT if memory fails. Label density units, Kelvin temperature and absolute pressure. State whether the result is a pure-gas molar mass or the mean for a mixture, and avoid claiming a unique molecular formula from M alone.
Advanced insight
For a binary ideal mixture, M mean = x₁M₁ + (1 − x₁)M₂. If M₁ and M₂ are known and a reliable mean molar mass is measured, one can solve for x₁. The inference fails if the mixture contains an unaccounted third gas or the measured density is shifted by condensation or nonideal behaviour.
Summary
Substituting n = m/M and ρ = m/V into the ideal-gas equation yields M = ρRT/P. State conditions and use consistent units. The result represents a pure-gas molar mass only for a pure sample; for a mixture it is a mean, and real-gas deviations can require correction.
Practice questions
1. At the same P and T, gas A has M = 20 g mol⁻¹ and gas B has M = 40 g mol⁻¹. What is ρB/ρA ideally? Answer: Density is proportional to M, so ρB/ρA = 40/20 = 2. 2. A gas has ρ = 1.25 g L⁻¹ at 298 K and 1.00 atm. Estimate M with R = 0.08206 L atm mol⁻¹ K⁻¹. Answer: M = 1.25 × 0.08206 × 298/1.00 ≈ 30.6 g mol⁻¹. 3. Why might an unknown gas with M near 44 g mol⁻¹ not be identified uniquely as CO₂? Answer: Different compounds, such as N₂O, can have similar molar masses; composition needs independent evidence.