*This is a sample of the Gas Density calculator. To access the working calculator, please sign up for free membership trial. Use this it for quick gas density calculation based on the molecular weight, temperature, pressure and z factor for the gas.*

Density of an ideal gases is a function of pressure, molecular weight of the pure gas or mixture and the temperature of the gas.

Ideal gas equation is,

PV = nRT

where,

P = Pressure (bar, atmosphere, Pa)

V = Gaseous volume (m^{3}, cm^{3})

n = number of gaseous moles (dimensionless)

R = Universal gas constant (J/mol.K, lit.atm/mol.K)

T = Temperature of the gas (K)

Let

M = molecular weight of the gaseous phase

W = n X M = mass of the gaseous phase

To get the gas density formula,

PV = (W/M) RT

PM / RT = W/V

W/V = ρ = mass per unit volume, i.e. density (kg/m^{3}, gm/cm^{3})

ρ = PM / RT .................. formula for ideal gas density

For a real gas with compressibility factor z,

ρ = PM / zRT ..... formula for real gas density calculation

**Gas Density calculator**

**Inputs**

Also refer to EnggCyclopedia's Liquid Density Calculator.