basic

Gas Density from Molar Mass at STP Calculator

ρ = M / 22.414 g/L at IUPAC STP, or P·M / (R·T) generally.

Compute the density of an ideal gas from its molar mass either at IUPAC STP (ρ = M / 22.414 g/L) or at arbitrary pressure / temperature using the ideal-gas law (ρ = P · M / (R · T)). Reports density in g/L and kg/m³.

Published Last reviewed 1 min read

Inputs

g/mol
atm
K

Results

Enter values and click Calculate to see results.
Was this helpful?

How to use this calculator

  1. Fill in the inputs above using the units you already have.
  2. Values update automatically as you type — no submit button needed.
  3. Hover any result row for the underlying formula and intermediate values.

Formula

ρ = P · M / (R · T), with R = 0.08206 L·atm/(mol·K).

In depth

Compute the density of an ideal gas from its molar mass either at IUPAC STP (ρ = M / 22.414 g/L) or at arbitrary pressure / temperature using the ideal-gas law (ρ = P · M / (R · T)). Reports density in g/L and kg/m³.