Gas Density from Molar Mass

ρ=PMRT\rho = \frac{PM}{RT}
sig figs

Worked example: O2 at STP (1 atm, 273.15 K) → 1.42768 kg/m3. Press Try an example to run it live, then adjust anything.

Enter your known values, leave one input blank, and solves for the missing one. Tap a variable’s symbol to see what it means, with a typical value. Change any unit and the answer follows.

Where Gas Density from Molar Mass fits

Missing an input?
Your answer feeds

See also

Compressibility Factor (Z = PV/nRT): Both use pressure and absolute temperature.Van der Waals Equation of State: Both use pressure and absolute temperature.Equivalent Potential Temperature (Bolton): Both use pressure and absolute temperature.Partial Pressure from Mole Fraction: Both use pressure.Bernoulli's Equation (Two Points): Both use pressure.Pressure (P = F/A): Both use pressure.
1 more relatedPressure Head (h = P/ρg): Both use pressure.
Here the solver did the work. Could you?

Weighing a gas →

Grade 11Grade 11 Chemistry

Molar mass from the gas →

Grade 12Grade 12 Chemistry

The ideal gas →

UniversityThermodynamics & Heat Transfer

Test your skills in the Exam Room: new numbers every attempt. Free lessons for students, no sign-up, just pure learning. Find 2 more lessons on this formula.

See your Report Card
Learning zone

Gas Density from Molar Mass explained

PρMT

Start from PV=nRTPV = nRT, substitute n=m/Mn = m/M, and rearrange for mass over volume: ρ=PM/RT\rho = PM/RT. What the result says is that a gas has no density of its own. Unlike a solid or a liquid, whose density is close enough to a fixed property to tabulate, a gas takes whatever density its pressure and temperature impose, and the only thing the substance itself contributes is MM. Squeeze it and it gets denser in exact proportion; warm it and it thins in inverse proportion.

Air at 101.325 kPa and 20 °C, using M=0.028964M = 0.028964 kg/mol: ρ=(101 325×0.028964)/(8.314×293.15)=1.204 kg/m3\rho = (101\,325 \times 0.028964)/(8.314 \times 293.15) = 1.204\ \text{kg/m}^3, the figure every ventilation calculation starts from. Helium at the same conditions, with M=0.0040026M = 0.0040026, comes to 0.166 kg/m³. Subtract, and a cubic metre of helium lifts about 1.04 kg. That is the entire physics of a party balloon, and it explains why a balloon large enough to lift a person has to be the size of a house.

Rearranged for molar mass the equation becomes a measurement rather than a prediction, and a historically important one. Weigh a bulb of known volume empty, fill it with a vapour at measured temperature and pressure, weigh it again, and M=ρRT/PM = \rho RT/P hands you the molar mass of an unknown. This is the Dumas method, and through the middle of the nineteenth century it was one of the few routes to a molecular formula. It also settled arguments: measured vapour densities are what showed that many elemental gases travel as diatomic molecules rather than lone atoms.

The dominant error here is the molar mass unit, and it is a clean factor of a thousand. With R=8.314R = 8.314 J/(mol·K) the equation demands MM in kilograms per mole. Air is 0.029 kg/mol. Enter 29 and the answer comes back as 1204 kg/m³, air denser than water, which at least announces itself. Enter 0.029 when the calculation wanted grams and you get the mirror error. The usual companions apply too: PP must be absolute, not a gauge reading, and TT must be in kelvin.

Two conceptual notes. There is no such thing as "the molar mass of air" in the strict sense: air is a mixture, and 28.96 g/mol is a mole-weighted average of nitrogen, oxygen and argon. It works precisely because an ideal gas is indifferent to what its neighbours are; only the total count matters. That same indifference produces a result most people find backwards: humid air is lighter than dry air. Water is 18 g/mol against air's 29, so at a given pressure and temperature every water molecule that joins the mixture has displaced a heavier one. Muggy days are low-density days, which is why aircraft performance charts include humidity and why a hot, humid runway is a long takeoff.

Gas Density from Molar Mass formula

ρ=PMRT\rho = \frac{PM}{RT}
Where
  • ρ\rho= Gas density (kg/m³)
  • PP= Pressure (kPa)
  • MM= Molar mass (g/mol)
  • TT= Absolute temperature (°C)
Revised 16 October 2026
Cite this page

formula.expert. (2026, October 16). Gas Density from Molar Mass Formula & Calculator. https://formula.expert/solvers/gas-density-molar-mass