Where Does the Carnot Cycle Come From?

We want to build a device that turns heat into work. How much can be converted? Sadi Carnot (1824), at a time when steam engines were still only about 3 % efficient, derived the upper limit without any reference to what is inside the device. Here we take an ideal gas as the working substance, write down the heat and work of all four stages, and arrive at η = 1 − TC/TH. Along the way, a quantity called entropy appears of its own accord.

0. What Does a Heat Engine Do?

A heat engine is a device that returns to its original state after one cycle while delivering net work to the outside. “Returning to the original state” is the crucial point; without it, we would have just a one-time expansion. After one cycle all the state functions return to their original values, so the change in internal energy is zero.

∮dU=0 ⇒ Wnet=Qnet =QH+QC

Here QH > 0 is the heat received from the hot side and QC < 0 is the heat rejected to the cold side. Work is taken as positive when it is “work done by the gas” (first law of thermodynamics: ΔU = Q − W). The efficiency is “the fraction of the heat put in that could be turned into work,” so

η≡ WQH = QH+QC QH =1− |QC| QH
Start here If QC = 0 can be achieved, then η = 1. In other words, an “engine that converts all of the heat into work” is an engine that rejects nothing to the cold side. What we see below is that, as long as the engine has to run in a cycle, this cannot be done; that there is a lower limit on the amount rejected; and that this limit is determined by the temperatures alone.

1. Preparation — Only Two Properties of the Ideal Gas Are Needed

We use an ideal gas as the working substance. Only the following two properties are used.

(a) PV=nRT (b) U=U(T) — independent of volume

(b) is another way of saying that “the molecules exert no forces on each other.” Pulling the molecules apart does not change the potential energy, so changing the volume does not move U. On the ideal gas derivation page, this is derived from the partition function. Here we do not assume that CV is constant — we allow it to vary with temperature, and write it as CV(T) ≡dUm dT throughout.

2. The Isothermal Process — Turning Heat Entirely into Work

Keeping the temperature T fixed, expand the gas quasistatically from Va to Vb. By (b), ΔU = 0, so the first law gives Q = W. For a quasistatic process W = ∫PdV, which on a P–V diagram is the area under the curve (the net work summed over one full cycle is the area enclosed by the cycle, ∮PdV). Since T is constant here,

Q=W= ∫VaVb nRTVdV =nRT ln⁡ VbVa (1)
Seen on its own, the efficiency here is 100 % The isothermal expansion turns the heat it receives into work without wasting even 1 J. So why does the efficiency of an engine not reach 1? Because this process does not go around a cycle. The gas has simply kept expanding and has not returned to where it started. What it costs to bring it back is the next part of the story.

3. The Quasistatic Adiabatic Process — Work in Exchange for Cooling

Cut off the exchange of heat (Q = 0) and expand the gas quasistatically. The first law becomes dU = −PdV, that is,

nCV(T) dT=− nRTVdV ⇒ CVdTT =−RdVV (2)

Integrate both sides. If CV is constant, this takes a familiar form, but in general it is more accurate to write it as follows.

∫T2T1 CV(T) dTT =Rln⁡ V2V1 (T1→T2, V1→V2) (3)

If we set CV constant, the left-hand side becomes CV ln(T1/T2), and using γ = CP/CV = 1 + R/CV to tidy up, we get

TVγ−1 =const. ⇔ PVγ=const.

That is the textbook form. However, γ is constant only if, over the temperature range in question, the degrees of freedom that are “awake” do not change. Cool H₂ to 80 K and rotation begins to freeze out; heat CO₂ to 1000 K and vibration wakes up. This page and the simulator use Eq. (3) as it stands, numerically, so they can handle even the temperature dependence of CV (although at very low temperatures the H₂ result is an approximation that ignores the nuclear-spin statistics of ortho- and para-hydrogen).

