Home · Science · Chemistry · Molar Mass of Gas Calculator

Molar Mass of Gas Calculator

Finds a gas's molar mass from its density, temperature and pressure via the ideal gas law.

Your figures

Example result — edit the figures to make it yours

30.77

Molar mass

What this calculator does

Finds a gas's molar mass from its density, temperature and pressure via the ideal gas law. Every figure on this page is computed from the formula or definition stated below, with no hidden rounding steps, and the method notes name the exact convention where more than one exists.

The formula and method

M = d × R × T ÷ P, with R = 0.08206 L·atm/(mol·K)

Density is in grams per litre, temperature in kelvin and pressure in atmospheres — the units matching this form of the gas constant.

This is the classic method for identifying an unknown gas or vapour from a measured density.

Worked example

With the example inputs this page opens with (density (g/l) 1.25, temperature (k) 300, pressure (atm) 1), the result is 30.77 — molar mass. Change any figure and the result updates with the same formula.

Quick reference

Quick reference — varying density (g/l)
Density (g/L)Molar mass
0.62515.39
124.62
1.2530.77
1.562538.47
1.87546.16
2.561.55

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Molar Mass of Gas Calculator work?

Finds a gas's molar mass from its density, temperature and pressure via the ideal gas law. Density · Temperature · Pressure → Molar mass. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Molar Mass of Gas Calculator need?

Density · Temperature · Pressure → Molar mass. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Molar Mass of Gas Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.