Gases, Liquids, Solids and Solutions
Why Real Gases Depart From Ideal Behavior
Learn how molecular size and attractions bend real gases away from PV = nRT, and how the compressibility factor measures it.
Key takeaways
- The ideal gas model assumes point-like particles with no forces between them except during perfectly elastic collisions.
- Attractions tend to make the pressure or volume smaller than ideal, while finite molecular size tends to make it larger.
- The compressibility factor Z = PV ÷ nRT equals 1 for an ideal gas, so its distance from 1 measures nonideal behavior.
- Gases behave most ideally at low pressure and at temperatures well above their condensation region.
- Condensation into a liquid is the most dramatic departure, and the ideal gas law cannot predict it at all.
Real gases depart from the ideal gas law because their molecules take up space and pull on one another. The ideal model ignores both facts. When molecules are far apart and moving fast, ignoring them costs almost nothing, and when the gas is dense or cold, it costs a lot.
The size of the departure depends on the gas, the temperature and the pressure. Understanding which effect wins under which conditions tells you when PV = nRT is safe and when you need something better.
What the ideal model leaves out
An ideal gas is made of particles that occupy no volume and feel no attraction or repulsion except at the instant of collision. Those assumptions lead directly to PV = nRT, as explained by kinetic molecular theory.
Real molecules are small but not points. Two of them cannot overlap, so some of the container is off limits to the center of any given molecule. Real molecules also attract one another weakly at moderate separations through the forces ranked in intermolecular forces.
At room temperature and 1 atm, the molecules of a typical gas are separated on average by something like ten times their own diameter. Most of the time each one is flying through empty space. That is why the crude model works so well in ordinary conditions.
The compressibility factor
Chemists summarize nonideal behavior with one number:
Z = PV ÷ (nRT)
Z = 1 behaves ideally
Z < 1 smaller volume than ideal at that P and T
Z > 1 larger volume than ideal at that P and T Z also equals the real molar volume divided by the ideal molar volume at the same temperature and pressure.
Here is an illustration with made-up data. Suppose a gas at 100 bar and 300 K has Z = 0.85.
ideal molar volume = RT ÷ P
= 0.08314 × 300 ÷ 100
= 0.249 L/mol
real molar volume = Z × ideal
= 0.85 × 0.249
= 0.212 L/mol If you had assumed ideality while filling a vessel, you would have underestimated how much gas fits at that pressure.
Attractions pull the pressure down
Picture a molecule about to strike the wall. Its neighbors are mostly behind it, toward the interior, and their weak attraction holds it back slightly. It hits a little less hard, so the measured pressure falls below the ideal value for that volume.
The effect grows with density, because there are more neighbors to pull, and more molecules arriving at the wall to be pulled. It also matters more at low temperature. Slow molecules spend longer near one another and have less kinetic energy to shrug off the attraction.
Strongly attracting molecules such as ammonia, sulfur dioxide and water vapor show larger deviations than helium or neon, whose atoms barely attract at all.
Molecular size pushes the pressure up
Now squeeze hard. The molecules themselves become a noticeable share of the total volume. The empty room available for motion is less than the container volume, so collisions with the walls are more frequent than the ideal model expects.
Taken to the extreme, you cannot compress a gas to zero volume. As molecules crowd together, their electron clouds repel steeply, and further squeezing takes enormous pressure. In this region Z rises well above 1 and keeps climbing.
How the two effects compete
For many gases, such as nitrogen or methane at moderately low temperatures, a plot of Z against pressure starts at 1, dips below it while attractions dominate, then turns upward and crosses 1 as crowding takes over. Carbon dioxide just above room temperature shows a very deep dip.
Hydrogen and helium at room temperature are different. Their attractions are so feeble, compared with their thermal energy, that Z stays above 1 as pressure rises. Cool them far enough and they too show a dip.
The Boyle temperature
For each gas there is a temperature at which the two effects very nearly cancel over a range of low pressures. It is called the Boyle temperature, because the gas then obeys Boyle's law unusually well. For nitrogen it lies a little above room temperature. For hydrogen and helium it is far below.
The cancellation is partial. At high enough pressure, repulsion still wins, so a gas at its Boyle temperature is not ideal everywhere.
A related effect appears when a gas expands through a valve or porous plug without exchanging heat. An ideal gas would keep the same temperature. Most real gases at room temperature cool, because molecules do work against their mutual attractions as they separate. Hydrogen and helium warm slightly instead, unless precooled below their inversion temperatures. This Joule–Thomson effect is a workhorse of gas liquefaction.
Condensation and the critical region
Cool a gas below its critical temperature and compress it, and at some pressure droplets appear. Further compression does not raise the pressure while liquid and vapor coexist. It simply turns more gas into liquid. Nothing in PV = nRT can produce that flat stretch.
Near the critical point, where the distinction between liquid and gas fades, deviations are severe and fluctuations in density become large. The map of these regions is covered in how to read a phase diagram and the triple point and critical point.
Better equations of state
An equation of state is any formula connecting P, V, T and n. Several improve on the ideal law.
- The van der Waals equation adds one constant for attraction and one for molecular size. It is simple and instructive, though only moderately accurate.
- The virial expansion writes Z = 1 + B ÷ Vm + C ÷ Vm² + ..., where Vm is molar volume. The coefficient B reflects interactions between pairs of molecules and C between triples.
- The Redlich–Kwong, Soave and Peng–Robinson equations are refinements widely used in chemical engineering.
- High-accuracy reference equations, with many fitted terms, exist for well-studied fluids.
The principle of corresponding states adds a shortcut. Measure temperature and pressure as fractions of each gas's critical values, and many simple gases show roughly the same Z.
Reading the virial coefficient
At low to moderate pressure, the first correction term is usually enough:
Z ≈ 1 + B ÷ Vm The sign of B tells you which effect is ahead. A negative B means attractions dominate and Z is below 1. A positive B means crowding dominates. B is zero at the Boyle temperature, and for a typical gas it climbs from large negative values in the cold toward small positive values when hot.
Here is a worked example with an assumed value. Take B = −0.120 L/mol for some gas at 300 K, and a molar volume of 2.40 L/mol.
Z ≈ 1 + (−0.120 ÷ 2.40)
= 1 − 0.050
= 0.950
P = Z R T ÷ Vm
= 0.950 × 0.08314 × 300 ÷ 2.40
= 9.87 bar (ideal: 10.39 bar) At about 10 bar the error from assuming ideality would be around 5 percent. Dilute the gas tenfold, to 24.0 L/mol, and the correction shrinks tenfold, to half a percent. This is the pattern behind the advice that low pressure restores ideal behavior.
Common misconceptions
"Ideal gases are a particular kind of gas." No substance is ideal. The ideal gas is a limit that every real gas approaches as it is made more dilute.
"Cold always means nonideal." Temperature matters relative to a gas's own attractions. Room temperature is very hot for helium and fairly cold for sulfur dioxide.
"Nonideal gases break the laws of physics." Only the simplified equation fails. Energy conservation and kinetic ideas still apply, with molecular size and forces included.
"Heavy molecules are always less ideal." Mass itself is not the cause. Heavier molecules often have more electrons and stronger attractions and take up more space, but a light polar molecule such as water vapor can deviate more than a heavier nonpolar one.
How to decide whether it matters
Compare your conditions with the gas's critical constants. If the temperature is far above the critical temperature and the pressure is a small fraction of the critical pressure, ideality is a good bet. Air at room conditions easily passes.
If you are near a condensation point, working at tens or hundreds of bar, or need accuracy better than about a percent, look up tabulated data or use a better equation. For industrial design and anything involving pressurized equipment, rely on validated reference data and qualified engineers, not a classroom estimate.
Common questions
Why do gases cool in a spray can?
Several things happen at once. In a can holding a liquefied propellant, much of the chilling comes from the liquid evaporating to replace the vapor that left, which takes energy from the can. Expansion of the escaping gas contributes as well. Spray cans can get cold enough to injure skin, so follow the label.
Is Z the same for every gas at the same conditions?
No. At a given temperature and pressure, different gases have different Z values because their molecules differ in size and attraction. They become much more alike when compared at the same fraction of their critical temperature and pressure.