The left-hand side of Eq. (3) should look familiar When the temperature is raised from T2 to T1 at constant volume, the entropy change is ∫nCVdT/T, and when the volume is expanded from V1 to V2 at constant temperature it is nR ln(V2/V1). Eq. (3) says that these two are equal. In an actual adiabatic expansion the temperature falls from T1 to T2, so the temperature part changes sign and exactly cancels the volume part. In other words, a quasistatic adiabatic process is a process in which the entropy does not change. — We have not yet defined “entropy,” so for now just remember that the forms look similar. §8 will prove that this quantity is a state function.
What you can see in the simulator In the cylinder of tab ① of the simulator, the molecules are colored by speed (blue = slow, red = fast). Even though the exchange of heat is cut off, the color shifts toward blue during the adiabatic expansion. This means the gas loses internal energy by the amount it uses to push the piston, so dU = −PdV, written at the start of this section, is something you can watch happening.

4. Lining Up the Four Stages

The Carnot cycle uses the two kinds of processes we have just prepared, alternately, twice each. Let the temperature of the hot reservoir be TH and that of the cold reservoir TC, and start from state ① (TH, V1).

StageWhat happensQW = work done by the gasΔU
① → ②Isothermal expansion in contact with the TH reservoir nRTH ln(V2/V1) same as left0
② → ③Removed from the reservoir; adiabatic expansion (TH → TC) 0 n[Um(TH) − Um(TC)] −(same as left)
③ → ④Isothermal compression in contact with the TC reservoir nRTC ln(V4/V3) same as left0
④ → ①Removed from the reservoir; adiabatic compression (TC → TH) 0 −n[Um(TH) − Um(TC)] −(same as left)

The work in the two adiabatic stages exactly cancels. This is because the gas goes back and forth between the same two temperatures, so the change in internal energy has simply changed sign. The work taken out in the adiabatic stage is spent entirely on the next adiabatic compression and comes back. What remains is only the heat of the two isothermal stages:

QH= nRTH ln⁡ V2V1 >0 QC= −nRTC ln⁡ V3V4 <0 (4)

5. The Condition for the Cycle to Close

To find the efficiency we need to compare the two ln terms in Eq. (4). Here we use the fact that ②→③ and ④→① are both adiabatic processes between TH and TC. Applying Eq. (3) to both (since the temperature runs the opposite way in ④→①, we flip the signs of both sides), the left-hand sides are the same integral, so

Rln⁡ V3V2 = ∫TCTH CVdTT = Rln⁡ V4V1 ⇒ V2V1 = V3V4 (5)

The volume ratios of the two isothermal stages are equal. This is the crux of the Carnot cycle. Whatever the form of CV(T) and whatever the gas, it holds as long as the adiabatic processes connect the same two temperatures.

The figure below plots the cycle in the coordinates in which this situation is easiest to see — ln V on the horizontal axis and ln T on the vertical axis. The isothermal stages are horizontal segments, and from Eq. (2) the adiabatic stages are lines with slope d lnT/d lnV = −R/CV. And the two adiabats are the same curve, just shifted sideways (the left-hand side of Eq. (3) is the same integral for both, so on any adiabat ln V is the same function of temperature plus a constant, and a translation in the x direction makes them coincide exactly). So the width at the top and the width at the bottom are necessarily equal — that is Eq. (5).

Fig. 1: The Carnot cycle in ln V – ln T coordinates. Because the two adiabats are congruent (they coincide under a translation), the widths at the top and bottom are always equal. Changing the gas changes the slopes of the adiabats, and on the low-temperature side of H₂ or the high-temperature side of CO₂ the lines curve because CV varies — but they remain congruent.

V3/V2 (stretch factor of the adiabatic expansion)—
ln(V3/V2)—
∫CVdT/T ÷ R (numerical integration)—
CV/R (at TH)—
CV/R (at TC)—
Efficiency η = 1 − TC/TH—

6. The Efficiency — Everything Cancels Out

Put Eq. (5) into Eq. (4). Replacing V3/V4 by V2/V1, the two ln terms become the same thing.

