Real Gases

Why real gases deviate from ideal behavior at high pressure and low temperature, the compressibility factor Z, and the van der Waals equation with its a and b correction constants.

The ideal gas law rests on two assumptions from kinetic molecular theory: that gas molecules occupy no volume themselves, and that they exert no forces on one another. Both are excellent approximations when molecules are far apart, which is why pV = nRT works so well at ordinary temperatures and low pressures. Both fail when molecules are forced close together, and a real gas then departs measurably from ideal behavior.

Where the Ideal Model Breaks Down

Deviations grow under two conditions:

  • High pressure. Crowding the molecules makes their own volume a significant fraction of the container. The space actually available for motion is less than the measured volume, so the gas resists further compression more than the ideal law predicts.
  • Low temperature. Slow-moving molecules spend longer near one another, giving intermolecular attractions time to act. These attractions pull molecules inward and soften their collisions with the walls, so the measured pressure falls below the ideal value.

The two effects push in opposite directions: finite molecular volume tends to raise the pressure relative to ideal, while attractions tend to lower it. Which one wins depends on the gas and the conditions.

The Compressibility Factor

The compressibility factor Z quantifies the deviation in a single number:

\[ Z = \dfrac{pV}{nRT} = \dfrac{pV_{\mathrm{m}}}{RT} \]

For an ideal gas, Z = 1 at every pressure and temperature. For a real gas:

  • Z < 1: attractive forces dominate. The gas is more compressible than ideal, occupying less volume (or exerting less pressure) than pV = nRT predicts. This is typical at low to moderate pressure.
  • Z > 1: the finite size of the molecules dominates. The gas resists compression more than ideal. This is typical at high pressure, where the molecules are packed close.

Two cautions: it is the magnitude |Z − 1| that measures how far the gas departs from ideal, while the sign shows which correction is winning; and Z = 1 at a single temperature and pressure does not make a gas ideal there, since the two corrections can simply cancel (the Boyle temperature, below).

Every gas approaches Z = 1 as p → 0: at low enough density the molecules are far apart, both corrections vanish, and all gases behave ideally. Strongly attracting gases such as CO2 show a pronounced dip below 1 at moderate pressure; weakly interacting gases such as H2 and He stay above 1 across most pressures because attraction is too small to matter.

Compressibility factor Z versus pressure at 320 K for CO2, N2, H2, and He. CO2 dips well below 1 near 120 bar then recovers; N2, H2, and He rise above 1 at high pressure.
Compressibility factor Z versus pressure at 320 K for CO2, N2, H2, and He. CO2 dips well below 1 near 120 bar then recovers; N2, H2, and He rise above 1 at high pressure.
Compressibility factor Z = pV/nRT versus pressure at 320 K (experimental data, NIST). CO2 dips far below 1 where attractions dominate, then recovers; H2 and He stay above 1, while N2 barely dips below 1 near 11 bar before rising.
NoteWhy 320 K?

The isotherm is taken just above CO2’s critical temperature (304 K), so every gas shown stays a single fluid phase across the whole pressure range. At 0 °C, CO2 would condense near 35 bar and its curve would simply stop.

The van der Waals Equation

In 1873, Johannes van der Waals corrected the ideal gas law with two terms, one for each failed assumption:

Johannes Diderik van der Waals: A Dutch theoretical physicist (1837–1923) who won the Nobel Prize in Physics in 1910 for his work on the equation of state for gases and liquids. (Source: Wikipedia)

\[ \left( p + a\,\dfrac{n^{2}}{V^{2}} \right)(V - nb) = nRT \]

  • Pressure correction, a n2/V2: attractions reduce the pressure the gas actually exerts, so this term is added to the measured pressure to recover the value the gas would show without attractions. The constant a measures the strength of those attractions.
  • Volume correction, nb: the molecules’ own volume is unavailable for motion, so it is subtracted from the container volume to leave the free volume. The constant b measures the effective volume excluded per mole.

For one mole, writing Vm = V/n gives the compact molar form:

\[ \left( p + \dfrac{a}{V_{\mathrm{m}}^{2}} \right)(V_{\mathrm{m}} - b) = RT \]

Solving for pressure gives the form most often used in calculations:

