Report

Help us improve this tool

Molar Mass of Gas Calculator

Find molar mass and moles of a gas using the ideal gas law from pressure, temperature, volume, and mass.

O M T

Molar Mass of Gas Calculator

The Molar Mass of Gas Calculator uses the ideal gas law to find molar mass, moles, pressure, volume, temperature, or mass of a gas sample. It is useful in stoichiometry, gas analysis, and laboratory calculations.

$$PV = nRT$$

$$M = \frac{m}{n} = \frac{m \cdot RT}{PV}$$

where $P$ is pressure, $V$ is volume, $n$ is moles, $R = 0.082057$ L·atm/(mol·K), $T$ is temperature in kelvin, $m$ is mass in grams, and $M$ is molar mass in g/mol.

Example: 32 g of gas at 1 atm, 273.15 K, and 22.4 L gives $n = PV/(RT) = 1$ mol, so $M = 32$ g/mol (oxygen gas, O₂).

Related tools: Molar Mass Calculator, Kp Calculator, and Grams to Moles Calculator.

Frequently Asked Questions

How do I find molar mass of a gas?

Use the ideal gas law to find moles: n = PV/(RT). Then divide sample mass by moles: M = m/n. Use consistent units: atm, liters, and kelvin with R = 0.082057.

Is molar mass the same as molecular weight?

They have the same numerical value but different units. Molar mass is in g/mol; molecular weight is in atomic mass units (u or Da) per molecule.

Why is 22.4 L used for gases at STP?

At standard temperature and pressure (0 °C, 1 atm), one mole of an ideal gas occupies about 22.4 L. This follows directly from PV = nRT.

What gas constant should I use?

This calculator uses R = 0.082057 L·atm/(mol·K) when pressure is in atm, volume in liters, and temperature in kelvin. Other unit sets require matching R values.