Gas Density Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the gas pressure, its temperature and its molar mass.
Result
Density (kg/m³, same as g/L)
Absolute temperature (K)
- Density (lb/ft³)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Pressure unit: choose Kilopascals (kPa), Pounds per square inch (psi) or Standard atmospheres (atm).
- Absolute pressure: enter 0 or more.
- Temperature unit: choose Celsius (°C), Fahrenheit (°F) or Kelvin (K).
- Temperature: enter a number.
- Molar mass, in g/mol: enter 0 or more.
- Read the result: Density (kg/m³, same as g/L); the panel also shows Absolute temperature (K) and Density (lb/ft³).
How this calculator works
Ideal gas law in density form: ρ = p M ÷ (R T), with p the absolute pressure in Pa, M the molar mass in kg/mol, R the molar gas constant and T the absolute temperature in kelvins.
R = 8.314462618 J/(mol·K) (NIST CODATA 2022 values (https://physics.nist.gov/cuu/Constants/Table/allascii.txt, read 2026-10-27)); 1 psi = 6,894.757 Pa, 1 atm = 101,325 Pa and T(K) = t(°C) + 273.15 (NIST Special Publication 811, Appendix B.9 (https://www.nist.gov/pml/special-publication-811/nist-guide-si-appendix-b-conversion-factors/nist-guide-si-appendix-b9, read 2026-10-27)). Real gases at high pressure or low temperature deviate from this value.
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Pressure unit | ||
| Absolute pressure | ||
| Temperature unit (1: Celsius (°C); 2: Fahrenheit (°F); 3: Kelvin (K)) | ||
| Temperature | ||
| Molar mass | g/mol | |
| Absolute temperature | K | |
| Density (same as g/L) | kg/m³ |
Worked example
| Pressure unit | Kilopascals (kPa) |
|---|---|
| Absolute pressure | 101.325 |
| Temperature unit | Celsius (°C) |
| Temperature | 20 |
| Molar mass | 28.97 g/mol |
| Absolute temperature (K) | 293.15 |
|---|---|
| Density (lb/ft³) | 0.0752 |
Density (kg/m³, same as g/L) 1.2043
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the density of a gas of molar mass 28.97 g/mol at 1 atm and 20 °C?
About 1.2043 kg/m³ (0.0752 lb/ft³).
Does a heavier gas weigh more per liter?
Yes: at the same pressure and temperature the density is proportional to the molar mass.