Thermodynamics • Foundations and Thermodynamic Properties

Compressibility Factor (Z) — Use compressibility factor concept (Z) for real gas behavior (intro)

A single dimensionless number reveals how far real gases deviate from ideal behavior.

Thermodynamics illustration with temperature, heat, and energy-flow symbols
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

Historical Context & Motivation

The study of gases has been central to the development of thermodynamics since the seventeenth century, when experimenters first quantified the relationship between pressure and volume. The ideal gas law, Pv = RT, provided an elegant and remarkably useful equation of state, yet engineers and chemists quickly discovered that real gases deviate from this prediction—sometimes dramatically—at high pressures and low temperatures. These deviations meant that designs for steam engines, industrial compressors, and chemical reactors based solely on ideal-gas assumptions could produce dangerously inaccurate results. The need for a simple, quantitative measure of how far a real gas departs from ideal behavior drove the introduction of the compressibility factor, Z, a dimensionless ratio that transforms the ideal gas equation into a corrected form capable of capturing real-gas effects with minimal additional complexity.

1662 • Boyle's Law

Robert Boyle published his observations that the pressure of a gas is inversely proportional to its volume at constant temperature, establishing one of the earliest quantitative gas laws.

1834 • Clapeyron's Ideal Gas Equation

Benoît Paul Émile Clapeyron combined Boyle's, Charles's, and Avogadro's laws into a single equation of state, Pv = RT, giving engineers a unified framework for gas calculations.

1873 • Van der Waals Equation

Johannes Diderik van der Waals proposed corrections for intermolecular attraction and finite molecular volume, revealing systematic departures from ideal behavior and earning the 1910 Nobel Prize.

1901 • Kamerlingh Onnes & Virial Coefficients

Heike Kamerlingh Onnes introduced the virial equation of state with a power-series expansion in density, providing a rigorous statistical-mechanical foundation for the compressibility factor concept.

1930s–1940s • Generalized Z Charts

Researchers constructed generalized compressibility charts using reduced pressure and temperature, allowing engineers to estimate Z for any substance without substance-specific data, greatly accelerating industrial design.

The central question that motivated the compressibility factor is deceptively simple: by what fraction does the actual molar volume of a gas differ from the molar volume predicted by the ideal gas law? Answering this question with a single number, Z, provides both a diagnostic tool—indicating the nature and magnitude of intermolecular interactions—and a practical correction factor that engineers can apply directly in thermodynamic calculations.

SECTION 2

Core Principles & Definitions

The compressibility factor distills the complex behavior of real gases into a single dimensionless parameter. Understanding its definition, its physical meaning, and the conditions under which it departs from unity forms the foundation for all subsequent analysis. The following core principles capture the essential ideas behind Z and its utility in thermodynamic modeling.

1

Definition of Z

The compressibility factor is defined as Z = Pv / RT, where P is pressure, v is molar volume, R is the universal gas constant, and T is absolute temperature. For an ideal gas, Z = 1 exactly at all conditions.
2

Z < 1: Attractive Forces Dominate

When Z falls below unity, the actual molar volume is smaller than ideal. Intermolecular attractive forces pull molecules closer together, effectively compressing the gas beyond what pressure alone would achieve.
3

Z > 1: Repulsive Forces Dominate

When Z exceeds unity, the actual molar volume is larger than ideal. At very high pressures, finite molecular volumes and short-range repulsions prevent further compression, causing the gas to occupy more space than the ideal model predicts.
4

Boyle Temperature

The Boyle temperature is the temperature at which the attractive and repulsive contributions to Z cancel at low to moderate pressures, making the gas behave nearly ideally over an extended pressure range.
5

Corresponding States Principle

All gases exhibit approximately the same Z when compared at the same reduced pressure and reduced temperature (Pr = P/Pc, Tr = T/Tc), enabling universal compressibility charts.
✦

KEY TAKEAWAY

Think of Z as a correction multiplier applied to the ideal gas law. If you are estimating the volume of a storage tank using Pv = RT and the gas actually has Z = 0.85, your ideal calculation overestimates the volume by 15 %. The analogy is similar to a GPS-predicted travel time: the ideal estimate assumes no traffic (Z = 1), but real conditions—congestion (attractions) or detours (repulsions)—modify the actual travel time. Z tells you the ratio of actual to predicted molar volume in a single number.

SECTION 3

Visual Explanation — Z vs. Pressure Isotherms

