THERMODYNAMICS • FIRST LAW OF THERMODYNAMICS

Heat vs. Work & Sign Conventions — Distinguish heat vs work and sign conventions

Understanding the energy bookkeeping that governs every thermodynamic process.

Historical Context & Motivation

The distinction between heat and work as separate modes of energy transfer lies at the very foundation of thermodynamics, yet the two concepts were conflated for centuries. Before the nineteenth century, heat was widely understood through the lens of the caloric theory, which imagined heat as a weightless, indestructible fluid flowing from hot bodies to cold ones. Work, by contrast, was understood mechanically through Newtonian physics. The realization that these two quantities are interconvertible manifestations of a single conserved quantity—energy—required decades of experimental insight and theoretical refinement, ultimately yielding the First Law of Thermodynamics and the need for precise sign conventions.

1798
Rumford's Cannon-Boring Experiments
Count Rumford observed that boring cannon barrels produced seemingly inexhaustible heat, contradicting the caloric theory's claim that heat was a conserved fluid. His work planted the first empirical seeds of the mechanical theory of heat.
1842
Mayer's Equivalence Principle
Julius Robert Mayer, a physician, proposed that heat and mechanical work are interconvertible and calculated a rough mechanical equivalent of heat from the specific-heat difference of gases at constant pressure and constant volume.
1845
Joule's Paddle-Wheel Experiment
James Prescott Joule's meticulous paddle-wheel experiments quantified the mechanical equivalent of heat at approximately 4.18 J per calorie, firmly establishing that work could be converted into heat in a precise, reproducible ratio.
1850
Clausius Formalizes the First Law
Rudolf Clausius synthesized the insights of Mayer, Joule, and Carnot into a formal statement of energy conservation for thermodynamic systems, distinguishing heat and work as path-dependent process quantities and introducing the concept of internal energy as a state function.
1854–1865
Sign Convention Debates
As thermodynamics matured, two rival sign conventions emerged: engineers tended to define work done by the system as positive (since engine output was their focus), while physicists preferred a unified convention where energy entering the system is positive. Both persist in modern textbooks.

The central question this lesson addresses is deceptively simple: when energy crosses the boundary of a thermodynamic system, how do we systematically categorize that transfer as heat or work, and how do we assign algebraic signs so that the First Law equation remains internally consistent? Mastering this bookkeeping is essential before tackling any thermodynamic cycle, from Carnot engines to refrigeration loops.

Core Principles & Definitions

Before writing down any equation, it is crucial to internalize the physical distinction between heat and work and to understand why a sign convention is not merely a notational preference but a logical necessity for consistent energy accounting. The following core ideas form the conceptual scaffolding for everything that follows.

1

Heat (Q) — Energy Transfer via Temperature Difference

Heat is energy that flows across a system boundary solely because of a temperature gradient between the system and its surroundings. It occurs through conduction, convection, or radiation. Heat is a process quantity—it has no meaning except during the act of transfer.
2

Work (W) — Energy Transfer via Generalized Force

Work is energy transferred across a system boundary by any mechanism other than a temperature difference. This includes mechanical displacement against a pressure (PdV work), shaft work, electrical work, and surface-tension work. Like heat, work is path-dependent and vanishes when no process is occurring.
3

Internal Energy (U) — The System's State Function

Internal energy is the total microscopic kinetic and potential energy stored within the system. Unlike Q and W, U is a state function: its change ΔU depends only on initial and final equilibrium states, not on the path taken. The First Law links all three: ΔU = Q − W (physics convention) or ΔU = Q + W (chemistry convention).
4

Path vs. State Dependence

Heat and work are path functions: the same endpoints can be connected by infinitely many processes yielding different Q and W values. Their infinitesimal forms are inexact differentials, written δQ and δW (with a slash or δ, not d) to emphasize this distinction from the exact differential dU.
5

Sign Convention — The Algebraic Contract

A sign convention assigns positive or negative signs to Q and W depending on the direction of energy flow. It must be declared once and applied consistently throughout a calculation. The two dominant conventions (physics and chemistry) differ only in the sign assigned to work.
KEY TAKEAWAY
Think of a thermodynamic system as a bank account. Heat flowing in is a deposit; work done by the system is a withdrawal. The account balance is the internal energy U. A sign convention is simply the rule that tells you whether deposits and withdrawals carry a plus or minus sign on the ledger. If two textbooks use different rules, the physics is identical—only the bookkeeping notation differs. What matters is that you never mix conventions mid-problem.