η= 1− nRTC ln⁡(V3 /V4) nRTH ln⁡(V2 /V1) = 1− TCTH (6)
Count what has disappeared The amount of substance n, the gas constant R, the expansion ratio V2/V1, the pressure and volume at the starting point, and CV — that is, the kind of gas. The value is exactly the same for monatomic He and for CO₂, where vibration also matters. All that is left is the temperatures of the two reservoirs. In the table at the bottom of tab ② of the simulator, CV, γ and V3/V2 all differ from gas to gas, yet you can check that only QH, W and η come out the same.
Only the efficiency drops out; the dimensions of the cylinder do not For TH = 600 K and TC = 300 K, the stretch factor of the adiabatic expansion V3/V2 is about 2.8 for monatomic He, and about 17 for CO₂, where vibration also matters (you can check this in the output fields of Fig. 1). This is because a gas with a larger CV has to be expanded more to lower the temperature by the same amount. Even so, η stays as in Eq. (6) — what changes from gas to gas is not the efficiency but the length of cylinder that is needed.

7. The T–S Diagram — Seeing It as a Rectangle

Rewriting Eq. (4), the heat exchanged in the two isothermal stages is

QHTH =nRln⁡ V2V1 ≡ΔS QCTC =−nRln⁡ V3V4 =−ΔS (7)

Thanks to Eq. (5), this gives quantities that are exactly equal in magnitude and differ only in sign. If we draw the cycle with entropy S on the horizontal axis and temperature T on the vertical axis, so that this ΔS is the horizontal width, the Carnot cycle becomes a rectangle (isothermal = moving horizontally, adiabatic = moving vertically). For a quasistatic process Q = ∫TdS, so the area is directly the heat.

Part of the figureAreaMeaning
The whole column (height TH) TH ΔSHeat QH absorbed from the hot reservoir
The lower band (height TC) TC ΔSHeat |QC| rejected to the cold reservoir
The rectangle (height TH − TC) (TH − TC) ΔSWork W that can be extracted

The efficiency is the ratio of “the upper rectangle (height TH − TC)” to “the whole column,” that is, the ratio of the vertical lengths. η = (TH − TC)/TH can be read off at a glance in the T–S diagram of tab ① of the simulator. If TC could be made zero, the lower band would vanish and η = 1, but that would require a reservoir at absolute zero, which the third law forbids.

8. A Quantity That Returns to 0 After One Cycle — The Discovery of Entropy

Adding the two relations in Eq. (7) gives

QHTH + QCTC =0 that is, ∮dQrevT =0 (8)

This is the path Clausius took. Q itself does not return to 0 after one cycle (if it did, no work would come out). But if we divide Q by T before adding, it returns neatly to 0. A “quantity that returns to 0 after a trip around any path” is a quantity fixed by the state alone, independent of the path — that is, an infinitesimal change of a state function. So we can define

dS≡ dQrevT

This is the entropy. Any reversible cycle can be divided into small Carnot cycles (the adjacent adiabats cancel each other), so Eq. (8) is not a property of the Carnot cycle alone but holds for every reversible cycle.

If the process is irreversible, the equality breaks In real engines, friction and expansion or compression at a finite speed make ∮dQ/T < 0 (the Clausius inequality). Here T is the temperature of the reservoir that exchanges the heat — in an irreversible process the temperature of the working substance is not uniquely defined, so we measure it by the temperature of the surroundings. Restated for an isolated system, this becomes ΔS ≥ 0, that is, the “law of increase of entropy.” The various statements of the second law — Kelvin (an engine that turns all of the heat into work cannot be built), Clausius (heat does not flow by itself from low to high temperature), and the increase of entropy — are all equivalent, and Eq. (6) can be derived from any one of them.

9. Carnot’s Theorem — Why Can We Say It Is an “Upper Limit”?

So far this has been a calculation for one particular engine that uses an ideal gas. To say that “no engine can exceed it,” one more step is needed. Carnot’s theorem asserts the following.

