Calculate gas density using the ideal gas law with pressure, temperature, and molar mass.
Determine the density of any ideal gas by inputting the pressure, temperature, and molar mass. This calculator uses the fundamental relationship ρ = PM/(RT) to provide accurate results.
Click on any example to load it into the calculator.
Standard atmospheric air at 1 atm pressure and 25°C temperature.
Pressure: 101325 Pa
Temperature: 298.15 K
Molar Mass: 28.97 g/mol
Gas Type: Air (Mixture)
Hydrogen gas at 2 atm pressure and 0°C temperature.
Pressure: 202650 Pa
Temperature: 273.15 K
Molar Mass: 2.016 g/mol
Gas Type: Hydrogen (H₂)
CO₂ gas at 1.5 bar pressure and 50°C temperature.
Pressure: 150000 Pa
Temperature: 323.15 K
Molar Mass: 44.01 g/mol
Gas Type: Carbon Dioxide (CO₂)
Oxygen gas at 0.8 atm pressure and 37°C (body temperature).
Pressure: 81060 Pa
Temperature: 310.15 K
Molar Mass: 32.00 g/mol
Gas Type: Oxygen (O₂)