The First Law of Thermodynamics
The first law of thermodynamics is the energy conservation law applied to thermal systems. It tells you exactly how a system's internal energy changes when heat flows in or out and when work is done. If you can track heat and work, you can predict what happens to the energy inside any system.
The Law and Its Equation
The first law states that the change in a system's internal energy () equals the heat added to the system () minus the work done by the system ():
This is really just a specific version of energy conservation: energy can't be created or destroyed, only transferred or converted between forms (kinetic, potential, thermal, chemical, etc.). The total energy of an isolated system always stays constant.
Heat and work are the two ways energy moves into or out of a system:
- Heat () transfers energy because of a temperature difference (through conduction, convection, or radiation)
- Work () transfers energy through a force acting over a distance (mechanical compression, electrical work, etc.)

Sign Conventions
Getting the signs right is critical for solving problems. For the equation :
- is positive when heat is added to the system; negative when heat is removed
- is positive when work is done by the system (energy leaves); negative when work is done on the system (energy enters)
If a system gains heat and does no work, all that energy goes into raising its internal energy. If a system does work but receives no heat, its internal energy drops.

Calculating Internal Energy Changes
Example 1: 100 J of heat is added to a system, and the system does 50 J of work.
The system's internal energy increases by 50 J. Half the heat went into doing work; the other half stayed in the system.
Work done by a gas at constant pressure is calculated using:
where is pressure and is the change in volume.
- When a gas expands (), it does positive work on its surroundings, so energy leaves the system.
- When a gas is compressed (), work is done on the gas, so energy enters the system.
Example 2: A gas expands from 2 L to 4 L against a constant pressure of 1 atm.
-
Convert units: , and
-
Calculate work:
-
The positive value means the gas did about 203 J of work on its surroundings as it expanded.
Note the unit conversion: you need volume in and pressure in Pa to get work in joules. The original guide's answer of 202.65 kJ was off by a factor of 1000 because the liter-to-cubic-meter conversion was missed.
Applications in Everyday Situations
Closed systems exchange heat and work but not matter with their surroundings:
- Compressing a gas in a piston does work on the gas, increasing its internal energy and temperature.
- Car engines convert heat from burning fuel into mechanical work through repeated expansion and compression of gases.
Open systems also exchange matter with their surroundings:
- Living organisms take in food (chemical energy) and convert it into heat and work (muscle movement, brain function).
- Refrigerators transfer heat from a cold space to a warm space, which requires a work input (electricity). This doesn't violate the first law because the electrical energy accounts for the difference.
Biological energy conversions follow the first law too:
- Photosynthesis converts light energy into chemical energy stored in glucose.
- Cellular respiration breaks down glucose to produce ATP (the cell's usable energy currency), releasing heat in the process.
Key Thermodynamic Concepts
- Thermodynamics is the study of heat, work, and energy transformations in physical systems.
- State functions are properties that depend only on the system's current state, not on how it got there. Internal energy is a state function. Heat and work are not state functions because they depend on the process path.
- Thermal equilibrium is the condition where two systems in contact reach the same temperature, so no net heat flows between them.
- Adiabatic process is any change where no heat is exchanged with the surroundings (). In an adiabatic process, , meaning internal energy changes come entirely from work. Rapid compressions and expansions are often approximately adiabatic because there isn't enough time for heat to transfer.