SOLVETUTORMATH SOLVER

Instrument MI-10-064 · Chemistry

Molar Mass of Gas Calculator

Weigh a known volume of gas at a known pressure and temperature, and the ideal gas law hands back its molar mass — one of the oldest tricks for identifying an unknown gas without a spectrometer.

Instrument MI-10-064
Sheet 1 OF 1
Rev A
Verified
Type 10 — Gas Laws SER. 2026-10064

Molar mass (g/mol)

28.0320

M = (m*R*T) / (P*V)

The working Every figure verified twice
  1. molarMass = 1.25·0.0821·273.15 ⁄ (1·1) = 28.0320
Worksheet log
  1. No entries yet — change an input to log a scenario.

How this instrument works

This instrument rearranges the ideal gas law, PV = nRT, to solve for molar mass instead of pressure or volume. Since the number of moles n equals mass divided by molar mass (n = m/M), substituting that into PV = nRT and solving for M gives M = mRT / (PV): weigh a sample of gas (m), measure the volume it occupies (V) at a known pressure (P) and temperature (T), and the molar mass falls out directly. It is one of the classic ways chemists identify an unknown gas or verify a gas's identity in the lab, especially before modern instrumentation like mass spectrometry became routine.

The calculation is really a density measurement in disguise. Mass divided by volume is density, so M = mRT/(PV) can be rewritten as M = (density) x RT/P — meaning a gas's molar mass is directly proportional to how dense it is at a given temperature and pressure. That is exactly why gas density tables are so useful for identification: nitrogen and carbon monoxide, both with molar masses near 28 g/mol, have nearly identical densities at the same conditions and are genuinely difficult to tell apart by density alone.

The gas constant R takes the value 0.0821 when pressure is in atmospheres, volume in litres, and temperature in kelvin — the unit combination most common in general chemistry coursework and lab measurements. The result inherits whatever error exists in the ideal-gas assumption itself: real gases deviate from PV = nRT at high pressure or near their condensation point, so a molar mass computed this way is most reliable for gases measured at ordinary lab pressures, well away from liquefaction.

M=mRTPVM = \dfrac{mRT}{PV}
M — molar mass, g/mol · m — mass of the gas sample, g · R — the gas constant, fixed at 0.0821 L atm mol⁻¹ K⁻¹ · T — absolute temperature, K · P — pressure, atm · V — volume, L. Using P in atm and V in L is what makes R = 0.0821 the correct constant to pair with them.
  • Enter the measured weight of your gas sample into Mass of gas sample (g).
  • Enter the volume that sample occupies into Volume (L).
  • Enter the gas pressure at the time of measurement into Pressure (atm).
  • Enter the absolute temperature at the time of measurement into Temperature (K) — convert from Celsius by adding 273.15 first.
  • Read Molar mass (g/mol) — compare it against known molar masses to help identify the gas.

Worked example — a gas at density 1.25 g/L at STP

Enter 1.25 into Mass of gas sample (g), 1 into Volume (L), 1 into Pressure (atm), and 273.15 into Temperature (K) — standard temperature and pressure, with a sample dense enough that 1 litre weighs 1.25 grams. Molar mass (g/mol) reads 28.0320: the instrument computes (1.25 x 0.0821 x 273.15) / (1 x 1) = 28.03201875, then rounds for display.

That figure sits close to the known molar masses of both nitrogen (28.014 g/mol) and carbon monoxide (28.010 g/mol) — a 1.25 g/L density at STP is, in fact, the widely cited textbook value for both gases, which is exactly why density alone can't distinguish between them without additional chemical evidence.

Questions

Why does this formula need pressure and temperature, not just mass and volume?

Because a gas's volume depends heavily on pressure and temperature — the same 32 grams of oxygen occupies a much larger volume at low pressure or high temperature than at high pressure or low temperature. The ideal gas law ties all four quantities together, so pressure and temperature must be specified to make mass and volume meaningful for computing moles, and therefore molar mass.

Why is R = 0.0821 here instead of 8.314?

Both are the same physical constant expressed in different units. R = 8.314 J/(mol K) is the SI value, paired with pascals and cubic metres; R = 0.0821 L atm/(mol K) is the same constant converted to pair with atmospheres and litres, the units this instrument's fields use. Mixing them — say, entering pressure in pascals but leaving R at 0.0821 — produces a molar mass that's wrong by several orders of magnitude, so unit consistency matters more than which R value looks familiar.

How accurate is this method for identifying an unknown gas?

It narrows the identity down but rarely pins it down alone, since multiple gases can share a similar molar mass — nitrogen and carbon monoxide both sit near 28 g/mol, and propane (44.1 g/mol) is close to carbon dioxide (44.01 g/mol). In practice, chemists pair a measured molar mass with other evidence — color, odor, reactivity, or a definitive technique like mass spectrometry — to confirm an identity rather than relying on molar mass in isolation.

Does this work for a mixture of gases, like air?

Yes, but the result is an average molar mass, not any single gas's true molar mass. A mixture behaves, for pressure and volume purposes, like a single gas with an 'apparent' molar mass equal to the mole-fraction-weighted average of its components — air's apparent molar mass works out to about 28.97 g/mol, close to nitrogen's, because nitrogen makes up roughly 78% of it by moles.

Why does the instrument require temperature above absolute zero?

Temperature appears directly in the numerator of M = mRT/(PV), and the ideal gas law itself is only meaningful for temperatures above absolute zero, where molecular motion (and therefore pressure and volume in the usual sense) still exists. Entering zero or a negative kelvin value has no physical interpretation, so the instrument blanks the reading rather than returning a number.

What if my measurements were taken at conditions other than STP?

That's fine — enter the actual pressure and temperature you measured at, not standard conditions. The formula M = mRT/(PV) already accounts for whatever pressure and temperature the sample was measured under; STP (273.15 K, 1 atm) is simply a common reference condition, not a requirement for the calculation to work correctly.

References