Van der Waals Equation Calculator
Test cases replayed : 2 of 2 match · Methodology · No outside source listed
Enter the amount of gas, its temperature and volume, and the gas's van der Waals constants a and b to get the real-gas pressure.
Result
Pressure, van der Waalsbar
Pressure, ideal gas law (bar)
- Compressibility factor Z = P / P_ideal
- Pressure, van der Waals (atm)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Amount of gas, in mol: enter 0 or more.
- Temperature, in K: enter 0 or more.
- Volume, in L: enter 0 or more.
- Constant a (L²·bar/mol², from a data table): enter 0 or more.
- Constant b (L/mol, from a data table): enter 0 or more.
- Read the result: Pressure, van der Waals; the panel also shows Pressure, ideal gas law (bar), Compressibility factor Z = P / P_ideal and Pressure, van der Waals (atm).
How this calculator works
Van der Waals equation (1873): (P + a n² / V²)(V − n b) = n R T, so P = n R T / (V − n b) − a n² / V². The term a corrects for attraction between molecules and b for the volume the molecules themselves occupy.
R = 8.314462618 J/(mol·K) = 0.08314462618 L·bar/(mol·K) (NIST CODATA, physics.nist.gov/cuu, read October 27, 2026). 1 atm = 101,325 Pa = 1.01325 bar (NIST, standard atmosphere, read October 27, 2026).
The a and b constants depend on the gas; take them from a chemistry data table in the same units (L²·bar/mol² and L/mol).
The formula
| Symbol | Meaning | Unit |
|---|---|---|
| Amount of gas | mol | |
| Temperature | K | |
| Volume | L | |
| Constant a (from a data table) | L²·bar/mol² | |
| Constant b (from a data table) | L/mol | |
| Pressure, van der Waals | bar |
Worked example
| Amount of gas | 1 mol |
|---|---|
| Temperature | 300 K |
| Volume | 2 L |
| Constant a (L²·bar/mol², from a data table) | 3.64 |
| Constant b (L/mol, from a data table) | 0.04267 |
| Pressure, ideal gas law (bar) | 12.4717 |
|---|---|
| Compressibility factor Z = P / P_ideal | 0.9488 |
| Pressure, van der Waals (atm) | 11.6788 |
Pressure, van der Waals 11.8336 bar
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
When does the van der Waals equation matter?
At high pressure or low temperature, when molecules are close together; at room conditions and low pressure it gives nearly the ideal-gas result.
What does Z below 1 mean?
The gas is easier to compress than an ideal gas because attraction between molecules dominates.