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.
Related tools
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.