Gas Density and Molar Mass
A gas trapped in a flask carries a hidden signature of its identity. That signature is a single measurable number: its density. Pressure, volume, and temperature all connect to moles through the The Ideal Gas Law. So measuring the mass of a known volume of gas at known and is enough. This recovers its molar mass. This turns a bench measurement into a chemical identification tool. The steps are simple: weigh a bulb, note the gauge pressure, read a thermometer. This article builds the density-molar mass relation directly from the ideal gas law. It shows why gas density behaves so differently from liquid or solid density. It also walks through two fully numeric determinations of molar mass from experimental data. The same reasoning under different pressures anticipates the Kinetic-Molecular Theory of Gases. There, molar mass reappears as the variable controlling how fast molecules move.
- Gas density depends on , , and molar mass , unlike liquid/solid density, which is nearly constant.
- The master formula: , derived directly from .
- Rearranged, molar mass is recoverable from density: .
- Doubling pressure at fixed doubles gas density; doubling absolute temperature at fixed halves it.
- A single mass/volume// measurement on an unknown gas pins down its molar mass — no chemical reaction required.
- Key idea: gas density is not a fixed material property — it is a live function of , , and , and inverting that function identifies the gas.
Because moles, not mass, are what the ideal gas law counts, converting between and mass through builds a bridge from straight to molar mass — turning any gas-density measurement into a molecular weigh-station.
The physical picture
Density is mass per volume, . For a solid block of aluminum, is a fixed property — about 2.70 g/mL regardless of the size of the block, the room temperature, or the atmospheric pressure. That constancy comes from atoms sitting shoulder to shoulder in a nearly incompressible lattice. A gas is different. Its molecules are spread far apart, and the empty space between them is compressible — squeeze the container and the gas concentrates; heat it and it spreads out. Gas density is therefore not a fixed number for a substance; it is a function of the conditions. The same sample of has a low density in a large warm flask and a high density in a small cold flask. What is fixed, for a pure gas at given and , is molar mass — the mass of one mole of its molecules — and that is the quantity density measurements are used to extract. The link runs through moles. The The Ideal Gas Law states , and moles convert to mass via . Substituting turns a volume-based law into a density-based law, with sitting explicitly in the formula. This is the single most useful rearrangement of the ideal gas law for identifying unknown gases in the lab.
The picture generalizes: compressing a gas (shrinking at fixed ) raises and raises together, because says density tracks pressure directly. Heating a gas at fixed lowers density because is inversely proportional to .
The core relations
where: = pressure, = volume, = moles, (or ), = absolute temperature (K).
where: = gas density (g/L when in atm, ), = molar mass (g/mol), in kelvin.
where: same symbols; this is the rearranged form used to find molar mass from a measured density.
where: = mass of gas sample (g), = volume it occupies — useful when density itself isn't given directly but mass and volume are.
Goal. Show that gas density depends only on pressure, molar mass, and temperature, and derive the formula that lets density measurements yield molar mass.
Step 1. Start from the ideal gas law relating pressure, volume, moles, and temperature:
Step 2. Moles and mass are connected through molar mass by definition,
where is the total mass of gas present and is the mass of one mole of its molecules.
Step 3. Substitute this expression for into the ideal gas law:
Step 4. Rearrange to isolate the ratio , which is exactly the definition of density :
Step 5. This says density is not fixed for "a gas" in the abstract — it depends on and as well as on the identity of the gas through . Two different gases at the same and have densities in the same ratio as their molar masses:
Step 6. Solve the boxed relation for instead, since in the lab , , and are the measured quantities and is the unknown to be identified:
Step 7 — limiting case. As at fixed , the gas expands to fill unbounded volume for the same moles, so ; the formula agrees, since as grows without bound. Conversely, as at fixed , density also vanishes — consistent with a gas thinning to nothing as pressure drops. Both limits behave physically, confirming the derivation carries no hidden sign or inversion error.
Worked examples
Example 1 — Identifying an unknown gas from its density. A gas sample has a measured density of at and . Find its molar mass and suggest an identity.
Step 1. Use the molar mass form directly:
Step 2. Insert the numbers, with :
Step 3. Multiply the numerator piece by piece:
Step 4. Divide by pressure:
Step 5 — interpret. A molar mass near 44.0 g/mol would suggest ; near 70.9 g/mol would suggest . At 49.7 g/mol the closest common candidate is Freon-like or sulfur-containing species; in a teaching context this value is often engineered to match isotopic variants or a hypothetical gas — the numeric method is the point: from three bench measurements alone, molar mass is pinned to three significant figures without any chemical reaction.
Example 2 — Molar mass from mass, volume, pressure, and temperature (no density given directly). A 0.250 L flask is evacuated, then filled with an unknown gas. The gas has a mass of 0.646 g at and . Find the molar mass.
Step 1. Use the mass-volume form:
Step 2. Compute the numerator:
Step 3. Compute the denominator:
Step 4. Divide:
Step 5 — sanity check via limiting reasoning. If the same mass had instead filled a larger flask (say 0.500 L) at the same , molar mass computed from the formula would come out half as large — but that would only be correct if the same number of moles now occupies twice the space, meaning the mass-to-mole ratio implied by the data changed. This flags that mass, volume, pressure, and temperature must all describe the same physical sample simultaneously; mixing data from two different states silently produces a wrong . Checking that 79.8 g/mol is a plausible whole-gas molar mass (close to -containing or -range species) is the final consistency step before reporting an identity.
Limiting cases & common traps
| Situation | What happens | Why |
|---|---|---|
| increases, fixed | decreases | , inverse in |
| increases, fixed | increases proportionally | , direct in |
| Two gases, same | denser gas has larger | |
| Temperature given in °C | formula silently wrong | requires kelvin |
| Using STP volume (22.4 L/mol) at non-standard | molar mass overstated/understated | 22.4 L/mol only holds at exactly 1 atm, 273 K |
The chemist behind it
The density–molar mass relation is a direct algebraic consequence of the ideal gas law, but its practical use — inferring the molecular formula of an unknown vapor from its measured vapor density — was pioneered as an experimental technique in the nineteenth century, when chemists needed a way to compare atomic and molecular weights of gases without modern spectroscopy. The method of heating a liquid to vapor inside a bulb of known volume, then weighing the condensed gas, became a standard determination of molecular weight and helped settle early debates about whether elements like sulfur and phosphorus existed as diatomic or polyatomic vapor species.
Origins · 1 minAmedeo Avogadro and how this was discovered
Avogadro proposed in 1811 that equal volumes of gases, at the same temperature and pressure, contain equal numbers of molecules — the hypothesis that makes gas density a clean proxy for molar mass. His insight, initially resisted for decades, was the conceptual seed later formalized into the ideal gas law and eventually into the mole itself, the quantity that now bears his name in Avogadro's number.
Ask the tutor: How does the density–molar mass relation change if the gas is collected over water and its pressure includes water vapor's partial pressure?
Why does molar mass appear in the density formula but not in the basic ideal gas law?
The basic law is written in terms of moles, a count of particles, which is identity-independent — one mole of occupies the same volume as one mole of at the same . Molar mass enters only when moles are converted to mass via , which is where the gas's chemical identity enters the picture.
Does the density formula work for gas mixtures?
Yes, with replaced by the mixture's average (mean) molar mass, , where are mole fractions. The derivation is identical; gives the mixture's overall density, which is why humid air is slightly less dense than dry air — water vapor's molar mass (18.0 g/mol) is lower than the average for dry air (~28.97 g/mol).
Can this method distinguish between two gases with the same molar mass, like N2 and CO, both near 28 g/mol?
No — density alone cannot distinguish isomers or coincidentally equal-mass species, since depends only on , not on molecular structure or connectivity. Additional evidence (reactivity, spectroscopy, combustion products) is needed to resolve such ties.
How does this connect to finding the molecular formula of a compound?
Once molar mass is known from density, dividing by the empirical formula mass reveals the multiplier in (empirical formula) = molecular formula — the density method supplies the missing piece that stoichiometric empirical-formula analysis alone cannot give.
What goes wrong if the gas is not close to ideal, e.g. at high pressure or low temperature?
Real gases deviate from under high pressure or near condensation, so a density-based calculated there will be systematically off; the ideal gas law is most reliable at low pressure and moderate-to-high temperature, well above the gas's boiling point.