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.

Laboratory test tubes with an atom and science notebook.
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 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.

SECTION 2

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 (TBT_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.

SECTION 3

Visual Explanation — The Z-Factor Plot

Compressibility Factor (Z) vs. Pressure for Real GasesPressure (atm) →Z = PV / nRT1.01.52.00.50.00200400600800Ideal (Z=1)H₂N₂CO₂NH₃Z < 1 → attractions dominateZ > 1 → repulsions dominateDeeper dip → stronger IMFs
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.

SECTION 4

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=nRTPV = nRT

P = pressure, V = volume, n = moles, R = 8.314 J·mol⁻¹·K⁻¹, T = temperature.

VAN DER WAALS EQUATION

(P+an2/V2)(V−nb)=nRT(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 = 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

TB=a/(Rb)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₂, TBT_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.

SECTION 5

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.

Van der Waals Parameters: a vs. b for Selected Gasesb (L·mol⁻¹) →a (atm·L²·mol⁻²) →0246800.050.100.150.20HeH₂N₂O₂CO₂NH₃SO₂H₂OCCl₄↑ a: stronger intermolecular attractions→ b: larger molecular volume
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.
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

Selected van der Waals constants and dominant intermolecular forces

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.

SECTION 6

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. 1

    Step 1 — Identify Given Values

    n = 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. 2

    Step 2 — Calculate Ideal Pressure

    From 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. 3

    Step 3 — Calculate Van der Waals Correction Terms

    Attractive 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. 4

    Step 4 — Apply the Van der Waals Equation

    Rearranging (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. 5

    Step 5 — Compare and Interpret

    The 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.

SECTION 7

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.

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

Comparison of equations of state for gas behavior

✦

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.

SECTION 8

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.

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

Van der Waals framework vs. advanced statistical-thermodynamic treatments

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.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

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.
Show answer
At moderate pressures, the average intermolecular distance is small enough for attractive London dispersion forces to become significant but the molecules still occupy a relatively small fraction of the container volume. These attractions reduce the force of wall collisions, making the measured PV product smaller than nRT and thus Z < 1. At very high pressures, molecules are crowded so closely that their finite excluded volumes become dominant. The effective free volume is substantially less than V, which means the pressure required to compress the gas further rises sharply—faster than the ideal gas law predicts—so PV exceeds nRT and Z > 1. In essence, the transition from Z < 1 to Z > 1 marks the crossover from attraction-dominated to repulsion-dominated behavior.

Question 2: BASIC 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⁻¹.
Show answer
(a) Ideal: P = nRT/V = (2.00)(0.08206)(500)/1.00 = 82.06 atm. (b) Van der Waals: P = nRT/(V − nb) − an²/V². The corrected volume is V − nb = 1.00 − 2.00 × 0.0391 = 0.9218 L. The attraction term is an²/V² = 1.390 × 4.00/1.00 = 5.560 atm. Thus P = (2.00)(0.08206)(500)/0.9218 − 5.560 = 89.02 − 5.56 = 83.46 atm. The van der Waals pressure is slightly higher than ideal here because the excluded-volume correction (+6.96 atm through the reduced denominator) outweighs the attractive correction (−5.56 atm), consistent with the dominance of repulsive effects at this density.

Question 3: INTERMEDIATE

A gas has a = 6.49 atm·L²·mol⁻² and b = 0.0562 L·mol⁻¹. (a) Calculate the Boyle temperature TBT_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).
Show answer
(a) TBT_B = a/(Rb) = 6.49/(0.08206 × 0.0562) = 6.49/0.004612 ≈ 1407 K. (b) At 200 K: B = b − a/(RT) = 0.0562 − 6.49/(0.08206 × 200) = 0.0562 − 6.49/16.41 = 0.0562 − 0.3955 = −0.339 L·mol⁻¹. Because B is negative, the attractive interactions dominate at this temperature and Z ≈ 1 + B/VmV_m < 1 at moderate pressures. The gas is well below its Boyle temperature, so deviations from ideality are substantial, with attractions pulling Z significantly below unity before volume exclusion takes over at higher pressures.

Question 4: APPLIED

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.
Show answer
V − nb = 2.00 − 5.00 × 0.0371 = 2.00 − 0.1855 = 1.8145 L. an²/V² = 4.170 × 25.0/4.00 = 26.06 atm. P_vdW = nRT/(V−nb) − an²/V² = (5.00)(0.08206)(400)/1.8145 − 26.06 = 164.12/1.8145 − 26.06 = 90.44 − 26.06 = 64.38 atm. Z = PV/(nRT) = 64.38 × 2.00/(5.00 × 0.08206 × 400) = 128.76/164.12 = 0.785. Since Z = 0.785 deviates by over 21% from unity, the ideal gas law would predict 82.06 atm—an overestimate of roughly 17.7 atm. For safety engineering purposes, using the ideal gas law could either waste money (over-engineering for too-high predicted pressure) or, if used in reverse to estimate stored moles from a pressure reading, could dangerously underestimate the amount of gas present. The van der Waals or a more accurate equation of state should be used.

Question 5: CRITICAL THINKING

The van der Waals equation predicts a universal critical compressibility factor ZcZ_c = P_cV_c/(nRT_c) = 3/8 = 0.375 for all gases, yet experimentally ZcZ_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.
Show answer
The van der Waals equation treats intermolecular attraction as a simple mean-field correction (an²/V²) that is independent of temperature and assumes pairwise additivity with no angular dependence. Real molecules, however, have orientation-dependent dipole–dipole forces, hydrogen bonds, and higher-order interactions that make the effective 'a' parameter temperature- and density-dependent. Furthermore, the hard-sphere repulsion model (V − nb) is an oversimplification: real repulsive potentials are 'softer' than a rigid wall and vary with temperature as molecules probe different regions of the potential energy surface at different kinetic energies. These deficiencies cause the van der Waals equation to consistently overpredict ZcZ_c. Water's particularly low ZcZ_c (≈ 0.23) reflects the dominant role of its strong, directional hydrogen bonds—interactions that the spherically symmetric van der Waals attraction parameter cannot capture. This analysis reveals that while the van der Waals framework is invaluable for qualitative insight and pedagogy, quantitative engineering near the critical point demands equations of state with temperature-dependent attraction terms and more sophisticated volume-exclusion models.

SUMMARY

Lesson Summary

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 TBT_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