Skip to content
LoveToCalc

Definition — what does that mean?

First law of thermodynamics

Energy does not vanish. What heat adds and work takes out is exactly what the internal energy changes by.

In Swedish: Termodynamikens första huvudsats

First law of thermodynamics

The relation

ΔU=Q−W

Energy conservation for a system that exchanges both heat and work with its surroundings: what its internal energy gains is what heat put in, minus what work took out.

A gas in a box. An arrow carries heat Q into it from the left and another carries work W out to the right; what is left over stays inside as the change in internal energy ΔU.
Solve for

ΔU=300J

ΔU equals 500 minus 200, equals 300 J

Working2 steps

Practice questions

You are given

  • ΔU=310J
  • W=260J

The formula

Q is the heat added to the system, W the work the system does on its surroundings and ΔU the change in the system’s internal energy. All in joules.

Holds for a closed system, with no matter crossing its boundary, using the signs in the table below.

A gas takes in 500 J of heat and pushes a piston out with 200 J of work: ΔU = 500 − 200 = 300 J.

The signs

The arithmetic is simple; the signs need thought:

Positive Negative
Q Heat flows into the system Heat leaves the system
W The system does work (expands) Work is done on the system (compressed)
ΔU Internal energy rises (usually warmer) Internal energy falls

Note: some books write ΔU = Q + W and take W as the work done on the system. It is the same law with the sign of W reversed. Check which your book uses.

What it says

The first law is energy conservation for a system that can both be heated and do work. The internal energy is the sum of all the molecules’ kinetic and potential energy, and it can only change in two ways: heat flowing in or out, or work being done.

When no work is done, ΔU = Q, and for a liquid or a solid that becomes Q = c · m · ΔT.

Worked examples

The bicycle pump. You compress the air with 300 J of work, so fast that no heat escapes: Q = 0 and W = −300. ΔU = 0 − (−300) = +300 J. The air heats up, and you feel it on the pump.

The engine. The gas in a cylinder gets 2,000 J of heat from combustion and pushes the piston with 800 J: ΔU = 2,000 − 800 = 1,200 J left in the gas, which leaves with the exhaust.

Constant temperature. An ideal gas expanding slowly at constant temperature has ΔU = 0, so Q = W: all the heat added becomes work.

Common mistakes

Frequently asked questions

Can an engine do more work than the heat it takes in? No. That would mean creating energy from nothing, which is exactly what the first law forbids. The second law goes further: not even all the heat can become work. See Carnot efficiency.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
QΔU+W300+200500 J
WQ−ΔU500−300200 J
ΔUQ−W500−200300 J

Last reviewed October 6, 2026 ·How pages are reviewed

ThermodynamicsAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.