Real Gases and Deviations from Ideality
Squeeze carbon dioxide hard enough at room temperature, and it turns to liquid. The ideal gas law predicts no such thing could ever happen. That single failure exposes a deep truth about real molecules. Real gases deviate from ideal behavior because molecules occupy space and attract one another. These two effects, invisible in the ideal gas model, become important at high pressure and low temperature. Understanding them is essential for predicting when gases liquefy, how refrigerants behave, and why the atmosphere itself deviates from ideality under compression. This article builds the qualitative and semi-quantitative picture behind real gas behavior. You will see why the ideal gas law fails. Then you will see how molecular size and intermolecular attraction act in opposite directions. Finally you will see how this sets up the compressibility factor and the van der Waals equation, covered in the next articles.
- Ideal gas molecules are treated as point particles with zero volume and no interactions.
- Real molecules have finite size, so the volume actually available for motion is less than the container volume.
- Real molecules attract each other at moderate range, which lowers the pressure they exert compared to ideal prediction.
- Deviations are largest at high pressure and low temperature, near the conditions where gases liquefy.
- At high temperature and low pressure, real gases approach ideal behavior because kinetic energy dominates over attractive forces.
- Key idea: Real gas behavior departs from the ideal gas law because finite molecular volume pushes pressure up while intermolecular attraction pulls it down, and the competition between these effects depends on temperature and density.
Every real molecule takes up space and pulls on its neighbors, so a real gas can never obey exactly; the two corrections, excluded volume and attractive pressure, act oppositely and their balance determines whether a gas behaves nearly ideally or condenses into a liquid.
The physical picture
The ideal gas law,
rests on two silent assumptions. First, gas molecules are treated as point particles: they have mass but zero volume. Second, molecules do not interact with one another except during instantaneous, perfectly elastic collisions. Neither assumption is exactly true for any real substance.
Finite molecular volume. A real molecule is a small but definite blob of electron density, roughly – nm across. When many such molecules are packed into a container, part of the container volume is physically occupied by the molecules themselves. The volume actually available for any one molecule to move through is smaller than the container volume . Because pressure arises from the frequency and force of wall collisions, restricting the available space means molecules hit the walls more often than the ideal law predicts. Finite size therefore pushes the real pressure above the ideal prediction, an effect that grows as shrinks, i.e., at high density.
Intermolecular attraction. Real molecules also attract one another at short-to-moderate range through van der Waals forces: induced-dipole (dispersion), dipole-dipole, and sometimes hydrogen bonding. A molecule approaching the container wall is pulled backward, toward the bulk of the gas, by its neighbors. This attractive tug softens the impact on the wall, so the actual pressure is lower than the ideal prediction. This effect scales with how often molecules encounter each other, so it grows with density too, but it works in the opposite direction to the volume effect. The two corrections do not cancel evenly. At low density, molecules are far apart, both corrections are small, and the gas behaves nearly ideally. At high density and low temperature, both effects become significant, but attraction tends to dominate first as pressure rises modestly, later giving way to the volume effect at very high pressure. This crossover from attraction-dominated to volume-dominated behavior is exactly what produces the characteristic dip-then-rise shape seen when real gas behavior is plotted against pressure.
A second useful picture is the molecular-scale origin of the two corrections side by side: excluded volume as a geometric exclusion zone, and attraction as an inward-pulling force field near the container wall.
The core relations
The ideal gas law, the reference point for all deviations:
where: is pressure, is volume, is moles, , is temperature. The qualitative correction structure that motivates the van der Waals equation (developed fully in the next article):
where: the first term reflects a smaller free volume than , the second reflects reduced wall impact from attraction. The Boyle temperature condition, where attractive and volume effects momentarily cancel for a given gas:
where: measures attraction strength, measures molecular size (excluded volume per mole), both substance-specific constants introduced formally with the van der Waals equation. The compressibility factor, the standard diagnostic for how far a gas has strayed from ideality:
where: is molar volume; for an ideal gas, signals attraction dominates, signals excluded volume dominates.
Goal. Show qualitatively, from the kinetic picture of pressure, why molecular volume raises apparent pressure while intermolecular attraction lowers it, and why both scale with density.
Step 1: Pressure from kinetic theory. In the ideal gas model, pressure arises purely from the rate of momentum transfer as point molecules strike the walls. The mean free path and collision frequency depend only on the container volume and the number density , because molecules are assumed to have zero size and are assumed non-interacting between collisions with the wall.
Step 2: Introduce finite molecular volume. Real molecules exclude a region of space around each other; two molecules cannot approach closer than roughly the sum of their radii. For moles of molecules with molar excluded volume , the volume genuinely accessible for translational motion is reduced from to approximately
Since the ideal gas law with the true free volume would read , solving for gives
This is larger than the naive ideal prediction at the same , because the denominator has shrunk. Geometrically, molecules confined to a smaller effective volume collide with the walls more frequently, raising the pressure. This correction grows sharply as , i.e., as the gas is compressed toward close packing.
Step 3: Introduce intermolecular attraction. A molecule deep in the bulk of the gas feels attractive pulls from neighbors on all sides, which average to zero net force. A molecule about to strike a wall, however, feels a net inward pull, because its neighbors lie only on the bulk side. This net inward force decelerates the molecule just before impact, reducing the momentum actually transferred to the wall compared to a non-interacting molecule of the same speed.
Step 4: Scaling of the attractive correction. The strength of this inward pull is proportional to the local number density of neighboring molecules, . The number of molecules experiencing this pull near the wall, per unit time, is also proportional to . The pressure reduction due to attraction therefore scales as the product of these two factors:
where is a positive constant capturing the strength of intermolecular attraction for a given substance. Because this correction subtracts from pressure while the excluded-volume correction adds to it, combining Steps 2 and 4 gives the qualitative structure
Step 5: Interpreting the balance. At low density ( small), and is negligible, so and the gas is essentially ideal. At high density, both corrections grow, but the attractive term grows first as a modest departure (since it enters as density squared but with an initially small coefficient at moderate compression), while the excluded-volume term diverges sharply only as approaches . This is why real gases typically show at moderate pressure (attraction wins) and only at very high pressure (excluded volume wins).
This boxed expression is precisely the van der Waals equation, which the next article develops and parameterizes rigorously; here it is derived only to the level of physical motivation, not curve-fitting precision.
Worked examples
Example 1 — Foundational: comparing real CO₂ to the ideal prediction. Consider 1.00 mol of CO₂ gas confined to L at K. Estimate the ideal pressure, then use the van der Waals constants for CO₂ (, ) to see the size of the real correction. Step 1: Ideal pressure.
Step 2: Real (van der Waals) pressure.
Sanity check: atm is noticeably lower than atm, meaning . Attraction dominates at this moderate density, exactly as expected for CO₂ well below its Boyle temperature at this compression — physically sensible since CO₂ is a polarizable, easily liquefied gas.
Example 2 — Applied: locating the crossover density where corrections cancel. For CO₂ at K, find the molar volume at which the excluded-volume and attractive corrections to pressure are exactly equal in magnitude — i.e., the point where the van der Waals pressure momentarily equals the ideal pressure evaluated at the same , a useful diagnostic for "accidental ideality." We want
Rearranging,
For (a reasonable approximation since L/mol is small), , so
More carefully, substituting on the left gives
which cancels entirely and yields the temperature condition rather than a volume condition:
This is the Boyle temperature. Plugging in CO₂'s constants:
Sanity check: this is far above 300 K, confirming that at 300 K, CO₂ is well below its Boyle temperature, so attraction dominates over the whole accessible density range — consistent with found in Example 1. The literature Boyle temperature of CO₂ is close to 1000–1100 K depending on the equation of state used, so this simple van der Waals estimate is physically reasonable.
Limiting cases & common traps
| Regime | Behavior | Physical reason |
|---|---|---|
| Low pressure, any reasonable | , gas nearly ideal | Molecules far apart; both corrections vanish as |
| Moderate pressure, | Attraction dominates; real below ideal | |
| High pressure, any | Excluded volume dominates; real exceeds ideal | |
| (Boyle temperature) | over an extended pressure range | Attractive and volume corrections cancel to leading order |
| Very low , moderate | Condensation to liquid | Attraction overwhelms thermal kinetic energy; ideal gas law cannot describe this at all |
The chemist behind it
The qualitative story of finite molecular size and intermolecular attraction was made quantitative by the Dutch physicist Johannes Diderik van der Waals. In his 1873 doctoral thesis, he proposed that the ideal gas law fails because gas molecules have volume and attract one another, and he encoded both effects into a single modified equation of state. His equation not only reproduced the qualitative deviations described here but also predicted the existence of a critical point and the liquid-gas transition, unifying the gas and liquid states within one continuous mathematical framework. This insight — that liquids and gases are two faces of the same underlying physics — was decades ahead of a rigorous molecular theory of liquids.
Origins · 1 minJohannes Diderik van der Waals and how this was discovered
Ask the tutor: How do the van der Waals constants and get measured experimentally for a real gas?
Why does the ideal gas law fail at all if it derives from basic kinetic theory
The ideal gas law's kinetic derivation assumes molecules are point particles with no volume and no forces between them except during instantaneous collisions. Real molecules violate both assumptions: they have finite size on the order of a few angstroms, and they attract each other through van der Waals forces at longer range. These assumptions are excellent approximations when gas is dilute, but they break down as density rises, because molecular size and mutual attraction become comparable in effect to the container volume and thermal energy.
Do all real gases deviate from ideality in the same direction
No. The direction of deviation depends on the balance between attraction and excluded volume at the specific temperature and pressure in question. Below a gas's Boyle temperature, attraction typically dominates at moderate pressure, giving . Above the Boyle temperature, the excluded-volume effect dominates across essentially all pressures, giving throughout. Hydrogen and helium, with weak attractive forces and low boiling points, show even near room temperature, unlike CO₂.
How does this topic connect to why gases liquefy
Liquefaction is essentially an extreme manifestation of intermolecular attraction winning decisively over thermal kinetic energy. As temperature drops, molecules move slower and attraction has more relative influence, eventually pulling molecules together into a condensed phase. The ideal gas law, having no attraction term at all, cannot predict condensation under any conditions. This is one of the clearest experimental proofs that intermolecular forces are real and must be included in any accurate equation of state.
What is the compressibility factor and how does it relate to this article
The compressibility factor measures exactly how far a real gas has drifted from ideal behavior at given conditions; means ideal, means real effects are significant. This article explains the two molecular causes behind any deviation of from unity. The next article in this sequence treats quantitatively, showing how it varies with pressure, temperature, and gas identity.
Is the van der Waals equation the final word on real gas behavior
No, it is a valuable first approximation, not an exact law. It captures the qualitative physics of excluded volume and attraction correctly and even predicts a critical point, but it is not numerically precise for all gases and all conditions. More sophisticated equations of state, such as the Redlich-Kwong or Peng-Robinson equations, refine the same two ideas with better empirical accuracy, but the qualitative picture developed here remains the conceptual foundation for all of them.