Thermodynamics and Kinetics

Why Mixing Happens: The Entropy of Solutions

See why substances mix on their own, how to calculate the entropy of mixing and why oil and water still separate.

Key takeaways

  • Mixing increases entropy because a mixture can be arranged in far more ways than separated components.
  • For ideal mixtures, ΔS = −R × (sum of n ln x), which is positive for every composition.
  • An ideal mixture has no enthalpy of mixing, so its ΔG of mixing is always negative.
  • Liquids separate when unfavorable interactions or ordering effects outweigh the entropy gain.
  • Separating a mixture always requires work, and the entropy of mixing sets the minimum amount.

Substances mix largely because there are vastly more ways to arrange molecules mixed than separated. Random motion carries molecules through all the arrangements available, and almost all of them look uniform. No attraction between the two kinds of molecule is needed.

That counting advantage is the entropy of mixing. It is always positive for an ideal mixture. Whether a real pair of substances mixes then depends on whether the energy of their interactions works against that advantage strongly enough to win.

Counting arrangements

Picture a tiny model: four sites in a row, filled with two particles of A and two of B. There are six distinct arrangements.

AABB   ABAB   ABBA   BAAB   BABA   BBAA

Only two of the six, AABB and BBAA, have the kinds fully separated into halves. If every arrangement is equally likely, you will usually find some degree of mixing.

Scale up to twenty sites with ten of each. The number of arrangements is 184,756, and still only two are fully separated. With a mole of particles, the chance of spontaneous unmixing becomes so small that it never happens in any practical sense.

Boltzmann's relation S = k ln W turns the count W into entropy. The reasoning is developed in microstates and macrostates and offers a sharper picture than the word "disorder", as discussed in entropy beyond disorder.

The ideal mixing formula

Applying the counting to large numbers of molecules gives a compact result.

ΔS(mix) = −R (n₁ ln x₁ + n₂ ln x₂ + ...)
n is the amount of each component in moles
x is its mole fraction in the final mixture
R = 8.314 J/(mol·K)

Every mole fraction is less than 1, so every logarithm is negative and ΔS is positive. The same formula describes ideal gases mixed at equal temperature and pressure. For gases you can read it as each one expanding into the whole volume.

An ideal solution is one where the interactions between unlike molecules match the average of those between like molecules. Then ΔH of mixing is zero and:

ΔG(mix) = −T ΔS(mix) = RT (n₁ ln x₁ + n₂ ln x₂)

Benzene and methylbenzene (toluene) come close to this behavior. Their molecules are similar in size, shape and forces.

Worked examples

Mix 1.00 mol of gas A with 1.00 mol of gas B at 298.15 K and constant pressure.

x(A) = x(B) = 0.500
ΔS = −8.314 × (1.00 ln 0.500 + 1.00 ln 0.500)
ΔS = −8.314 × 2 × (−0.693) ≈ +11.5 J/K
ΔG = −(298.15)(11.53) ≈ −3.44 kJ

Now make one mole of mixture that is 90 percent A and 10 percent B.

ΔS = −8.314 × (0.90 ln 0.90 + 0.10 ln 0.10)
ΔS = −8.314 × (−0.0948 − 0.2303) ≈ +2.70 J/K

Compare this with the equal mixture, which gives 5.76 J/K per mole of mixture. The entropy of mixing per mole peaks at equal proportions.

Look at the rare component, though. B is 10 percent of the molecules but supplies about 71 percent of the entropy gain. Per mole of B, dilution is very rewarding. As a mixture approaches purity, the free energy payoff for adding a first trace of impurity grows without limit, which is why extreme purification is so hard.

When identical gases "mix"

Remove a partition between two samples of the same gas at the same temperature and pressure, and nothing measurable changes. The entropy of mixing is zero, even though molecules from each side wander into the other.

The formula applies only to distinguishable kinds. Swapping two identical molecules does not create a new arrangement. The apparent puzzle, that the entropy jumps from zero to a finite value as soon as two gases differ at all, is known as the Gibbs paradox. Quantum mechanics supports the answer that molecules are either identical or distinguishable, with nothing in between for counting purposes.

Why some liquids refuse to mix

Real mixtures have an enthalpy of mixing. If unlike neighbors are less favorable than like ones, ΔH is positive and opposes mixing.

ΔG(mix) = ΔH(mix) − T ΔS(mix)

