Solve the van der Waals equation for pressure, molar volume or temperature, with a and b constants for common gases like CO2, N2 and water vapor.

Typical constants in atmยทLยฒ/molยฒ and L/mol (CRC Handbook). Pick Custom, or edit a and b, to use the values from your problem.

Gas constant
Universal molar R is supplied; change it only for a deliberate consistency check.


Related Calculators

Calculator Functions

FunctionWhat it doesWhat it requires
PressureFinds the pressure of a real gas from its molar volume and temperatureRequires the molar volume, the temperature and the gas, or custom a and b
Molar volume (all roots)Finds every molar volume that satisfies the equation at a pressure and temperatureRequires the absolute pressure, the temperature and the gas, or custom a and b
TemperatureFinds the temperature of a real gas from its pressure and molar volumeRequires the absolute pressure, the molar volume and the gas, or custom a and b
Attraction parameter aFinds the constant a that fits a measured stateRequires the absolute pressure, the molar volume, the temperature and b
Co-volume parameter bFinds the constant b that fits a measured stateRequires the absolute pressure, the molar volume, the temperature and a
Gas constant (consistency check)Finds the gas constant implied by a full set of values, to check them against each otherRequires the absolute pressure, the molar volume, the temperature and the gas, or custom a and b

Molar volume is the total volume divided by the number of moles, so 2 mol in 10 L is 5 L/mol. Pressure is absolute and is entered in atm, Pa, bar or psi, temperature in K, ยฐC or ยฐF, and molar volume in L/mol, mยณ/mol, cmยณ/mol or ftยณ/mol. Choosing a gas fills a and b, and both can be overwritten. An optional setting replaces the gas constant, which is otherwise 8.314462618 J/(molยทK) [3].

Van Der Waals Equation Formulas

(P + a รท vยฒ) ร— (v โˆ’ b) =
R ร— T [2]
PAbsolute pressure
vMolar volume, V รท n
TAbsolute temperature (K)
aAttraction parameter, which lowers the pressure because molecules pull on each other
bCo-volume parameter, the volume the molecules themselves take up per mole
RMolar gas constant

Pressure

P = R ร— T รท (v โˆ’ b) โˆ’ a รท vยฒ

One mole of carbon dioxide in 0.200 L at 0 ยฐC has v = 0.200 L/mol, a = 3.592 atmยทLยฒ/molยฒ and b = 0.04267 L/mol. With R = 0.082057 Lยทatm/(molยทK), P = 0.082057 ร— 273.15 รท (0.200 โˆ’ 0.04267) โˆ’ 3.592 รท 0.200ยฒ = 142.46 โˆ’ 89.80 = 52.66 atm. The ideal gas law gives 112 atm for the same state [2]. The molar volume must be larger than b.

Gasa (atmยทLยฒ/molยฒ)b (L/mol)
Carbon dioxide COโ‚‚3.5920.04267
Nitrogen Nโ‚‚1.3520.0387
Oxygen Oโ‚‚1.3640.03186
Hydrogen Hโ‚‚0.24440.02661
Helium He0.034150.0238
Argon Ar1.3370.03201
Methane CHโ‚„2.2530.04278
Ammonia NHโ‚ƒ4.1700.0371
Water vapor Hโ‚‚O5.4640.03049

These are the values the gas list fills in. Published tables of a and b differ by a few percent from one another, because the constants are fitted to measurements [2]. A value given in a problem or a course table should replace them.

Molar volume (all roots)

vยณ โˆ’ (b + R ร— T รท P) ร— vยฒ +
(a รท P) ร— v โˆ’ a ร— b รท P = 0

Solving for molar volume turns the equation into a cubic, which has one or three real roots. The calculator lists every root larger than b, smallest first. Carbon dioxide at 1 atm and 300 K has a single root of 24.51 L/mol, close to the ideal gas value of 24.62 L/mol. Below the critical temperature there can be three roots: the smallest is liquid-like, the largest is gas-like and the middle one cannot exist as a stable state. Each root is labeled by the slope of pressure against volume there, and a rising slope marks the unstable one.

Temperature

T = (P + a รท vยฒ) ร— (v โˆ’ b) รท R

Carbon dioxide at 10 atm and 2 L/mol is at (10 + 3.592 รท 2ยฒ) ร— (2 โˆ’ 0.04267) รท 0.082057 = 259.95 K.

Attraction parameter a

a = vยฒ ร— (R ร— T รท (v โˆ’ b) โˆ’ P)

A gas measured at 10 atm, 2 L/mol and 300 K with b = 0.04267 L/mol fits a = 2ยฒ ร— (0.082057 ร— 300 รท 1.95733 โˆ’ 10) = 10.308 atmยทLยฒ/molยฒ. A negative result is rejected.

Co-volume parameter b

b = v โˆ’ R ร— T รท (P + a รท vยฒ)

A gas measured at 12 atm, 2 L/mol and 300 K with a = 3.592 atmยทLยฒ/molยฒ fits b = 2 โˆ’ 0.082057 ร— 300 รท (12 + 0.898) = 0.0914 L/mol. A negative result is rejected.

Gas constant (consistency check)

R = (P + a รท vยฒ) ร— (v โˆ’ b) รท T

This is a check on a set of numbers, not a way to measure R. If the result is far from 8.314 J/(molยทK), one of the inputs or its unit is off. Carbon dioxide at 10 atm, 2 L/mol and 300 K gives 7.205 J/(molยทK), so that state does not satisfy the equation; the temperature that does is 259.95 K.

Limits of This Estimate

  • The equation is an approximation. Treating a and b as constants was never expected to reproduce measurements exactly, and b in particular shrinks as the gas is compressed [1].
  • It describes one pure substance. Mixtures need their own mixing rules for a and b.
  • The roots are solutions of the equation, not a phase calculation. Which of them is the stable state, and the pressure at which liquid and vapor coexist, are not worked out.
  • The listed gas constants are typical values, and tables differ. These estimates are based on the best available data and estimations.

Sources

  1. J. D. van der Waals, Nobel Lecture, The Equation of State for Gases and Liquids (1910): what a and b stand for, and the limits of treating them as constants
  2. Purdue University, Department of Chemistry, Deviations from the Ideal Gas Law: the equation's two correction terms, a table of constants and a carbon dioxide example
  3. NIST, CODATA Value: molar gas constant: value of R