🔬
🔬 Science & engineering

Van der Waals Real Gas Calculator

Results update as you type.

Your numbers

Understanding the van der Waals real gas calculator — concept and principle

The van der Waals equation corrects the ideal gas law for two facts that the ideal model ignores: molecules take up space, and they attract each other. Enter the amount of gas, the volume, the temperature and the gas's two van der Waals constants, and the calculator returns the predicted pressure next to the ideal-gas pressure. The defaults are the tabulated constants for carbon dioxide.

Van der Waals corrections for carbon dioxideIdeal 24.94 bar rises to 26.06 bar for molecular volume, then drops by 3.64 bar for attraction to 22.42 bar.Real CO₂: two corrections to idealIdeal gas: nRT / V24.94 barMolecules take up room (b)26.06 bar (+1.11)Molecules pull each other (a)22.42 bar (−3.64)22.42 bar, 10% below ideal1 mol CO₂ in 1 L at 300 K
Molecular size pushes pressure up, attraction pulls it down more: 22.42 bar instead of 24.94.

How it is calculated

(P + a n² / V²)(V − n b) = n R T, solved for pressure:

P = n R T / (V − n b) − a n² / V²

The principle

Johannes Diderik van der Waals proposed the equation in 1873. The term V − nb replaces the container volume with the free volume that molecules can actually move in, because each mole of molecules blocks roughly b litres; this raises the pressure. The term a n²/V² accounts for attraction: a molecule about to hit the wall is pulled back by its neighbours, so it strikes less hard. The pull depends on how many neighbours there are and how many molecules are hitting the wall, both proportional to n/V, which is why the correction scales with (n/V)².

Worked example

  1. Inputs: n = 1 mol, V = 1 L, T = 300 K, a = 3.640 L²·bar/mol², b = 0.04267 L/mol (CO₂).
  2. Ideal pressure: 1 × 0.0831446 × 300 / 1 = 24.94338 bar.
  3. Repulsion term: 24.94338 / (1 − 0.04267) = 24.94338 / 0.95733 = 26.05515 bar.
  4. Attraction term: 3.640 × 1² / 1² = 3.640 bar.
  5. Van der Waals pressure: 26.05515 − 3.640 = 22.4151534 bar.
How Pressure, van der Waals (bar) changes with Volume (L)How Pressure, van der Waals changes with…0204060800.250.50.7511.251.52Example: 22.4151534Volume (L)
Each point is the calculator re-run with only “Volume (L)” changed; the gold point is the default example. Change the inputs above and this chart follows your numbers.
Volume (L)Pressure, van der Waals (bar)
0.2562.06762552
0.539.9813159
0.7528.79302303
122.4151534
1.2518.33035213
1.515.4980299
211.83357415

How to read the result

The ratio of the two pressures is the compressibility factor Z = P_real / P_ideal, here about 0.899. Z below 1 means attraction dominates and the gas is easier to compress than an ideal gas; Z above 1 means the excluded volume dominates, which happens at very high densities. A difference of only a percent or two means the ideal gas law is good enough. Here the deviation is about 10%.

Common mistakes

Keep in mind: The van der Waals equation is a simple two-parameter model. It is unreliable at high pressure, near the critical point and inside the liquid-vapour region. For engineering design use measured property data or a modern equation of state.

Frequently asked questions

Where do I find a and b for other gases?

They are tabulated in handbooks such as the CRC Handbook of Chemistry and Physics, and can also be estimated from a gas's critical temperature and pressure.

Why is the real pressure lower than the ideal one here?

At this density and temperature the attraction term (3.64 bar) outweighs the extra pressure from excluded volume (about 1.11 bar).

Sources: P. Atkins and J. de Paula, Atkins' Physical Chemistry, Oxford University Press · CRC Handbook of Chemistry and Physics, "Van der Waals Constants for Gases", CRC Press

Checked 8 Nov 2026. Standard textbook formulas in SI units, computed in your browser. For learning and estimates — real designs must follow your local codes and be checked by a qualified engineer.

🔬 All science & engineering tools →🌍 Calculators by country →