Molar Mass of Gas Calculator

Determine a gas's molar mass experimentally from measured mass, pressure, volume, and temperature, using the rearranged ideal gas law M = mRT/(PV).

💨 Molar Mass of Gas Calculator
g
atm
L
K

Uses R = 0.082057 L·atm/(mol·K).

Molar Mass
—

💨 What is the Molar Mass of a Gas (Experimental Method)?

This calculator finds the molar mass of an unknown gas experimentally, from physically measured properties, rather than by summing atomic masses from a known chemical formula. It rearranges the ideal gas law, PV = nRT, using the substitution n = m/M (moles equals mass divided by molar mass), to solve directly for molar mass: M = mRT/(PV).

This is the working principle behind the classic Dumas bulb method: a small measured mass of a volatile liquid is placed in a flask of known volume, heated until it fully vaporises and drives out the surrounding air, then the flask is sealed and the vapour's mass, temperature, and pressure are recorded. Plugging those four measurements into M = mRT/(PV) gives the molar mass of the unknown substance, often letting a chemist identify what compound it is.

This method is fundamentally different in framing from computing molar mass by adding up atomic masses from a chemical formula (for example, water H2O = 2(1.008) + 15.999 = 18.015 g/mol). That formula-based approach requires already knowing what the compound is. This experimental approach works in reverse: you measure how a gas behaves physically, and the molar mass falls out of the ideal gas law without needing to know the formula in advance.

This calculator applies the ideal gas approximation, which assumes negligible intermolecular forces and negligible molecular volume. It is highly accurate for most gases at moderate temperature and pressure, and is the standard approach taught in general chemistry laboratory courses for finding an unknown gas's molar mass from experimental data.

📐 Formula

M  =  mRT ÷ (PV)
M = molar mass, in grams per mole (g/mol)
m = measured mass of the gas sample, in grams (g)
R = gas constant = 0.082057 L·atm/(mol·K)
T = absolute temperature, in kelvin (K)
P = pressure, in atmospheres (atm)
V = volume occupied by the gas, in litres (L)
Derivation: from PV = nRT and n = m/M, substituting gives PV = (m/M)RT, rearranged to M = mRT/(PV)

📖 How to Use This Calculator

Steps

1
Measure or record the gas mass - enter the mass of gas in grams, measured directly or from the mass of vapour condensed (Dumas bulb method).
2
Enter pressure and volume - enter pressure in atm and volume in litres, converting from other units first if needed.
3
Enter the temperature - enter absolute temperature in kelvin, converting from Celsius by adding 273.15 if needed.
4
Click Calculate to see the molar mass, the substituted formula, and the pressure-sensitivity chart.

💡 Example Calculations

Example 1 — Verifying oxygen (O2) at STP

m = 32.00 g, P = 1.00 atm, V = 22.414 L, T = 273.15 K.

1
M = (32.00 × 0.082057 × 273.15) / (1.00 × 22.414)
2
M = 717.51 / 22.414 = 32.00 g/mol
This matches the known molar mass of O2 (32.00 g/mol), confirming the formula against a standard molar volume at STP.
Try this example →

Example 2 — Unknown gas sample

m = 0.640 g, P = 1.00 atm, V = 0.500 L, T = 300 K.

1
M = (0.640 × 0.082057 × 300) / (1.00 × 0.500)
2
M = 15.755 / 0.500 = 31.51 g/mol
A molar mass near 31.5 g/mol is close to a mix of light diatomic gases; further tests would be needed to identify it exactly.
Try this example →

Example 3 — Sample near carbon dioxide's molar mass

m = 1.250 g, P = 0.950 atm, V = 0.750 L, T = 310 K.

1
M = (1.250 × 0.082057 × 310) / (0.950 × 0.750)
2
M = 31.797 / 0.7125 = 44.63 g/mol
This is close to carbon dioxide's molar mass (44.01 g/mol), a plausible identification pending further confirmation.
Try this example →

