The link between the number of microstates and the entropy is given by one of the most important formulas in all of physics, due to Ludwig Boltzmann.
Key formula — Boltzmann entropy
Here is the Boltzmann constant and is the number of microstates compatible with the macrostate. The unit of entropy is therefore joules per kelvin (J/K), the same units as , since the logarithm is a pure number.
Why the logarithm specifically? The choice is not arbitrary. The logarithm turns a gigantic number of configurations (for a mole, is of the order of raised to numbers with digits) into a manageable value. But above all it makes entropy additive: if we join two independent systems, the total number of microstates is the product of the two (, because every microstate of the first combines with every microstate of the second), and thanks to the logarithm the entropies add up:
This additivity is exactly the property we expect from an extensive quantity like energy: doubling the system doubles the entropy.
What matters is the change, not the absolute value
In practice, when solving problems we are never interested in the absolute values of , only in the changes between an initial state A and a final state B. For the most common systems (ideal gas, solid bodies, thermostats) there are direct formulas that let us calculate without having to count the microstates one by one.
These practical formulas are the subject of the next section: they are the real working tool for solving thermodynamics problems.
Links
Topics: Entropy and the second law Concepts: Entropy Skills: Micro-macro interpretation
Related exercises: Worked exercise — the coffee cools down · Hot shower: ΔS of the universe · Heat from hot to cold: proof