COLLEGE CHEMISTRY • STATES OF MATTER, SOLUTIONS, INTERMOLECULAR FORCES

Deviation from Ideal Gas Law

Why real gases defy PV = nRT and how the van der Waals equation restores accuracy.

Historical Context & Motivation

The study of gases has been central to the development of physical chemistry since the seventeenth century. Early investigators such as Robert Boyle and Jacques Charles established empirical relationships between pressure, volume, and temperature that were eventually unified into the ideal gas law, PV = nRT. This elegant equation assumes that gas molecules are dimensionless point particles experiencing no intermolecular attractions or repulsions—a simplification that works remarkably well at low pressures and high temperatures. However, as experimentalists pushed gases to higher pressures and lower temperatures, systematic deviations from the ideal prediction became impossible to ignore. These discrepancies demanded a more physically realistic model of gaseous behavior.

1662
Boyle's Law
Robert Boyle demonstrated the inverse relationship between pressure and volume for a fixed amount of gas at constant temperature, laying the groundwork for quantitative gas studies.
1834
Clapeyron's Ideal Gas Equation
Benoît Paul Émile Clapeyron combined the laws of Boyle, Charles, and Avogadro into the single equation PV = nRT, providing a universal description of ideal gas behavior.
1873
Van der Waals Equation
Johannes Diderik van der Waals introduced correction terms for intermolecular attraction and finite molecular volume in his doctoral thesis, earning the 1910 Nobel Prize in Physics.
1901
Onnes and the Virial Expansion
Heike Kamerlingh Onnes proposed the virial equation of state, expressing the compressibility factor Z as a power series in 1/V, providing a systematic framework for analyzing non-ideal behavior.
1949
Redlich–Kwong Equation
Otto Redlich and Joseph Kwong improved upon the van der Waals equation by introducing a temperature-dependent attraction term, yielding better predictions near the critical point.

The central question driving these developments was straightforward yet profound: why does PV = nRT fail under certain conditions, and how can we construct an equation of state that accounts for the molecular realities of attraction and excluded volume? Answering this question reveals the deep connection between macroscopic thermodynamic measurements and the microscopic forces that govern molecular interactions.

Core Principles & Definitions

Understanding deviations from ideal gas behavior requires grasping several foundational ideas. The ideal gas law rests on two critical assumptions: that gas molecules occupy negligible volume compared to the container, and that no intermolecular forces exist between them. When either assumption breaks down—because molecules are crowded together at high pressure or because they are moving slowly enough at low temperature for attractive forces to matter—the observed pressure-volume-temperature relationship departs from PV = nRT. The quantitative measure of this departure is the compressibility factor Z, defined as PV/(nRT). For a perfectly ideal gas, Z = 1 at all conditions; for a real gas, Z deviates above or below unity depending on whether repulsive or attractive interactions dominate.

1

Finite Molecular Volume

Real molecules occupy a non-zero volume, known as the excluded volume. At high pressures the fraction of container space occupied by molecules becomes significant, causing the effective volume available for molecular motion to be less than the total container volume.
2

Intermolecular Attractions

London dispersion forces, dipole–dipole interactions, and hydrogen bonds pull gas molecules toward one another. These attractive forces reduce the frequency and force of wall collisions, causing the observed pressure to be lower than predicted by the ideal gas law.
3

Compressibility Factor (Z)

Z = PV/(nRT) quantifies departure from ideality. When Z < 1, attractive forces dominate and the gas is more compressible than ideal. When Z > 1, repulsive (volume-exclusion) effects dominate and the gas resists compression.
4

Boyle Temperature

The Boyle temperature (T_B) is the temperature at which the attractive and repulsive correction terms effectively cancel at moderate pressures, causing the gas to behave nearly ideally over an extended pressure range.
KEY TAKEAWAY
Think of ideal gas molecules as perfectly antisocial billiard balls with zero size—they never attract or crowd each other. Real molecules are more like people in a crowded room: they take up space (excluded volume), and some are drawn toward one another (intermolecular attractions). At a sparsely attended event (low pressure, high temperature), people act independently and the 'ideal' description works. Pack the room (high pressure) or lower the energy in the room (low temperature), and social and spatial effects become impossible to ignore.