A small positive ΔH is easily overcome. A larger one can make two separate layers, each containing a little of the other, lower in free energy than one uniform liquid. Because the mixing entropy is steepest near pure compositions, each layer almost always dissolves at least a trace of the other.

What decides whether two liquids mix
Similar molecules ΔH near zero; entropy gives full mixing Unlike attractions stronger ΔH negative; mixing releases heat Mild mismatch ΔH slightly positive; entropy still wins Strong mismatch Two layers, each with a trace of the other Similar molecules ΔH near zero; entropy gives full mixing Unlike attractions stronger ΔH negative; mixing releases heat Mild mismatch ΔH slightly positive; entropy still wins Strong mismatch Two layers, each with a trace of the other

Heating enlarges the TΔS term, so many partly miscible pairs mix completely above a certain temperature, the upper critical solution temperature. Some pairs, particularly those relying on hydrogen bonds with water, do the opposite and separate on warming.

Oil, water and ordered solvent

The familiar failure of oil to dissolve in water is mainly not a matter of oil molecules repelling water. For small nonpolar molecules near room temperature, the enthalpy of dissolving can be close to zero. The trouble lies in entropy.

Water molecules next to a nonpolar surface keep their hydrogen bonds by adopting a more restricted set of arrangements. When oil clusters together, less water is held this way, and the water regains freedom. This hydrophobic effect helps explain protein folding and micelle formation. The everyday rule that goes with it is covered in like dissolves like.

Large molecules mix poorly

Mixing entropy counts molecules, so size matters. Join a thousand small units into one polymer chain and they can no longer be placed independently. The entropy gain on mixing two polymers is tiny per unit of mass.

As a result, two polymers often separate even when their chemical mismatch is slight. This is one reason mixed plastics are hard to recycle together. A polymer dissolving in a small-molecule solvent sits between the extremes: the solvent contributes plenty of entropy, the chain very little.

The cost of unmixing

Since mixing lowers free energy, separation must raise it. The minimum work needed to undo a mixture, at constant temperature and pressure, equals the magnitude of ΔG of mixing. For the equal mixture above that is about 3.4 kJ for two moles.

Real separations such as distillation, membrane processes and adsorption use considerably more than the minimum, because they run at finite speed with losses. The minimum still guides design. It explains why recovering a substance from a very dilute source, such as a trace metal from seawater, is expensive per mole recovered.

Solids that mix, and solids that do not

The same balance applies to crystals. Two metals with similar atomic sizes and the same crystal structure, such as copper and nickel, form a solid solution across the whole range of compositions. Atoms of either kind can occupy any lattice site, which provides mixing entropy.

When the atoms differ more in size or bonding, the strain raises ΔH. At high temperature the TΔS term may still keep a single phase. On slow cooling that term shrinks, and the alloy separates into regions of different composition. Cooling quickly can trap the mixed state, because atoms in a cold solid move very slowly. Metallurgists use both behaviors to control hardness, as described in how alloying changes metals.

Ions in minerals and ceramics follow similar logic. Some modern materials combine many different metals in one structure, partly in the hope that a large mixing entropy will favor a single phase at high temperature. Whether it does in a given case depends on the enthalpy terms too.

A quick way to reason about any mixture

  1. Ask how many independent particles are gaining new places to be. Small molecules gain a lot, long chains little.
  2. Ask whether unlike contacts are better, similar or worse than like contacts. That sets the sign of ΔH.
  3. Ask whether either substance becomes more ordered around the other, which lowers the entropy gain.
  4. Consider temperature, which scales the TΔS term.
  5. Remember that a favorable ΔG can still be slow to act. Without stirring, diffusion across a tall, still liquid takes a very long time.

Consequences you can observe

Lowering the entropy-adjusted free energy of a solvent by mixing in a solute produces the colligative properties: lower vapor pressure, higher boiling point, lower freezing point and osmotic pressure. In ideal dilute solutions these depend on how many solute particles are present, not what they are. The quantity that carries this effect is the chemical potential.

Common misconceptions

  • "Substances mix because they attract each other." Ideal gases mix with no attraction at all.
  • "Diffusion pushes each molecule away from crowds." Individual molecules move randomly; the net flow comes from numbers.
  • "Mixing always releases or absorbs heat." Ideal mixing does neither.
  • "Unmixing is forbidden." It is allowed when you supply work, or when a temperature change makes separate phases lower in free energy.

Written for 4Chemistry with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 46 articles in Thermodynamics and Kinetics →

Latest news on this topic