Skip to content
Omnikalc

Molar mass of a gas calculator: find the gas from its density

Enter the gas density, the temperature and the pressure to find the molar mass in g/mol, the density relative to air, the amount per litre and the molar volume.

Updated on
Your inputs

Value out of range

°F

Value out of range

Value out of range

Results

Molar mass of the gas

44.04 g/mol

Density relative to air

1.520

Heavier than air, sinks and collects low
Amount of gas per litre
0.0409 mol/L
Molar volume
24.47 L/mol

An unknown gas can be identified by weighing a known volume of it. The result is the density, and from it, with the temperature and the pressure, you can find the molar mass. This molar mass of a gas calculator uses the ideal gas law. Enter the gas density, the temperature and the pressure to get the molar mass in g/mol, the density relative to air, the amount per litre and the molar volume.

How the calculation works

  • Absolute temperature T = (°F − 32) ÷ 1.8 + 273.15, in kelvin.
  • Molar mass M = ρ × R × T ÷ P, where ρ is the density in g/L, R = 0.082057 L·atm/(mol·K) and P is the pressure in atm. This is the ideal gas law solved for M.
  • Density relative to air = M ÷ 28.97, where 28.97 g/mol is the molar mass of dry air. A value above 1 means that the gas is heavier than air.
  • Molar volume = R × T ÷ P, the space taken by one mole of gas at those conditions.

Example

A gas has a density of 1.80 g/L at 77 °F (298.15 K) and 1 atm. The molar mass is 1.80 × 0.082057 × 298.15 ÷ 1 = 44.04 g/mol, which matches carbon dioxide (44.01 g/mol). The gas is 1.52 times as dense as air. One litre holds 0.0409 mol, and the molar volume is 24.47 L/mol.

Why it matters

The method was first used by Dumas in the 1800s to find atomic and molecular masses, and it is still a standard chemistry lab exercise. It is also useful in the field: gas safety work needs to know if a leaking gas will rise or collect in a low area, which depends on the molar mass relative to air.

Good to know

The density must be measured at the stated temperature and pressure, and the volume of the flask or syringe needs to be accurate. Moisture in the sample counts as part of the mass and lowers the result if the gas is dry-weighed, so dry the gas or correct for the water vapor pressure when the gas is collected over water. The ideal gas law assumes small molecules at low pressure, so results for heavy vapors or for gases near their condensation point can be off by several percent. The relative density uses dry air at 28.97 g/mol.

The ideal gas calculator relates pressure, volume and temperature, the specific gas constant calculator gives R for one gas and the grams to moles calculator converts mass with the molar mass.

Frequently asked questions

How do you find the molar mass of a gas from its density?

Rearrange the ideal gas law PV = nRT. Since n is the mass divided by the molar mass, M = ρRT ÷ P. Measure the density, the temperature and the pressure, then multiply the density by R and T and divide by P.

Which value of R should I use?

Use the one that matches the units. With the density in g/L, the pressure in atm and the temperature in kelvin, R is 0.082057 L·atm/(mol·K). The calculator converts the other pressure units to atm first.

How can you tell which gas it is?

Compare the molar mass with the known values: hydrogen 2.0, helium 4.0, methane 16.0, nitrogen 28.0, air 28.97, oxygen 32.0, argon 39.9, carbon dioxide 44.0, propane 44.1, chlorine 70.9. A match within about 1 g/mol usually points to one gas, though several have a similar value.

Is the ideal gas law accurate enough?

At ordinary temperatures and pressures near 1 atm, yes, within about 1 percent for most gases. At high pressure or near the boiling point, real gases deviate, and the calculated molar mass will be off by a few percent.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.