First Law of Thermodynamics Calculator – ΔU = Q − W Solver

Use this free First Law of Thermodynamics Calculator to solve ΔU = Q − W for any one of the three quantities. Enter the two you know — heat Q, work W, or the change in internal energy ΔU — and this calculator finds the third.

system ΔU Q in (+) W out (+) ΔU = Q − W : energy in − energy out = energy stored

Formula

First law of thermodynamics: ΔU = Q − W. It is simply energy conservation for a thermodynamic system.
Sign convention used here (the physics convention): Q is positive when heat flows into the system and negative when heat leaves; W is positive when the system does work on its surroundings (expansion) and negative when work is done on the system (compression). ΔU is the change in the system's internal energy.

How to use

Worked example

A gas absorbs Q = 500 J of heat and does W = 200 J of work pushing a piston:
ΔU = Q − W = 500 − 200 = 300 J
Of the 500 J that flowed in, 200 J left again as work — so the gas's internal energy (and temperature) rises by the 300 J that stayed behind.

FAQ

Why do some books write ΔU = Q + W?
That is the chemistry sign convention, where W means work done on the system. Both forms say the same physics — just check which way W is defined. This calculator uses the physics convention, W = work done by the system.

What does a negative ΔU mean?
The system lost internal energy — it gave out more energy (as work and/or heat) than it took in, so for a gas its temperature falls.

What is ΔU for a complete cycle?
Zero. Internal energy is a state function, so after any full cycle the system returns to its starting state and ΔU = 0 — which is why for an engine cycle Qnet = Wnet.