4. Entropy Change Calculator — Theory
Entropy \(S\) is a thermodynamic state function. For any process,
the system entropy change \(\Delta S_{\rm sys}\) depends only on the initial and final states,
even when the process itself is irreversible.
Core definition
Important: \(\delta Q_{\rm rev}\) means heat along a reversible path between the same end states.
Even if the real process is irreversible, you can compute \(\Delta S\) by choosing a reversible “imaginary” path.
Reservoir (constant-temperature source/sink)
A reservoir stays at constant temperature \(T_{\rm res}\). If it loses heat \(Q\), its entropy decreases:
System + surroundings and the second law
The “universe” entropy change is the sum:
- Reversible idealization: \(\Delta S_{\rm tot}=0\).
- Irreversible process: \(\Delta S_{\rm tot}>0\).
Common processes included in the calculator
1) Reversible heat at constant temperature
If the system undergoes a reversible heat transfer at constant \(T\):
2) Heat transfer from hot to cold reservoirs (irreversible)
Consider heat \(Q>0\) flowing from a hot reservoir \(T_h\) to a cold reservoir \(T_c\) with \(T_h>T_c\).
3) Ideal-gas reversible isothermal
For an ideal gas expanding/compressing isothermally and reversibly:
In a reversible isothermal process, the surroundings/reservoir entropy change is \(-\Delta S_{\rm sys}\),
so \(\Delta S_{\rm tot}=0\).
4) Reversible adiabatic (isentropic)
If a process is reversible and adiabatic, then \(\delta Q_{\rm rev}=0\) everywhere:
5) Free expansion of an ideal gas (irreversible)
Free expansion into a vacuum has \(Q=0\) and \(W=0\), but entropy increases because the gas occupies a larger volume.
Using a reversible isothermal path between the same end states gives:
Sign conventions (used in the calculator)
- \(Q>0\): heat enters the system.
- Reservoir/surroundings typically have \(\Delta S_{\rm surr}=-Q/T_{\rm res}\) for a constant-\(T\) reservoir.
Website tip
The entropy-flow arrows visualize where entropy “goes” and the total.
Reversible idealizations make \(\Delta S_{\rm tot}=0\),
while irreversible cases (like hot→cold heat transfer or free expansion) produce \(\Delta S_{\rm tot}>0\).