The most instructive way to visualize the compressibility factor is to plot Z against pressure at several constant temperatures. The resulting family of isotherms immediately reveals the regions where attractive forces dominate (Z dips below 1), where repulsive forces dominate (Z rises above 1), and where the gas behaves nearly ideally (Z ≈ 1). The diagram below illustrates this for a generic substance at three representative reduced temperatures.

Compressibility Factor Z vs. Pressure (Isotherms)Pressure, P (MPa)Z = Pv / RT0.00.20.40.60.81.01.201020304050Z = 1 (Ideal)T_r = 2.0T_r = 1.2T_r = 1.0Z < 1 region(attractions dominate)Z > 1 region(repulsions dominate)
Isotherms of the compressibility factor Z plotted against pressure for three reduced temperatures. The dashed amber line at Z = 1 represents ideal-gas behavior. At Tr = 1.0 (violet), Z dips well below unity before recovering, indicating strong attractive interactions at moderate pressures. At Tr = 2.0 (red), Z rises monotonically above unity because repulsive interactions dominate at this elevated temperature.

Several features of this diagram deserve emphasis. First, all isotherms originate at Z = 1 as pressure approaches zero, because every real gas behaves ideally in the limit of vanishing pressure (infinite dilution). Second, the minimum in the lower-temperature isotherms corresponds to the pressure at which attractive intermolecular forces exert their greatest net effect; beyond this pressure, repulsive excluded-volume effects begin to dominate and Z increases. Third, the isotherm at Tr = 2.0 shows no dip at all—the thermal kinetic energy is sufficient to overwhelm attractions at every pressure, so Z increases monotonically. Understanding these visual patterns is essential for selecting appropriate equations of state and for using generalized compressibility charts in engineering practice.

SECTION 4

Mathematical Framework

The mathematical formalism surrounding Z is straightforward, yet it connects to several deep results in thermodynamics and statistical mechanics. We begin with the definition and then show how Z appears in the virial expansion and in cubic equations of state.

DEFINITION OF COMPRESSIBILITY FACTOR

Z=Pv/RTZ = Pv / RT

P = absolute pressure, v = molar volume (m³/mol), R = 8.314 J/(mol·K), T = absolute temperature (K). For an ideal gas, Pv = RT, so Z = 1 identically.

MODIFIED IDEAL GAS LAW

Pv=ZRTorequivalentlyPV=ZnRTPv = ZRT or equivalently PV = ZnRT

In the extensive form, V is total volume and n is the number of moles. This form is directly useful in engineering calculations: determine Z from a chart or correlation, then use the ideal gas law with the Z correction.

VIRIAL EQUATION (PRESSURE SERIES)

Z=1+B′P+C′P2+D′P3+⋅⋅⋅Z = 1 + B'P + C'P² + D'P³ + ···

B', C', D' are the pressure-series virial coefficients, which are functions of temperature only. The second virial coefficient B' captures pairwise molecular interactions and is often sufficient at moderate pressures. When B' < 0, attractive forces dominate; when B' > 0, repulsive forces dominate.

VIRIAL EQUATION (DENSITY SERIES)

Z=1+B/v+C/v2+D/v3+⋅⋅⋅Z = 1 + B/v + C/v² + D/v³ + ···

B, C, D are the density-series virial coefficients, related to but not identical to B', C', D'. This form has a direct connection to statistical mechanics: B arises from pair potentials, C from three-body interactions, and so on.

ℹ

Connecting Z to the Van der Waals EOS

The van der Waals equation, (P + a/v²)(v − b) = RT, can be rearranged to express Z as Z = v/(v − b) − a/(RTv). This form shows that the term v/(v − b) > 1 accounts for the repulsive excluded volume (raising Z), while a/(RTv) > 0 accounts for attractive forces (lowering Z). The competition between these two terms determines whether Z lies above or below unity at a given state.

SECTION 5

Generalized Compressibility Charts & Reduced Properties

One of the most powerful applications of the compressibility factor is the generalized compressibility chart, which exploits the principle of corresponding states. This principle asserts that all gases, when compared at the same reduced pressure Pr = P/Pc and reduced temperature Tr = T/Tc, exhibit approximately the same compressibility factor Z. By tabulating or graphing Z as a function of Pr and Tr, a single chart can serve for virtually any substance, provided that the critical properties Pc and Tc are known.

