basic

Ideal Gas Density Calculator

Density ρ = PM / RT for an ideal gas.

Compute the density of an ideal gas from its molar mass, pressure, and temperature using ρ = P · M / (R · T), with P in pascals, M in g/mol, T in kelvin, and R = 8.314 J/(mol·K).

Published Last reviewed 1 min read

Inputs

Pa
g/mol
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)

In depth

Compute the density of an ideal gas from its molar mass, pressure, and temperature using ρ = P · M / (R · T), with P in pascals, M in g/mol, T in kelvin, and R = 8.314 J/(mol·K).