Carnot’s theorem For heat engines operating between the same two reservoirs,
(i) the efficiency of a reversible engine is at least as great as that of an irreversible engine.
(ii) the efficiency of a reversible engine is the same whatever the working substance.

The proof is by contradiction. Suppose there were an engine X with efficiency ηX > ηrev. Use the work obtained by running X to drive a reversible engine in reverse (= as a refrigerator). Run in reverse, a reversible engine pumps heat up from the cold side and returns it to the hot side. Looking at the combined device of the two engines, we can adjust the scales so that the net work is exactly zero, and what remains is the result that heat has simply been pumped up from the cold reservoir and handed to the hot reservoir. This is a “device that transfers heat from low to high temperature with no other change left behind,” which contradicts Clausius’s statement. Hence ηX ≤ ηrev. As for (ii), it follows by running the same argument in both directions with two reversible engines.

It is important to see where (ii) comes into play. Since the efficiency of a reversible engine does not depend on the working substance, when computing it, we may choose the substance that is easiest to calculate with. Choosing the ideal gas gave Eq. (6). So Eq. (6) is not a formula for the ideal gas alone but a universal upper limit determined by the two temperatures alone.

10. The Definition of Temperature Itself

From (ii), |QC|/QH of a reversible engine is a function of the two reservoirs alone. Kelvin therefore adopted this ratio itself as the definition of temperature.

|QC| QH ≡ TCTH

This scale does not depend at all on what is inside the thermometer. It is fixed neither by how mercury expands nor by how a gas expands, but only by the ratio of quantities of heat. This is why it is called the “thermodynamic temperature.” That the ideal-gas temperature agrees with it is shown by the derivation of Eq. (6) itself. The kelvin today was fixed in the 2019 SI revision by assigning the defined value kB = 1.380649×10−23 J/K, but what lies behind the scale is this Carnot relation.

11. So Why Do Real Engines Fall Short?

Eq. (6) is a value with the condition “if reversible.” Real engines always fall below it, for the following reasons.

Heat engineApproximate TH / TC Carnot limitActual
Steam locomotive473 / 293 K38 %about 8 %
Steam turbine power generation (supercritical)873 / 303 K65 %about 45 %
Gasoline engine2500 / 800 K68 %about 30 %
Combined-cycle power generation1600 / 300 K81 %about 62 %

If you want a higher efficiency, the only way is to raise TH — and what sets TH is usually not thermodynamics but how high a temperature the material can withstand. This is why the competition for power-plant efficiency has become a competition in heat-resistant alloys and cooling technology for turbine blades.

12. Summary

QuestionAnswer
Why four stages? To expand the gas and get work, and then push it back at a lower pressure. That is why it is first cooled by an adiabatic expansion
Why is a cold reservoir needed? In the compression, the gas cannot return to its original state unless it dumps the heat it has received somewhere
Why does the efficiency not depend on the gas? Because the two adiabats are congruent, V2/V1 = V3/V4 and the ln factors cancel (Eq. (5))
Why can we call it an “upper limit”? Because if an engine could exceed it, a device violating Clausius’s statement could be built (§9)
Where did entropy come from? From the fact that Q/T returns to 0 after one cycle (Eq. (8))
In three lines ① A heat engine is a device that passes heat from high temperature to low temperature and receives the difference as work.
② The upper limit on the fraction that can be received is η = 1 − TC/TH, independent of both the working substance and the construction of the device.
③ In the course of that calculation, Q/T appears as a state function — and that is entropy.

The physical constants are the 2019 SI defined values (kB = 1.380649×10−23 J/K, h = 6.62607015×10−34 J·s, NA = 6.02214076×1023 mol−1); the spectroscopic constants are the values for the ground vibrational state (B₀ and the fundamental frequency ν₀). The adiabats do not assume a constant CV; the condition of constant entropy is solved as it stands. The efficiencies of real engines are representative published values, rounded off.