\[ p = \dfrac{nRT}{V - nb} - a\,\dfrac{n^{2}}{V^{2}} \]

With a = 0 and b = 0, this reduces to p = nRT/V, so an ideal gas is just a van der Waals gas with both corrections switched off.

The constants a and b are empirical and unique to each gas. Larger a marks stronger intermolecular attractions, so polar or readily polarizable molecules (H2O, NH3, CO2) have large values, while small nonpolar gases (He, H2) have small ones. Larger b marks a bigger molecule and therefore more excluded volume. The units follow from the equation. a is in L2 bar mol−2, which makes an2/V2 a pressure, while b is in L mol−1, the volume excluded per mole.

NoteA Thesis Worth a Nobel Prize

Van der Waals introduced this equation in his 1873 doctoral thesis at Leiden. By treating molecular size and attraction together, he gave the first quantitative account of how gases condense into liquids. His constants tie directly to each substance’s critical temperature and pressure. He received the 1910 Nobel Prize in Physics for the work.

van der Waals Constants

A representative set is shown below (in L2 bar mol−2 and L mol−1, to pair with R = 0.083145 L bar mol−1 K−1). The full table of 581 gases is in the Van der Waals Constants reference. Values vary slightly between compilations.

The trend in a tracks intermolecular force strength, climbing from the noble and light gases at the top to the strongly attracting molecules at the bottom: NH3 and H2O through hydrogen bonding, Cl2 through the dispersion forces of a large, polarizable molecule.

Example: A 1.00 mol sample of CO2 is confined to 0.500 L at 0 °C (273.15 K). Compare the pressure predicted by the ideal gas law with that from the van der Waals equation. (a = 3.658 L2 bar mol−2; b = 0.04284 L mol−1)

The ideal gas law predicts

\[ \begin{align*} pV &= nRT \longrightarrow \\[1.5ex] p_{\mathrm{ideal}} &= \dfrac{nRT}{V} \\[1.5ex] &= \dfrac{(1.0\bar{0}~\mathrm{mol})(0.08314\bar{5}~\mathrm{L~bar~mol^{-1}~K^{-1}})(273.1\bar{5}~\mathrm{K})}{0.50\bar{0}~\mathrm{L}} \\[1.5ex] &= 45.\bar{4}22~\mathrm{bar} \\[1.5ex] &= 45.4~\mathrm{bar} \end{align*} \]

The van der Waals equation accounts for the molecules’ volume and mutual attraction:

\[ \begin{align*} p &= \dfrac{nRT}{V - nb} - a\left(\dfrac{n}{V}\right)^{2} \\[1.5ex] &= \dfrac{(1.0\bar{0}~\mathrm{mol})(0.08314\bar{5}~\mathrm{L~bar~mol^{-1}~K^{-1}})(273.1\bar{5}~\mathrm{K})}{0.50\bar{0}~\mathrm{L} - (1.0\bar{0}~\mathrm{mol})(0.0428\bar{4}~\mathrm{L~mol^{-1}})} \\ &\qquad {}- (3.65\bar{8}~\mathrm{L^{2}~bar~mol^{-2}})\left(\dfrac{1.0\bar{0}~\mathrm{mol}}{0.50\bar{0}~\mathrm{L}}\right)^{2} \\[1.5ex] &= 49.\bar{6}78~\mathrm{bar} - 14.\bar{6}32~\mathrm{bar} \\[1.5ex] &= 35.\bar{0}46~\mathrm{bar} \\[1.5ex] &= 35.0~\mathrm{bar} \end{align*} \]

Math String: (1.00*0.083145*273.15)/(0.500 - 1.00*0.04284) - 3.658*(1.00/0.500)^2

The van der Waals pressure is about 10 bar lower than the ideal prediction. At this density and temperature the attractive term (14.6 bar) far outweighs the volume correction, so attractions dominate and the gas exerts less pressure than an ideal gas would. This corresponds to a compressibility factor Z = pV/nRT ≈ 0.77, well below 1, exactly the regime the ideal gas law handles worst.

NoteThe Boyle Temperature

For every gas there is one temperature, the Boyle temperature TB, at which the attraction and volume corrections so nearly cancel that the gas obeys Z ≈ 1 over a wide range of low pressures. In the van der Waals model it is

