Ideal Gas Density Calculator
Calculate gas density from absolute pressure, temperature, and molar mass with the ideal gas law.
About ideal gas density
Ideal gas density examples
These examples show how pressure, temperature, and molecular weight affect density.
| Inputs | Density | Interpretation |
|---|---|---|
| Air: 101325 Pa, 288.15 K, 28.97 g/mol | About 1.225 kg/m³ | A familiar standard-atmosphere reference near sea level. |
| Helium: 101325 Pa, 293.15 K, 4.0026 g/mol | About 0.166 kg/m³ | Low molar mass makes helium much less dense than air. |
| Carbon dioxide: 101325 Pa, 293.15 K, 44.01 g/mol | About 1.829 kg/m³ | Carbon dioxide is denser because its molar mass is larger. |
How to calculate ideal gas density
- Enter the gas absolute pressure in pascals.
- Enter the absolute temperature in kelvin.
- Enter the gas or mixture molar mass in grams per mole.
- Select Calculate Gas Density to obtain kilograms per cubic metre.
Ideal gas density FAQ
Which gas constant does the calculator use?
It uses the universal gas constant 8.314462618 J/(mol·K). The input conversions are arranged so density is returned in kg/m³.
Should pressure be gauge or absolute?
Use absolute pressure in the ideal gas equation. Add local atmospheric pressure to a gauge reading before entering it.
Can I enter Celsius temperature?
No, the formula requires an absolute temperature in kelvin. Add 273.15 to a Celsius value before using the calculator.
Why does density decrease as temperature rises?
At constant pressure, hotter gas expands and the same mass occupies more volume. The ideal gas formula therefore makes density inversely proportional to absolute temperature.
When is the ideal gas estimate inaccurate?
Deviation grows at high pressures and near condensation or critical conditions. A real-gas model with compressibility data is preferable in those regions.