Molar Mass of Gas Calculator
Estimate a gas’s molar mass from its measured mass, volume, pressure, and temperature.
01 Set up your calculation
- Enter the gas mass after subtracting the empty-container mass.
- Enter volume and absolute pressure at the measurement conditions.
- Enter the gas temperature; the equation uses kelvin internally.
02 The relationship
For the assumptions behind these results, read the explanation below. You can also explore Mole and Molar Mass.
Follow the numbers
At 1 atm and 273.15 K, 1 L contains approximately 0.044615 mol. A measured mass of 1.25 g therefore gives about 28.0175 g/mol.
03 Mass per mole from a gas sample
A gas sample can reveal its approximate molar mass without a molecular formula. Pressure, volume, and temperature determine how many moles occupy the container under the ideal-gas model. Dividing the measured mass by that amount gives mass per mole.
The gas volume must belong to the same sample as the mass measurement. If the container includes a second gas, the calculated value describes the mixture’s mean molar mass rather than one pure component.
04 Use absolute conditions
A pressure gauge commonly reports pressure relative to the atmosphere. Add the local atmospheric pressure before entering that value here. Using gauge pressure directly can produce a large error, especially near atmospheric conditions.
The ideal-gas approximation works best when molecules are far apart and the gas is well away from condensation. Moisture, leaks, high pressure, and strongly nonideal behavior can bias the estimate. This calculation does not correct for compressibility or subtract water-vapor pressure. For gas passing through a vessel, the related residence-time tool estimates volume divided by flow; both volume and volumetric flow must refer to the same pressure and temperature.
Questions from the notebook
Why is temperature converted to kelvin?
Gas-law temperature must measure distance from absolute zero. Celsius cannot be substituted directly into PV = nRT.
Does this identify an unknown gas?
No. Different compounds and mixtures can have similar mean molar masses. Additional chemical evidence is needed.
Can I use density instead of mass and volume?
Yes. A numerical density in g/L can be entered as that many grams in a 1 L sample.
References & reading
- OpenStax, Rice University — The Ideal Gas Law ↗
Relates gas pressure, absolute temperature, volume, and amount through PV = nRT; combining this with n = m/M gives the molar-mass rearrangement used here.
- NIST — Guide to SI conversion factors ↗
Supports physical unit conversions. Input values are converted to the formula’s base units before calculation.
Our explanations are written for ChemistryCalc. Read how we build and check our tools. These calculations are educational estimates where the underlying model requires assumptions.