\[ T_{\mathrm{B}} = \dfrac{a}{Rb} \]

Below TB attractions dominate and Z dips below 1; above it the finite-size term dominates and Z stays above 1. This ordering explains the curves in the first figure. He and H2 sit far above their low Boyle temperatures and never dip, CO2 sits well below its high Boyle temperature and dips sharply, and N2, whose Boyle temperature is close to the 320 K isotherm, barely dips.

The van der Waals formula only estimates these temperatures. From the gas constants it gives values that rank the gases correctly but run well above the measured numbers for N2 and CO2.

The gap matters for N2. The 426 K estimate sits well above the 320 K isotherm and predicts a clear dip, whereas the measured 327 K is barely above it and gives the near-flat curve the figure shows.

Critical Constants

The constants a and b are not arbitrary fitting parameters. Each gas’s pair follows from the conditions at its critical point, the temperature and pressure above which the gas can no longer be liquefied no matter how hard it is compressed. On the critical isotherm the pressure curve flattens into an inflection, and setting both the first and second derivatives of p with respect to Vm to zero there ties a and b to the critical temperature Tc and critical pressure pc:

\[ a = \dfrac{27 R^{2} T_{\mathrm{c}}^{2}}{64\, p_{\mathrm{c}}} \qquad\qquad b = \dfrac{R T_{\mathrm{c}}}{8\, p_{\mathrm{c}}} \]

The same analysis predicts the critical compressibility factor

\[ Z_{\mathrm{c}} = \dfrac{p_{\mathrm{c}} V_{\mathrm{m,c}}}{R T_{\mathrm{c}}} = \dfrac{3}{8} = 0.375 \]

as a single universal value for every gas. Real gases do not reach it. Their measured Zc values cluster near 0.27 and dip as low as 0.23 for strongly hydrogen-bonding molecules such as water. This shortfall shows the van der Waals model is qualitatively right but quantitatively incomplete.

Critical constants for the same representative gases are shown below. The full table of 996 substances is in the Critical Constants reference.

The weakly interacting light gases sit near 0.30, while the hydrogen-bonding molecules NH3 and H2O fall furthest below the van der Waals prediction of 0.375, to about 0.23.

Scaling each variable by its critical value, pr = p/pc, Vr = Vm/Vm,c, and Tr = T/Tc, rewrites the van der Waals equation with no gas-specific constants left in it. Two gases held at the same reduced temperature and pressure then share the same reduced volume and the same Z. This is the law of corresponding states. Plotted against reduced pressure at a common reduced temperature, the Z curves for different gases fall close to a single line, an approximation that works best for simple nonpolar gases.

Compressibility factor Z versus reduced pressure for reduced temperatures 1.0, 1.2, 1.5, and 2.0, computed from the van der Waals equation. Each reduced temperature gives one gas-independent curve; lower reduced temperatures dip further below 1 before rising past it at high reduced pressure.
Compressibility factor Z versus reduced pressure for reduced temperatures 1.0, 1.2, 1.5, and 2.0, computed from the van der Waals equation. Each reduced temperature gives one gas-independent curve; lower reduced temperatures dip further below 1 before rising past it at high reduced pressure.
Compressibility factor from the van der Waals equation in reduced form. Because the reduced equation carries no gas-specific constants, every gas follows the same Z–pr curve at a given reduced temperature Tr. Real gases follow these curves closely when they are simple and nonpolar.

This scaling also gives a quick test for when pV = nRT is safe to use. As long as the reduced pressure is small, with p no more than about 0.1 pc, and the temperature is near or above Tc, every gas stays within a few percent of Z = 1. Outside that range the deviations seen in the plot above become too large to ignore.

Isotherms and the Critical Point

The interactive below compresses CO2 in a cylinder at a fixed temperature. Pick a Temperature, drag the Compression slider, and follow the dot on the p–V plot as the small phase diagram tracks the state.

Read it from the expanded gas (slider fully left) and compress inward. Above Tc the pressure simply keeps rising and the gas never condenses. Below Tc, three stages unfold in turn. First the gas branch climbs until the pressure reaches the vapor pressure. Then the dot crosses the flat plateau, where pushing the piston in converts gas to liquid at constant pressure (watch the cylinder fill with liquid from the bottom) while the curve holds dead level. Finally, once all the gas is liquid, the pressure rockets up the steep, nearly vertical liquid branch, because liquids barely compress.

