PetroCalcHubFree
Phase Behavior and ThermodynamicsGas PropertiesIn-depth reference

Real Gas Density Calculator

ρg=PMgzRT\rho_g=\frac{P M_g}{zRT}

Enter gas properties, pressure, temperature, and z-factor. The calculator returns real gas density.

Tabular solver

Inputs

Defaults provide a quick field-unit example for the equation.

5 variables

Your input values and calculation stay in this browser.

Engineering reference summary

Calculation context and source notes

Real gas density estimates gas density at pressure and temperature using gas molecular weight or gravity and the real-gas z-factor.

Use it for gas PVT checks, pressure-gradient estimates, and gas-property calculations where nonideal gas behavior matters.

Solves for

rho_g (lb/ft³)

Related source-backed guides

Formula reference

Formula, variables, and default calculation

ρg=PMgzRT\rho_g=\frac{P M_g}{zRT}

Reproducible default result

With the default values shown below, the calculation returns rho_g = 10.32018 lb/ft³. Defaults demonstrate the implementation; they are not recommended field values.

Ppsia

3000

M_glb/lbmol

18.82855

zdimensionless

0.85

Rpsia ft³/(lbmol °R)

10.732

T°R

600

Input definitions

P

psia

Pressure

M_g

lb/lbmol

Gas Molecular Weight

z

dimensionless

Gas Compressibility Factor

R

psia ft³/(lbmol °R)

Gas Constant

T

°R

Temperature

Output definitions

rho_g

lb/ft³

Real Gas Density

P

psia

Pressure

M_g

lb/lbmol

Gas Molecular Weight

Engineering use, assumptions, and limits

Use it for gas PVT checks, pressure-gradient estimates, and gas-property calculations where nonideal gas behavior matters.

Assumptions

  • The gas z-factor is representative at the stated pressure and temperature.
  • Pressure and temperature are absolute where required by the equation.
  • Gas composition or gas gravity is known.

Limitations

  • Does not model compositional phase behavior or liquid dropout.
  • Accuracy depends on the z-factor and gas-property inputs.

Common mistakes

  • Using gauge pressure instead of absolute pressure.
  • Using Fahrenheit where Rankine is required.
  • Applying a dry-gas calculation to wet gas without checking assumptions.

Source and record status

Source metadata identifies the relationship implemented by the calculator. Check the cited edition, unit basis, and scope against the engineering case before operational use.

reviewedguidance published

Penn State PNG 301. Natural Gas Properties, Equation 3.71.

Open source reference

Related in-depth calculators