On this page
Put a hot spoon in cold water and heat flows from spoon to water, never the other way. No force pushes the heat; energy wanders between atoms at random. So why does it always end up going one way? The answer is counting. There are far more ways to share energy evenly than unevenly, and with real numbers of atoms "far more" becomes so large that the uneven state never comes back. A simple model shows this with a calculator.
What is an Einstein solid?
In 1907 Einstein pictured a solid as a set of atoms, each vibrating about its place like a tiny spring. Quantum theory says each oscillator can hold energy only in whole packets of size ε = hf. So the state of the solid is just a list: how many packets each oscillator holds.
Each atom vibrates in three directions, so N atoms make 3N oscillators; here we count oscillators directly. All oscillators are given the same frequency. Real solids have a spread of frequencies (the later Debye model handles this), so treat the Einstein solid as a model that gets the idea right, not every number.
How many ways can energy be shared among oscillators?
Suppose a solid has N oscillators and q packets in total. A microstate is one particular way of handing out the packets. The number of microstates is
W(N, q) = C(q + N − 1, q)
This is the "stars and bars" count from Class 11 combinatorics: line up q packets as stars and N − 1 bars that mark where one oscillator ends and the next begins. Each arrangement is one microstate. Check: two oscillators with 4 packets can hold (0, 4), (1, 3), (2, 2), (3, 1) or (4, 0), and C(5, 4) = 5. Two oscillators always give q + 1 ways.
The key assumption: energy keeps moving between oscillators at random, so every microstate of the whole system is equally likely. The chance of any split is then proportional to how many microstates give it.
Why does energy end up shared evenly between two solids?
Put two solids, A and B, in contact. They can swap packets, but the total stays fixed. For a split with q_A packets in A and q_B in B, the number of ways is the product W_A × W_B, because any arrangement in A can go with any arrangement in B.
Start small. Give A and B two oscillators each, with 4 packets in total.
List the splits. q_A can be 0, 1, 2, 3 or 4.
Count each. With two oscillators, W = q + 1. So the products are 1 × 5 = 5, 2 × 4 = 8, 3 × 3 = 9, 4 × 2 = 8 and 5 × 1 = 5.
Add them. 5 + 8 + 9 + 8 + 5 = 35 ways in all, which matches C(4 + 4 − 1, 4) = C(7, 4) = 35 for 4 packets among all four oscillators.
Compare. The even split 2–2 has 9 of the 35 ways (26%). Putting everything in A has 5 (14%).
With four oscillators the even split wins only narrowly.
Worked example: how strongly does a hot solid lose energy?
Take solid A with 240 oscillators and solid B with 360 oscillators, sharing 120 packets. Start with A hot: 100 packets in A and only 20 in B.
Find the likeliest split. Compute W_A × W_B for every q_A from 0 to 120 (a few lines of Python with math.comb). The peak is at q_A = 48, q_B = 72.
Read the peak. 48/240 = 0.2 and 72/360 = 0.2. At the peak each solid holds the same energy per oscillator, 0.2ε.
Compare with the start. The 48–72 split has 1.98 × 10¹⁷ times as many microstates as the 100–20 start.
Look at one step. Moving one packet from A to B, from 100–20 to 99–21, multiplies the number of ways by 5.3. Moving one from B to A divides it by 5.6. Random shuffling favours the step towards cold B.
Check the spread. All splits together have 2.56 × 10¹³⁹ microstates, and 92.7% of them lie within 10 packets of the peak, between 38 and 58. The chance of finding 100 or more packets in A is 4 × 10⁻¹⁹.
Nothing forbids the reverse. Random shuffling simply lands, almost always, in the huge crowd of microstates near 48–72.
Why does equal energy per oscillator mean equal temperature?
The system settles where the total number of ways is largest. At that point, moving one packet from A to B gains as many ways in B as it loses in A. Write entropy as S = k ln W, with Boltzmann's constant k = 1.380649 × 10⁻²³ J/K, an exact value in the SI (NIST). Then equilibrium is where both solids gain the same entropy per unit of energy, and that rate is exactly what defines 1/T. Heat flows towards the body that gains more entropy per packet, and that body is the colder one.
Here both solids have the same packet size ε, so "the same energy per oscillator" and "the same temperature" coincide. If the packets in A and B were different sizes, equal temperature would not mean equal packets per oscillator.
In our example the entropy rises from start to peak by ΔS = k ln(1.98 × 10¹⁷) = 39.8k, which is 5.5 × 10⁻²² J/K. Small in joules per kelvin, but it is a factor of 10¹⁷ in probability. This is the counting picture behind the macroscopic rule ΔS = Q/T used in the entropy of the universe and the second law.
Why does a real object never get the heat back?
Multiply every number in the example by 10, then 100, then 1,000. The likeliest split stays at 40% of the packets in A, but the spread around it, as a fraction of that value, falls from 12% to 3.9%, 1.2% and 0.39%. It shrinks like 1/√N.
A spoon has about 10²³ atoms. At that size the relative spread is a few parts in 10¹², far below anything a thermometer can see. The peak becomes a spike, and the drift towards it becomes the second law. Heat flowing back from cold to hot is not impossible; it is so unlikely that you would not expect to see it in the age of the universe.
For microstates counted with coins first, try counting microstates with coins and boxes; for the man behind S = k ln W, read Ludwig Boltzmann on atoms, probability and entropy.
The Concept Library covers entropy and the laws of thermodynamics concept by concept.
Quick checklist
An Einstein solid is N oscillators sharing q equal packets of energy; it is a model, not the full story of real solids.
Ways to share q packets among N oscillators: W = C(q + N − 1, q).
Two solids in contact: ways for a split = W_A × W_B.
The likeliest split gives equal energy per oscillator, which here means equal temperature.
Heat flows hot to cold because that direction increases the number of microstates.
S = k ln W is beyond the syllabus; ΔS > 0 for the universe is what exams test.



