Physics Explained

Home › Thermodynamics

How the Laws of Thermodynamics Work, Explained

The four laws of thermodynamics explained in plain language, with the first-law energy bookkeeping, Carnot efficiency worked out and a summary table.

2026-10-19 · 5 min read

Thermodynamics is the branch of physics that tracks heat, work and energy in systems ranging from steam engines to living cells. Its laws are among the most reliable statements in science. They never need revising for new experiments, and they set hard limits on what any engine, refrigerator or chemical reaction can achieve.

This post goes through the four laws in order. It shows how the first law works as an energy budget, computes the best possible efficiency of a heat engine, and summarizes what each law forbids. The laws are numbered as they were named historically, so the zeroth law comes first even though it was formalized later.

The zeroth law: temperature

The zeroth law says that if system A is in thermal equilibrium with system C, and system B is also in equilibrium with C, then A and B are in equilibrium with each other. This sounds obvious, but it is what makes temperature a meaningful property. Thermometers work because they reach equilibrium with the object they measure, and two objects with the same reading will not exchange heat when touched.

Temperature has an absolute scale. Kelvin defines zero as the lowest possible temperature, where the thermal motion of particles reaches its minimum. Absolute zero is 0 K, or −273.15 °C. A Kelvin degree has the same size as a Celsius degree, so converting between them is a simple offset.

The first law: energy is conserved

The first law states that the change in a system's internal energy equals the heat added to it minus the work it does on its surroundings:

ΔU = Q − W

Here U is internal energy, Q is heat added to the system, and W is work done by the system. Energy cannot be created or destroyed, only moved between forms. Heat and work are two ways energy crosses the boundary of a system.

Worked example

A gas in a cylinder absorbs 500 J of heat from a flame and pushes a piston, doing 200 J of work on the surroundings.

  1. Heat added: Q = +500 J.
  2. Work done by the gas: W = +200 J.
  3. Change in internal energy: ΔU = 500 − 200 = 300 J.

The gas stores 300 J as higher internal energy, which shows up as higher temperature and faster molecular motion. If the gas instead were compressed by 200 J of work with no heat exchange, ΔU would be +200 J (ΔU = 0 − (−200)), meaning the gas would warm up.

The second law: entropy increases

The second law is usually stated as the entropy of an isolated system never decreases. Entropy, written S, is a measure of the number of microscopic arrangements compatible with the observed state. Heat flows spontaneously from hot to cold, never the reverse without outside help, and this follows from the fact that the number of arrangements increases when energy spreads out.

Two equivalent statements are common:

  • Clausius statement: heat does not flow spontaneously from a colder body to a hotter one.
  • Kelvin-Planck statement: no engine can convert all of its heat input into work in a cycle.

The second law explains why engines have limited efficiency and why processes like mixing cream into coffee are one-way. The reverse of such a process is not forbidden by energy conservation, but it is astronomically unlikely.

Carnot efficiency

The best possible efficiency of a heat engine running between a hot reservoir at temperature T_hot and a cold reservoir at T_cold is the Carnot efficiency:

η = 1 − T_cold / T_hot

Temperatures must be in kelvin. The formula gives an upper limit that no real engine can exceed, although good designs approach it more closely than others.

Hot reservoir (K) Cold reservoir (K) Carnot efficiency
500 300 40 %
800 300 62.5 %
1000 300 70 %
600 580 3.3 %

The last row shows why a small temperature difference gives little work, even though the engine could still run. Power plants raise steam temperature as high as materials allow precisely to increase this ratio.

The third law: absolute zero is unreachable

The third law says that the entropy of a perfect crystal approaches zero as its temperature approaches absolute zero. It also implies that no finite sequence of steps can bring a system exactly to 0 K. Each cooling stage removes only part of the remaining thermal disorder, so approaching zero takes ever more effort.

In practice, laboratories reach temperatures in the nanokelvin range using laser cooling and magnetic traps, but the third law says they cannot reach zero. The law also constrains chemistry. It gives an absolute reference point for entropy, which is why tables of standard entropies have meaningful values rather than arbitrary offsets.

Reading the first law in practice

The first law applies to any system once you define its boundary clearly. A sealed container of hot water has no work term if it does not expand, so its internal energy change equals the heat it lost, and the sign tells you the direction. A refrigerator is a more subtle case. Work is done on the refrigerant by the compressor, and heat is removed from the cold box and released at the back. The heat released equals the heat absorbed plus the work input, which is the first law applied to the whole cycle.

Engineers use the first law to audit real equipment. If measured heat output plus measured work output does not match measured energy input within experimental error, something is leaking or mis-measured. The law gives a hard check that does not depend on any model of the internal machinery.

Summary of the four laws

Law Core statement What it forbids
Zeroth Equilibrium is transitive Defining temperature inconsistently
First Energy is conserved Creating or destroying energy
Second Entropy of an isolated system does not decrease Perpetual motion of the second kind
Third Entropy approaches zero at 0 K Reaching absolute zero in finite steps

Why the laws are reliable

Thermodynamics does not depend on any particular model of atoms. It was developed from steam engines and calorimetry before atomic theory was accepted, and it still holds. Statistical mechanics later explained the laws by counting microscopic states, but the laws were not discovered that way. This independence from detail is why they apply to engines, stars, biological cells and computer chips alike.

Key takeaways

The zeroth law makes temperature meaningful. The first law is an exact energy budget in which heat and work are the two ways energy crosses a boundary. The second law sets a direction for natural processes and caps engine efficiency, with the Carnot formula giving the ideal limit. The third law forbids reaching absolute zero and fixes the zero point for entropy. Together they explain why energy can always be counted but not always used.

More in Thermodynamics

Thermo

What Is Entropy? Boltzmann's Idea Explained Simply

Entropy explained as counting microstates, with Boltzmann's formula, a coin-toss table, a melting-ice calculation and common misconceptions cleared up.

5 min read