A hot cup of coffee left on a desk always cools toward room temperature, and it never spontaneously reheats by pulling warmth back out of the air. The second law of thermodynamics is the principle that captures this one-way character of nature: it tells you which processes happen on their own, and which ones require outside work to force.
The formula and its symbols
The core statement for an isolated system is
Here is the change in total entropy of the full isolated system. Entropy is the quantity that tracks the natural direction of a process. The inequality says the total entropy cannot decrease: equality is the reversible limit, while a strict increase is the usual real-world case because real processes carry irreversibility.
A second formula you will use often is the entropy change for reversible heat transfer at constant temperature :
where is the reversibly transferred heat. The condition matters: this is not a shortcut for every heat-transfer problem. If the transfer is irreversible or the temperature changes during the process, you need a more careful entropy calculation.
Why the law holds: tracking direction with entropy
The first law tells you energy is conserved, but it never says which way a process goes. Conservation alone would happily allow coffee to reheat itself. The second law adds the missing direction by following entropy.
The intuition is that a colder body gains more entropy per joule than a hotter body loses, because the same heat divided by a smaller produces a larger . When heat moves from hot to cold, the gain on the cold side outweighs the loss on the hot side, so the total goes up. Reverse the flow and the total would have to drop below zero, which the law forbids. That is why you never need the vague idea of "disorder" to use entropy well: just check whether the total entropy of the isolated system stays the same or increases.
Worked example: why heat flows from hot to cold
Suppose of heat leaves a hot reservoir at and enters a cold reservoir at . Assume each reservoir stays at its stated constant temperature.
For the hot reservoir,
For the cold reservoir,
So the total entropy change is
The total is positive, so this process is allowed by the second law. If you imagine reversing it without adding work, the signs would flip and would be negative. That would violate the law, which is exactly why heat does not spontaneously flow from cold to hot.
Practice it yourself
Rework the reservoir example with a hot side at and a cold side at , keeping . You should find , , and , still positive. Then push the two temperatures close together, say and , and notice the total shrinks toward zero, which is the near-reversible limit.
Calculation traps to avoid
- Treating the second law as only a heat-flow rule. It also sets efficiency limits: a heat engine can convert some heat into work during a cycle, but never all of it.
- Using without checking the condition. The safe form here is for reversible heat transfer at constant temperature.
- Stopping after one part of the system. A single object can lose entropy; what matters is the total entropy change of the full isolated system.
- Dropping or flipping the sign of . Heat leaving a body is negative for that body, heat entering is positive.
Where you use the second law
The second law appears in heat engines, refrigerators, atmospheric physics, chemistry, materials science, and biology. In class problems it usually shows up in one of three forms: which way heat moves, whether a process is possible, or what the best possible efficiency is. If a problem involves a cycle, a temperature difference, or entropy, this is usually the law you need.
Frequently Asked Questions
- What does the second law of thermodynamics say?
- For an isolated system, the total entropy cannot decrease. Equality holds in the reversible limit, while a strict increase is the usual real-world case because real processes have irreversibility. In practice, this is why heat flows spontaneously from hot to cold, why refrigerators need work input, and why even an ideal heat engine cannot convert all absorbed heat into work.
- What is the difference between the first and second law of thermodynamics?
- The first law tells you energy is conserved. The second law tells you whether a process can happen on its own and what its limits are. Energy conservation alone does not explain why a hot cup of coffee cools in a room rather than spontaneously heating up; entropy is the quantity that tracks this direction of natural processes.
- When can you use the formula delta S equals Q over T?
- Only for reversible heat transfer at constant temperature. The condition matters: this is not a shortcut for every heat-transfer problem. If the transfer is irreversible or the temperature changes during the process, you need a more careful entropy calculation rather than a single division of heat by temperature.
- Why does heat flow from hot to cold and not the reverse?
- When heat moves from hot to cold, the colder reservoir gains more entropy than the hotter reservoir loses, so the total entropy increases and the process is allowed. For example, 100 joules leaving a 500 kelvin reservoir and entering a 300 kelvin reservoir gives a net entropy change of about plus 0.13 joules per kelvin. Reversing it without adding work would make total entropy decrease, violating the second law.
- Can the entropy of a single object ever decrease?
- Yes. A single object can lose entropy, for example when it cools. A common mistake is stopping the analysis after one part of the system. What the second law constrains is the total entropy change of the full isolated system, which must stay the same or increase even when individual parts lose entropy.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →