Real gases depart from the ideal gas law at the pressures and temperatures met in reservoirs, wells and pipelines. The compressibility factor z captures that departure and feeds gas density, formation volume factor, inventory and flow calculations. This guide defines z, separates it from gas compressibility, works through a molar volume example, and explains how equations of state and correlations are used.

The state and z value in the worked example are a synthetic teaching example.
1. The z factor
p V = z n R T, z = p Vm / (R T)
At the same pressure, temperature and amount of gas, z is the ratio of the actual volume to the ideal gas volume. z below 1 means the gas occupies less volume than an ideal gas; it says nothing by itself about how volume changes with pressure.
2. Gas compressibility is a different property
cg = −(1/V)(∂V/∂p)T = 1/p − (1/z)(∂z/∂p)T
cg depends on the slope of z with pressure. Where z falls with pressure, cg is larger than 1/p; where z rises, it is smaller. z is dimensionless; cg has units of inverse pressure. Pressures and temperatures must be absolute.
3. Worked example: molar volume
| Quantity | Calculation | Result |
|---|---|---|
| Inputs | p = 10.0 MPa, T = 350 K, z = 0.85, R = 8.314462618 J/(mol·K) | |
| Real molar volume | 0.85 × 8.314462618 × 350 / 107 | 2.4736 × 10−4 m³/mol = 0.2474 L/mol |
| Ideal molar volume | 8.314462618 × 350 / 107 | 0.2910 L/mol |
4. Equations of state and correlations
Cubic equations of state such as Peng-Robinson and Soave-Redlich-Kwong need component properties, mixing rules and binary interaction parameters. When the cubic has several roots, phase stability and equilibrium calculations decide which applies. Correlations based on pseudo-reduced pressure and temperature (for example Standing-Katz charts fitted by Dranchuk and Abou-Kassem) apply within their composition ranges; sour gases need corrections such as Wichert-Aziz, and heavy ends or near-critical fluids need laboratory-tuned models.
5. Critical and two-phase behaviour
A pure substance is supercritical only when both temperature and pressure exceed their critical values. Mixtures have phase envelopes that depend on composition and can show retrograde condensation, so a gas condensate below its dew point needs phase equilibrium and material balance, not a single z and Bg.
Key points
- z is a volume ratio; cg is a pressure derivative.
- At 10 MPa and 350 K with z = 0.85, the molar volume is 0.2474 L/mol against 0.2910 L/mol ideal.
- Use correlations within their ranges and EOS models tuned to PVT data.
References
- NIST ThermoData Engine Web: gas density.
- D.-Y. Peng and D. B. Robinson, A new two-constant equation of state, Industrial and Engineering Chemistry Fundamentals, 15 (1976) 59 to 64.
- P. M. Dranchuk and J. H. Abou-Kassem, Calculation of z factors for natural gases using equations of state, Journal of Canadian Petroleum Technology, 14 (1975) 34 to 36.
- W. D. McCain Jr., The Properties of Petroleum Fluids, 2nd ed., PennWell, 1990.
Related reading and community
Questions or field experience to share? Join the PetroSmart Telegram group, watch worked examples on the PetroSmart Academy YouTube channel and follow us on Facebook.