The first law of thermodynamics is the law of conservation of energy written for systems that exchange heat and work. In the form most physics and engineering textbooks use, the change in a system's internal energy equals the heat added to the system minus the work the system does: ΔU = Q − W. Chemists usually write the same law as ΔU = q + w, because they count work done on the system as positive. This page explains both conventions, what "internal energy", "heat" and "work" mean, how the law is applied to gases, engines, jet engines and living bodies, and how it was established in the 1840s and 1850s by Mayer, Joule, Helmholtz and Clausius against the then-dominant caloric theory of heat.
How to read this page. Equations and worked examples are taken from open university textbooks (OpenStax, MIT course notes, HyperPhysics) and are cited beside each one. Examples marked Hypothetical example use round numbers chosen for illustration; the arithmetic is shown so you can check it. History comes from a peer-reviewed historical commentary in Philosophical Transactions of the Royal Society A, a University of Virginia lecture note, and translated excerpts of Clausius's own papers.
A note on the earlier draft. The local draft was mostly correct in outline but gave no sources and no equations beyond words. It did not state a sign convention, which is the single most common source of error with this law. It included a section on "Apiary's mission," a "bee's flight" example and claims about robotic pollinators and data centres; these were removed because no source read here connects them to the topic. Its statement that internal energy "aggregates" heat and work has been replaced with the textbook definition (Section 3).
1. What the first law says
1.1 The physics and engineering statement
OpenStax University Physics states the law this way: each equilibrium state of a system has an internal energy, and for any transition between two equilibrium states the change in internal energy is
ΔE_int = Q − W
where Q is the heat exchanged by the system and W is the work done by or on it (OpenStax, University Physics Vol. 2, §3.3). The book calls the first law "a statement of energy conservation" (same source). OpenStax uses E_int for internal energy; most engineering texts use U. They mean the same thing.
MIT's unified engineering thermodynamics notes give the same law for a closed system in terms of total energy E (internal energy U plus kinetic energy, potential energy and any other forms): ΔE = Q − W, or per unit mass Δe = q − w. When kinetic and potential energy do not change, this reduces to ΔU = Q − W (MIT 16 Unified, Thermodynamics notes §2.1).
1.2 The differential form
For a very small change, OpenStax writes dE_int = dQ − dW (OpenStax §3.3). The MIT notes write dU = δQ − δW and explain the notation: the δ marks heat and work as inexact differentials, quantities that "are dependent on path," whereas U is a state function whose change does not depend on how the system got from one state to the other (MIT §2.1). For a slow (quasi-static) process where the only work is expansion against the system's own pressure p, δW = p dV, so
dU = δQ − p dV
(MIT §2.1).
1.3 The chemistry statement
General chemistry textbooks write the law as ΔU = q + w. OpenStax Chemistry 2e gives the sign conventions explicitly: "positive q is heat flow in; negative q is heat flow out," and "the work, w, is positive if it is done on the system and negative if it is done by the system" (OpenStax, Chemistry 2e, §5.3). HyperPhysics, hosted by Georgia State University, makes the same point: the two forms express one law, and the difference is only that in chemistry "W is defined as the work done on the system instead of work done by the system" (HyperPhysics, "First Law of Thermodynamics").
1.4 Clausius's own form
Rudolf Clausius, who gave thermodynamics much of its modern form, wrote the law in 1865 as dQ = dU + A dW, where Q is heat imparted to the body ("counting heat given off from the body as negative absorbed heat"), U is the quantity he had introduced in 1850, W is the external work done by the body and A is the heat equivalent of a unit of work. With AW written as w, this becomes dQ = dU + dw (Clausius 1865, translated excerpt, Le Moyne College). Rearranged, that is dU = dQ − dw, the physics form above. The factor A existed because, in 1865, heat was still measured in calories and work in mechanical units; today both are measured in joules, and A disappears (Section 8).
2. Sign conventions: the one thing to get right
Because two conventions are in common use, every first-law calculation should begin by stating which one is being used. The table below collects them from the textbooks cited.
| Quantity | Physics/engineering convention (ΔU = Q − W) | Chemistry convention (ΔU = q + w) |
|---|---|---|
| Heat added to the system | Q > 0 | q > 0 |
| Heat removed from the system | Q < 0 | q < 0 |
| Work done by the system (e.g., gas pushes a piston out) | W > 0 | w < 0 |
| Work done on the system (e.g., piston compresses gas) | W < 0 | w > 0 |
Sources: physics convention, OpenStax University Physics Table 3.1 and MIT §2.1; chemistry convention, OpenStax Chemistry 2e §5.3.
Editorial suggestion: the two forms give identical answers as long as you never mix them. A quick self-check is to ask, "Did the system gain energy?" Heat flowing in and work done on the system both raise the internal energy in both conventions; only the bookkeeping symbol changes. The engineering convention exists because engineers care about work out of an engine, so they define the useful output as positive. Chemists care about what happens to the reacting system, so they count every energy input as positive.
3. Internal energy, heat and work
3.1 Internal energy
OpenStax defines internal energy as "the sum of the mechanical energies of all the molecules or entities in the system," that is, the kinetic and potential energies of the particles, averaged over the molecules (OpenStax §3.2). For an ideal monatomic gas of n moles at absolute temperature T, E_int = (3/2)nRT, which "depends on just the temperature and is completely independent of the pressure and volume of the gas" (same source).
Internal energy is a state function: its value depends only on the state of the system (for a simple gas, for example, its temperature, pressure and volume), not on how that state was reached (OpenStax §3.3). This is what gives the first law its power. You may not know the details of a messy process, but if you know the beginning and end states you know ΔU.
3.2 Heat and work are not things a system "has"
Heat and work describe energy in transit across the system boundary. Heat is energy transferred because of a temperature difference; work is energy transferred by a force acting through a distance, such as a gas pushing a piston. A system does not contain a certain amount of heat or a certain amount of work. It contains internal energy.
The textbooks emphasise that heat and work each depend on the path taken between two states, but their difference does not: "Although Q and W both depend on the thermodynamic path taken between two equilibrium states, their difference Q − W does not" (OpenStax §3.3). The MIT notes stress the same point: ΔU is path-independent "even though Q and W are not!" (MIT §2.1).
3.3 Two paths, one answer
OpenStax College Physics gives a clean demonstration (OpenStax, College Physics 2e, §15.1, Example 15.1):
- Path (a), two steps. Step 1: 40.00 J of heat flows in and the system does 10.00 J of work, so ΔE_int = 30.00 J. Step 2: 25.00 J of heat flows out and 4.00 J of work is done on the system, so ΔE_int = −25.00 − (−4.00) = −21.00 J. Net change: 9.00 J.
- Path (b), one step. 150.00 J of heat flows out (Q = −150.00 J) and 159.00 J of work is done on the system (W = −159.00 J). ΔE_int = −150.00 − (−159.00) = 9.00 J.
The heat and work are completely different on the two paths, yet the change in internal energy is the same 9.00 J, because the start and end states are the same.
A second textbook example makes the same point with a closed loop. A system goes from state A to B absorbing 400 J of heat and doing 100 J of work, so ΔE_int = 300 J. Going back from B to A along any path must give ΔE_int = −300 J, because the total change around a closed path is zero. If the system instead goes A to B along a different path on which 400 J of work is done on it (W′ = −400 J), then Q′ = ΔE_int + W′ = 300 − 400 = −100 J: the system must lose 100 J of heat (OpenStax §3.3, Example 3.2).
3.4 Work as an integral
For a quasi-static change of volume, the work done by a gas is W = ∫ p dV from V₁ to V₂, the area under the curve on a pressure–volume (pV) diagram. OpenStax notes this integral "is only meaningful for a quasi-static process," one carried out in small steps close to equilibrium, and that two different paths between the same states generally give different work (OpenStax §3.2). HyperPhysics adds that at constant pressure the work is simply W = PΔV, and that otherwise it is the area under the P–V curve (HyperPhysics).
4. The law applied to standard processes
Textbooks build most of introductory thermodynamics by applying ΔU = Q − W to a handful of idealised processes. Definitions below are from OpenStax: an isothermal process happens at constant temperature; in an adiabatic process "the system is insulated from its environment" so no heat flows; an isobaric process keeps pressure constant; an isochoric process keeps volume constant (OpenStax §3.4).
4.1 Constant volume (isochoric)
If the volume does not change, the gas does no expansion work, so W = 0 and ΔU = Q: every joule of heat goes into internal energy. For an ideal gas this is written dE_int = nC_V dT, where C_V is the molar heat capacity at constant volume (OpenStax §3.5).
4.2 Constant pressure (isobaric) and why C_p is larger than C_V
If the gas is heated at constant pressure, it expands and does work p dV, so some of the heat leaves as work. OpenStax derives the consequence for an ideal gas in four lines (OpenStax §3.5):
- Heat added at constant pressure: dQ = nC_p dT.
- Differentiating pV = nRT at constant p gives p dV = nR dT.
- First law: dE_int = dQ − p dV = (nC_p − nR) dT.
- The internal energy of an ideal gas depends only on temperature, so dE_int must equal the constant-volume value nC_V dT. Therefore C_p = C_V + R.
For a monatomic ideal gas C_V = (3/2)R ≈ 12.47 J/(mol·K); for a diatomic gas near room temperature C_V = (5/2)R ≈ 20.79 J/(mol·K) (same source). This difference between the two heat capacities is exactly the effect Julius Robert Mayer used in 1842 to estimate the mechanical equivalent of heat (Section 7.3).
4.3 Constant temperature (isothermal)
For an ideal gas held at constant temperature, internal energy does not change, so ΔE_int = 0 and Q = W: all the heat absorbed leaves as work. The work done by the gas expanding from V₁ to V₂ is W = nRT ln(V₂/V₁) (OpenStax §3.2). In OpenStax's worked example, 1.00 mol of an ideal monatomic gas at 300 K triples its volume; ΔE_int = 0 and W = Q = 2.74 × 10³ J (OpenStax §3.3, Example 3.5). (Check: 8.314 × 300 × ln 3 ≈ 8.314 × 300 × 1.0986 ≈ 2,740 J.)
4.4 No heat (adiabatic)
With Q = 0 the first law reduces to ΔU = −W: the gas does work only by spending its own internal energy, so it cools as it expands, and warms when compressed. The MIT notes list this as the first corollary of the law: for an adiabatic process the work depends only on the change of state (MIT §2.2).
For a quasi-static adiabatic process in an ideal gas, OpenStax combines nC_V dT = −p dV with the ideal gas law to obtain pV^γ = constant, where γ = C_p/C_V, and equivalently TV^(γ−1) = constant (OpenStax §3.6). Its worked example is an automobile engine cylinder: air–fuel mixture at 20 °C and 1.00 × 10⁵ N/m² is compressed from 240 cm³ to 40 cm³. Treating it as a diatomic gas (γ = 1.4), the final pressure is about 1.23 × 10⁶ N/m², the final temperature about 600 K (328 °C), and the work done by the gas is about −63 J; "the negative sign on the work done indicates that the piston does work on the gas-air mixture" (same source). That temperature rise, with no heat added at all, is the first law at work: the piston's work becomes internal energy.
4.5 Free expansion
If a gas in an insulated container expands into a vacuum, there is no external pressure to push against, so W = 0, and the insulation makes Q = 0. Therefore ΔE_int = 0. Because the internal energy of an ideal gas depends only on temperature, its temperature does not change (OpenStax §3.6). This process is not quasi-static, and you cannot draw it as a line on a pV diagram, but the first law still applies because it only relates the initial and final equilibrium states; OpenStax notes explicitly that the first law applies even to non-quasi-static processes (OpenStax §3.3).
4.6 Cycles
If a system goes around a cycle and returns to its starting state, its internal energy is back where it began, so ΔU = 0 and the net heat absorbed equals the net work done: Q = W, or ∮δQ = ∮δW (MIT §2.2). This is the basis of every heat-engine calculation (Section 5.3).
5. Worked examples
5.1 Boiling water: energy goes in, temperature stays the same
OpenStax works through vaporising 1.00 g of water at 100 °C and 1.00 atm. The latent heat is 2.26 × 10³ J/g, so Q = 2.26 × 10³ J. The volume increases by 1.67 × 10⁻³ m³, so the steam does work W = pΔV ≈ 169 J pushing back the atmosphere. The first law gives ΔE_int = Q − W ≈ 2.09 × 10³ J, "even though temperature does not change" (OpenStax §3.3, Example 3.6). The energy goes into pulling molecules apart against their mutual attraction. This example corrects a common intuition that adding heat must always raise temperature.
5.2 Polishing copper: work in, no heat, warmer metal
In another OpenStax example, a 0.50 kg copper fitting is polished for 2.0 minutes with a 20 N force at 1.0 m/s. The work done on the fitting is W = −2.4 × 10³ J (negative because it is done on the system). Assuming no heat exchange, ΔE_int = +2.4 × 10³ J; with copper's specific heat of 3.9 × 10² J/(kg·°C) the temperature rise is about 12 °C (OpenStax §3.3, Example 3.3). The copper got hotter without any heat being added. That distinction (warming by work rather than heat) was the core of the nineteenth-century argument against the caloric theory (Section 7).
5.3 An engine: how much heat must be thrown away
For an engine running in cycles between a hot and a cold reservoir, ΔE_int = 0 for each cycle, so the work output is W = Q_h − Q_c: heat taken in at high temperature minus heat rejected at low temperature. Efficiency is defined as e = W/Q_h = 1 − Q_c/Q_h (OpenStax §4.2). OpenStax's worked example: a lawn mower engine with 25% efficiency and 3.00 kW average power. In one minute it delivers W = 180 kJ of work, and it must discharge at least Q_c = W(1/e − 1) = 180 kJ × 3 = 540 kJ of heat (same source). The first law alone gives the energy accounting; it does not say why the efficiency cannot be 100%. That is the job of the second law.
6. Open systems: enthalpy and the steady-flow energy equation
6.1 Enthalpy
Many real devices (turbines, pumps, boilers, jet engines, chemical reactors open to the air) work at roughly constant pressure or with fluid flowing in and out. For these, a combination called enthalpy is more convenient than internal energy:
H = U + PV (per unit mass, h = u + pv)
(OpenStax Chemistry 2e §5.3; MIT §2.5). OpenStax explains why chemists use it: "if a chemical or physical process is carried out at constant pressure with the only work done caused by expansion or contraction, then the heat flow (q_p) and enthalpy change (ΔH) for the process are equal" (OpenStax Chemistry 2e §5.3). HyperPhysics writes the constant-pressure physics version as Q = ΔU + PΔV = ΔH (HyperPhysics).
OpenStax's example: burning 1.00 L of isooctane (density 0.692 g/mL; enthalpy of combustion −5,460 kJ per mole) releases about 3.31 × 10⁴ kJ of heat (OpenStax Chemistry 2e §5.3, Example 5.10).
6.2 The control-volume form
For a fixed region of space (a "control volume") with fluid flowing in at one place and out at another, the MIT notes give the rate form of the first law:
dE_cv/dt = Q̇_cv − Ẇ_cv + ṁ_i (h_i + c_i²/2 + g z_i) − ṁ_e (h_e + c_e²/2 + g z_e)
where ṁ is mass flow rate, c is flow speed, z is height, and subscripts i and e denote inlet and exit (MIT §2.5). The PV part of enthalpy accounts for the "flow work" needed to push fluid into and out of the region. In steady flow (nothing changing with time and ṁ_i = ṁ_e = ṁ), this becomes the steady-flow energy equation:
Q̇_cv − Ẇ_cv = ṁ [(h_e + c_e²/2 + g z_e) − (h_i + c_i²/2 + g z_i)]
(same source). Ẇ is again counted positive when the device does work on its surroundings, matching ΔE = Q − W.
6.3 Worked example: the compressor of a large jet engine
The MIT notes apply this to the fan and compressor of a two-spool turbofan, the Pratt & Whitney PW4084. With a fan mass flow of 610 kg/s, a core mass flow of 120 kg/s, a stagnation temperature rise of 30 K across the fan and 600 K across the core compressor, negligible heat transfer, and c_p ≈ 1,008 J/(kg·K), the shaft power is
−Ẇ_s = 610 × 30 × 1,008 + 120 × 600 × 1,008 ≈ 91 MW
(MIT §2.5). The minus sign means the work is done on the air. The notes compare this to roughly 1,110 automobile engines of about 110 hp each (same source). The calculation needs nothing but temperatures, flow rates and the first law.
7. History: from caloric to conservation of energy
7.1 The caloric theory
In the late eighteenth and first half of the nineteenth century, heat was widely thought to be a "subtle fluid" called caloric, stored in bodies and conserved as it flowed from one to another. John Young of the University of Cambridge, in a 2015 commentary for the Royal Society, writes that "virtually all natural philosophers accepted" this idea, and that Joseph Fourier's Théorie analytique de la chaleur (1822) gave it strong mathematical credibility (Young 2015, Phil. Trans. R. Soc. A).
7.2 Rumford and Carnot
The best-known early dissenter was Benjamin Thompson, Count Rumford. Boring cannon in Munich, he found that the frictional heat appeared limitless; with a deliberately blunted borer and the barrel immersed in water, the water boiled in under three hours. He argued that the only thing communicated to the barrel was motion. Rumford did not calculate a mechanical equivalent of heat; Joule later made a rough estimate from Rumford's 1798 data of 1,034 foot-pounds per British thermal unit (Young 2015).
Sadi Carnot's 1824 Reflections on the Motive Power of Heat founded the theory of heat engines but was framed in terms of caloric. Young notes that notes found after Carnot's death in 1832 show him doubting the caloric hypothesis and suggesting heat was a motion of the particles of bodies (Young 2015). William Thomson (later Lord Kelvin) brought Carnot's work to English readers in the 1840s but, writing in 1848, was not prepared to give up caloric: "To deny it would be to overturn the whole theory of heat, in which it is the fundamental principle" (quoted in Young 2015).
7.3 Julius Robert Mayer, 1842
Mayer was a German physician born in Heilbronn in 1814. According to Michael Fowler's University of Virginia lecture notes, he served as a ship's doctor on a voyage to the Dutch East Indies beginning in 1840 and was struck to find sailors' venous blood almost as bright red as arterial blood. He reasoned that less "burning" of food was needed to keep warm in the tropics, and from there that heat produced by the body, and work done by it, must both be accounted for by the food consumed (Fowler, UVA Physics 152 notes).
In 1842 Mayer published his argument in Liebig's Annalen der Chemie und Pharmacie ("Bemerkungen über die Kräfte der unbelebten Natur", vol. 42, pp. 233–240, doi:10.1002/jlac.18420420212; this page did not read the original). Fowler's notes explain how he calculated a mechanical equivalent from French measurements of gas heat capacities: a gas heated at constant pressure needs more heat than the same gas heated at constant volume, and Mayer attributed the difference to the work done in lifting the piston (Fowler). That is the same reasoning as C_p = C_V + R in Section 4.2. Fowler summarises the priority question this way: "it is generally conceded that Mayer was the first to spell out the concept of the mechanical equivalent of heat (although closely followed, independently, by Joule) and Joule was the first to put it on a firm experimental basis" (same source). This page did not find a primary source for the numerical value Mayer obtained, so none is given here.
7.4 James Prescott Joule, 1840s–1850
Joule (1818–1889) was the son of a Salford brewing family, tutored as a teenager by John Dalton, and did most of his experiments as a private individual in the cellar of his house (Young 2015). Young's account of his measurements:
- In 1839 he found that the heat produced by an electric current is proportional to the square of the current times the resistance (what is now called Joule heating) (Young 2015).
- In the early 1840s, experiments with electric motors and generators gave values for the mechanical equivalent between 587 and 1,040 foot-pounds per Btu; forcing water through narrow tubes gave 770 (same source). He presented results at the British Association meeting in Cork in 1843, where they were ignored (same source).
- In 1845, experiments on compressing and expanding air gave 820, 814 and 760 foot-pounds per Btu. The paper was rejected by Philosophical Transactions and published in the Philosophical Magazine (same source).
- At the British Association meeting in Oxford in 1847 he described a paddle-wheel experiment, and William Thomson's questions brought him attention, although Thomson wrote to his father that "Joule is, I am sure, wrong in many of his ideas" (same source).
The definitive paper, "On the Mechanical Equivalent of Heat," appeared in Philosophical Transactions in 1850 (vol. 140, pp. 61–82, doi:10.1098/rstl.1850.0004). Falling weights turned a paddle wheel inside a vessel of water or mercury; the work was the weight times the distance fallen, and the heat came from the temperature rise. To obtain a rise of 0.5–2 °F, the weights were wound back up and dropped about 20 times (Young 2015). Five series gave averages of 772.692, 772.814, 775.352, 776.045 and 773.930 foot-pounds per Btu. The paper's two conclusions were that the heat produced by friction "is always proportional to the quantity of force expended," and that heating a pound of water by 1 °F requires "the fall of 772 lb through the space of one foot" (quoted in Young 2015).
Young adds a striking detail: Joule had included a third conclusion, that friction consists in the conversion of mechanical power into heat, but removed it at the request of the Royal Society's referees. The surviving anonymous referee's report has been identified, from the handwriting, as Michael Faraday's (same source, citing C. W. Smith, Isis 1976). The Royal Society awarded Joule a Royal Medal in 1852 and the Copley Medal in 1870 (same source).
7.5 Hermann von Helmholtz, 1847
In 1847 Hermann von Helmholtz presented Über die Erhaltung der Kraft ("On the Conservation of Force") to the Physical Society in Berlin on 23 July; it was printed the same year by G. Reimer in Berlin, 72 pages (TU Wien reposiTUm record). In the language of the time, "Kraft" (force) meant roughly what is now called energy, just as Joule's "mechanical force" in 1850 meant what is now called work (Young 2015 notes that "the term force was often used to denote what we now call work"). This page did not read the full text of Helmholtz's essay and does not summarise its arguments in detail.
7.6 Rudolf Clausius, 1850 and 1865
In 1850 Clausius published "Ueber die bewegende Kraft der Wärme" in Annalen der Physik und Chemie (vol. 79). In it he wrote that Joule's experiments "have almost certainly proved not only the possibility of increasing the quantity of heat in any circumstances but also the law that the quantity of heat developed is proportional to the work expended," and that the evidence "almost compel[s] us to accept the equivalence between heat and work," on the hypothesis that doing work requires "an actual consumption of heat" (Clausius 1850, translated excerpt via Le Moyne College). Young summarises the significance: Clausius showed that a slight alteration to Carnot's theory, in which part of the heat taken from the hot reservoir is converted into work and the rest rejected, brought it into line with Joule's results (Young 2015).
In 1865 Clausius summarised the two laws for the whole universe: "1. The energy of the universe is constant. 2. The entropy of the universe strives toward a maximum" (Clausius 1865, translated excerpt). The first sentence is the most compact statement of the first law ever written.
7.7 Words that came later
Young notes that the word energy in its precise scientific sense is younger than the discoveries: William Rankine coined "potential energy" and "actual (i.e. kinetic) energy" in 1853 (Young 2015). Precision also kept improving. In 1897 Osborne Reynolds and W. H. Moorby, coupling a water brake to a steam engine at Owens College, Manchester, obtained 776.94 foot-pounds per Btu, "within 0.2% of the currently accepted value" (same source).
8. Units: joules, calories and the mechanical equivalent
Today heat and work are both measured in the SI unit of energy, the joule, so there is no separate "mechanical equivalent of heat" constant; HyperPhysics notes the joule is the standard unit though calories and Btu are still used (HyperPhysics). The older heat units are now defined in joules. NIST's Guide for the Use of the SI lists (NIST SP 811, Appendix B.9):
| Unit | Joules | Exact? |
|---|---|---|
| calorie (thermochemical) | 4.184 | exact |
| calorie (International Table) | 4.1868 | exact |
| calorie (15 °C) | 4.185 80 | no |
| British thermal unit (IT) | 1.055 056 × 10³ | no |
| foot pound-force | 1.355 818 | no |
| kilocalorie (thermochemical) | 4.184 × 10³ | exact |
A food "Calorie" with a capital C is a kilocalorie; OpenStax describes it as "the energy needed to raise the temperature of one kilogram of water by one degree Celsius" (OpenStax College Physics 2e §15.1).
Editorial calculation using the NIST factors above. One IT Btu divided by one foot pound-force is 1,055.056 / 1.355818 ≈ 778.2 foot-pounds per Btu, consistent with the "currently accepted value" of 778.0 that Young quotes (Young 2015). Joule's 1850 water series value, 772.692 ft·lbf/Btu, is therefore about 0.7% low. Converted, 772.692 × 1.355818 ≈ 1,047.6 J per Btu, and since one IT Btu is about 252.0 IT calories (1,055.056 / 4.1868), Joule's result corresponds to roughly 4.16 J per calorie, against the modern defined 4.1868. (Young's text does not specify exactly which Btu definition the "accepted value" refers to; the small difference does not change the conclusion.)
9. Perpetual motion machines of the first kind
A machine that produced work continuously, in a cycle, without any input of heat or other energy would violate the first law: around a cycle ΔU = 0, so W = Q, and if Q = 0 then W = 0 (MIT §2.2). Such a device is called a perpetual motion machine of the first kind. Fowler's notes record that Mayer, as a ten-year-old in Heilbronn, tried to make a water wheel drive a pump that would lift its own water back up, and after repeated failures concluded "there was no way to arrange a machine to do work for nothing" (Fowler).
Patent law treats such claims as a question of fact about whether the device works. The U.S. Patent and Trademark Office's Manual of Patent Examining Procedure, §2107.01, lists "a perpetual motion machine" among examples of inventions rejected as inoperative, citing Newman v. Quigg, 877 F.2d 1575 (Fed. Cir. 1989), and explains that an invention that "does not operate to produce the results claimed by the patent applicant" is not useful under patent law (USPTO, MPEP §2107.01). The same section cautions that such examples are fact-specific rather than a per se rule (same source).
OpenStax recounts the novelist and scientist C. P. Snow's joking summary of the first law: "you can't win," meaning you cannot get more energy out of a system than you put in (OpenStax §3.3).
10. Living things and the first law
OpenStax Biology 2e states the first law in biological terms: energy "may transfer from place to place or transform into different forms, but it cannot be created or destroyed," and notes that "biological organisms are open systems," exchanging both energy and matter with their surroundings; plants, for example, convert "sunlight energy into the chemical energy stored within organic molecules" (OpenStax, Biology 2e, §6.3).
OpenStax College Physics applies ΔE_int = Q − W to the human body. Body temperature "is normally kept constant by heat transfer to the surroundings," so Q is negative; the body "usually does work on the outside world," so W is positive; both drain internal energy, which is replaced from food. "If you overeat repeatedly, then ΔE_int is always positive, and your body stores this extra internal energy as fat" (OpenStax College Physics 2e §15.1). The same section notes "the quite low efficiency of the body in converting internal energy to work" (same source). This is energy accounting only; it is not dietary advice, and questions about personal nutrition belong with a qualified professional.
11. Common misunderstandings
"Heat is the energy stored in a hot object." No. The stored energy is internal energy. Heat is energy transferred because of a temperature difference (Section 3.2).
"Adding heat always raises temperature." No. When water boils at constant pressure, about 2.26 kJ per gram goes in with no temperature change; most becomes internal energy and some becomes work on the atmosphere (Section 5.1).
"If the temperature rises, heat must have been added." No. Work alone can raise temperature: the polished copper fitting and the compressed engine charge both warm with Q = 0 (Sections 4.4 and 5.2).
"The sign of W is a fact of nature." No. It is a convention. Physics and engineering count work done by the system as positive; chemistry counts work done on it as positive (Section 2).
"The first law says engines can be 100% efficient." The first law permits any efficiency up to 100% in its energy accounting. The impossibility of converting all heat to work in a cycle comes from the second law. Clausius's 1865 summary pairs them for exactly that reason (Section 7.6).
"The first law only applies to slow, ideal processes." The equation ΔU = Q − W relates equilibrium start and end states and applies to non-quasi-static processes too (OpenStax §3.3). What requires a quasi-static process is computing W as ∫p dV with the system's own pressure (OpenStax §3.2).
12. What the first law does not tell you
- Direction. It allows heat to flow from cold to hot, or a cup of tea to spontaneously warm up from the room around it, as long as the energy totals balance. The second law forbids those processes. Carnot's analysis of heat engines and Clausius's later work on entropy addressed this (Young 2015).
- Rates. It says how much energy changes, not how fast. Heat transfer rates need separate laws (conduction, convection, radiation); Fourier's 1822 treatise, mentioned above, was about exactly that.
- The value of U itself. The law fixes changes in internal energy. Absolute values depend on the chosen reference state, which is why tables list enthalpies relative to defined standards.
13. FAQ
Is the first law just "energy is conserved"? Essentially yes, specialised to systems that exchange heat and work. OpenStax calls it "a statement of energy conservation" (OpenStax §3.3). What it adds is the explicit recognition that heat is one of the ways energy is transferred, and the existence of a state function, internal energy, that keeps the books.
Why do physics and chemistry books disagree about the sign? They do not disagree about the physics. Physics and engineering define W as work done by the system (ΔU = Q − W); chemistry defines w as work done on the system (ΔU = q + w) (HyperPhysics; OpenStax Chemistry 2e).
What is an isolated system, and what does the law say about it? A system that exchanges neither heat, work nor matter with its surroundings. With Q = 0 and W = 0, its internal energy stays constant (OpenStax §3.3).
Who discovered the first law? No single person. Mayer stated the equivalence of heat and work in 1842; Joule measured it carefully through the 1840s and in his 1850 paper; Helmholtz presented a general conservation principle in 1847; Clausius reconciled it with Carnot's engine theory in 1850 and stated it for the universe in 1865 (Section 7). Credit between Mayer and Joule "has been argued for well over a century" (Fowler).
14. Bottom line
The first law of thermodynamics says that a system's internal energy changes only by the energy that crosses its boundary as heat or as work. Written ΔU = Q − W (work done by the system positive) or ΔU = q + w (work done on the system positive), it turns energy conservation into a bookkeeping tool that works from piston engines to jet compressors to chemical reactions. Internal energy depends only on the state; heat and work depend on the path. The law was hard won: Rumford's cannon, Mayer's gas-heat-capacity argument of 1842, Joule's decade of measurements ending at 772 foot-pounds per Btu in 1850, Helmholtz's 1847 essay, and Clausius's 1850 reconciliation with Carnot together overturned the caloric theory. The law tells you how much energy goes where. It does not tell you which way processes run; that is the second law.
Sources
Last checked: 2026-11-27
- OpenStax (Ling, S. J., Sanny, J., Moebs, W., et al.) (2016, updated). University Physics Volume 2, §3.2 "Work, Heat, and Internal Energy." https://openstax.org/books/university-physics-volume-2/pages/3-2-work-heat-and-internal-energy
- OpenStax. University Physics Volume 2, §3.3 "First Law of Thermodynamics" (Table 3.1; Examples 3.2–3.6). https://openstax.org/books/university-physics-volume-2/pages/3-3-first-law-of-thermodynamics
- OpenStax. University Physics Volume 2, §3.4 "Thermodynamic Processes." https://openstax.org/books/university-physics-volume-2/pages/3-4-thermodynamic-processes
- OpenStax. University Physics Volume 2, §3.5 "Heat Capacities of an Ideal Gas." https://openstax.org/books/university-physics-volume-2/pages/3-5-heat-capacities-of-an-ideal-gas
- OpenStax. University Physics Volume 2, §3.6 "Adiabatic Processes for an Ideal Gas." https://openstax.org/books/university-physics-volume-2/pages/3-6-adiabatic-processes-for-an-ideal-gas
- OpenStax. University Physics Volume 2, §4.2 "Heat Engines." https://openstax.org/books/university-physics-volume-2/pages/4-2-heat-engines
- OpenStax. College Physics 2e, §15.1 "The First Law of Thermodynamics." https://openstax.org/books/college-physics-2e/pages/15-1-the-first-law-of-thermodynamics
- OpenStax. Chemistry 2e, §5.3 "Enthalpy." https://openstax.org/books/chemistry-2e/pages/5-3-enthalpy
- OpenStax. Biology 2e, §6.3 "The Laws of Thermodynamics." https://openstax.org/books/biology-2e/pages/6-3-the-laws-of-thermodynamics
- MIT, 16 Unified Engineering, Thermodynamics and Propulsion notes, §2.1 "First Law of Thermodynamics." https://web.mit.edu/16.unified/www/FALL/thermodynamics/notes/node15.html
- MIT, 16 Unified Engineering notes, §2.2 "Corollaries of the First Law." https://web.mit.edu/16.unified/www/FALL/thermodynamics/notes/node16.html
- MIT, 16 Unified Engineering notes, §2.5 "First Law for a Control Volume" (steady-flow energy equation; PW4084 example). https://web.mit.edu/16.unified/www/FALL/thermodynamics/notes/node19.html
- Nave, R. HyperPhysics, Georgia State University. "First Law of Thermodynamics." https://hyperphysics.gsu.edu/hbase/thermo/firlaw.html
- National Institute of Standards and Technology. NIST Guide to the SI (SP 811), Appendix B.9, conversion factors by unit. https://www.nist.gov/pml/special-publication-811/nist-guide-si-appendix-b-conversion-factors/nist-guide-si-appendix-b9
- Young, J. (2015). "Heat, work and subtle fluids: a commentary on Joule (1850) 'On the mechanical equivalent of heat'." Philosophical Transactions of the Royal Society A 373: 20140348 (full text read via Europe PMC, PMC4360093). https://doi.org/10.1098/rsta.2014.0348
- Joule, J. P. (1850). "On the Mechanical Equivalent of Heat." Philosophical Transactions of the Royal Society 140, 61–82 (publisher page not accessible; contents as reported by Young 2015). https://doi.org/10.1098/rstl.1850.0004
- Mayer, J. R. (1842). "Bemerkungen über die Kräfte der unbelebten Natur." Annalen der Chemie und Pharmacie 42, 233–240 (bibliographic reference only; not read). https://doi.org/10.1002/jlac.18420420212
- Fowler, M. "The Discovery of Energy Conservation: Mayer and Joule." University of Virginia, Physics 152 lecture notes. https://galileo.phys.virginia.edu/classes/152.mf1i.spring02/MayerJoule.htm
- von Helmholtz, H. (1847). Über die Erhaltung der Kraft: eine physikalische Abhandlung. Berlin: G. Reimer. Catalogue record and digitised copy, TU Wien reposiTUm (record read; text not read). https://repositum.tuwien.at/handle/20.500.12708/223063?mode=full
- Clausius, R. (1850). "Ueber die bewegende Kraft der Wärme." Annalen der Physik und Chemie 79; translated excerpt from W. F. Magie, A Source Book in Physics (1935), hosted by C. J. Giunta, Le Moyne College. https://web.lemoyne.edu/GIUNTA/Clausius.html
- Clausius, R. (1865). "Concerning Several Conveniently Applicable Forms for the Main Equations of the Mechanical Heat Theory." Annalen der Physik und Chemie 125, 353–400; translated excerpt (Magie 1935; Farber 1966), hosted by Le Moyne College. https://web.lemoyne.edu/GIUNTA/Clausius1865.pdf
- U.S. Patent and Trademark Office. Manual of Patent Examining Procedure, §2107.01 "General Principles Governing Utility Rejections." https://www.uspto.gov/web/offices/pac/mpep/s2107.html
This page was researched and written by an AI assistant for Apiary from an unsourced local draft. Sources were opened and read on 27 November 2026, except where marked as bibliographic reference only. It has not been reviewed by a human expert. Status: candidate.