Van der Waals Calculator Formula
Understand the math behind the van der waals calculator. Each variable explained with a worked example.
Formulas Used
Pressure (Van der Waals)
pressure_vdw = ((n * 0.08206 * temp) / (volume - n * b)) - (a * pow(n, 2) / pow(volume, 2))Pressure (Ideal Gas)
pressure_ideal = (n * 0.08206 * temp) / volumeVariables
| Variable | Description | Default |
|---|---|---|
n | Moles of Gas (n)(mol) | 1 |
temp | Temperature (T)(K) | 300 |
volume | Volume (V)(L) | 1 |
a | Van der Waals a(L²·atm/mol²) | 1.36 |
b | Van der Waals b(L/mol) | 0.0318 |
How It Works
Van der Waals Equation
Formula
[P + a(n/V)²] × [V - nb] = nRT
Solving for P: P = nRT/(V - nb) − a(n/V)²
Where:
The a term reduces pressure (attraction pulls molecules inward). The b term reduces available volume.
Worked Example
1 mol of N₂ (a = 1.36, b = 0.0318) at 300 K in 1 L.
n = 1temp = 300volume = 1a = 1.36b = 0.0318
- 01P = nRT/(V - nb) - a(n/V)²
- 02P = (1)(0.08206)(300)/(1 - 1×0.0318) - 1.36(1/1)²
- 03P = 24.618/0.9682 - 1.36
- 04P = 25.42 - 1.36
- 05P = 24.06 atm
Ready to run the numbers?
Open Van der Waals Calculator