Visual Explanation — System Boundary Diagram

The dashed rectangle represents the system boundary. Cyan and pink arrows on the left show heat transfer directions: Q > 0 means heat flows into the system (both conventions agree). Green and orange arrows on the right show work: in the physics convention W > 0 means work done by the system, while in the chemistry convention W > 0 means work done on the system.

The diagram above encapsulates the entire sign-convention debate in a single image. Both conventions agree that heat entering the system is positive. The divergence appears in work. Engineers and many physics textbooks define positive work as energy leaving the system (the system does work on the surroundings), leading to ΔU = Q − W. Chemists and the IUPAC standard define positive work as energy entering the system (the surroundings do work on the system), leading to ΔU = Q + W. The physical content is identical; only the sign in front of W flips. Throughout this lesson, we will work both conventions side by side so that you can translate fluently between them.

Mathematical Framework

The First Law of Thermodynamics provides the central equation relating heat, work, and internal energy. Because Q and W are path functions, their infinitesimal forms are inexact differentials, and we denote them δQ and δW to distinguish them from the exact differential dU. Let us formalize both sign conventions and the key integral expressions.

FIRST LAW — PHYSICS CONVENTION
ΔU = Q − W
Here Q > 0 when heat flows into the system; W > 0 when the system does work on the surroundings. The minus sign ensures that work leaving the system decreases its internal energy.
FIRST LAW — CHEMISTRY / IUPAC CONVENTION
ΔU = Q + W
Here Q > 0 when heat flows into the system (same as physics); W > 0 when work is done on the system by the surroundings. The plus sign reflects that both positive Q and positive W increase internal energy.
BOUNDARY (PdV) WORK — PHYSICS CONVENTION
W = ∫₁² P dV
For a quasi-static expansion or compression, the boundary work equals the integral of the external pressure over the change in volume. In the physics convention an expansion (dV > 0) yields W > 0. In the chemistry convention the same integral appears with a negative sign: Wchem = −∫₁² P dV.
DIFFERENTIAL FORM
dU = δQ − δW (physics) | dU = δQ + δW (chemistry)
The symbol δ (or đ) denotes an inexact differential. Unlike dU, δQ and δW depend on the path taken between equilibrium states. This distinction is fundamental: you can speak of the internal energy of a system, but you cannot speak of the heat or work contained in a system.
🔄 Convention Conversion Rule
To convert between conventions, simply negate the work term: Wchem = −Wphys. Substituting into ΔU = Q + Wchem yields ΔU = Q + (−Wphys) = Q − Wphys, confirming the two expressions are algebraically equivalent.

Detailed Comparison of Sign Conventions

The existence of two sign conventions is one of the most common sources of confusion for students encountering thermodynamics across physics and chemistry courses. The table below provides a comprehensive side-by-side comparison, and the accompanying diagram maps out exactly how the signs flip for various common processes.

Side-by-side sign comparison for common thermodynamic scenarios
ScenarioPhysics Convention (ΔU = Q − W)Chemistry Convention (ΔU = Q + W)
Heat flows into the systemQ > 0 (positive)Q > 0 (positive)
Heat flows out of the systemQ < 0 (negative)Q < 0 (negative)
System expands against surroundingsW > 0 (system does work)W < 0 (energy leaves system)
Surroundings compress the systemW < 0 (work done on system)W > 0 (energy enters system)
Adiabatic free expansionQ = 0, W = 0, ΔU = 0Q = 0, W = 0, ΔU = 0
Isothermal expansion of ideal gasQ > 0, W > 0, ΔU = 0 → Q = WQ > 0, W < 0, ΔU = 0 → Q = −W
Four canonical processes with their sign assignments in both conventions. Note that isochoric heating is the one case where both conventions give identical expressions (W = 0 regardless of sign choice). In every other case, the sign of W flips between conventions while ΔU and Q remain unchanged.
📘 Which Convention Should I Use?
Use the convention your textbook and instructor adopt. In most physics and mechanical engineering courses, you will encounter ΔU = Q − W. In most chemistry and chemical engineering courses, you will see ΔU = Q + W. Always state your convention explicitly at the top of any problem, especially on exams.