The dashed dome enclosing the plateaus marks the boundary of the two-phase region. Every isotherm’s flat step is a chord across it, and the dome’s peak is the critical point. The same envelope holds at every temperature, so raising T just slides the plateau up the dome until it shrinks to that peak at Tc.

The shaded region runs off the bottom of the plot because the van der Waals model predicts liquid and vapor coexistence down to very low pressure, so its two-phase region never closes. A real substance stops sooner. Its liquid–vapor coexistence ends at the triple point (for CO2, 216.6 K and 5.18 bar), below which the gas freezes straight to a solid. The van der Waals equation has no solid phase, so it cannot reproduce that limit, and its dome simply keeps going.

That flat plateau is where the equation and reality diverge. The raw van der Waals curve (the faded dashed loop) instead wiggles up and then down across this region, which is mechanically impossible, because it would mean the gas pushing back less as you squeeze it harder. Nature takes the flat shortcut instead. Its height is the vapor pressure at that temperature, and its position is fixed by the Maxwell equal-area construction, which sets the plateau so the loop encloses equal areas above and below it.

The plateau is also the link to the phase diagram. It happens at one temperature and one pressure, so it collapses to a single point on the liquid–vapor line in the p–T inset, and while you drag through the two-phase region the inset dot sits exactly on that line. Raise the temperature and the plateau shrinks while its point climbs the curve, until at Tc the plateau vanishes and the line ends at the critical point. A two-dimensional coexistence region on the p–V plot becomes a one-dimensional line on the p–T diagram, because the phase diagram keeps no volume axis to record the flat step.

Beyond van der Waals

Overlaying the van der Waals prediction on the experimental curves shows where it holds and where it breaks down.

Compressibility factor versus pressure at 320 K for CO2 and N2: experimental data (solid) compared with van der Waals predictions (dashed). The van der Waals curves capture the shape but overshoot the high-pressure rise.
Compressibility factor versus pressure at 320 K for CO2 and N2: experimental data (solid) compared with van der Waals predictions (dashed). The van der Waals curves capture the shape but overshoot the high-pressure rise.
Experimental (solid) versus van der Waals (dashed) compressibility factors at 320 K. The dashed curves overshoot the high-pressure upturn and understate CO2's dip.

The agreement is qualitative. The van der Waals curves reproduce the shape of the real ones: CO2 dips below 1 where attractions dominate, then climbs above 1 at high pressure. Quantitatively, the equation overshoots the upturn (it predicts Z > 1 for CO2 well before the real gas gets there) and makes the dip too shallow.

Exploring Z at Any Temperature

The explorer below recomputes the van der Waals Z at any temperature you set. Lower the temperature and CO2’s dip deepens, since attractions have more time to act; raise it past the Boyle temperature and the dip disappears, leaving only the high-pressure rise from molecular volume. He and H2 never dip anywhere in this range.

The van der Waals equation is the simplest and most widely taught equation of state for real gases, but it is not the most accurate. More precise models such as the Redlich–Kwong and Peng–Robinson equations let the attraction term vary with temperature, and are standard in chemical engineering.

Summary

Where the Ideal Model Fails

A real gas departs from pV = nRT at high pressure, where molecular volume becomes significant, and at low temperature, where intermolecular attractions take hold. Both corrections vanish as p → 0.

Compressibility Factor

\[ Z = \dfrac{pV}{nRT} \]

Z = 1 for an ideal gas, drops below 1 where attractions dominate, and rises above 1 where molecular volume dominates.

The van der Waals Equation

\[ \left( p + a\,\dfrac{n^{2}}{V^{2}} \right)(V - nb) = nRT \]

The constant a sets the strength of intermolecular attractions; b is the volume excluded per mole.

Critical Point

The constants follow from the critical point, with a = 27R2Tc2/(64pc) and b = RTc/(8pc). The model gives one critical compressibility Zc = 3/8 for every gas, while measured values fall between about 0.23 and 0.30. Below Tc the equation forms a loop where a real gas instead condenses at constant pressure along a flat plateau, bounded by the two-phase dome whose peak is the critical point.