Example 4 — Dumas bulb determination of a volatile liquid

m = 0.526 g, P = 1.00 atm, V = 0.250 L, T = 373.15 K (100°C).

1
M = (0.526 × 0.082057 × 373.15) / (1.00 × 0.250)
2
M = 16.106 / 0.250 = 64.42 g/mol
This is close to sulfur dioxide's molar mass (64.07 g/mol), the kind of identification the Dumas bulb method is classically used for.
Try this example →

❓ Frequently Asked Questions

What is the formula for finding molar mass from gas measurements?+
M = mRT / (PV), a rearrangement of the ideal gas law PV = nRT using n = m/M (moles equals mass divided by molar mass). Here m is the measured mass of gas in grams, R is the gas constant, T is absolute temperature in kelvin, P is pressure in atm, and V is volume in litres.
How is this different from calculating molecular weight from a chemical formula?+
This calculator determines molar mass experimentally, from physically measured pressure, volume, temperature, and mass of an unknown gas sample, without needing to know its chemical formula in advance. Calculating molecular weight by summing atomic masses (as the site's Molecular Weight Calculator does) requires already knowing the formula, which is the opposite starting point.
What value of R does this calculator use?+
R = 0.082057 L·atm/(mol·K), the standard gas constant used when pressure is in atmospheres and volume is in litres. This matches the common convention in general chemistry courses and lab manuals for experimental molar mass determination.
What is the Dumas bulb method?+
The Dumas bulb method is a classic laboratory technique for finding the molar mass of a volatile liquid. A small amount of liquid is placed in a flask of known volume, heated until it fully vaporises and drives out the air, then sealed and cooled. The mass of the condensed vapour, along with the flask's volume, the vaporisation temperature, and atmospheric pressure, are plugged into M = mRT/(PV) to find the molar mass.
Why does temperature have to be in kelvin for this calculation?+
The ideal gas law, and this rearranged form, is derived from the kinetic theory of gases, where temperature must be measured on an absolute scale starting at absolute zero. Using Celsius or Fahrenheit directly would give a wrong (and sometimes negative or infinite) result, since those scales do not start at true zero energy.
How accurate is molar mass determined this way?+
It is generally accurate to within a few percent for gases at moderate temperature and pressure, since it relies on the ideal gas approximation. Accuracy degrades at high pressure or low temperature, where real gas behaviour (intermolecular forces, finite molecular volume) deviates more from the ideal gas law's assumptions.
Can this method identify an unknown gas?+
Yes, approximately. Once you calculate the molar mass, compare it to known molar masses of common gases or compounds: for example, a result near 44 g/mol suggests carbon dioxide (44.01 g/mol) or propane (44.10 g/mol), while a result near 64 g/mol suggests sulfur dioxide (64.07 g/mol). Molar mass alone cannot distinguish between compounds with very similar values, so it is usually combined with other tests.
What if I have volume in millilitres or pressure in mmHg?+
Convert first: divide millilitres by 1000 to get litres, and divide mmHg by 760 to get atm (since 760 mmHg = 1 atm exactly). Entering unconverted values will give an incorrect molar mass, since R = 0.082057 only pairs correctly with atm and litres.
Does this calculator assume ideal gas behaviour?+
Yes. The formula M = mRT/(PV) is derived directly from the ideal gas law, which assumes negligible intermolecular forces and negligible molecular volume. This is a good approximation for most gases at room temperature and moderate pressure, but becomes less accurate for gases close to condensation or at very high pressure.
What is the difference between this calculator and the Ideal Gas Law Calculator?+
The Ideal Gas Law Calculator solves the general equation PV = nRT for any one of pressure, volume, moles, or temperature given the other three. This calculator is a dedicated, single-purpose tool for the specific experimental task of finding molar mass from measured mass, pressure, volume, and temperature, which requires the m/M substitution for moles.
How many decimal places should measurements be recorded to for accurate results?+
For meaningful accuracy, mass should be measured to at least three significant figures (a good laboratory balance reads to 0.001 g or better), and volume, temperature, and pressure should each be recorded as precisely as your equipment allows, since small measurement errors in any one variable propagate directly into the calculated molar mass.

What is the formula for finding molar mass from gas measurements?

M = mRT / (PV), a rearrangement of the ideal gas law PV = nRT using n = m/M (moles equals mass divided by molar mass). Here m is the measured mass of gas in grams, R is the gas constant, T is absolute temperature in kelvin, P is pressure in atm, and V is volume in litres.

How is this different from calculating molecular weight from a chemical formula?

This calculator determines molar mass experimentally, from physically measured pressure, volume, temperature, and mass of an unknown gas sample, without needing to know its chemical formula in advance. Calculating molecular weight by summing atomic masses (as the site's Molecular Weight Calculator does) requires already knowing the formula, which is the opposite starting point.

What value of R does this calculator use?

R = 0.082057 L·atm/(mol·K), the standard gas constant used when pressure is in atmospheres and volume is in litres. This matches the common convention in general chemistry courses and lab manuals for experimental molar mass determination.

What is the Dumas bulb method?

The Dumas bulb method is a classic laboratory technique for finding the molar mass of a volatile liquid. A small amount of liquid is placed in a flask of known volume, heated until it fully vaporises and drives out the air, then sealed and cooled. The mass of the condensed vapour, along with the flask's volume, the vaporisation temperature, and atmospheric pressure, are plugged into M = mRT/(PV) to find the molar mass.

Why does temperature have to be in kelvin for this calculation?

The ideal gas law, and this rearranged form, is derived from the kinetic theory of gases, where temperature must be measured on an absolute scale starting at absolute zero. Using Celsius or Fahrenheit directly would give a wrong (and sometimes negative or infinite) result, since those scales do not start at true zero energy.

How accurate is molar mass determined this way?

It is generally accurate to within a few percent for gases at moderate temperature and pressure, since it relies on the ideal gas approximation. Accuracy degrades at high pressure or low temperature, where real gas behaviour (intermolecular forces, finite molecular volume) deviates more from the ideal gas law's assumptions.

Can this method identify an unknown gas?

Yes, approximately. Once you calculate the molar mass, compare it to known molar masses of common gases or compounds: for example, a result near 44 g/mol suggests carbon dioxide (44.01 g/mol) or propane (44.10 g/mol), while a result near 64 g/mol suggests sulfur dioxide (64.07 g/mol). Molar mass alone cannot distinguish between compounds with very similar values, so it is usually combined with other tests.

What if I have volume in millilitres or pressure in mmHg?

Convert first: divide millilitres by 1000 to get litres, and divide mmHg by 760 to get atm (since 760 mmHg = 1 atm exactly). Entering unconverted values will give an incorrect molar mass, since R = 0.082057 only pairs correctly with atm and litres.

Does this calculator assume ideal gas behaviour?

Yes. The formula M = mRT/(PV) is derived directly from the ideal gas law, which assumes negligible intermolecular forces and negligible molecular volume. This is a good approximation for most gases at room temperature and moderate pressure, but becomes less accurate for gases close to condensation or at very high pressure.

What is the difference between this calculator and the Ideal Gas Law Calculator?

The Ideal Gas Law Calculator solves the general equation PV = nRT for any one of pressure, volume, moles, or temperature given the other three. This calculator is a dedicated, single-purpose tool for the specific experimental task of finding molar mass from measured mass, pressure, volume, and temperature, which requires the m/M substitution for moles.

How many decimal places should measurements be recorded to for accurate results?

For meaningful accuracy, mass should be measured to at least three significant figures (a good laboratory balance reads to 0.001 g or better), and volume, temperature, and pressure should each be recorded as precisely as your equipment allows, since small measurement errors in any one variable propagate directly into the calculated molar mass.