Worked Example — Applying Both Sign Conventions

A gas in a piston–cylinder assembly absorbs 500 J of heat from a hot reservoir and expands, pushing the piston outward and performing 200 J of boundary work against the atmosphere. Determine the change in internal energy using both sign conventions and verify that the result is identical.

Piston–Cylinder Expansion
1
Step 1 — Identify Physical FactsThe system (gas) receives 500 J of thermal energy from a high-temperature reservoir. Simultaneously, the gas expands and performs 200 J of mechanical work on the piston and atmosphere. These are physical facts independent of any sign convention.
2
Step 2 — Assign Signs (Physics Convention: ΔU = Q − W)Heat flows into the system → Q = +500 J. Work is done by the system → W = +200 J.
Q = +500 J, W = +200 J (physics)
3
Step 3 — Compute ΔU (Physics Convention)ΔU = Q − W = 500 J − 200 J = +300 J. The internal energy of the gas increases by 300 J, meaning the gas is hotter and/or at higher potential energy than before.
ΔU = +300 J (physics convention)
4
Step 4 — Assign Signs (Chemistry Convention: ΔU = Q + W)Heat flows into the system → Q = +500 J (same as physics). Work is done by the system, meaning energy leaves the system. In the chemistry convention, energy leaving via work is negative → W = −200 J.
Q = +500 J, W = −200 J (chemistry)
5
Step 5 — Compute ΔU (Chemistry Convention)ΔU = Q + W = 500 J + (−200 J) = +300 J. As expected, the change in internal energy is identical. The sign convention is a notational choice, not a physical one.
ΔU = +300 J (chemistry convention) ✓
VERIFICATION STRATEGY
Whenever you feel uncertain about sign conventions, solve the problem with both conventions and confirm that ΔU is identical. If the two results disagree, you have misassigned a sign somewhere. This double-check technique is analogous to verifying a circuit analysis using both Kirchhoff's loop rule and node rule: the physics doesn't care which tool you pick, and disagreement flags an error.

Common Pitfalls & Practical Tips

Sign convention errors are among the most frequent mistakes on thermodynamics exams. The table below catalogs common pitfalls alongside strategies for avoiding them. Internalizing these will save considerable frustration in more advanced topics such as thermodynamic cycles and open-system analysis.

Common pitfalls in applying heat and work sign conventions
PitfallWhat Goes WrongCorrect Approach
Mixing conventions mid-problemUsing ΔU = Q − W but assigning W positive for work done on the system yields ΔU with wrong sign.Declare your convention at the outset and apply it consistently. Circle or underline it at the top of your work.
Treating Q and W as state functionsWriting Q₁, Q₂ as properties of states 1 and 2. Heat is not stored; only internal energy is.Always write Q and W as process quantities. Use δQ and δW for infinitesimals, never dQ or dW.
Confusing P_ext with P_sys in W = ∫PdVUsing the system's internal pressure in an irreversible process where P_ext ≠ P_sys.For boundary work against the surroundings, the relevant pressure is the external (opposing) pressure. P_sys = P_ext only for quasi-static processes.
Ignoring non-PdV workForgetting shaft work, electrical work, or stirring work and assigning W = 0 for a rigid container with a stirrer.Inventory all work modes: boundary (PdV), shaft, electrical, magnetic, surface tension. Constant volume only eliminates PdV work.
Assuming Q = 0 means no temperature changeAdiabatic processes (Q = 0) can still change temperature through work interactions (e.g., adiabatic compression heats the gas).Remember that ΔU = −W (physics) when Q = 0. For an ideal gas, ΔU = nCᵥΔT, so adiabatic work changes temperature.
🎯 THE ONE-SENTENCE TEST
Before plugging numbers into the First Law, state in plain English where energy is flowing: 'The system absorbs 500 J of heat and delivers 200 J of work to the piston.' Then translate that sentence into your chosen sign convention. This verbal intermediary prevents the most insidious errors—those where you get a number that looks plausible but has the wrong sign.

