Logo

MonoCalc

/

Van der Waals Equation Calculator

Chemistry

Gas and van der Waals constants

a

3.6566 bar·L²·mol⁻²

b

0.042846 L·mol⁻¹

Tc

304.13 K

Pc

73.773 bar

Zc (exp.)

0.274

Molar mass

44.0095 g/mol

a and b are derived from the gas's critical point, a = 27R²Tc²/(64Pc) and b = RTc/(8Pc), so the model's critical point matches the real one.

Solve for

Worked examples

Pressure (van der Waals)
22.403 bar
Vapour
22.11 atm · 2,240.3 kPa · 2.2403 MPa · 324.93 psi
Ideal gas answer (PV = nRT)
24.943 bar
van der Waals differs by -10.18%
Compressibility factor Z
0.89817
Ideal gas: Z = 1

Z < 1: attraction dominates; the gas is more compressible than an ideal gas.

P–V isotherm diagram

The gap between the solid van der Waals curve and the dashed ideal curve is the non-ideality. Below Tc the loop is replaced by the Maxwell tie-line; the two shaded areas are equal.

The slider spans 0.5 Tc to 3 Tc and updates the temperature input.

Where the pressure comes from

Molecular volume pushes pressure up through RT/(Vm − b); attraction pulls it down by a/Vm². Their sum is the van der Waals pressure, compared with the ideal RT/Vm.

Derived properties for these a and b

Critical temperature Tc = 8a/(27Rb)304.13 K (304.13 K)
Critical pressure Pc = a/(27b²)73.773 bar
Critical molar volume Vc = 3b0.12854 L/mol
Critical compressibility Zc0.375 (vdW) vs 0.274 experimental
Boyle temperature T_B = a/(Rb)1,026.4 K
JT inversion temperature T_inv = 2a/(Rb)2,052.9 K (low-pressure limit)
Second virial coefficient B(T) = b − a/(RT)-0.10375 L/mol — attraction wins at low pressure
Reduced variablesTr = 0.9864, Pr = 0.3037, Vr = 7.78
Reduced equation (Pr + 3/Vr²)(3Vr − 1) = 8Tr7.8914 = 7.8914
Saturation pressure (Maxwell)69.831 bar

R = 8.314462618 J·K⁻¹·mol⁻¹. The vdW model always predicts Zc = 3/8; real gases sit near 0.23–0.30, one of its known limits.

Step-by-step working

  1. Known values: V = 1 L, T = 300 K, n = 1 mol
  2. Constants: a = 3.65656 bar·L²·mol⁻², b = 0.0428456 L·mol⁻¹, R = 0.0831446 L·bar·K⁻¹·mol⁻¹
  3. Excluded volume: n·b = 1 × 0.0428456 = 0.0428456 L, so V − n·b = 0.957154 L
  4. Repulsion term: nRT/(V − nb) = (1 × 0.0831446 × 300) / 0.957154 = 26.0599 bar
  5. Attraction term: a·n²/V² = 3.65656 × 1² / 1² = 3.65656 bar
  6. P = 26.0599 − 3.65656 = 22.4034 bar
  7. Compressibility: Z = P·Vm/(R·T) = 22.4034 × 1 / (0.0831446 × 300) = 0.89817

About This Tool

Van der Waals Equation Calculator – Real Gas Behaviour Explained

The ideal gas law treats molecules as points that never touch each other. Real molecules take up space and attract one another, and the van der Waals equation was the first equation of state to account for both. This real gas calculator solves it for pressure, volume, temperature or amount, shows how far the answer is from the ideal value, and draws the P–V isotherm. The famous van der Waals loop and Maxwell's equal-area construction both appear on that diagram.

The equation and the meaning of a and b

In total form the equation reads (P + a·n²/V²)(V − n·b) = nRT. Per mole it becomes P = RT/(Vm − b) − a/Vm². The constant b is the excluded volume: the space one mole of molecules fills by itself, so only Vm − b is free to move in. That raises the pressure above the ideal value. The constant a measures intermolecular attraction. Molecules near a wall are pulled back by their neighbours and hit it less hard, which lowers the pressure by a/Vm². Setting a = b = 0 gives back PV = nRT exactly.

Pressure and temperature follow directly from the formula. Volume and amount don't, because the molar form is a cubic: P·Vm³ − (P·b + RT)·Vm² + a·Vm − a·b = 0. The calculator finds every real root with Vm > b.

Reading the compressibility factor Z

The compressibility factor Z = P·Vm/(RT) is 1 for an ideal gas. When Z < 1, attraction wins: the gas is easier to squeeze than an ideal one. Carbon dioxide near room temperature is a typical example. When Z > 1, the molecules' own volume wins, as it does for hydrogen and helium or for any gas at very high pressure. The tool's "where the pressure comes from" bar splits the result into the repulsive and attractive terms, so you can see which correction drives the deviation.