SubstanceTc (K)Pc (MPa)ω (Acentric Factor)
Nitrogen (N₂)126.23.390.039
Carbon dioxide (CO₂)304.27.380.224
Methane (CH₄)190.64.600.012
Water (H₂O)647.122.060.344
Propane (C₃H₈)369.84.250.152

Critical constants and acentric factors for selected substances

Generalized Compressibility Chart (Schematic)Reduced Pressure, P_r = P / P_cCompressibility Factor, Z0.00.20.40.60.81.01.20246810T_r = 2.0T_r = 1.5T_r = 1.2T_r = 1.0T_r = 0.8(two-phase region)All substances collapse onto these curveswhen plotted at equal P_r and T_r
Schematic generalized compressibility chart. Each curve represents a constant reduced temperature Tr. At Tr < 1 (pink), the gas may enter a two-phase region (indicated by the dashed segment). At Tr > 1.5 (orange and red), Z remains close to or above unity over a wide pressure range. The key engineering insight is that any substance's Z can be read from this single chart once Pr and Tr are computed.

In practice, the accuracy of the simple two-parameter corresponding states principle (using only Pc and Tc) can be improved by introducing a third parameter—the acentric factor ω, defined by Kenneth Pitzer in 1955. The acentric factor accounts for the shape and polarity of molecules, refining Z predictions for substances that deviate from the simple spherical, nonpolar model. The Pitzer correlation expresses Z as Z = Z⁰ + ω·Z¹, where Z⁰ is the simple-fluid contribution and Z¹ is a correction that scales with ω.

SECTION 6

Worked Example — Molar Volume of Nitrogen via Z

A storage cylinder holds nitrogen gas (N₂) at P = 20.0 MPa and T = 220 K. Estimate the molar volume of nitrogen using the compressibility factor from a generalized chart, and compare it to the ideal-gas prediction.

Molar Volume of N₂ at 20 MPa and 220 K

  1. 1

    Step 1 — Identify Given Values and Critical Constants

    Given: P = 20.0 MPa, T = 220 K. From the data table, the critical constants for nitrogen are Tc = 126.2 K and Pc = 3.39 MPa. The universal gas constant is R = 8.314 J/(mol·K).
  2. 2

    Step 2 — Compute Reduced Properties

    Reduced temperature: Tr = T/Tc = 220/126.2 = 1.74. Reduced pressure: Pr = P/Pc = 20.0/3.39 = 5.90.
    Tr ≈ 1.74, Pr ≈ 5.90
  3. 3

    Step 3 — Read Z from Generalized Chart

    Entering the generalized compressibility chart at Pr ≈ 5.9 and Tr ≈ 1.74, the chart indicates Z ≈ 0.86. (In practice, one would interpolate between the Tr = 1.5 and Tr = 2.0 curves.)
    Z ≈ 0.86
  4. 4

    Step 4 — Calculate Ideal-Gas Molar Volume

    videal = RT/P = (8.314 × 220) / (20.0 × 10⁶) = 1829.1 / 2.0 × 10⁷ = 9.146 × 10⁻⁵ m³/mol = 91.5 cm³/mol.
    videal ≈ 91.5 cm³/mol
  5. 5

    Step 5 — Calculate Corrected Molar Volume

    vreal = Z × videal = 0.86 × 91.5 cm³/mol = 78.7 cm³/mol. The real molar volume is about 14 % smaller than the ideal prediction because attractive intermolecular forces at this elevated pressure draw the nitrogen molecules closer together than a non-interacting model would suggest.
    v_real ≈ 78.7 cm³/mol — 14 % less than ideal

SECTION 7

Strengths and Limitations of the Z-Factor Approach

The compressibility factor method offers considerable practical value, but it is important to recognize both its advantages and its inherent limitations. The following table summarizes the key trade-offs that engineers and scientists should keep in mind when selecting a modeling strategy for real-gas behavior.

StrengthsLimitations
Simple multiplicative correction to ideal gas law—easy to implement in hand calculationsRequires knowledge of critical properties (Tc, Pc) and, for better accuracy, the acentric factor ω
Generalized charts allow quick estimates for any substance without substance-specific EOS parametersChart reading introduces interpolation errors of ±2–5 %, which may be unacceptable for precision work
Provides physical insight: Z < 1 signals attraction dominance, Z > 1 signals repulsion dominanceThe two-parameter corresponding states principle fails for highly polar or associating molecules (e.g., water, alcohols)
Easily extended via the Pitzer correlation (three-parameter corresponding states) for improved accuracyDoes not directly provide derived properties (enthalpy departures, fugacity) without additional correlations
Bridges the gap between the simplicity of the ideal gas law and the complexity of multi-parameter EOS modelsCannot capture liquid-phase behavior or phase-equilibrium calculations—only applies to single-phase gas or supercritical fluids

