Gas Z-Factor (Compressibility Factor) Calculator
Thermodynamics
- A coefficient: 1.39 x sqrt(2.00 - 0.92) - 0.36 x 2.00 - 0.101 = 0.6235.
- B coefficient: first factor (0.62 - 0.23 x 2.00) = 0.16, and the full pressure polynomial in Ppr = 1.5 gives B = 0.2870.
- C and D: C = 0.132 - 0.32 x log10(2.00) = 0.0357 and D = 1.1487, so the final term is 0.0568.
- Z-factor result: 0.9629 - the gas takes 96.3% of the volume an ideal gas would occupy at the same conditions.
The ideal gas law is a polite fiction at pipeline pressures. A real natural gas at 100 bar occupies measurably less - or occasionally more - volume than PV = nRT promises, and the compressibility factor Z is the correction: the ratio of the real volume to the ideal volume at the same conditions. Custody transfer, reservoir estimates and compressor sizing all run through Z, and an error of a few percent in it is money miscounted at industrial scale.
Engineers traditionally read Z from the Standing-Katz chart, a contour map in pseudoreduced pressure and temperature - the actual pressure and temperature divided by the gas's pseudocritical values. The Beggs-Brill correlation replaces the chart with algebra: four coefficients built from the two pseudoreduced inputs, combined into Z. At a pseudoreduced pressure of 1.5 and temperature of 2.0 it gives Z of 0.9629 - the gas takes 96.3 percent of its ideal volume - matching the published worked value for this correlation to four decimals.
This calculator evaluates the correlation with every coefficient exposed - A, B, and the C-times-Ppr-to-the-D term - so a chart reading or a software output can be checked term by term rather than trusted whole.
Worked examples
Z-factor at Ppr 1.5 and Tpr 2.0 (correlation anchor)
(1.5 · 2)
| Compressibility factor Z | 0.9629 |
| A coefficient | 0.6235 |
| B coefficient | 0.2870 |
| C x Ppr^D term | 0.0568 |
Z-factor in the attraction regime
(5 · 1.5)
| Compressibility factor Z | 0.8011 |
| A coefficient | 0.4176 |
| B coefficient | 3.1862 |
| C x Ppr^D term | 0.3594 |
Z-factor in the repulsion regime
(10 · 2.5)
| Compressibility factor Z | 1.0868 |
| A coefficient | 0.7462 |
| B coefficient | 0.7744 |
| C x Ppr^D term | 0.2236 |
Real gas volume vs the ideal gas law
Z departs from 1 for two molecular reasons that trade dominance. At moderate pressures, attractions between molecules pull the gas into less volume than the ideal law allows, and Z falls below 1 - the second worked example reaches 0.8011 at a pseudoreduced temperature of 1.5, a twenty-percent correction no engineer may ignore. At high pressures the molecules' own finite volume and mutual repulsion take over, the gas resists compression, and Z climbs above 1 - the third example reads 1.0868 at a pseudoreduced pressure of 10.0.
Pseudoreduction is what makes one correlation serve all gases. By scaling pressure and temperature to each mixture's pseudocritical point, gases of different composition collapse onto a near-universal chart - the corresponding-states principle doing industrial work. The chart's authority fades for sour gases with heavy hydrogen sulphide or carbon dioxide fractions, where corrections beyond this page's scope apply; for sweet natural gases in the usual ranges, Beggs-Brill reproduces the chart within chart-reading accuracy.
| Regime | Dominant effect | Z (examples) |
|---|---|---|
| Moderate Ppr, low Tpr | Molecular attraction | 0.8011 |
| Moderate conditions | Near balance | 0.9629 |
| High Ppr | Repulsion and finite volume | 1.0868 |
The Beggs-Brill correlation, coefficient by coefficient
The four coefficients divide the chart's shape among themselves. A depends only on pseudoreduced temperature - in the first example it is 0.6235 - and sets the baseline toward which the exponential term relaxes. B carries the pressure dependence, a polynomial in Ppr whose coefficients themselves vary with Tpr; it reaches 3.1862 in the low-temperature second example, where the exponential term is nearly extinguished and the C term must do the work. C and D form that final term, a power law in pressure: C of the first example combines with its D to contribute 0.0568.
Reading the coefficients is a diagnostic habit worth forming. When B is large, Z is dominated by the C-times-Ppr-to-the-D term and the result is sensitive to D's temperature dependence; when B is small, Z hugs A plus the exponential's remainder. A software output whose Z looks wrong can usually be traced to one coefficient - most often a pseudocritical value entered for the wrong gas composition, which corrupts every term downstream while leaving the arithmetic innocent.
- Inputs are pseudoreduced: divide pressure and temperature by the mixture's pseudocritical pressure and temperature first - absolute values entered directly are the commonest error.
- Temperatures in the pseudoreduction must be absolute (kelvin or Rankine); a Celsius pseudoreduced temperature is meaningless.
- The correlation reproduces the Standing-Katz chart for sweet gases; sour-gas corrections (Wichert-Aziz and similar) are separate adjustments.
- Z enters gas calculations multiplicatively - in density, in place volume and in flow equations - so a Z error propagates undiminished into each.
- Check the limiting behaviour: as Ppr approaches zero, Z must approach 1; a correlation output that does not is mis-entered, not profound.
Worked examples
Example 1: Pseudoreduced pressure Ppr 1.5; Pseudoreduced temperature Tpr 2.0. Compressibility factor Z = 0.9629. Supporting values: A coefficient 0.6235; B coefficient 0.2870; C x Ppr^D term 0.0568. A coefficient: 1.39 x sqrt(2.00 - 0.92) - 0.36 x 2.00 - 0.101 = 0.6235. B coefficient: first factor (0.62 - 0.23 x 2.00) = 0.16, and the full pressure polynomial in Ppr = 1.5 gives B = 0.2870. C and D: C = 0.132 - 0.32 x log10(2.00) = 0.0357 and D = 1.1487, so the final term is 0.0568. Z-factor result: 0.9629 - the gas takes 96.3% of the volume an ideal gas would occupy at the same conditions.
Example 2: Pseudoreduced pressure Ppr 5.0; Pseudoreduced temperature Tpr 1.5. Compressibility factor Z = 0.8011. Supporting values: A coefficient 0.4176; B coefficient 3.1862; C x Ppr^D term 0.3594. A coefficient: 1.39 x sqrt(1.50 - 0.92) - 0.36 x 1.50 - 0.101 = 0.4176. B coefficient: first factor (0.62 - 0.23 x 1.50) = 0.27, and the full pressure polynomial in Ppr = 5.0 gives B = 3.1862. C and D: C = 0.132 - 0.32 x log10(1.50) = 0.0757 and D = 0.9683, so the final term is 0.3594. Z-factor result: 0.8011 - the gas takes 80.1% of the volume an ideal gas would occupy at the same conditions.
Example 3: Pseudoreduced pressure Ppr 10.0; Pseudoreduced temperature Tpr 2.5. Compressibility factor Z = 1.0868. Supporting values: A coefficient 0.7462; B coefficient 0.7744; C x Ppr^D term 0.2236. A coefficient: 1.39 x sqrt(2.50 - 0.92) - 0.36 x 2.50 - 0.101 = 0.7462. B coefficient: first factor (0.62 - 0.23 x 2.50) = 0.04, and the full pressure polynomial in Ppr = 10.0 gives B = 0.7744. C and D: C = 0.132 - 0.32 x log10(2.50) = 0.0047 and D = 1.6811, so the final term is 0.2236. Z-factor result: 1.0868 - the gas takes 108.7% of the volume an ideal gas would occupy at the same conditions.
Z below and above 1
The crossover of Z through 1 is not a curiosity; it marks where a gas stops being easier to compress than ideal and becomes harder, with consequences for how pressure builds in a fixed volume as more gas is injected. Storage engineers live on that curve: the same cavern holds more moles than the ideal law predicts while Z is below 1, and fewer once repulsion wins. The three worked examples were chosen to stand on both sides of the line and near it - 0.8011, 0.9629, 1.0868 - because a feel for the crossover is most of what chart-reading experience ever was.
Temperature arbitrates the contest the same way it did for the Joule-Thomson effect, and for the same molecular reasons. Lower pseudoreduced temperature strengthens attraction's hand, deepening the Z minimum; higher temperature flattens the whole curve toward 1. The B coefficient of 3.1862 in the cold example against 0.2870 in the mild one is that arbitration, visible inside the algebra.
Where Z is earned and spent
Gas measurement is where Z pays rent. A flow computer metering custody-transfer gas multiplies measured volume by pressure, temperature and Z corrections continuously; a systematic one-percent Z bias on a large pipeline is a seven-figure annual transfer between buyer and seller, which is why metering standards specify the correlation, the pseudocritical mixing rules and the composition sampling in contractual detail. Reservoir engineering spends Z the other way, converting surface volumes to volumes in place, where the same factor decides how much gas a field is believed to hold.
In both worlds the correlation on this page is the transparent baseline: not the most modern method - multi-parameter equations of state outperform it where composition is fully known - but the one whose every intermediate can be printed, checked and argued about in a metering dispute. That auditability is a professional virtue no black-box improvement should be allowed to remove.
Reading the three examples
The first example is the calibration point: A of 0.6235, B of 0.2870, a final term of 0.0568, Z of 0.9629 - mild attraction dominance at comfortable conditions, and the anchor against which implementations are verified. The second is the working extreme of ordinary practice: at Tpr of 1.5 the exponential term nearly vanishes under a B of 3.1862 and Z falls to 0.8011, a correction large enough to embarrass any calculation that assumed ideality.
The third example crosses the line: Z of 1.0868 at Ppr of 10.0, repulsion in charge, the gas occupying more volume than the ideal fiction. Together the three trace the chart's essential topography - a valley of attraction at low temperature, a ridge of repulsion at high pressure, and the broad slope between where most engineering happens.
FAQs
What Z does the first example give?
0.9629 at Ppr 1.5 and Tpr 2.0 - matching this correlation's published worked value of 0.962902, the standard implementation check.
What Z does the high-pressure, low-Tpr example give?
0.8011: at Tpr 1.5 attraction dominates and the gas occupies only about four-fifths of its ideal volume.
What Z does the third example give?
1.0868 at Ppr 10.0 - above 1, where molecular repulsion and finite volume make the gas harder to compress than ideal.
What A coefficient does the first example use?
0.6235 - the temperature-only coefficient, setting the baseline the exponential term relaxes toward.
What B coefficient does the second example use?
3.1862 - large because Tpr is low, which nearly extinguishes the exponential term and hands the result to the C term.
What is the C x Ppr^D term in the first example?
0.0568 - the power-law contribution that, added to A and the exponential remainder, completes Z at 0.9629.