Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

Pressure, van der Waals—bar

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.

Van der Waals Equation Calculator

Amount of gas, in mol: enter 0 or more. Prefilled example: 1.

Temperature, in K: enter 0 or more. Prefilled example: 300.

Volume, in L: enter 0 or more. Prefilled example: 2.

Constant a (L²·bar/mol², from a data table): enter 0 or more. Prefilled example: 3.64.

Constant b (L/mol, from a data table): enter 0 or more. Prefilled example: 0.04267.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Amount of gas, in mol: enter 0 or more.
  2. Temperature, in K: enter 0 or more.
  3. Volume, in L: enter 0 or more.
  4. Constant a (L²·bar/mol², from a data table): enter 0 or more.
  5. Constant b (L/mol, from a data table): enter 0 or more.
  6. 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

  1. P=n×0.08314462618×tv−n×b−a×n2v2
Symbols used in the formula
SymbolMeaningUnit
nAmount of gasmol
tTemperatureK
vVolumeL
aConstant a (from a data table)L²·bar/mol²
bConstant b (from a data table)L/mol
PPressure, van der Waalsbar

Worked example

Amount of gas1 mol
Temperature300 K
Volume2 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_ideal0.9488
Pressure, van der Waals (atm)11.6788
  1. P=1×0.08314462618×3002−1×0.04267−3.64×1222=11.8336

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.

Related calculators