Physics Laws & Theorems
Intermediate

First Law of Thermodynamics

Energy conservation: change in internal energy equals heat added minus work done.

Formula

ΔU=Q−W\Delta U = Q - W

Live Calculator

Members

Variables

\Delta UInternal energy change
QHeat added
WWork done

Example

Add 100 J of heat and let the gas do 30 J of work — its internal energy rises 70 J.

How it works

The first law of thermodynamics is a bookkeeping rule for energy in a system: any increase in internal energy comes from energy entering as heat, or from a decrease caused by the system doing work on its surroundings. It follows the law of conservation of energy, so energy is not created or destroyed, only transferred or converted between thermal energy and mechanical work. The sign convention here means heat added to the system is positive, while work done by the system reduces its internal energy.

When to use it

Use this law whenever a gas, liquid, or solid changes temperature, expands, compresses, or undergoes heating while also doing or receiving work. It is especially useful in thermodynamics problems involving engines, pistons, refrigeration, or any process where heat and work both matter.

Worked example, step by step

A sealed gas absorbs 250 J of heat and expands, doing 90 J of work on the surroundings. Use the first law: ΔU = Q - W Substitute the values: ΔU = 250 J - 90 J Calculate: ΔU = 160 J Final answer: the internal energy increases by 160 J.

Common mistakes to avoid

  • Using the wrong sign for work and adding it instead of subtracting it
  • Forgetting that Q is positive only when heat enters the system
  • Mixing up internal energy change with temperature change without checking the substance or process

Did You Know?

The first law is just conservation of energy applied to heat — you can't get energy from nothing.

Share this formula

Reviewed & maintained by the FormulaWon editorial teamLast reviewed September 2026