Comparison of strengths and limitations of the Z-factor approach

✦

KEY TAKEAWAY

The compressibility factor is best understood as an engineering screening tool—analogous to a quick diagnostic test in medicine. It rapidly tells you whether the ideal gas assumption is acceptable (Z ≈ 1) or whether more sophisticated equations of state are needed (Z departs significantly from unity). Just as a screening test identifies patients who need further workup, Z identifies thermodynamic states where a detailed EOS analysis is warranted.

SECTION 8

Connection to Advanced Equations of State

The compressibility factor framework provides a natural springboard into more rigorous thermodynamic models. Cubic equations of state—such as the Soave–Redlich–Kwong (SRK) and Peng–Robinson (PR) equations—can be rewritten as cubic polynomials in Z, making the compressibility factor the direct solution variable. This algebraic connection means that every cubic EOS calculation ultimately yields Z as an intermediate result, from which the molar volume and all other thermodynamic departures follow. In advanced coursework, you will encounter fugacity coefficients and departure functions, both of which are computed from integrals involving Z as a function of pressure or volume.

FeatureZ-Factor / Generalized ChartCubic EOS (e.g., Peng–Robinson)
Input requirementsTc, Pc (and optionally ω)Tc, Pc, ω, plus mixing rules for mixtures
Accuracy (pure gases)±2–5 % for nonpolar/slightly polar±1–2 % with tuned parameters
Phase equilibriumNot directly applicableYes—vapor–liquid equilibrium via equal fugacity criterion
Computational effortChart reading or simple correlationSolve cubic polynomial (trivial on a computer)
Derived propertiesLimited (volume only, unless additional correlations used)Full suite: enthalpy, entropy, fugacity departures

Z-factor approach vs. cubic equations of state

As you progress in thermodynamics, you will see that the Peng–Robinson equation can be rearranged into the form Z³ − (1 − B)Z² + (A − 3B² − 2B)Z − (AB − B² − B³) = 0, where A and B are dimensionless groups formed from the EOS parameters, temperature, and pressure. Solving this cubic yields one or three real roots; the largest root corresponds to the vapor-phase Z and the smallest to the liquid-phase Z. This elegant connection shows that the compressibility factor is not merely a pedagogical stepping stone—it is the central variable in professional-level thermodynamic computations.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

A gas has a compressibility factor Z = 0.72 at a particular temperature and pressure. Is the actual molar volume of the gas larger or smaller than what the ideal gas law predicts? What type of intermolecular interaction is primarily responsible for this deviation?
Show answer
Because Z = Pv/(RT), a value of Z = 0.72 means the actual molar volume v is only 72 % of the ideal prediction v_ideal = RT/P. The molar volume is therefore smaller than ideal. This indicates that attractive intermolecular forces dominate at this state—molecules are being pulled together, effectively reducing the volume they occupy. At higher pressures or lower temperatures, these attractions become more significant, driving Z further below unity.

Question 2: BASIC CALCULATION

Methane (CH₄) is stored at 10.0 MPa and 300 K. Using the critical properties Tc = 190.6 K and Pc = 4.60 MPa, compute the reduced temperature and reduced pressure. If the generalized chart gives Z ≈ 0.90 at these conditions, what is the molar volume of the methane?
Show answer
First, compute the reduced properties: TrT_r = 300/190.6 = 1.57 and PrP_r = 10.0/4.60 = 2.17. The ideal molar volume would be v_ideal = RT/P = (8.314 × 300)/(10.0 × 10⁶) = 2.494 × 10⁻⁴ m³/mol = 249.4 cm³/mol. Applying the compressibility factor: v_real = Z × v_ideal = 0.90 × 249.4 = 224.5 cm³/mol. The 10 % reduction from ideal reflects the moderate influence of attractive forces at PrP_r ≈ 2.2 and TrT_r ≈ 1.6.

Question 3: INTERMEDIATE

