Home Back

Gas Density Calculator - Calculate gas density from pressure, temperature, and molecular mass

What is Gas Density

Gas density is the mass of a gas per unit volume, typically measured in kg/m³. It depends on the pressure, temperature, and molecular mass of the gas. According to the ideal gas law, gas density can be derived as ρ=PMRT, where P is pressure, M is the molecular mass, R is the universal gas constant, and T is the temperature in Kelvin. Higher pressure increases the density by compressing more gas molecules into a given volume, while higher temperature decreases density by causing the gas to expand. The molecular mass also plays a role—gases with higher molecular masses (e.g., CO₂ at 44 g/mol) are denser than those with lower molecular masses (e.g., H₂ at 2 g/mol) under the same conditions.

For example, at standard temperature and pressure (STP, 0 °C and 1 atm), the density of air (average molecular mass ~29 g/mol) is about 1.293 kg/m³. This calculator allows you to compute the density of any ideal gas by inputting its pressure, temperature, and molecular mass.

How to Calculate Gas Density

Gas Density Calculation: The gas density is calculated using the ideal gas law in the form:

ρ=PMRT

Where:

  • ρ = Gas density (kg/m³)
  • P = Pressure (Pa)
  • M = Molecular mass (kg/mol)
  • R=8.314462618J/(mol·K) = Universal gas constant
  • T = Temperature (K)

Example Calculation: Let’s calculate the density of a gas with a pressure of 2000 Pa, temperature of 2000 K, and molecular mass of 555 g/mol (as shown in the image):

  1. Convert the molecular mass to kg/mol: M=555g/mol=0.555kg/mol.
  2. Use the universal gas constant R=8.314462618J/(mol·K).
  3. Apply the formula: ρ=PMRT=20000.5558.3144626182000.
  4. Compute: ρ=111016628.9252360.06675kg/m³, which matches the image result.

Use the form above to input your values with the desired units, and the calculator will convert them internally to provide the gas density in multiple units.

Density Units and Conversions

The SI unit for density is kilogram per cubic meter (kg/m³). Other convenient units include:

  • Gram per cubic centimeter (g/cm³): 1 g/cm³ = 0.001 kg/m³
  • Kilogram per liter (kg/L): 1 kg/L = 1000 kg/m³
  • Gram per milliliter (g/mL): 1 g/mL = 1000 kg/m³

Imperial units for density include:

  • Pound per cubic foot (lb/cu ft)
  • Pound per cubic yard (lb/cu yd): 1 lb/cu yd ≈ 0.037 lb/cu ft
  • Ounce per cubic inch (oz/cu in): 1 oz/cu in = 108 lb/cu ft
  • Pound per gallon (US) (lb/US gal): 1 lb/US gal ≈ 7.48 lb/cu ft

The calculator displays gas density in multiple units for convenience, allowing you to choose the unit that best suits your needs.

Standard Gas Density

Gas density varies with temperature and pressure, so standard reference conditions are defined for consistency. Common standards include:

  • STP (Standard Temperature and Pressure): P0=1atm=101325Pa, T0=0°C=273.15K.
  • NTP (Normal Temperature and Pressure): P0=1atm=101325Pa, T0=20°C=293.15K.

For example, the density of air (molecular mass ~29 g/mol) at STP is:

ρ=101325(29/1000)8.314462618273.151.293kg/m³

Choose the appropriate standard conditions based on your application to calculate the standard gas density using this calculator.

What is Molecular Mass?

The molecular mass (M) of a gas is the mass of one mole of its molecules, typically measured in g/mol or kg/mol. It’s calculated by summing the atomic masses of all atoms in the molecule. For example:

  • Hydrogen gas (H₂): M=21=2g/mol.
  • Oxygen gas (O₂): M=216=32g/mol.
  • Carbon dioxide (CO₂): M=12+(216)=44g/mol.

The molecular mass affects the density of the gas—higher molecular masses result in higher densities under the same pressure and temperature conditions.

FAQs

How do you calculate gas density?

To calculate the density of a gas:

  1. Measure the pressure P in Pascals (Pa).
  2. Measure the temperature T in Kelvins (K).
  3. Determine the molecular mass M in kg/mol.
  4. Use the formula: ρ=PMRT, where R=8.314462618J/(mol·K).

What is the density of air at STP?

The density of air (average molecular mass ~29 g/mol) at STP (0 °C, 1 atm) is approximately 1.293 kg/m³, as calculated above.

Gas Density Calculator© - All Rights Reserved 2025