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.

Thermodynamics illustration with temperature, heat, and energy-flow symbols
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

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.

SECTION 2

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.

SECTION 3

Visual Explanation — System Boundary Diagram

System Boundary & Energy Transfer DirectionsSYSTEMInternal Energy UΔU = Q − W(Physics / Engineering Convention)ΔU = Q + W(Chemistry / IUPAC Convention)SURROUNDINGSSURROUNDINGSQ > 0Heat absorbed(into system)Q < 0Heat released(out of system)W > 0 (phys)Work doneBY systemW > 0 (chem)Work doneON systemDashed boundary = system boundary. Arrows crossing it representenergy transfer. Direction + sign convention determine the sign of Q and W.
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.

SECTION 4

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Δ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Δ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=∫12PdVW = ∫₁² 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)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.

SECTION 5

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.

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

Side-by-side sign comparison for common thermodynamic scenarios

Sign Convention Quick-Reference: Four Canonical Processes1. ISOBARIC EXPANSIONGas heated at constant P → expandsV₁V₂ > V₁Phys: Q>0, W>0Chem: Q>0, W<02. ISOCHORIC HEATINGHeat added at constant V → no workV = constQ inPhys: Q>0, W=0, ΔU=QChem: Q>0, W=0, ΔU=Q3. ADIABATIC COMPRESSIONNo heat transfer (Q=0) → surroundings compress gasV₁V₂Phys: Q=0, W<0, ΔU=−W>0Chem: Q=0, W>0, ΔU=W>04. ISOTHERMAL EXPANSION (Ideal Gas)ΔU=0 → all heat absorbed = work outputV₁V₂Phys: Q>0, W>0, Q=WChem: Q>0, W<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.

SECTION 6

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. 1

    Step 1 — Identify Physical Facts

    The 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. 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. 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. 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. 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.

SECTION 7

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.

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.

Common pitfalls in applying heat and work sign conventions

🎯

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.

SECTION 8

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.

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, QpQ_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

How First Law concepts extend to advanced thermodynamics

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.

SECTION 9

Practice Problems

Question 1: CONCEPTUAL

A student claims that a gas 'contains 1500 J of heat.' Explain why this statement is thermodynamically incorrect, and restate it using proper terminology.
Show answer
Heat is a process quantity, not a state property—it describes energy in transit across a system boundary driven by a temperature difference. A system does not 'contain' heat; it possesses internal energy (U). The correct statement would be: 'The gas has an internal energy of 1500 J,' or 'The gas absorbed 1500 J of heat during a particular process.' This distinction is reflected mathematically by the use of inexact differentials (δQ) for heat versus exact differentials (dU) for internal energy. Confusing the two leads to path-dependence errors and violates the conceptual framework of classical thermodynamics.

Question 2: BASIC 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.
Show answer
In the physics convention, heat leaving the system means Q = −350 J. Work done on the system by the stirrer means the system does negative work on the surroundings: W = −150 J. Therefore, ΔU = Q − W = (−350) − (−150) = −350 + 150 = −200 J. The internal energy decreases by 200 J. To verify with the chemistry convention: Q = −350 J (same) and W = +150 J (work done on system is positive), giving ΔU = Q + W = −350 + 150 = −200 J, which matches. The net effect is that the system lost more energy via heat than it gained via work.

Question 3: INTERMEDIATE

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).
Show answer
For an isothermal process with an ideal gas, ΔU = 0 because internal energy depends only on temperature. Using the physics convention, W = nRT ln(V₂/V₁) = 0.50 × 8.314 × 400 × ln(6.0/2.0) = 0.50 × 8.314 × 400 × 1.0986 = 1828 J ≈ 1.83 kJ. Since ΔU = Q − W = 0, we get Q = W = +1828 J. The gas absorbs 1828 J of heat and does 1828 J of work on the surroundings. In the chemistry convention, W_chem = −W_phys = −1828 J and ΔU = Q + W_chem = 1828 + (−1828) = 0 J, confirming consistency. The negative W in the chemistry convention indicates that the system lost energy via work (expansion), which was exactly compensated by heat absorption.

Question 4: APPLIED

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?
Show answer
For a steady-state, single-inlet, single-outlet system neglecting KE and PE changes, the energy balance per unit mass is: q − wsw_s = h₂ − h₁, where q is heat transfer per kg and wsw_s is shaft work per kg (physics convention: work output is positive). Heat is lost from the turbine, so q = −15 kJ/kg. Thus −15 − wsw_s = 2610 − 3230 = −620, giving wsw_s = −15 − (−620) = +605 kJ/kg. The positive value confirms the turbine produces useful work output, consistent with its engineering purpose. The turbine extracts 620 kJ/kg of enthalpy drop, of which 605 kJ/kg appears as shaft work and 15 kJ/kg is lost as heat to the surroundings.

Question 5: CRITICAL 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).
Show answer
For a cyclic process, the system returns to its initial state, so the state function U returns to its original value: ΔU_cycle = 0. In the physics convention, 0 = Q_net − W_net, hence Q_net = W_net. In the chemistry convention, 0 = Q_net + W_net(chem), hence Q_net = −W_net(chem). Since W_net(chem) = −W_net(phys), both expressions state the same physical fact: net heat equals net work. Now, suppose a cyclic heat engine absorbs QHQ_H from a hot reservoir and converts it entirely to work with no heat rejection (QCQ_C = 0). Then Q_net = QHQ_H and W_net = QHQ_H, implying 100% thermal efficiency. The Second Law (Kelvin–Planck statement) forbids this: it is impossible for a cyclic device to produce work while exchanging heat with only a single reservoir. Therefore, QCQ_C > 0 must be rejected, and the efficiency η = W_net/QHQ_H = 1 − QCQ_C/QHQ_H < 1. The First Law alone permits 100% efficiency; it is the Second Law that imposes the upper bound, and the sign conventions ensure the bookkeeping remains consistent when analyzing these limits.

SUMMARY

Lesson Summary

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