About the Gas Density Calculator
Density of a gas at any pressure and temperature from its molar mass, using PV = nRT.
Also known as: density of gas, gas density formula, air density calculator, vapor density.
How to use this calculator
- Enter gas formula, pressure, temperature.
- The result updates instantly as you type — press Calculate (or Enter) at any time.
- Review the breakdown shown under the main result.
- Use Copy result or Share to save the answer or send a link with your inputs.
Formula
ρ = PM / RT
Worked example
Using the values pre-filled in the calculator above:
- Gas formula: CO2
- Pressure = 101,325 Pa
- Temperature = 273.15 K
the calculator returns:
- Gas density: 1.96346 kg/m³
- In g/L: 1.96346
- Molar mass: 44.009 g/mol
- Molar volume: 22.414 L/mol