OG
AshToolbox Oil & Gas Petroleum Engineering Suite
Advanced Engineering Category: Thermodynamics & PVT • ~8 min read

Gas Z-Factor & PVT Optimizer

High-precision natural gas compressibility (Z-factor) modeling comparing Dranchuk-Abou-Kassem (DAK), Hall-Yarborough, Papay, and Beggs-Brill equations of state, paired with Wichert-Aziz sour gas corrections and depletion p/Z material balance diagnostics.

Engineering Disclaimer:Calculations are estimates for screening, planning, and academic evaluation. Not a substitute for certified commercial simulators, certified well-control software, API/ASME standards, or qualified engineering judgement.
100% In-Browser • Field Confidential • Offline-Ready

Reservoir Gas Conditions

Typical dry gas: 0.60–0.70; rich gas: 0.75–0.90
Non-Hydrocarbon Fractions (Wichert-Aziz)
Scenario Manager (0/5)
Z-Factor (Deviation)
0.8718
Ppr: 3.80, Tpr: 1.73
Gas FVF (B_g)
0.00611
rcf/scf (0.001088 bbl/scf)
Gas Density (ρ_g)
8.12
lb/ft³ @ res conditions
Gas Viscosity (μ_g)
0.0179
cP (Lee-Gonzalez-Eakin)

Reservoir Gas Engineering PropertiesVolumetric & Depletion Parameters

p / Z (Material Balance)2867.6 psia
Gas Compressibility (C_g)389.7 × 10⁻⁶ psi⁻¹
Expansion Factor (E_g)163.6 scf/rcf

Isothermal Pressure Sweep (T = 160°F)P vs Z, Bg, and p/Z

Pressure (psia)Z-FactorBg (rcf/scf)p / Z (psia)
5000.95510.03347523.5
10000.91710.016071090.4
15000.88910.010391687.1
20000.87370.007662289.0
25000.87180.006112867.6
30000.88200.005153401.2
35000.90200.004523880.1
40000.92940.004074303.9
45000.96210.003754677.1
50000.99880.003505006.1
55001.03830.003315297.3
60001.07980.003155556.5

Z-Factor Sensitivity Analysis (Tornado Chart)

Impact on Gas Deviation Factor (Z) when inputs swing ±20% while holding other parameters constant.

Reservoir Pressure P (±20%)0.82 → 0.915 (Δ 0.096)
Reservoir Temp T (±20°F)0.846 → 0.898 (Δ 0.052)
Gas Gravity γ_g (±10%)0.854 → 0.889 (Δ 0.035)
Cross-Tool Workflow: Pipe Results To...

Seamlessly transfer calculated fluid properties, EUR forecasts, or hydraulics into the next engineering phase (zero server upload).

Thermodynamic Principles of the Gas Deviation Factor (Z)

At atmospheric pressure and high temperatures, natural gas molecules behave nearly ideally: collisions are purely elastic and intermolecular forces are negligible (governed by the ideal gas law PV = nRT). However, inside deep petroleum reservoirs and high-pressure transmission trunklines (pressures ranging from 1,000 to 15,000 psia), real gas behavior deviates substantially due to molecular volume and attractive/repulsive van der Waals forces.

To quantify this real-gas non-ideality, the gas deviation factor (or compressibility factor, Z) is defined as:

Z = V_actual / V_ideal = (P × V) / (n × R × T)

When Z < 1.0 (typical at moderate pressures between 1,000 and 4,000 psia), intermolecular attractive forces dominate, allowing the gas to compress into a smaller volume than an ideal gas would occupy. At extremely high pressures (P > 5,000 psia), molecular volume repulsion dominates, driving Z > 1.0.

Comparative Analysis: DAK vs Hall-Yarborough

In 1941, Standing and Katz published their classic graphical chart correlating Z against pseudo-reduced pressure (P_pr = P/P_pc) and pseudo-reduced temperature (T_pr = T/T_pc). In computer software, numerical equations of state are used to replicate this chart:

  • Dranchuk-Abou-Kassem (DAK, 1975): Employs an 11-constant Benedict-Webb-Rubin (BWR) equation of state. Widely considered the gold standard benchmark across the petroleum industry for ranges 0.2 ≤ P_pr ≤ 30.0 and 1.0 ≤ T_pr ≤ 3.0.
  • Hall-Yarborough (1973): Formulated upon the Carnahan-Starling hard-sphere equation of state. Solved for reduced density Y using Newton-Raphson iteration. Exhibits exceptional accuracy for high-temperature and high-gravity gas streams.
  • Papay (1968): An explicit non-iterative formula providing immediate approximations suitable for embedded microcontrollers or fast screening where Newton iterations are computationally prohibitive.

Non-Hydrocarbon Adjustments: Wichert-Aziz Correction

Natural gases containing sour components (H_2S) and carbon dioxide (CO_2) exhibit stronger intermolecular forces than pure paraffin hydrocarbons, causing standard Standing-Katz predictions to fail. Wichert and Aziz (1972) developed an empirical temperature adjustment factor ε (°R):

ε = 120 × [(y_CO2 + y_H2S)^0.9 - (y_CO2 + y_H2S)^1.6] + 15 × [y_H2S^0.5 - y_H2S^4.0]

Correcting pseudo-critical properties: T_pc' = T_pc - ε, and P_pc' = (P_pc × T_pc') / [T_pc + y_H2S × (1 - y_H2S) × ε].

Worked Numerical Example: Gas FVF (B_g) and Density

Deep Natural Gas Reservoir Well:

Reservoir Pressure (P): 3,000 psia
Reservoir Temperature (T): 180°F (639.67°R)
Gas Specific Gravity (γ_g): 0.65 (Mwt = 18.83 lb/lbmol)
Pseudo-Criticals (Sutton): T_pc = 365.11°R, P_pc = 670.13 psia
P_pr = 3000 / 670.13 = 4.477, &quad; T_pr = 639.67 / 365.11 = 1.752
Solved Z via DAK = 0.8642
Gas Formation Volume Factor (B_g):
B_g = 0.028279 × (0.8642 × 639.67) / 3000 = 0.00521 rcf/scf
B_g (bbl/scf) = 0.00521 / 5.61458 = 0.000928 bbl/scf (1,077 scf / bbl)
Gas Density = (2.699 × 0.65 × 3000) / (0.8642 × 639.67) = 9.51 lb/ft³

Frequently Asked Questions (Answer-First)

What is the physical meaning of the gas deviation factor Z?

The Z-factor represents the ratio of the actual volume occupied by a real gas to the volume it would occupy if it behaved as an ideal gas at the same pressure and temperature. It accounts for molecular volume and intermolecular attraction/repulsion.

Why does Z decrease below 1.0 at moderate reservoir pressures?

At moderate pressures (typically 1,000 to 4,000 psia), gas molecules are close enough that attractive van der Waals forces pull them together, compressing the fluid into a smaller physical volume than predicted by ideal gas laws (Z < 1.0).

How does p/Z help estimate volumetric gas reserves?

In a volumetric, closed gas reservoir with no water drive, cumulative gas production is strictly linear with p/Z. Plotting observed reservoir p/Z versus cumulative production G_p yields a straight line that extrapolates directly to Original Gas in Place (OGIP) at p/Z = 0.

When should the Wichert-Aziz correction be applied?

The Wichert-Aziz correlation must be applied whenever total acid gas content (CO_2 + H_2S) exceeds 5 mole percent. Without this correction, unadjusted Standing-Katz correlations can underestimate Z by up to 10% to 15%, causing major errors in reserves calculations.