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
Molar massg/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.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Mass of gas, in g: enter 0 or more.
- Volume, in L: enter 0 or more.
- Pressure unit: choose atm, kPa or torr (≈ mmHg).
- Pressure: enter 0 or more.
- Temperature, in °C: enter -273.15 or more.
- 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
| Symbol | Meaning | Unit |
|---|---|---|
| Mass of gas | g | |
| Volume | L | |
| Pressure unit | ||
| Pressure | ||
| Temperature | °C | |
| Molar mass | g/mol |
Worked example
| Mass of gas | 1 g |
|---|---|
| Volume | 0.5 L |
| Pressure unit | atm |
| Pressure | 1 |
| Temperature | 25 °C |
| Gas density (g/L) | 2 |
|---|
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.