Skip to content
chemistrycalc

Molar Mass of Gas Calculator

Estimate a gas’s molar mass from its measured mass, volume, pressure, and temperature.

By ChemistryCalc•Updated October 28, 2026•References
Your calculationLive results · change any value

Results update as you type. Choose units beside a measurement; changing units converts the current value.

On this pageCalculatorHow to useFormula & methodWorked exampleMass per mole from a gas sampleUse absolute conditionsFrequently asked questionsRelated calculatorsSources

01 Set up your calculation

  1. Enter the gas mass after subtracting the empty-container mass.
  2. Enter volume and absolute pressure at the measurement conditions.
  3. Enter the gas temperature; the equation uses kelvin internally.

02 The relationship

PV = nRT; M = m/n = mRT/(PV), with R = 0.08205736608096 L·atm/(mol·K).

For the assumptions behind these results, read the explanation below. You can also explore Mole and Molar Mass.

WORKED EXAMPLE

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

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.