*This is a sample of the Gas Density calculator. To access the working calculator, please sign up for free membership trial.*

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

Hence,

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

For a real gas with compressibility factor z,

ρ = PM / zRT

**Gas Density calculator**

**Inputs**

Also refer to EnggCyclopedia’s Liquid Density Calculator.