The van der Waals loop and Maxwell's construction

Above the critical temperature each isotherm falls smoothly as volume grows. Below Tc it develops an S-shaped loop, and the cubic can have three real roots. The smallest is liquid-like and the largest vapour-like. The middle root lies where pressure would rise with volume, which is mechanically unstable and never seen in nature.

Maxwell's equal-area construction replaces the loop with a horizontal tie-line at the saturation pressure Psat. The line sits where the area of the loop above it equals the area below it. Above Psat the liquid root is the stable phase, and below it the vapour root is. Between Psat and the spinodal points the other outer root can still exist as a metastable superheated liquid or supercooled vapour. Drag the temperature slider through Tc to watch the loop appear and vanish.

Critical constants, corresponding states and the Boyle temperature

At the critical point the isotherm has a flat inflection. That fixes Tc = 8a/(27Rb), Pc = a/(27b²) and Vc = 3b. Turned around, it gives a = 27R²Tc²/(64Pc) and b = RTc/(8Pc), which is how the tool builds its gas table. In reduced variables (Tr = T/Tc, Pr = P/Pc, Vr = Vm/Vc) every gas obeys the same equation, (Pr + 3/Vr²)(3Vr − 1) = 8Tr. This is the law of corresponding states. At the Boyle temperature T_B = a/(Rb), attraction and repulsion cancel at low pressure, and the gas looks ideal over a wide range. Nitrogen at room temperature is not far below its Boyle temperature, which is why it behaves so ideally.

Where the model fails

The van der Waals equation is a teaching model. It predicts a critical compressibility of Zc = 3/8 = 0.375 for every gas, while real values sit between about 0.23 and 0.30. It also overestimates vapour pressures. For CO₂ at 280 K, the Maxwell construction gives about 52.6 bar, but the measured value is about 41.6 bar. Liquid densities are poor too.

Need engineering accuracy?
Use the Peng–Robinson or Soave–Redlich–Kwong equations of state, or reference data such as steam tables. Those cubic equations keep the same structure but fit real vapour pressures much better.

Even so, the van der Waals equation is the clearest way to see why gases deviate from ideality. It explains why they liquefy below a critical temperature, and how a single pair of constants captures both effects.

Frequently Asked Questions

Is the Van der Waals Equation Calculator free?

Yes, Van der Waals Equation Calculator is totally free :)

Can I use the Van der Waals Equation Calculator offline?

Yes, you can install the webapp as PWA.

Is it safe to use Van der Waals Equation Calculator?

Yes, any data related to Van der Waals Equation Calculator only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.

How does this van der Waals calculator work?

It solves (P + a·n²/V²)(V − n·b) = nRT for whichever of pressure, volume, temperature or amount you leave unknown. Pressure and temperature have explicit formulas; volume and amount need the cubic P·Vm³ − (P·b + RT)·Vm² + a·Vm − a·b = 0, which the tool solves for every physical root and then compares with the ideal gas answer.

What do the constants a and b mean, and what units do they use?

The constant a measures how strongly molecules attract each other and lowers the pressure by a·n²/V²; b is the volume one mole of molecules occupies themselves. Tables usually give a in bar·L²·mol⁻² and b in L·mol⁻¹; the tool also accepts atm·L²·mol⁻², kPa·L²·mol⁻², Pa·m⁶·mol⁻², m³·mol⁻¹ and cm³·mol⁻¹.

Why can the van der Waals equation give three volumes?

Below the critical temperature the equation is a cubic in molar volume with up to three real roots. The smallest is liquid-like, the largest vapour-like, and the middle one sits where pressure would rise as volume grows, which is mechanically unstable and never observed.

What is the Maxwell equal-area construction?

It replaces the unphysical S-shaped loop of a sub-critical isotherm with a horizontal line at the saturation pressure, placed so the area of the loop above the line equals the area below it. That pressure is the model's vapour pressure: above it the liquid root is stable, below it the vapour root is.

How do I get a and b from the critical temperature and pressure?

Use a = 27·R²·Tc²/(64·Pc) and b = R·Tc/(8·Pc). These follow from requiring the critical isotherm to have an inflection point, and they are how the standard tables of van der Waals constants are produced; choose Custom and 'From Tc & Pc' to do this in the tool.

How accurate is the van der Waals equation?

It is a qualitative model: it always predicts a critical compressibility of 3/8 = 0.375, while real gases sit near 0.23–0.30, and it overestimates vapour pressures. Expect errors of a few percent at moderate pressures and 10–50% near the critical point or for liquids; use Peng–Robinson or Redlich–Kwong for engineering work.