Gas Density Calculator

Gas-law calculations are compact but unforgiving about absolute temperature, pressure, and molar-mass units. Gas Density Calculator calculates ideal-gas density from the idealized state relationship while making those assumptions explicit.

What this calculator does

The Gas Density Calculator centers on ideal-gas density using the fields that are actually present here: Pressure (P), Temperature (T), Molecular mass (M), Density (ρ). Rather than treating every box as an independent input, use the equation below to identify the driving quantities and read the remaining fields as derived or supporting values when appropriate.

How to use it

Enter absolute pressure, absolute temperature, and molar mass. The page returns density; editing density can also drive a pressure back-calculation.

How the calculation works

Combining the ideal gas law with molar mass gives ρ = PM/(RT), where P is absolute pressure, T is absolute temperature, M is molar mass in kg/mol, and R is the universal gas constant. If density is edited, the page can rearrange the same relation for pressure.

Example

At P = 101,325 Pa, T = 293.15 K, and M = 28.97 g/mol for dry-air-like gas, ρ ≈ 1.204 kg/m³.

How to interpret the result

For Gas Density Calculator, read ideal-gas density in the context of the equation above. Interpret the result as an ideal-gas or kinetic-theory estimate for the entered state. Verify that pressure is absolute, temperature is on an absolute scale where required, and molar mass is in the unit basis used by R before comparing with laboratory or engineering data.

Limitations and notes

Use absolute pressure and Kelvin inside the equation. This is an ideal-gas estimate: humidity, real-gas compressibility, mixtures, and high-pressure effects are not included. Molar mass units are especially important because 28.97 g/mol must be converted to 0.02897 kg/mol before applying SI R.

See an error or outdated claim? We welcome correction requests. Request a correctionEditorial policy