Entropy of Ideal-Gas Expansion
Open a valve between a gas-filled flask and an evacuated one, and the gas rushes in to fill both. No work is done, no heat is exchanged, yet something irreversible has clearly happened. That "something" is captured quantitatively by entropy. This example matters because it is the cleanest possible illustration of the Second Law. It shows that entropy is a state function, computable along any convenient reversible path, even when the real process is wildly irreversible. It also cements the distinction between and the entropy change itself. This article derives for isothermal and general expansions of an ideal gas. You will see the reversible isothermal case worked from first principles. Then you will see free (Joule) expansion compared directly against it. Finally you will see how both fit into a single general formula for any change in and .
- For an ideal gas, depends only on initial and final states, never on the path taken.
- Reversible isothermal expansion: , with and .
- Free expansion into vacuum has , yet is identical to the reversible case.
- The general formula handles any simultaneous – change.
- Free expansion is irreversible: , since .
- Key idea: Entropy is a state function, so you always calculate using a reversible path, whether or not the real process was reversible.
Because entropy is a state function, for any ideal-gas expansion (reversible or not) between the same initial and final states is always at constant ; the difference between reversible and irreversible paths shows up not in but in whether manages to cancel it.
The physical picture
Picture one mole of ideal gas confined to volume inside a cylinder fitted with a frictionless piston, held in a heat bath at temperature . If the piston is withdrawn infinitely slowly, the gas pressure is always essentially equal to the external pressure. The gas does maximum possible work, and heat flows in reversibly from the bath to keep constant, since for an ideal gas at constant . Now consider the opposite extreme: the same gas, same initial volume , but this time separated by a stopcock from an evacuated chamber of volume . Open the stopcock. The gas expands freely against zero external pressure. No work is done on or by the surroundings, no heat crosses the boundary, and the temperature of an ideal gas is unchanged (Joule's experiment showed this directly, since depends only on for an ideal gas). Both processes start and end at the same , , . Because entropy is a state function, both processes must have the same . What differs is the fate of the surroundings.
The second figure below shows the general relation as a surface: depends jointly on the temperature ratio and the volume ratio, and the isothermal expansion is just one slice through it.
The core relations
where: is moles of gas, , , are initial and final volumes.
where: is molar heat capacity at constant volume, assumed constant over the range.
where: for an ideal gas.
where: for free expansion because for the isolated system, giving .
Worked examples
Goal: find when mol of ideal gas expands reversibly and isothermally from to at temperature .
Step 1. Start from the thermodynamic definition of entropy. For any reversible path connecting the two states,
This is valid here because we are told the path is reversible; entropy itself is path-independent, but we need a reversible path to compute it, and we are lucky enough to already have one.
Step 2. Apply the First Law along this path.
For an ideal gas, depends only on (Joule's law), and is constant, so along this path. Hence
Step 3. Substitute the ideal-gas equation of state. With ,
Step 4. Divide by and integrate.
Step 5. Recognize path-independence. Because is a state function, this expression is the entropy change for any process (reversible or not) connecting the same initial state to the same final state — including free expansion, where no reversible path exists physically but one can still be imagined to compute .
Example 1 — Foundational: reversible isothermal expansion. A sample of 2.00 mol of ideal gas expands reversibly and isothermally at 298 K from 10.0 L to 30.0 L. Find , , , , and . Step 1: Entropy change of the system.
Step 2: Work done by the gas (reversible, isothermal).
(Negative sign: work is done by the gas on the surroundings.) Step 3: Heat absorbed by the gas. Since (isothermal, ideal gas),
Step 4: Entropy change of surroundings. The surroundings lose 5.44 kJ of heat reversibly at 298 K:
Step 5: Total.
Sanity check: a reversible process must give exactly zero net entropy change for the universe. It does. ✓
Example 2 — Applied: free expansion versus reversible expansion, same states. The same 2.00 mol of gas at 298 K is instead allowed to expand freely (Joule expansion) from 10.0 L into an evacuated vessel, reaching a final volume of 30.0 L. Compare , , and with Example 1, and then find if the gas simultaneously cools from 298 K to 280 K during a separate, non-isothermal reversible expansion to the same final volume, taking (monatomic ideal gas). Step 1: Since the initial and final states and are identical to Example 1, and is a state function,
Step 2: For free expansion, the system is thermally and mechanically isolated during the process: and , so no heat crosses into the surroundings.
Step 3: Total entropy change.
This confirms the process is irreversible, consistent with the Second Law (). Step 4: Now the non-isothermal case. Using the general formula with K, K, L, L, mol, :
Sanity check: cooling lowers entropy (negative first term), expansion raises it (positive second term); since expansion dominates here, is still positive but smaller than the pure isothermal value — physically reasonable.
Limiting cases & common traps
| Situation | What happens to ΔS_sys | What happens to ΔS_surr | ΔS_universe |
|---|---|---|---|
| Reversible isothermal expansion | 0 | ||
| Free (Joule) expansion, same states | (same!) | 0 | |
| Reversible compression () | negative | positive | 0 |
| (no volume change) | 0 (isothermal term vanishes) | — | — |
| Adiabatic reversible expansion | 0 (by definition of adiabatic reversible) | 0 | 0 |
The chemist behind it
James Prescott Joule's expansion experiment, cooling an ideal-gas concept into concrete apparatus, showed that gas expanding into a vacuum causes no temperature change, which is exactly what makes and valid in Step 2 of the derivation above. Rudolf Clausius later gave the concept its name and its rigorous mathematical footing through the inequality , unifying Joule's empirical observation with the abstract Second Law statement that entropy of an isolated system cannot decrease.
Origins · 1 minRudolf Clausius and how this was discovered
Ask the tutor: How does this same free-expansion logic extend to derive the entropy of mixing two different ideal gases?
Why is ΔS the same for reversible and free expansion if one process is "orderly" and the other is "chaotic"?
Entropy is a state function: it depends only on the initial and final thermodynamic states , not on the trajectory connecting them. Both processes here start and end at identical , , , so must be identical. What differs is : zero for free expansion (isolated, no heat exchanged) but exactly for the reversible path, keeping only in the reversible case.
Does free expansion violate the First Law since ΔU = 0 but no work is done?
No violation at all. The First Law states . In free expansion both and independently, since there is no external pressure to push against and no thermal reservoir contact, so trivially. This happens to coincide with from Joule's law (ideal gas, constant ), but the two zero results come from different physical reasons.
Can ΔS ever be negative for an ideal gas expansion?
Not for isothermal expansion into a larger volume: whenever , making strictly positive. However, in the general formula, if the gas simultaneously cools enough (large negative term), the net could in principle become negative even with expanding volume, though such a path could not occur spontaneously in an isolated system.
How does this connect to entropy of mixing?
Mixing two different ideal gases, each initially confined to its own volume, then allowed to occupy the combined volume, is mathematically two independent free expansions happening simultaneously. Each gas's partial pressure drops as it expands into the shared volume, and the total entropy of mixing sums two terms of the form , one per gas. This is developed in detail in the treatment of entropy of mixing.
Why use R and not the Boltzmann constant k in these formulas?
and describe the same physics at different scales: , where is Avogadro's number. Since these formulas are written per mole ( moles of gas), the molar gas constant is the natural choice. Working per molecule instead, you would use and replace with the number of molecules ; the statistical mechanical derivation via gives the identical numerical result.