Molar Mass of Gas Calculator

Calculate molar mass or other gas properties using the ideal gas law. Use PV = nRT to find molar mass, pressure, volume, temperature, or mass.

Pressure in the selected units

Volume in the selected units

Temperature in Kelvin (or Celsius if selected)

Mass of the gas in grams

Known molar mass (g/mol)

PV = nRT, where P = pressure, V = volume, n = moles, R = 0.0821 L·atm/(mol·K), T = temperature. Molar mass: M = mRT / PV
At 1 atm, 273 K, 22.4 L: one mole of any ideal gas = 22.4 L (molar volume). For 5.6g of unknown gas in 4L at 2 atm and 300K: n = PV/RT = 2×4/(0.0821×300) = 0.325 mol, M = 5.6/0.325 = 17.2 g/mol (likely NH₃ at 17)

How do you calculate molar mass from gas properties?

Using the ideal gas law rearranged: M = mRT / PV, where M = molar mass (g/mol), m = mass (g), R = gas constant (0.0821 L·atm/(mol·K)), T = temperature (K), P = pressure (atm), V = volume (L). This works because for an ideal gas: PV = nRT and n = m/M. For example, 1g of unknown gas at 1 atm and 273K occupying 0.8L has M = 1 × 0.0821 × 273 / (1 × 0.8) = 28 g/mol (likely N₂).

What is the molar volume of a gas at STP?

At Standard Temperature and Pressure (0°C = 273.15K, 1 atm), one mole of an ideal gas occupies 22.414 L. This is the molar volume. At room temperature (25°C = 298K, 1 atm), molar volume is slightly larger at 24.5 L. This constant applies to ALL ideal gases regardless of their molar mass - a key property that allows gas molar mass determination by measuring volume at known P, T, and mass.

Why does gas molar mass affect its density?

Gas density ρ = m/V. From ideal gas law: ρ = (PM) / (RT). Density is directly proportional to molar mass - heavier gases are denser at the same P and T. At STP: H₂ = 0.09 g/L, N₂ = 1.25 g/L, O₂ = 1.43 g/L, CO₂ = 1.96 g/L. This explains why lighter gases rise (balloons) and why CO₂ can displace air in confined spaces (safety concern).

What is the difference between ideal and real gas behavior?

Ideal gases follow PV = nRT exactly. Real gases deviate at: (1) High pressure - molecules are close together, intermolecular forces matter, (2) Low temperature - molecular attraction becomes significant. Real gas behavior is described by the van der Waals equation: (P + an²/V²)(V - nb) = nRT, where a accounts for attraction and b for molecular volume. For most conditions at room temperature and 1 atm, gases behave nearly ideally.

How accurate is the ideal gas law for molar mass calculation?

For most common gases at 1 atm and room temperature, error is < 1%. Deviations are larger for: (1) Polar molecules (HCl, NH₃) - stronger dipole interactions, (2) Large molecules (C₄H₁₀) - more intermolecular forces, (3) Near condensation - near boiling point. For high accuracy, use van der Waals constants to correct or use experimental data. At very low pressures (< 0.01 atm), ideal gas law is excellent.

What are common methods to determine gas molar mass?

Methods include: (1) Gas density - measure mass, P, V, T and calculate M, (2) Vapor density - compare rates of effusion through small hole (Graham's law), (3) Molecular weight from composition - sum atomic masses for known compounds, (4) Mass spectrometry - directly measures mass-to-charge ratio. For unknown gases, the density method is most common in laboratory settings.