Thermodynamics & Heat
Intermediate

First Law of Thermodynamics

Energy conservation for a thermodynamic system.

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 just the energy-conservation principle applied to a thermodynamic system: any change in the system’s internal energy must come from heat transferred into it, minus the energy it gives out as work. If heat enters the system, internal energy tends to increase; if the system expands and pushes on its surroundings, it loses energy by doing work. This balance explains why temperature, pressure, and phase can change when a gas is heated or compressed.

When to use it

Use this formula whenever a problem involves heat transfer, work done by or on a gas, and a change in internal energy. It is especially common in ideal-gas processes, piston problems, and any thermodynamics question asking how much energy a system gains or loses.

Worked example, step by step

A system absorbs 250 J of heat and does 180 J of work on its surroundings. Use the first law: ΔU = Q - W Substitute the values: ΔU = 250 J - 180 J Calculate: ΔU = 70 J Final answer: the internal energy increases by 70 J.

Common mistakes to avoid

  • Using the wrong sign for work, especially confusing work done by the system with work done on the system
  • Mixing up heat absorbed and heat released without adjusting the sign of Q
  • Forgetting that all terms must use the same units before calculating

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