Visual Explanation — The Z-Factor Plot

The plot above shows Z versus pressure at a fixed temperature (around 300 K) for several common gases. The dashed amber line represents ideal behavior (Z = 1). Gases with stronger intermolecular forces (e.g., NH3, CO2) exhibit deeper dips below Z = 1 at moderate pressures before rising above unity at very high pressures where excluded volume dominates.

The Z-versus-P diagram is the canonical way to visualize non-ideal gas behavior. At moderate pressures, attractive intermolecular forces pull molecules inward and reduce wall-collision frequency, causing the observed PV product to fall below nRT and yielding Z < 1. At very high pressures, the finite molecular volume becomes significant; molecules cannot be compressed into a space smaller than their combined excluded volume, so PV exceeds nRT and Z > 1. Notice that hydrogen, a small nonpolar molecule with very weak London dispersion forces, barely dips below Z = 1 and quickly rises above it, while ammonia, which engages in hydrogen bonding, shows a pronounced dip—a direct macroscopic signature of its strong intermolecular attractions.

Mathematical Framework

The most widely taught correction to the ideal gas law is the van der Waals equation. It introduces two empirical parameters—a and b—that capture intermolecular attraction and excluded volume, respectively. The derivation begins by recognizing that the pressure measured at the container wall is diminished by attractive forces and that the free volume available to each molecule is reduced by the physical size of neighboring molecules.

IDEAL GAS LAW
PV = nRT
P = pressure, V = volume, n = moles, R = 8.314 J·mol⁻¹·K⁻¹, T = temperature.
VAN DER WAALS EQUATION
(P + an²/V²)(V − nb) = nRT
The term an²/V² corrects for intermolecular attractive forces (units: atm·L²·mol⁻²). The term nb corrects for excluded volume per mole (units: L·mol⁻¹). A larger 'a' indicates stronger intermolecular attractions; a larger 'b' indicates larger molecular size.
COMPRESSIBILITY FACTOR
Z = PV / (nRT)
Z = 1 for an ideal gas. For one mole, the van der Waals equation yields Z = V/(V − b) − a/(RTV), showing how 'a' pulls Z below 1 and 'b' pushes it above 1.
BOYLE TEMPERATURE
T_B = a / (Rb)
At the Boyle temperature, the second virial coefficient B(T) equals zero and the gas behaves nearly ideally over a wide pressure range. For N₂, T_B ≈ 327 °C.

From the van der Waals equation one can also derive the critical constants of a gas: Pc = a/(27b²), Vc = 3nb, and Tc = 8a/(27Rb). These relationships illustrate the deep connection between microscopic molecular parameters and macroscopic phase behavior, since the critical point marks the boundary between the gas and liquid phases.

Van der Waals Parameters & Molecular Interpretation

The van der Waals constants a and b are tabulated for hundreds of gases and serve as a molecular fingerprint. Comparing values across a series of gases reveals clear trends rooted in molecular structure: larger, more polarizable molecules exhibit greater a values because of stronger London dispersion forces, while molecules capable of dipole–dipole interactions or hydrogen bonding have even larger a values. Similarly, b scales roughly with molecular size.

Each bubble represents a gas plotted by its van der Waals b parameter (x-axis, molecular size) and a parameter (y-axis, intermolecular attraction). Small nonpolar gases like He and H2 cluster near the origin, while larger or more polar molecules like H2O and CCl4 appear in the upper-right region.
Selected van der Waals constants and dominant intermolecular forces
Gasa (atm·L²·mol⁻²)b (L·mol⁻¹)Dominant IMF
He0.0340.0237Weak LDF
H₂0.2440.0266Weak LDF
N₂1.3900.0391LDF
CO₂3.5900.0427LDF + quadrupole
NH₃4.1700.0371Dipole–dipole + H-bonding
H₂O5.4600.0305Strong H-bonding

