How to Calculate the Compressibility Factor of Gas

The compressibility factor (Z) is calculated by comparing how a real gas actually behaves to how it would behave if it were a perfect, “ideal” gas. The core formula is simple: Z equals the actual volume a gas occupies divided by the volume it would occupy if it followed the ideal gas law perfectly. A Z of 1 means the gas is behaving ideally. Any value above or below 1 tells you how far reality has drifted from that assumption.

In practice, calculating Z ranges from plugging numbers into a basic equation to solving complex iterative formulas, depending on how precise you need to be and what information you have. Here’s how each method works.

The Core Equation

The compressibility factor slots directly into the ideal gas law as a correction term. The real gas law is:

PV = ZnRT

where P is pressure, V is volume, n is the number of moles, R is the gas constant, and T is absolute temperature. Rearranging for Z gives you:

Z = PV / nRT

If you know the pressure, volume, temperature, and amount of gas, you can solve for Z directly. A perfect gas always gives Z = 1. Real gases deviate from 1 because their molecules actually interact with each other, something the ideal gas law ignores.

Units matter here. In petroleum engineering, pressure is often in psia, volume in cubic feet, temperature in degrees Rankine (°F + 460.67), and R = 10.73 psia·ft³/(lb-mol·°R). In chemistry and physics, you’ll typically use atmospheres or pascals, liters, Kelvin, and R = 0.08206 L·atm/(mol·K) or 8.314 J/(mol·K). The formula is the same regardless of unit system, but mixing units is the fastest way to get a wrong answer.

What Z Values Actually Tell You

The deviation of Z from 1 reflects what’s happening at the molecular level. Two competing forces are at work: attraction between molecules and repulsion when they get too close.

When Z is less than 1, attractive forces dominate. Molecules are pulling on each other, which effectively compresses the gas into a smaller volume than the ideal gas law predicts. This happens at moderate pressures and lower temperatures, where molecules move slowly enough for attractions to matter.

When Z is greater than 1, repulsive forces win. At very high pressures, molecules are crammed so close together that they physically crowd each other out. The gas occupies more volume than ideal predictions because the molecules themselves take up significant space. Think of it like packing tennis balls into a box: at some point, the balls themselves use up room that the ideal gas law assumes isn’t there.

Real gases behave most ideally (Z closest to 1) at low pressures and high temperatures. Low pressure means molecules are far apart and rarely interact. High temperature means they’re moving fast enough to blow past any attractive forces. As pressure climbs or temperature drops, Z drifts further from 1, and you need to account for it.

Reduced Properties: The Key to Most Methods

Most practical methods for finding Z don’t use raw pressure and temperature. Instead, they use “reduced” values, which express your conditions as a fraction of the gas’s critical point (the pressure and temperature where the gas can no longer be liquefied).

Pseudo-reduced pressure: Ppr = P / Ppc

Pseudo-reduced temperature: Tpr = T / Tpc

Here, Ppc and Tpc are the pseudo-critical pressure and temperature of the gas or gas mixture. For a pure gas, these are published values you can look up. For a gas mixture like natural gas, you calculate them as weighted averages based on the mole fraction of each component.

Reduced properties let you use universal charts and correlations that work for any gas, because gases at the same reduced conditions behave similarly. This principle, called the law of corresponding states, is the foundation of nearly every Z-factor method beyond the basic equation.

Reading a Standing-Katz Chart

The Standing-Katz chart, published in 1942, is one of the most widely used graphical tools in petroleum engineering. It plots Z against pseudo-reduced pressure, with curves for different pseudo-reduced temperatures.

To use it:

  • Step 1: Calculate Ppr and Tpr from your gas composition and conditions.
  • Step 2: Find your Ppr value on the horizontal axis of the chart.
  • Step 3: Follow that value up until you hit the curve corresponding to your Tpr.
  • Step 4: Read Z from the vertical axis at that intersection point.

This method is quick and visual, but it has limitations. Reading between curves introduces error, especially when your Tpr falls between printed lines. For repeated calculations or computer applications, empirical correlations that mathematically reproduce the chart are more practical.

Empirical Correlations for Calculating Z

Several mathematical correlations reproduce the Standing-Katz chart numerically, each with different trade-offs between simplicity and accuracy. These are the main options.

Hall-Yarborough Method

This correlation is based on a hard-sphere equation of state, with coefficients fitted to 1,500 data points pulled from the Standing-Katz chart. The formula is:

Z = 0.06125 · Ppr · t · exp[-1.2(1 – t)²] / Y

where t = 1/Tpr (the reciprocal of pseudo-reduced temperature) and Y is a “reduced density” you solve for iteratively. Y comes from a nonlinear equation that can’t be solved algebraically, so you use a numerical technique called Newton-Raphson iteration: start with an initial guess, evaluate the equation, then refine your guess repeatedly until the answer converges. Typically, convergence to an error below 10⁻¹² takes only a handful of iterations.

One important limitation: this method is not recommended when the pseudo-reduced temperature is below 1, meaning conditions near or below the critical temperature of the gas.

Dranchuk-Abu-Kassem (DAK) Correlation

The DAK correlation uses 11 constants in a modified version of a more complex equation of state. Like Hall-Yarborough, it was fitted to 1,500 data points from the Standing-Katz chart and requires iterative solving. The formula is:

Z = 0.27 · Ppr / (y · Tpr)

where y is again a reduced density found by solving a nonlinear equation. The 11 constants (A₁ through A₁₁) are fixed values built into the correlation. This method is widely used in reservoir engineering software because of its accuracy across a broad range of conditions.

Brill-Beggs Correlation

If you need a faster, less computationally intensive option, the Brill-Beggs correlation offers a direct (non-iterative) calculation:

Z = A + (1 – A)/e^B + C · Ppr^D

where A, B, C, and D are intermediate values calculated from Tpr and Ppr using straightforward arithmetic. No iteration means you can compute Z on a handheld calculator. The trade-off is slightly lower accuracy compared to the iterative methods, but for quick estimates or screening calculations, it works well.

Choosing the Right Method

Your choice depends on the tools you have and the accuracy you need. If you’re doing a quick hand calculation for a single condition, the Standing-Katz chart or Brill-Beggs correlation is the fastest path. If you’re writing a spreadsheet or program that needs to calculate Z thousands of times (for reservoir simulation, pipeline modeling, or process engineering), the Hall-Yarborough or DAK correlations are standard choices.

For gases at low pressures and high temperatures, Z will be close to 1, and even a rough method gives acceptable results. The calculations become more sensitive, and accuracy matters more, at high pressures (Ppr above 5 or 6) and temperatures near the critical point. In those ranges, the iterative correlations outperform simpler approximations.

All of these methods assume you know the gas composition well enough to calculate accurate pseudo-critical properties. If your composition data is unreliable, no correlation will save you. For gas mixtures, getting the mole fractions right is usually more important than which Z-factor method you pick.