Connections to Advanced Thermodynamics

The heat–work distinction and sign conventions laid out in the First Law serve as the conceptual launching pad for virtually every advanced topic in thermodynamics. The Second Law, entropy, enthalpy, free energies, and thermodynamic potentials all build directly on the framework established here. Understanding how the elementary concepts generalize is essential for deeper study.

How First Law concepts extend to advanced thermodynamics
First Law ConceptAdvanced ExtensionKey Relationship
Q (heat transfer)Entropy (S) via Clausius inequalitydS ≥ δQ/T; equality for reversible processes
W = ∫PdV (boundary work)Enthalpy H = U + PVAt constant pressure, Q_p = ΔH, absorbing PdV work into the state function
ΔU = Q − W (closed system)Open-system energy balancedU/dt = Q̇ − Ẇ + Σ ṁ(h + V²/2 + gz) for flow systems
Sign of W determines ΔU directionHelmholtz (A) and Gibbs (G) free energiesA = U − TS gives maximum work at constant T; G = H − TS gives maximum non-PdV work at constant T, P
Path dependence of Q and WExact vs. inexact differentials; Maxwell relationsCombinations like dU = TdS − PdV are exact, enabling powerful cross-derivative identities

Notice a recurring theme: advanced thermodynamics often constructs new state functions (H, A, G) specifically to absorb certain work or heat terms into a single convenient quantity. Enthalpy, for example, was invented precisely so that engineers dealing with constant-pressure processes could replace the cumbersome expression Q = ΔU + PΔV with the cleaner Qp = ΔH. The sign conventions you master now will carry through unchanged into these more powerful formalisms, so building a solid foundation here pays compounding dividends in every subsequent thermodynamics course.

Practice Problems

PROBLEM 1CONCEPTUAL
A student claims that a gas 'contains 1500 J of heat.' Explain why this statement is thermodynamically incorrect, and restate it using proper terminology.
PROBLEM 2BASIC CALCULATION
A closed system releases 350 J of heat to its surroundings and has 150 J of work done on it by a stirrer. Using the physics convention (ΔU = Q − W), determine ΔU.
PROBLEM 3INTERMEDIATE
An ideal gas undergoes an isothermal expansion at T = 400 K from V₁ = 2.0 L to V₂ = 6.0 L. The gas contains n = 0.50 mol. Calculate Q and W using both sign conventions. Use R = 8.314 J/(mol·K).
PROBLEM 4APPLIED
A steam turbine (steady-state, open system) receives superheated steam at h₁ = 3230 kJ/kg and exhausts at h₂ = 2610 kJ/kg. The heat loss from the turbine casing to the surroundings is 15 kJ/kg. Neglecting kinetic and potential energy changes, determine the specific shaft work output (kJ/kg) using the physics convention. Is the sign consistent with a device that produces useful work?
PROBLEM 5CRITICAL THINKING
Consider a cyclic process (the system returns to its initial state). Prove that the net heat transfer equals the net work transfer over one complete cycle, regardless of sign convention. Then explain why this result means that no cyclic engine can operate without rejecting some heat to a cold reservoir (connect to the Second Law).

Lesson Summary

Heat (Q) is energy that crosses a system boundary solely due to a temperature difference, while work (W) encompasses all other modes of energy transfer—most commonly boundary (PdV) work. Both are path functions (inexact differentials δQ and δW), unlike internal energy (U), which is a state function. The First Law connects them: ΔU = Q − W in the physics convention (W positive when the system does work on the surroundings) or ΔU = Q + W in the chemistry convention (W positive when the surroundings do work on the system). The sign of Q is universally positive for heat absorbed.

Mastery of sign conventions requires three habits: (1) declare your convention before starting, (2) describe energy flows in plain language before assigning signs, and (3) verify by solving with both conventions to confirm that ΔU agrees. These foundations extend directly to entropy (dS = δQrev/T), enthalpy (H = U + PV), and the Gibbs and Helmholtz free energies, making precise energy bookkeeping the indispensable skill upon which all of thermodynamics is built.

Varsity Tutors • Thermodynamics • Heat vs. Work & Sign Conventions