The first law of thermodynamics is best described as the law of conservation of energy: energy cannot be created or destroyed, only converted from one form to another. The total energy of a system always remains constant when you account for every transfer in and out. This principle applies to everything from car engines to your own body burning calories.
What the First Law Actually Says
At its core, the first law is a bookkeeping rule for energy. If you track all the energy entering and leaving any system, the numbers always balance. Energy can change forms freely: chemical energy becomes heat, heat becomes motion, motion becomes electrical current. But the total never increases or decreases. The energy of the universe is constant.
This means you can never get something from nothing. A machine cannot produce more energy than it consumes, and no process can make energy vanish. It simply moves somewhere else or becomes a different type. When you rub your hands together and feel warmth, the mechanical energy of your motion hasn’t disappeared. It has converted into thermal energy through friction.
The Equation Behind It
Scientists express the first law with a simple formula: ΔU = q + w. Here, ΔU is the change in a system’s internal energy, q is heat, and w is work. The equation says that any change in a system’s internal energy equals the heat added to it plus the work done on it.
The signs matter. When heat flows into the system, q is positive. When the system releases heat to its surroundings, q is negative. Work follows the same logic under the standard convention used by IUPAC (the international body that sets chemistry standards): w is positive when the surroundings do work on the system, and negative when the system does work on its surroundings. If you compress a gas in a piston, you’re doing work on the gas, so w is positive and the gas gains internal energy. If the gas expands and pushes the piston outward, w is negative because the system spent energy doing that work.
What “Internal Energy” Means
Internal energy is the total of all microscopic energy happening inside a substance. That includes the kinetic energy of molecules bouncing around, vibrating, and rotating, plus the potential energy stored in the forces between molecules. It also includes the chemical energy locked in molecular bonds and even nuclear energy within atoms. You can’t measure internal energy directly with a thermometer or any single instrument, but you can measure changes in it, which is what the first law tracks.
When you heat a pot of water on the stove, the water molecules move faster. Their kinetic energy increases, and so does the water’s internal energy. The heat flowing from the burner into the water is accounted for perfectly by the first law.
Open, Closed, and Isolated Systems
How the first law plays out depends on what kind of system you’re looking at. An open system can exchange both energy and matter with its surroundings. A boiling pot without a lid is open: steam escapes (matter leaving) and heat enters from the burner (energy entering). A closed system can exchange energy but not matter. A sealed pressure cooker lets heat flow in and out through its walls but keeps all the water and steam inside. An isolated system exchanges neither energy nor matter with anything. A perfect thermos would be an isolated system, though in practice no real container is perfectly insulating.
In an isolated system, the first law simplifies dramatically. Since no heat or work crosses the boundary, ΔU = 0. The internal energy stays exactly the same, no matter what reactions or changes happen inside.
Special Case: Adiabatic Processes
An adiabatic process is one where no heat enters or leaves the system. In this case, q drops to zero, and the first law becomes ΔU = w. Every bit of energy change comes from work alone. When you rapidly compress air in a bicycle pump, the air gets hotter even though no flame or heater is involved. The work your arms do on the gas converts entirely into internal energy, raising the temperature. Diesel engines rely on this same principle: compressing air so quickly and forcefully that it heats enough to ignite fuel without a spark plug.
Why Perpetual Motion Machines Are Impossible
The first law is the reason “perpetual motion machines of the first kind” can never work. These are hypothetical devices that produce more energy than they consume, essentially creating energy from nowhere. Inventors have proposed such machines for centuries, claiming they could power themselves indefinitely and still have energy left over to do useful work. The first law makes this flatly impossible. You cannot extract more energy from a system than you put into it. Every design that claims otherwise has a hidden flaw, whether it’s ignoring friction, miscounting energy inputs, or simply violating conservation of energy.
How It Applies to Your Body
Your metabolism follows the first law just like any engine. The chemical energy in food is measured in Calories (each equal to the energy needed to raise 1 kilogram of water by 1°C). When your body breaks down food, that chemical energy converts into three things: mechanical work (moving your muscles), thermal energy (body heat), and the chemical energy stored in molecules your cells use as fuel.
Human metabolism is relatively inefficient at converting food energy into mechanical work. At best, your muscles operate at roughly 20% efficiency, meaning about 80% of the energy from food ends up as heat rather than motion. This is why you feel warm during exercise. It’s also why calorie expenditure during physical activity is much higher than the mechanical work you actually produce. If a task requires 35 kilojoules of mechanical work and your body operates at only 5% efficiency for that activity, you’d burn 700 kilojoules of food energy to accomplish it, with the remaining 665 kilojoules released as heat.
How It Works in a Refrigerator
A refrigerator is a practical demonstration of the first law. It doesn’t “create” cold. Instead, it moves thermal energy from inside the fridge to the warmer kitchen air, using electrical work to make that transfer happen. The compressor does work on a circulating fluid, raising its temperature and pressure. That hot fluid then releases heat into the room through coils on the back or bottom of the fridge. The relationship is straightforward: the heat dumped into your kitchen equals the heat pulled from inside the fridge plus the electrical energy the compressor used. Every joule is accounted for.
This is why the area behind your refrigerator feels warm. The appliance isn’t generating heat from nothing. It’s relocating thermal energy from the food compartment and adding the energy from the electrical work on top of it. The first law holds perfectly: energy in equals energy out, every time.