Carbon dioxide is compressed to 15.0 MPa at 350 K. Given Tc = 304.2 K, Pc = 7.38 MPa, and ω = 0.224, a generalized correlation gives Z⁰ = 0.65 and Z¹ = 0.08. Using the Pitzer correlation Z = Z⁰ + ω·Z¹, determine Z and the molar volume. How much error would the ideal gas law introduce?
Show answer
The reduced properties are TrT_r = 350/304.2 = 1.15 and PrP_r = 15.0/7.38 = 2.03. Applying Pitzer's correlation: Z = 0.65 + (0.224)(0.08) = 0.65 + 0.018 = 0.668. The ideal molar volume is v_ideal = (8.314 × 350)/(15.0 × 10⁶) = 1.940 × 10⁻⁴ m³/mol = 194.0 cm³/mol. The corrected volume is v_real = 0.668 × 194.0 = 129.6 cm³/mol. The ideal gas law would overestimate the molar volume by (194.0 − 129.6)/129.6 × 100 % ≈ 49.7 %, a substantial error reflecting the strong intermolecular attractions in CO₂ near its critical temperature.

Question 4: APPLIED

An engineer must design a spherical pressure vessel to hold 500 mol of propane (C₃H₈) at 8.0 MPa and 400 K. Using Tc = 369.8 K, Pc = 4.25 MPa, and assuming Z ≈ 0.82 from a generalized chart at the calculated reduced conditions, determine the required internal volume of the vessel in liters and its internal radius in centimeters.
Show answer
Reduced properties: TrT_r = 400/369.8 = 1.082, PrP_r = 8.0/4.25 = 1.882. The ideal total volume would be V_ideal = nRT/P = (500 × 8.314 × 400)/(8.0 × 10⁶) = 0.2079 m³ = 207.9 L. Applying Z: V_real = Z × V_ideal = 0.82 × 207.9 = 170.5 L = 0.1705 m³. For a sphere, V = (4/3)πr³, so r = (3V/(4π))1/3(3V/(4π))^{1/3} = (3×0.1705/(4π))1/3(3 × 0.1705/(4π))^{1/3} = (0.04072)1/3(0.04072)^{1/3} = 0.3436 m ≈ 34.4 cm. If the engineer had used the ideal gas law, the vessel would be oversized by about 22 %, wasting material and increasing cost.

Question 5: CRITICAL THINKING

Explain why the second virial coefficient B in the density-series expansion Z = 1 + B/v + C/v² + ··· changes sign as temperature increases through the Boyle temperature TB. What does this sign change imply about the initial slope (∂Z/∂P)T evaluated as P → 0? How does this connect to the shape of Z-vs-P isotherms you have studied?
Show answer
The second virial coefficient B is determined by the pair interaction potential between molecules. At low temperatures, the attractive well of the potential dominates the configurational integral, making B negative; at high temperatures, the repulsive core dominates, making B positive. The Boyle temperature TBT_B is precisely where B = 0, and attractive and repulsive contributions exactly cancel. Since the pressure-series form gives Z ≈ 1 + B'P at low pressures (with B' = B/RT), the initial slope (∂Z/∂P)_T as P → 0 is proportional to B. When T < TBT_B, this slope is negative—the isotherm initially dips below Z = 1. When T > TBT_B, the slope is positive—the isotherm rises immediately above Z = 1. This explains the qualitative shape difference between high-T and low-T isotherms on the Z-vs-P diagram: low-temperature curves show a characteristic dip-then-rise, whereas high-temperature curves rise monotonically from Z = 1.

SUMMARY

Lesson Summary

Summary

The compressibility factor Z is defined as Z = Pv / RT and serves as a dimensionless measure of how far a real gas departs from ideal-gas behavior. When Z = 1, the gas behaves ideally; when Z < 1, attractive intermolecular forces reduce the molar volume below the ideal prediction; and when Z > 1, repulsive excluded-volume effects push the molar volume above the ideal value.

By exploiting the principle of corresponding states, all substances can be mapped onto a single generalized compressibility chart using the reduced pressure Pr and reduced temperature Tr. For improved accuracy, the Pitzer correlation (Z = Z⁰ + ω·Z¹) introduces the acentric factor ω as a third parameter. The Z-factor concept provides a critical bridge from the simplicity of the ideal gas law to the rigor of cubic equations of state and sets the stage for advanced topics including fugacity, departure functions, and phase-equilibrium calculations.

Varsity Tutors • Thermodynamics • Compressibility Factor (Z)