Expansion Work Calculator – W = PΔV & First Law ΔU = Q − W

Use this free Expansion Work Calculator to find the boundary work done when a gas expands (or is compressed) at constant pressure: W = PΔV. Add the heat supplied Q and it also applies the first law, ΔU = Q − W, to give the change in internal energy.

V₁ V₂ constant P — piston pushes out, W = P(V₂ − V₁)

Formula

Work at constant pressure: W = PΔV = P(V₂ − V₁) — with P in pascals and V in cubic metres this gives joules directly (this calculator converts kPa and litres for you: 1 kPa × 1 L = 1 J). Then the first law of thermodynamics: ΔU = Q − W, where Q is the heat flowing into the gas and W is the work done by the gas.

How to use

Worked example

A gas at a constant pressure of 200 kPa expands from 20 L to 50 L while absorbing Q = 10,000 J of heat:
W = PΔV = 200,000 × (0.050 − 0.020) = 6,000 J done by the gas
ΔU = Q − W = 10,000 − 6,000 = 4,000 J — the gas keeps 4,000 J as extra internal energy (it gets hotter), and spends the rest pushing the piston.

FAQ

Why is 1 kPa × 1 litre exactly 1 joule?
1 kPa = 1,000 Pa and 1 L = 0.001 m³, so PΔV = 1,000 × 0.001 = 1 J. It is a handy shortcut for piston problems.

What if the gas is compressed instead?
Then V₂ < V₁ and W comes out negative: work is done on the gas. With the same heat input, ΔU = Q − W grows, because both the heat and the compression work add energy.

When can I NOT use W = PΔV?
Only when the pressure stays constant during the change. If the pressure varies (for example in an isothermal or adiabatic change), the work must be found from the area under the P–V curve instead.