Notice that water has a relatively small b (it is a compact molecule) but one of the largest a values among common gases, reflecting the strength of its hydrogen-bonding network. Helium, by contrast, has the smallest a and b of any gas, which is why it behaves nearly ideally even under demanding conditions. The lesson is clear: deviation from ideality is fundamentally governed by the nature and strength of intermolecular forces relative to thermal kinetic energy.

Worked Example — Comparing Ideal and Van der Waals Pressures

Consider 1.00 mol of CO2 confined to a 0.500 L container at 300 K. We will calculate the pressure using both the ideal gas law and the van der Waals equation, then compare the results. For CO2: a = 3.590 atm·L²·mol⁻², b = 0.0427 L·mol⁻¹, and R = 0.08206 L·atm·mol⁻¹·K⁻¹.

Ideal vs. Van der Waals Pressure of CO₂
1
Step 1 — Identify Given Valuesn = 1.00 mol, V = 0.500 L, T = 300 K, a = 3.590 atm·L²·mol⁻², b = 0.0427 L·mol⁻¹, R = 0.08206 L·atm·mol⁻¹·K⁻¹.
2
Step 2 — Calculate Ideal PressureFrom PV = nRT, we solve for P: Pideal = nRT/V = (1.00)(0.08206)(300) / 0.500 = 24.618 / 0.500.
P_ideal = 49.24 atm
3
Step 3 — Calculate Van der Waals Correction TermsAttractive correction: an²/V² = 3.590 × (1.00)² / (0.500)² = 3.590 / 0.250 = 14.36 atm. Volume correction: nb = 1.00 × 0.0427 = 0.0427 L. Corrected volume: V − nb = 0.500 − 0.0427 = 0.4573 L.
4
Step 4 — Apply the Van der Waals EquationRearranging (P + an²/V²)(V − nb) = nRT: P = nRT/(V − nb) − an²/V². P = (1.00)(0.08206)(300)/(0.4573) − 14.36 = 24.618 / 0.4573 − 14.36 = 53.83 − 14.36.
P_vdW = 39.47 atm
5
Step 5 — Compare and InterpretThe ideal gas law predicts 49.24 atm, while the van der Waals equation gives 39.47 atm—a difference of nearly 10 atm (≈ 20%). The van der Waals pressure is lower because the attractive correction (−14.36 atm) outweighs the volume correction effect (+4.59 atm from the reduced denominator). This makes physical sense: at this moderately high density, CO₂ molecules strongly attract one another, reducing their impact on the container walls.
The ideal gas law overestimates the pressure by ≈ 20% under these conditions.

Strengths & Limitations of Real Gas Models

While the van der Waals equation represents a substantial improvement over the ideal gas law, it is far from the final word in equations of state. Understanding its strengths and limitations helps chemists and engineers select the right model for a given application.

Comparison of equations of state for gas behavior
FeatureIdeal Gas LawVan der WaalsRedlich–Kwong / Peng–Robinson
Parameters02 (a, b)2–3 (with T-dependent a)
Accounts for attractionNoYes (constant a)Yes (T-dependent a)
Accounts for volumeNoYesYes
Liquid phase predictionNoQualitative onlySemi-quantitative
Accuracy near critical pointPoorModerateGood
Best use caseLow P, high T estimatesConceptual; moderate PIndustrial process design
KEY TAKEAWAY
Choosing an equation of state is analogous to choosing a map projection in cartography. The ideal gas law is like a flat Mercator map—simple and useful for navigation near the equator but wildly distorted near the poles. The van der Waals equation is a better projection that reduces distortion in many regions but still introduces errors at extreme latitudes (near the critical point). More advanced models like Peng–Robinson are akin to modern conformal projections: they sacrifice simplicity for far greater accuracy where it matters most.

Connection to Advanced Theory — The Virial Expansion & Corresponding States

