Enter the pressure, temperature, and the molar mass into the calculator to determine the density of a gas.

Gas Density Formula

The following formula is used to calculate the density of a gas.

d = P*M / R*T
  • Where d is the density (g/L)
  • P is the pressure (atm)
  • M is the molar mass (g/mol)
  • R is the gas constant (.0821 (atm*L/mol*K)
  • T is the temperature (K)

To calculate the gas density, multiply the pressure by the molar mass, then divide by the product of the gas constant and temperature.

Gas Density Definition

A gas density is defined as the total mass of a gas per unit of volume that is dependent on the pressure, molar mass, and temperature of the gas.

Gas Density Example

How to calculate gas density?

  1. Fist, determine the pressure.

    Calculate or measure the pressure acting on the gas in atmospheres.

  2. Next, determine the temperature.

    Measure the temperature of the gas in kelvin.

  3. Next, determine the molar mass.

    Calculate the molar mass in g/mol.

  4. Finally, calculate the gas density.

    Calculate the gas density using the formula above.


What determines the density of a gas?

The density of a gas is dependent on the pressure, temperature, and molar mass.