Skip to content
FiftyCalc Free calculators for all 50 states

Molar Mass of Gas Calculator

Test cases replayed : 2 of 2 match · Methodology · No outside source listed

Enter the mass of the gas sample, the volume it fills, its pressure and temperature.

Result

Sample figures

Molar mass—g/mol

Gas density (g/L) —

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Molar Mass of Gas Calculator

Mass of gas, in g: enter 0 or more. Prefilled example: 1.0.

Volume, in L: enter 0 or more. Prefilled example: 0.5.

Pressure unit

Pressure unit: choose atm, kPa or torr (≈ mmHg). Prefilled example: atm.

Pressure: enter 0 or more. Prefilled example: 1.

Temperature, in °C: enter -273.15 or more. Prefilled example: 25.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Mass of gas, in g: enter 0 or more.
  2. Volume, in L: enter 0 or more.
  3. Pressure unit: choose atm, kPa or torr (≈ mmHg).
  4. Pressure: enter 0 or more.
  5. Temperature, in °C: enter -273.15 or more.
  6. Read the result: Molar mass; the panel also shows Gas density (g/L).

How this calculator works

Ideal gas law PV = nRT with n = m/M gives M = m R T ÷ (P V) = ρ R T ÷ P. R = 0.082057366 L·atm/(mol·K), from exact SI constants (CODATA 2022 values from NIST (physics.nist.gov/cuu/Constants, read 2026-10-27)); 1 atm = 101.325 kPa = 760 torr.

Real gases deviate from the ideal law at high pressure or near condensation, so the result is an estimate there.

The formula

  1. M=g×0.0820573660809596×(t+273.15)p×pu×v
Symbols used in the formula
SymbolMeaningUnit
gMass of gasg
vVolumeL
puPressure unit
pPressure
tTemperature°C
MMolar massg/mol

Worked example

Mass of gas1 g
Volume0.5 L
Pressure unitatm
Pressure1
Temperature25 °C
Gas density (g/L)2
  1. M=1×0.0820573660809596×(25+273.15)1×1×0.5=48.9308

Molar mass 48.9308 g/mol

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What gas has a molar mass near 44 g/mol?

Carbon dioxide (44.009 g/mol) or propane (44.097 g/mol); molar mass alone cannot tell them apart.

Can I use density instead of mass and volume?

Yes: enter the density as the mass and 1 L as the volume.

Related calculators