Ideal Gas Density Calculator

Free Ideal Gas Density Calculator uses ρ = PM / RT to compute gas density from pressure, molar mass, and temperature.

910.4K uses Updated · 2026-05-12 Runs locally · zero upload
AD

How to Use Ideal Gas Density Calculator

The Ideal Gas Density Calculator turns pressure, molar mass, and temperature into a gas density.

  1. Enter pressure P — Pa, kPa, bar, atm, or psi.
  2. Enter molar mass M — g/mol or kg/mol.
  3. Enter temperature T — K, °C, or °F.
  4. Read ρ — Density appears in kg/m³ and g/L.

Formula & Theory - Ideal Gas Density Calculator

PV = nRT
ρ  = n M / V = P M / (R T)
R  = 8.314462618 J/(mol·K)
SymbolMeaning
PAbsolute pressure (Pa)
MMolar mass (kg/mol)
TAbsolute temperature (K)
ρDensity (kg/m³)

Assumptions and Limits

  • Ideal gas behavior; not appropriate for liquids or very high-pressure gases.
  • For mixtures, use an effective molar mass weighted by mole fraction.

Use Cases for Ideal Gas Density Calculator

  • HVAC — Air density vs. altitude and temperature.
  • Chemistry — Stoichiometry involving gas volumes.
  • Combustion — Estimate fuel/air density.
  • Education — Verify Charles, Boyle, and Avogadro relations.

The Ideal Gas Density Calculator gives a one-line answer to “how heavy is one cubic meter of this gas?”.

Frequently asked questions about Ideal Gas Density Calculator

How is gas density derived?

From PV = nRT and ρ = nM/V, the Ideal Gas Density Calculator gives ρ = PM/(RT).

What molar mass should I use?

Use the molecular weight (e.g., 28.97 g/mol for dry air, 18.02 g/mol for water vapor, 44.01 g/mol for CO₂).

Is density in kg/m³ or g/L?

They are numerically identical for the same substance. The Ideal Gas Density Calculator reports both.

Is my data stored?

No. All calculations happen in your browser; nothing is sent to a server.