Real Gas Behavior
Real gases don't always follow the ideal gas law. As pressure rises and temperature drops, intermolecular forces and the physical size of molecules start to matter, causing measurable deviations from ideal predictions. To handle this, we use more sophisticated equations of state like the van der Waals equation and the virial equation.
Ideal vs. Real Gas Behavior
The ideal gas law treats gas molecules as point particles with no intermolecular forces:
This works well at low pressures and high temperatures, where molecules are far apart and moving fast enough that attractions between them are negligible. Helium near room temperature and atmospheric pressure behaves almost ideally.
Real gas behavior shows up when those assumptions break down. At high pressures, molecules are packed closer together, so their finite volume matters and attractive forces become significant. At low temperatures, molecules move more slowly and those attractive forces have more time to act.
A useful rule of thumb: gases tend to behave ideally below about 1 atm and above roughly 300 K. Deviations become significant above ~10 atm or below ~100 K, though the exact thresholds depend on the gas.
Intermolecular Forces in Gases
Three main types of intermolecular forces affect gas behavior:
- London dispersion forces are present in all molecules but are the only intermolecular force in nonpolar gases like . They arise from temporary fluctuations in electron distribution.
- Dipole-dipole interactions occur between polar molecules like , where permanent partial charges attract neighboring molecules.
- Hydrogen bonding is a particularly strong type of dipole-dipole interaction found in molecules like , where hydrogen is bonded to a highly electronegative atom (O, N, or F).
The strength of these forces depends on molecular size (larger electron clouds are more polarizable, giving stronger dispersion forces) and polarity (polar molecules experience additional attractive forces beyond dispersion).
These forces affect real gas behavior in two key ways:
- Attractive forces pull molecules toward each other, reducing the pressure the gas exerts on container walls compared to ideal predictions.
- Finite molecular volume means the actual space available for molecular motion is less than the total container volume.
At sufficiently high pressures and low temperatures, these effects can cause a gas to condense into a liquid. Propane stored in a tank at moderate pressure is a familiar example.

Equations of State for Real Gases
Van der Waals Equation of State
The van der Waals equation modifies the ideal gas law with two correction terms:
Here's what each correction does:
- The term adds to the measured pressure to account for intermolecular attractions. Attractive forces reduce the force of molecular impacts on the container walls, so the "effective" pressure driving the gas behavior is higher than what you measure. The parameter reflects the strength of those attractions.
- The term subtracts from the total volume to account for the finite size of molecules. The parameter represents the volume excluded per mole of gas because molecules can't overlap.
Both and are experimentally determined constants specific to each gas. For example, has and . A gas with stronger intermolecular forces will have a larger value; a gas with larger molecules will have a larger value.
The van der Waals equation is a significant improvement over the ideal gas law because it can predict the existence of a critical point (the temperature and pressure above which distinct liquid and gas phases no longer exist) and approximate liquid-vapor phase transitions. That said, it's still a relatively simple model and loses accuracy very close to the critical point.
Virial Equation of State
The virial equation takes a different approach. Instead of adding correction terms to and directly, it expresses the compressibility factor as a power series. The compressibility factor is defined as:
For an ideal gas, exactly. Deviations from 1 tell you how "non-ideal" the gas is. If , attractive forces dominate (the gas is more compressible than ideal). If , repulsive forces and molecular volume dominate.
The virial equation can be written in terms of pressure:
or in terms of molar density :
The virial coefficients , , etc., are temperature-dependent and specific to each gas. Each coefficient captures a different level of molecular interaction:
- (second virial coefficient) accounts for pairwise interactions between two molecules.
- (third virial coefficient) accounts for three-body interactions.
For nitrogen at 300 K, . The negative sign indicates that attractive forces dominate at that temperature.
These coefficients can be determined experimentally from data or calculated theoretically from intermolecular potential models. In practice, you truncate the series at the level of accuracy you need. For moderate pressures, keeping just the term often gives good results. Higher-order terms become necessary at higher pressures where multi-body interactions matter.
The virial equation has a strong theoretical foundation because each coefficient connects directly to a specific type of molecular interaction. The van der Waals equation is more intuitive and easier to use, but the virial equation can be made systematically more accurate by including additional terms.