Van der Waals Equation Calculator (Real Gas)

Real gases deviate from the ideal gas law at high pressure and low temperature, because molecules attract each other and take up space. The van der Waals equation corrects for both with two constants, a and b. Choose a gas or enter its constants to find the pressure, volume or temperature, and compare with the ideal-gas answer.

Inputs

Results

Result
22.4 bar (22.11 atm)
Pressure (van der Waals)
2,240
Volume (van der Waals)
1
Temperature (van der Waals)
26.85
Ideal gas law value of the same quantity
24.94 bar
Compressibility factor Z = PV/(nRT)
0.89813

    RefCHM-GAS-004
    Method(P + an²/V²)(V − nb) = nRT
    UnitsSI
    Date2026-11-24

    Working

    Calculated in SI base units; inputs are converted from the units you choose.

    1. Van der Waals pressureP = nRT/(V − nb) − an²/V²P = 2,494/(0.001 − 4.286e-5) − 0.3658 × 1²/0.001² = 22.4 bar
    2. Ideal gas for comparisonP = nRT/V24.94 bar
    3. Compressibility factorZ = PV/(nRT)Z = 0.8981: attractions dominate (gas is more compressible than ideal)

    What a and b mean

    The constant b is the volume excluded by the molecules themselves, so the free volume is V − nb. The constant a measures attraction: molecules pulled back by their neighbours hit the walls less hard, lowering the pressure by an²/V². Easily liquefied gases with strong attractions, such as ammonia and water, have large a values. Below the critical temperature the equation can give three volumes for one pressure, corresponding to liquid, gas and an unstable middle state.

    Assumptions and limits

    • Van der Waals constants from the CRC Handbook (derived from critical constants), so accuracy is moderate, especially near condensation.
    • Single pure gas.

    References

    • Haynes, W. M. (ed.), CRC Handbook of Chemistry and Physics, CRC Press, table of van der Waals constants for gases (values as reproduced in LibreTexts Chemistry reference table A8).
    • Atkins, P. and de Paula, J., Atkins’ Physical Chemistry, 11th ed., Oxford University Press, 2018, topic on real gases.

    Questions

    What pressure does 1 mol of CO₂ exert in 1.000 L at 300 K?
    22.40 bar by van der Waals, against 24.94 bar for an ideal gas (Z = 0.8981).
    What volume does 1 mol of CO₂ occupy at 20 bar and 300 K?
    1.135 L, compared with 1.247 L for an ideal gas.

    This calculator is a design aid. Check results against the governing code or standard and have critical work verified by a qualified engineer. Read the disclaimer.