Molar Mass of Gas Calculator
ChemistryCalculate molar mass of a gas from its density using M = dRT/P, or from PVT measurements using PV=nRT. Enter gas density at known temperature and pressure.
Reviewed by the thecalcu.com team · Last updated January 10, 2026
Molar Mass (g/mol)
What is a Gas Molar Mass?
The Molar Mass of Gas Calculator determines the molar mass of a gas or vapour from its measured density at known temperature and pressure, using M = dRT/P derived from the ideal gas law. Enter gas density (g/L), temperature (°C), and pressure (atm) to get the molar mass (g/mol), density at STP, and molar volume.
The relationship M = dRT/P is the most direct experimental method for determining molar mass of gases and volatile liquids. By measuring the mass of a known volume of gas at known temperature and pressure, the molar mass follows immediately. This connects to the broader toolset of gas law calculations: the STP Calculator converts between volumes and moles at STP; the Rate of Effusion Calculator provides Graham's law approach to molar mass from effusion rates; and the Molar Mass Calculator computes molar mass from atomic composition for known compounds.
The calculator also outputs density at STP (0°C, 1 atm), allowing comparison of all gases on a common basis. Gases lighter than air (density at STP < 1.293 g/L, molar mass < 28.97 g/mol) are listed in the worked example, a safety-relevant distinction for industrial gas handling.
Why Use a Molar Mass of Gas Calculator?
The rearrangement from PV = nRT to M = dRT/P requires two algebraic steps and careful handling of units (d in g/L, R in L·atm/(mol·K), T in K, P in atm). Using the wrong R (8.314 J/(mol·K) instead of 0.082057 L·atm/(mol·K)) gives results 101.3 times larger. This calculator uses the correct R for the L·atm system internally.
For NCERT Class 11 Chapter 5 exam problems, calculating molar mass from gas density at specified conditions is a standard problem type. The formula M = dRT/P and its derivation from PV = nRT are explicitly required knowledge.
Who Should Use This Calculator?
Class 11 and 12 chemistry students studying the States of Matter chapter, where molar mass determination from gas density is a standard problem type for CBSE boards and JEE preparation.
Analytical chemists determining molar masses of unknown gases or volatile compounds via gas density measurement (Victor Meyer method, Dumas method).
Industrial gas engineers computing expected gas densities from molar masses for dispersion modelling, safety classification (lighter or heavier than air), and storage system design.
Environmental scientists computing molar masses of atmospheric pollutants and greenhouse gases for emissions inventory and dispersion calculations.
Chemical engineering students studying thermodynamics and transport properties where gas density and molar mass are fundamental inputs.
What Insights Does the Molar Mass of Gas Calculator Give You?
Molar Mass (g/mol) is the primary output, the molecular weight of the gas or vapour. Compare to known molar masses to identify the gas or verify measurement: O₂ = 32, N₂ = 28, CO₂ = 44, CH₄ = 16, SO₂ = 64, etc.
Density at STP (g/L) converts the measured density to the standard reference conditions (0°C, 1 atm), allowing comparison with tabulated gas densities. Equal to M/22.414.
Molar Volume at STP (L/mol) is always 22.414 L/mol for an ideal gas, shown here as a confirmation of the ideal gas reference value used in the calculation.
How to use this Gas Molar Mass calculator
- Measure the gas density by weighing a known volume of gas at known temperature and pressure, or look up the density from a databook. Enter in Gas Density (g/L).
- Enter the Temperature in °C at which the density measurement was made.
- Enter the Pressure in atm at which the density was measured. Standard atmospheric pressure = 1 atm.
- Read Molar Mass (g/mol), identify the gas by comparing to known molar masses.
- Check Density at STP for comparison to tabulated standard gas densities (O₂ at STP = 1.429 g/L, N₂ = 1.250 g/L, etc.).
Show formula & methodology ↓Show less ↑
Formula & Methodology
Molar mass from ideal gas density:M = dRT/P R = 0.082057 L·atm/(mol·K) T = temperature in Kelvin = T(°C) + 273.15STP density:d_STP = M / 22.414 (in g/L)Worked example, identifying an unknown gas: An unknown gas has density 1.965 g/L at 0°C and 1 atm (i.e., at STP). Identify the gas.M = d × RT/P = 1.965 × 0.082057 × 273.15 / 1 = 1.965 × 22.414 = 44.04 g/molMolar mass = 44 g/mol → likely CO₂ (44.01 g/mol) or N₂O (44.01 g/mol). In practice, additional properties (IR spectrum, chemical reactivity, odour) distinguish between isobaric gases. At STP, CO₂ has density 1.965 g/L, matching the default input in this calculator.
Frequently Asked Questions