Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Gas Density Calculator

Pressure unit: choose Kilopascals (kPa), Pounds per square inch (psi) or Standard atmospheres (atm). Prefilled example: Kilopascals (kPa).

Absolute pressure: enter 0 or more. Prefilled example: 101.325.

Temperature unit

Temperature unit: choose Celsius (°C), Fahrenheit (°F) or Kelvin (K). Prefilled example: Celsius (°C).

Temperature: enter a number. Prefilled example: 20.

Molar mass, in g/mol: enter 0 or more. Prefilled example: 28.97.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Pressure unit: choose Kilopascals (kPa), Pounds per square inch (psi) or Standard atmospheres (atm).
  2. Absolute pressure: enter 0 or more.
  3. Temperature unit: choose Celsius (°C), Fahrenheit (°F) or Kelvin (K).
  4. Temperature: enter a number.
  5. Molar mass, in g/mol: enter 0 or more.
  6. 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

  1. Tk={T+273.15if tu=1(T−32)×59+273.15if tu=2Totherwise
  2. ρ=p×pu×M÷1,0008.314462618×Tk
Symbols used in the formula
SymbolMeaningUnit
puPressure unit
pAbsolute pressure
tuTemperature unit (1: Celsius (°C); 2: Fahrenheit (°F); 3: Kelvin (K))
TTemperature
MMolar massg/mol
TkAbsolute temperatureK
ρDensity (same as g/L)kg/m³

Worked example

Pressure unitKilopascals (kPa)
Absolute pressure101.325
Temperature unitCelsius (°C)
Temperature20
Molar mass28.97 g/mol
Absolute temperature (K)293.15
Density (lb/ft³)0.0752
  1. Tk=20+273.15=293.15
  2. ρ=101.325×1,000×28.97÷1,0008.314462618×293.15=1.20432

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.

Related calculators