QuestionHeat
What Is the First Law of Thermodynamics? Formula, Examples

The first law of thermodynamics says that energy cannot be created or destroyed, only moved between a system and its surroundings or changed from one form to another. For a system, the change in internal energy equals the heat added minus the work the system does, written ΔU = Q − W. It is conservation of energy applied to heat and work.
Contents
The full answer
For any system, the first law states that the change in internal energy (ΔU) equals the heat added to the system (Q) minus the work done by the system on its surroundings (W). In symbols, ΔU = Q − W. Energy can only enter or leave a closed system as heat or as work, so any energy that is missing from one store must appear in another. This law is one of the four laws of thermodynamics.
Internal energy (U) is the total energy stored in the particles of a system, including their kinetic energy from motion and the potential energy from the forces between them. Heat (Q) and work (W) are not stored in a system; they are energy in transit across its boundary. All three are measured in joules (J), the SI unit of energy. One joule equals one newton-metre, and lifting a 1 kg mass by 1 m on Earth takes about 9.81 J.
Textbooks use two sign conventions. In the form used here, Q is positive when heat flows into the system and W is positive when the system does work on its surroundings. Many chemistry courses, including IUPAC notation, write the same law as ΔU = q + w, where w is work done on the system. Both versions describe the same physics, but a sign error flips the answer, so check which one your course uses.
As a worked example, a gas absorbs 500 J of heat and does 200 J of work on its piston. Using ΔU = Q − W, the change in internal energy is 500 J − 200 J = 300 J. The gas therefore stores 300 J more energy than before.
The science behind it
At the particle level, the internal energy of a gas is mostly the kinetic energy of its molecules. When heat enters the gas, the molecules move faster on average and the temperature rises. This is the same as the rise in internal energy in the first law, because for an ideal monatomic gas the internal energy depends only on temperature, through U = 3/2 × n × R × T, where n is the amount of gas in moles and R = 8.314 J/(mol·K).
When the gas expands and pushes a piston, the molecules collide with the moving piston and lose some speed. Their kinetic energy falls, so the internal energy falls, and the energy leaves the gas as work. Nothing disappears in this process. The energy moves from the gas molecules into the piston and then into whatever the piston is doing.
The same principle covers other stores of energy, such as chemical energy in fuel, gravitational potential energy in a raised weight, and the electrical energy in a battery. A chemical reaction can release heat as its bonds change, and the total energy before and after the reaction is the same. For more on how energy changes form, see energy and conservation of energy.
An everyday example
A bicycle pump is a clear example. When you push the plunger quickly, you do work on the air inside, which is a negative W in the ΔU = Q − W form, so the air’s internal energy rises. The air heats up, and the metal barrel warms as heat flows out of the air into the pump. Hold the pump for a while and the heat spreads out, which is why the barrel feels warm after a long session of inflating tyres.
A kettle shows the first law in a different way. Electrical energy from the supply is converted into heat in the heating element, which raises the internal energy of the water. Once the water boils, some of that energy leaves as steam that pushes air out of the spout. Every joule of electrical energy ends up as heat in the water, steam or surroundings, so the total energy is accounted for.
Can a machine make energy from nothing?
No. A machine that puts out more energy than it takes in would break the first law, so no design can do this. Such a device is called a perpetual motion machine of the first kind. People have proposed many, but none has worked, because every real machine needs an energy input from somewhere.
The first law does not forbid a machine from losing energy to heat, though. Energy is conserved, but it can become less useful. The second law explains why no machine can turn all of its input energy into work, and it is covered in the second law of thermodynamics.
Common misconceptions
Misconception: heat and work are stored in an object. They are not. A system stores internal energy. Heat and work describe energy moving across the boundary, so it is more accurate to say that heat was added than to say that the object contains heat.
Misconception: energy is used up. The first law says that energy is conserved. What people call using up energy means converting it into forms that are harder to use, such as warm air around a machine.
Misconception: the first law limits efficiency. It does not. The first law only requires that energy balances. The limits on efficiency come from the second law.
Frequently asked questions
What is the formula for the first law of thermodynamics?
The formula is ΔU = Q − W, where ΔU is the change in internal energy, Q is heat added to the system and W is work done by the system. All three are measured in joules (J).
What is internal energy?
Internal energy is the total energy stored in the particles of a system, including their kinetic energy from motion and potential energy from the forces between them. It does not include the energy of the system as a whole moving or sitting at a height.
Is the first law of thermodynamics the same as conservation of energy?
Yes, the first law is conservation of energy written for systems where heat and work are the ways energy crosses the boundary. Energy is never created or destroyed, only transferred or changed in form.
Why does a bicycle pump get warm when you use it?
Pushing the plunger does work on the air inside, so energy is transferred into the air and the pump. This raises the internal energy of the air and the metal, so the temperature rises.
Can a machine produce more energy than it takes in?
No. A machine that produces energy from nothing would break the first law, which is why such designs are called perpetual motion machines of the first kind and are impossible.
Sources and further reading
- OpenStax, "College Physics 2e"
- Encyclopaedia Britannica, "First law of thermodynamics"
- NIST, "Guide for the Use of the International System of Units (SI)"
Cite this page
“What Is the First Law of Thermodynamics? Formula, Examples.” Atoms & Forces, https://science.bigworldlist.com/questions/what-is-the-first-law-of-thermodynamics/.
More about Thermodynamics
- PhysicsThermodynamics: The Four Laws Explained Simply
- QuestionCan You Cool a Room by Leaving the Fridge Door Open?
- QuestionHow Does a Refrigerator Work? Moving Heat Out of the Box
- QuestionHow Does a Thermos Keep Drinks Hot and Cold? Vacuum Insulation
- QuestionHow Does Plutonium-238 Power Spacecraft? RTGs Explained
- QuestionIs Perpetual Motion Possible? Why the Laws of Physics Say No
- QuestionIs Space Cold? Why Space Has No Ordinary Temperature
- QuestionWhat Is the Second Law of Thermodynamics? Simple Guide