Ideal Gas vs Real Gas Behavior
Assumptions and Limitations of the Ideal Gas Equation
The ideal gas equation rests on two assumptions: gas molecules have zero volume and exert no forces on each other. Neither is true for real gases, and the errors grow as conditions push molecules closer together.
Deviations from ideal behavior become significant when:
- Pressure is high — molecules are forced close enough for repulsive and attractive forces to matter.
- Temperature is low — molecules move slowly enough that attractive forces can "pull" them together.
- The gas is near its critical point — the distinction between liquid and gas phases vanishes, and intermolecular effects are at their strongest.
The type of molecule also matters. Larger molecules (long-chain hydrocarbons), polar molecules (water vapor), and molecules capable of hydrogen bonding (alcohols) all show bigger deviations because their intermolecular interactions are stronger.
Quantifying Deviations: The Compressibility Factor
The compressibility factor gives you a single number that captures how far a gas is from ideal behavior:
(written here on a per-mole basis, so is molar volume)
- : the gas behaves ideally.
- : attractive forces dominate, pulling molecules together and reducing the volume below what the ideal gas law predicts. This is typical at moderate pressures and low temperatures.
- : repulsive forces dominate, meaning the finite size of molecules forces the gas to occupy more volume than predicted. This is typical at very high pressures.
At low pressures and high temperatures, molecules are far apart and moving fast, so and the ideal gas law works well. You can visualize these trends on generalized compressibility charts (Z-charts), which plot against reduced pressure at various reduced temperatures .
Equations of State for Real Gases

Van der Waals Equation of State
The van der Waals equation was the first widely used correction to the ideal gas law. It modifies both the pressure and volume terms:
where is molar volume, and and are substance-specific constants.
The two corrections work as follows:
- Pressure correction : Attractive intermolecular forces reduce the pressure a gas exerts on its container walls. The parameter reflects the strength of those attractions. Adding to the measured pressure recovers what the pressure would be without attractions.
- Volume correction : Real molecules occupy space. The parameter approximates the volume excluded by the molecules themselves, so is the "free" volume available for molecular motion.
The van der Waals equation is a good conceptual model, and it qualitatively predicts liquid-vapor phase transitions. However, its quantitative accuracy is limited, especially for polar gases and near the critical point, because the term oversimplifies how attractive forces depend on density and temperature.
Redlich-Kwong Equation of State
The Redlich-Kwong (RK) equation improves on van der Waals by making the attractive term temperature-dependent:
The key improvement is the factor in the denominator of the attraction term. Attractive forces effectively weaken at higher temperatures (molecules have enough kinetic energy to overcome them), and the RK equation captures this. The denominator also provides a better description of how the attractive correction varies with volume compared to the simpler in van der Waals.
Parameters and are determined from the critical temperature and critical pressure of the substance:
The RK equation gives noticeably better results than van der Waals for non-polar and slightly polar gases across a wider range of pressures.
Peng-Robinson Equation of State
The Peng-Robinson (PR) equation further refines the attractive term and is one of the most widely used cubic equations of state in engineering practice:
The function depends on temperature and the acentric factor , which characterizes how non-spherical a molecule's intermolecular force field is. A common form is:
where .
The PR equation's modified denominator improves liquid density predictions compared to RK, which is why it's the standard in the oil and gas industry. It performs especially well for hydrocarbons and other non-polar gases near the critical point and at high pressures.
Both the RK and PR equations require only , , and as inputs. These values are tabulated for hundreds of substances.

Choosing the Right Equation of State
The right equation depends on three things:
- The gas itself — polarity, molecular size, and strength of intermolecular forces.
- Operating conditions — temperature and pressure range.
- Required accuracy — a quick estimate vs. a rigorous process simulation.
Here's a practical breakdown:
| Equation | Best For | Limitations |
|---|---|---|
| Van der Waals | Conceptual understanding; simple non-polar gases at low-to-moderate | Poor quantitative accuracy near the critical point and for polar gases |
| Redlich-Kwong | Non-polar and slightly polar gases (hydrocarbons, ) at moderate-to-high | Less accurate for polar gases and liquid-phase densities |
| Peng-Robinson | Hydrocarbons and non-polar gases, especially near the critical point and at high | Still limited for highly polar or associating species |
| For highly polar gases (ammonia, water), complex mixtures (natural gas with many components), or extreme conditions (supercritical fluids), you may need more advanced models: |
- Soave-Redlich-Kwong (SRK): Replaces the dependence in RK with an function similar to PR. Widely used alongside PR in process simulators.
- Benedict-Webb-Rubin (BWR): A multi-parameter equation with eight constants per substance. More accurate over wide ranges but computationally heavier and requires more data.
- Virial equation: Derived from statistical mechanics, expressed as a power series in (or ). Truncated to two or three terms, it's simple and theoretically grounded, but only reliable at low-to-moderate pressures.
- Lee-Kesler correlation: A generalized corresponding-states method that uses , , and to estimate and other properties without solving a cubic. Convenient for quick calculations.
When choosing, also consider computational cost (cubic equations are fast; multi-parameter equations are slower), availability of parameters for your substance, and compatibility with the rest of your thermodynamic model (mixing rules for mixtures, activity coefficient models for liquid phases, etc.).
Thermodynamic Properties from Equations of State
Calculating Key Properties
Once you have an equation of state that accurately represents -- behavior, you can derive a wide range of thermodynamic properties:
- Density : Solve the equation of state for molar volume at given and , then (where is molar mass).
- Compressibility factor: , calculated directly from the solved molar volume.
- Fugacity : The "effective pressure" of a real gas that replaces in equilibrium calculations. It's related to pressure through the fugacity coefficient :
The fugacity coefficient is obtained by integrating the equation of state. For a cubic equation of state, can be expressed analytically in terms of , , , and .
- Enthalpy, entropy, and Gibbs free energy: These require departure functions (see below).
Departure Functions and Residual Properties
You can't measure absolute values of or directly, but you can calculate how much a real gas property departs from the ideal gas value at the same conditions. That's what departure functions do.
A departure function is defined as:
where is any molar property (, , , etc.), and the superscript denotes the ideal gas value. The departure is computed from the equation of state using integrals involving -- derivatives. For example, the enthalpy departure at constant is:
Departure function vs. residual property: A departure function compares real and ideal gas properties at the same and . A residual property compares them at the same and . Both capture non-ideal behavior; the choice depends on whether your equation of state is more naturally expressed in terms of or . Most cubic equations of state are explicit in , so departure functions at constant and are more commonly used.
The practical workflow for calculating a real gas property change between two states is:
- Calculate the departure function at state 1 to "convert" from real gas to ideal gas.
- Calculate the ideal gas property change from state 1 to state 2 (using heat capacity data, for instance).
- Calculate the departure function at state 2 to "convert" back from ideal gas to real gas.
This three-step path works because ideal gas property changes are straightforward to compute, and the departure functions handle all the non-ideal corrections.
The Joule-Thomson coefficient is another property accessible from an equation of state. It describes the temperature change during a throttling (isenthalpic) process:
For an ideal gas, (no temperature change on throttling). For real gases, can be positive (cooling) or negative (heating), and it's calculated from the equation of state using:
This is critical for designing expansion valves in refrigeration and natural gas processing.
Why This Matters in Practice
The deviations from ideal gas behavior are largest at high pressures, low temperatures, and near the critical point. In engineering applications like natural gas processing, refrigeration system design, and supercritical fluid extraction, using the ideal gas law can produce errors of 20% or more in property calculations. Choosing an appropriate equation of state and correctly applying departure functions is what separates a rough estimate from a reliable design calculation.