Skip to content
Physics

Compressibility Factor (Z) Calculator

Enter the temperature and pressure of your gas, choose the fluid and equation of state, and this calculator returns the compressibility factor Z instantly. Z equals 1 for a perfect ideal gas; any deviation tells you how much real-gas behavior matters at those conditions. You get Z, the reduced properties, actual molar volume vs. ideal molar volume, and the percent deviation from ideal behavior. Switch between SI (K, bar) and imperial (degF, psia) units, and explore how Z changes across a pressure range in the chart below.

Your details

Select a gas to load its critical properties automatically.
Peng-Robinson and SRK are the industry standards for hydrocarbons. Van der Waals is the historical reference. Ideal gas assumes Z = 1.
Operating temperature. Must be above absolute zero.
K
Absolute pressure of the gas.
bar
Compressibility Factor (Z)Attractive dominance (Z < 1)
0.9018

Ratio of actual molar volume to ideal-gas molar volume at same T and P. Z = 1 for a perfect ideal gas.

Reduced Temperature (Tr)1.574
Reduced Pressure (Pr)1.087
Molar volume (real gas)0.45L/mol
Molar volume (ideal gas)0.499L/mol
Deviation from ideal (%)-9.82%
Z (gas phase)0.9018
Z (liquid phase)0.9018
0.9018
Strong attraction (Z << 1)<0.8Moderate attraction0.8-0.95Near-ideal gas0.95-1.05Moderate repulsion1.05-1.25Strong repulsion (Z >> 1)1.25+
00.531.060510
Reduced Pressure (Pr = P / Pc)
  • Z (selected EOS)
  • Z = 1 (ideal gas)

Z = 0.9018 for Methane (CH4) (Peng-Robinson)

  • Z < 1: intermolecular attractions dominate. The gas occupies about 9.8% less volume than an ideal gas would.
  • Reduced temperature Tr = 1.57: well above the critical point, so the gas is in a supercritical or vapor region.

Next stepUse Z in the real-gas law PV = ZnRT in place of PV = nRT when calculating flow rates, tank volumes, or compressor work at non-ambient conditions.

What is the compressibility factor Z?

The compressibility factor Z (also called the gas deviation factor or real-gas factor) is a dimensionless correction that accounts for how much a real gas deviates from ideal-gas behavior. It is defined as Z = PV / (nRT), where P is pressure, V is volume, n is moles, R is the universal gas constant, and T is absolute temperature. For a perfect ideal gas, Z = 1 everywhere. Values below 1 mean intermolecular attractions are pulling molecules closer together than an ideal gas predicts, reducing volume. Values above 1 mean repulsive forces are pushing molecules apart, increasing volume beyond the ideal expectation.

Equations of state: Peng-Robinson, SRK and van der Waals

This calculator offers three cubic equations of state. Van der Waals (1873) was the first real-gas model: it adds an attraction correction (a/V^2) and a repulsive volume term (b) to the ideal gas law. Soave-Redlich-Kwong (SRK, 1972) improved accuracy by making the attractive parameter temperature-dependent via the Soave alpha function, which uses the acentric factor. Peng-Robinson (PR, 1976) refined the density prediction further and is the standard for natural-gas and hydrocarbon engineering. All three are solved as cubic equations in Z; one real root is the gas phase, and near the saturation envelope the three real roots correspond to two physically meaningful phases. Peng-Robinson is the default because it gives the best liquid-density predictions and is the widest-used EOS in industry.

Reduced temperature, reduced pressure and the law of corresponding states

The law of corresponding states says that all gases have similar Z values when compared at the same reduced temperature Tr = T / Tc and reduced pressure Pr = P / Pc. This is why the generalized Standing-Katz chart plots Z against Pr for several Tr isotherms and can be used for any gas once the critical properties are known. Gases with Tr >> 1 and Pr << 1 approach ideal-gas behavior. As Pr climbs above 5, non-ideal corrections become large; for hydrogen and helium the Joule-Thomson correction to the critical constants is recommended at very low temperatures.

How to use Z in real-gas calculations

Replace the ideal-gas law PV = nRT with the real-gas version PV = ZnRT in any application where non-ideal behavior matters. Pipeline flow calculations, compressor power estimation, storage tank sizing and natural-gas metering all require accurate Z values. Compressor work per mole is proportional to Z, so overestimating Z wastes capital on oversized equipment. Natural-gas custody transfer uses the supercompressibility factor Fpv = sqrt(Z_base / Z) to correct meter readings from base conditions to flowing conditions. Even a Z deviation of 2 to 3 percent compounds significantly across a large pipeline or storage field.

Critical properties and acentric factors for common gases

GasTc (K)Pc (bar)Acentric factor (omega)
Methane (CH4)190.5645.990.011
Ethane (C2H6)305.3248.720.099
Propane (C3H8)369.8342.480.152
Nitrogen (N2)126.1933.960.037
Carbon Dioxide (CO2)304.1373.770.225
Hydrogen (H2)33.1913.13-0.219
Oxygen (O2)154.5850.430.022
Water Vapor (H2O)647.1220.640.345
Ammonia (NH3)405.56113.330.252
Air (mixture)132.4537.860.035

Used to compute dimensionless EOS parameters A and B. Source: NIST WebBook, Smith et al. (8th ed.).

Frequently asked questions

What does a compressibility factor of Z = 0.85 mean?

Z = 0.85 means the real gas occupies 15% less volume than an ideal gas at the same temperature and pressure. Intermolecular attractive forces are significant enough to pull the molecules closer together. This is common for heavier hydrocarbons or polar gases like CO2 at moderate-to-high pressures.

Why is Z greater than 1 at high pressures for gases like hydrogen?

At very high pressures, molecules are forced so close together that the short-range repulsive part of the intermolecular potential dominates over the attractive part. The gas takes up more space than the ideal-gas law predicts, so Z exceeds 1. Hydrogen shows this behavior even at moderate pressures because its attractive forces are very weak (very low Tc).

Which equation of state should I use?

Peng-Robinson is the industry default for natural gas, hydrocarbon vapors and most engineering work because it balances accuracy and simplicity well. SRK is also widely used and slightly simpler. Van der Waals is the historical starting point and is good for teaching but less accurate for real applications. For polar gases like water or ammonia at extreme conditions, more specialized EOS models exist.

What are reduced temperature and reduced pressure?

Reduced temperature Tr = T / Tc and reduced pressure Pr = P / Pc scale the operating conditions relative to the substance-specific critical point. By the law of corresponding states, gases at the same Tr and Pr have approximately the same Z. This allows a single generalized chart (the Standing-Katz chart) or a single EOS correlation to work for many different gases.

What does it mean when the calculator shows both gas-phase and liquid-phase Z?

Cubic equations of state can have up to three real roots for Z. When they do, the largest root represents the vapor (gas) phase and the smallest represents the dense (liquid) phase. This typically happens near or inside the two-phase saturation envelope. The middle root is thermodynamically unstable. To decide which phase is stable, compare the fugacity coefficients for each root; the phase with the lower fugacity is more stable.

Sources

Written by Dr. Tomás Okafor, PhD Physicist · Lagos, Nigeria

Physicist specializing in classical mechanics, bringing 17 years of research and applied dynamics expertise to every calculator he reviews.

Search 3,500+ calculators

Loading search…