The van der Waals equation can be situated within a broader theoretical framework. In statistical mechanics, the virial equation of state expresses Z as a power series in the molar density (or 1/Vm): Z = 1 + B/Vm + C/Vm2 + …, where B, C, … are the second, third, … virial coefficients. These coefficients have a direct molecular interpretation: B(T) encodes pairwise interactions, C(T) encodes three-body interactions, and so on. Remarkably, the van der Waals equation can be expanded to yield B = b − a/(RT), showing that its two parameters map onto the leading virial coefficient.

Van der Waals framework vs. advanced statistical-thermodynamic treatments
ConceptVan der Waals LevelAdvanced / Statistical Mechanics Level
Non-ideality sourceEmpirical parameters a, bVirial coefficients from pair-potential integrals
Temperature dependence of attractionImplicit (a is constant)Explicit through B(T), C(T)
UniversalityPrinciple of corresponding states (qualitative)Acentric factor ω; critical scaling exponents
Phase transitionsMaxwell construction on van der Waals isothermGibbs free energy minimization; fugacity matching

The principle of corresponding states further unifies real gas behavior by expressing P, V, and T as reduced variables relative to the critical constants: Pr = P/Pc, Vr = V/Vc, Tr = T/Tc. In these dimensionless coordinates, all van der Waals gases obey the same universal equation, a powerful insight that carries forward into modern industrial thermodynamics and the design of high-pressure chemical processes.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain why the compressibility factor Z for nitrogen at 300 K first dips below 1 at moderate pressures and then rises above 1 at very high pressures. Relate each region to the dominant type of molecular interaction.
PROBLEM 2BASIC CALCULATION
Calculate the pressure exerted by 2.00 mol of N₂ in a 1.00 L container at 500 K using (a) the ideal gas law and (b) the van der Waals equation. For N₂: a = 1.390 atm·L²·mol⁻², b = 0.0391 L·mol⁻¹. Use R = 0.08206 L·atm·mol⁻¹·K⁻¹.
PROBLEM 3INTERMEDIATE
A gas has a = 6.49 atm·L²·mol⁻² and b = 0.0562 L·mol⁻¹. (a) Calculate the Boyle temperature T_B. (b) At T = 200 K, would you expect Z to be greater than or less than 1 at moderate pressures? Justify your answer quantitatively by evaluating the second virial coefficient B = b − a/(RT).
PROBLEM 4APPLIED
A chemical engineer stores 5.00 mol of ammonia (NH₃) in a 2.00 L steel tank at 400 K. Using the van der Waals equation (a = 4.170 atm·L²·mol⁻², b = 0.0371 L·mol⁻¹), calculate the pressure in the tank. Then determine the compressibility factor Z and comment on whether the ideal gas law would be adequate for safety calculations.
PROBLEM 5CRITICAL THINKING
The van der Waals equation predicts a universal critical compressibility factor Z_c = P_cV_c/(nRT_c) = 3/8 = 0.375 for all gases, yet experimentally Z_c ranges from about 0.23 (water) to 0.29 (many organic compounds). Explain the physical origin of this discrepancy and discuss what it implies about the limitations of the van der Waals model.

Lesson Summary

The ideal gas law (PV = nRT) assumes molecules are point particles with no intermolecular forces and no finite volume. Real gases deviate from this model at high pressures and low temperatures, where molecular crowding and attractive forces become significant. The compressibility factor Z = PV/(nRT) quantifies deviation: Z < 1 when attractions dominate and Z > 1 when excluded volume dominates.

The van der Waals equation, (P + an²/V²)(V − nb) = nRT, corrects for both effects using two gas-specific parameters: a (intermolecular attraction) and b (molecular volume). The Boyle temperature T_B = a/(Rb) is the temperature at which attractive and repulsive corrections cancel at low density, yielding near-ideal behavior. More advanced equations of state—Redlich–Kwong, Peng–Robinson, and the virial expansion—provide increasingly accurate descriptions by incorporating temperature-dependent parameters and higher-order interaction terms rooted in statistical mechanics.

Varsity Tutors • College Chemistry • Deviation from Ideal Gas Law