Gibbs Energy of Mixing
Pour two liquids together and they mix without any push from outside. No stirring is required in principle, no heat needs to be added or removed. Why does this happen spontaneously? The answer lies in the Gibbs energy of mixing, , which is always negative for an ideal mixture at constant temperature and pressure. This quantity matters because it is the thermodynamic reason solutions exist at all. It explains why gases interdiffuse, why alloys form, and why a drop of dye spreads through water rather than staying clumped. It connects the microscopic idea of dispersal to the macroscopic criterion for spontaneous change. This article derives for an ideal mixture from the chemical potentials of the components. You will see where the negative sign comes from. Then you will see how it splits into entropy and enthalpy contributions. Finally you will see two fully worked numerical examples.
- for an ideal mixture, and this is always negative.
- The negative sign arises because for any mole fraction between 0 and 1.
- Ideal mixing has zero enthalpy change; the entire driving force is entropic.
- is most negative near and vanishes at the pure-component limits.
- The same algebra you met for mixing ideal gases carries over unchanged to ideal solutions.
- Key idea: mixing lowers Gibbs energy because spreading molecules over a larger accessible volume of composition space increases entropy, at no enthalpic cost, and then guarantees .
For an ideal mixture, and , so is negative at every composition except the pure states — mixing is spontaneous purely because it multiplies the number of ways molecules can be arranged, not because any bonds get stronger.
The physical picture
Imagine two liquids, A and B, separated by a partition inside a container held at constant and . Each liquid is a pure substance with a well-defined chemical potential, and . When the partition is removed, the molecules of A and B intermingle. If the mixture is ideal — meaning A–A, B–B, and A–B interactions are all energetically equivalent — then no heat is exchanged in the process. The molecules do not care whether their neighbor is an A or a B. What does change is the number of accessible microscopic arrangements. Before mixing, all the A molecules are confined to one region and all the B molecules to another. After mixing, each type of molecule can be found anywhere in the combined volume. This is a purely statistical, entropic effect. It is exactly the same argument used earlier for two ideal gases expanding into a shared container: nothing energetic drives the process, but the accessible number of configurations rises enormously, so the entropy rises, and Gibbs energy falls. Because and for the ideal case, the sign of is dictated entirely by . Since mixing always increases the entropy of two distinguishable, initially separated components, is always negative — mixing is always spontaneous for an ideal mixture, at any nonzero temperature and any intermediate composition.
The core relations
where: is total moles, the gas constant, absolute temperature, the mole fraction of component ; the sum runs over all components.
where: this is always positive since each , and it is the sole source of the negative .
where: holds specifically for the ideal-mixture (or ideal-gas) approximation, where interactions between unlike and like molecules are energetically indistinguishable.
where: is the chemical potential of pure at the same and ; this is the defining relation for an ideal mixture and the starting point of the derivation below.
Goal: starting from the chemical potentials of pure and mixed components, obtain and show it is necessarily negative.
Step 1. Gibbs energy before mixing. Consider moles of pure liquid A and moles of pure liquid B, held separately at temperature and pressure . The total Gibbs energy of the unmixed system is simply the sum of the two pure Gibbs energies,
since for a pure substance .
Step 2. Gibbs energy after mixing. For a mixture, the total Gibbs energy is the sum of over all components, where is the chemical potential of in the mixture. For an ideal mixture this is defined (in exact analogy with the ideal-gas mixing result) by
This says a component's chemical potential is lowered relative to its pure value by an amount that depends on how dilute it is in the mixture — the more dilute, the more negative , the lower . Substituting,
Step 3. Subtract to isolate the mixing term. The Gibbs energy of mixing is defined as the difference,
The pure-component terms and appear identically in both expressions and cancel exactly, leaving
Step 4. Express in terms of mole fraction and total moles. Writing and , where is the total number of moles,
Generalizing to any number of components gives the boxed relation stated above.
Step 5. Show the sign is always negative. Because for every component actually present in a mixture, is strictly negative for each term. Since , , and are all positive quantities, every term in the sum is negative, so the sum itself must be negative. There is no composition (short of a pure substance, where the process is not really mixing) at which can be positive or zero.
Step 6. Split into entropy and enthalpy. Differentiating with respect to at constant and composition, using , gives
which is positive by the same sign argument. Because has no explicit dependence on beyond the prefactor itself, applying term by term shows
Worked examples
Example 1 — Equimolar mixing of two liquids at room temperature. Take 1.00 mol of liquid A and 1.00 mol of liquid B, assumed to form an ideal mixture, at . Total moles: . Mole fractions: . Compute the entropy of mixing first:
Now the Gibbs energy of mixing, using either the direct formula or (valid since ):
Sanity check: per mole of mixture, this is , matching the minimum labeled on the composition plot above, where the dip is deepest at . The negative value confirms mixing is spontaneous, and the modest magnitude — a few kJ per mole, far smaller than a typical bond energy of hundreds of kJ per mole — confirms this is an entropic, not an energetic, effect.
Example 2 — Non-equimolar mixing and the "most negative" composition. A chemist mixes 3.00 mol of ideal liquid A with 1.00 mol of ideal liquid B at . Find , and compare it with the equimolar case at the same total moles and temperature to confirm the mixing is less favorable than 50:50 mixing. Total moles: . Mole fractions: , .
Per mole of mixture: . Compare with an equimolar 2:2 mixture (same 4.00 mol total, same ): ,
or . As expected, the equimolar mixture is more stable per mole ( vs. ): mixing is still spontaneous in both cases, but the driving force is strongest at , where the entropic dispersal of molecules is maximal, and weakest as either mole fraction approaches 0 or 1.
Limiting cases & common traps
| Situation | Behavior of | Note |
|---|---|---|
| or | No mixing occurs at the pure-substance limit; nothing to mix. | |
| (two components) | Most negative value | Maximum entropic dispersal at equimolar composition. |
| Real (non-ideal) mixtures | Enthalpy of mixing can be positive or negative; ideal formula is only an approximation. | |
| Since for ideal mixing, it scales linearly with . | ||
| More than two components | Still negative | Sum extends over all ; each term remains negative. |
The chemist behind it
The chemical-potential formalism used here — writing and building macroscopic mixing thermodynamics directly from it — traces to Josiah Willard Gibbs, whose 1870s papers on the equilibrium of heterogeneous substances founded the entire framework of chemical potentials, phase equilibrium, and free energy used throughout physical chemistry. Gibbs worked largely in isolation at Yale, publishing in the relatively obscure Transactions of the Connecticut Academy of Sciences, and his ideas were only widely appreciated in chemistry after being popularized in Europe by Wilhelm Ostwax and later systematized by Gilbert N. Lewis, who introduced the modern notation of activities and fugacities built directly on Gibbs's chemical potential.
Origins · 1 minJosiah Willard Gibbs and how this was discovered
Ask the tutor: What happens to the Gibbs energy of mixing when the two components are not ideal and have a nonzero enthalpy of mixing?
Why is ΔmixG negative even though nothing "energetically favorable" happens?
Gibbs energy combines enthalpy and entropy through . For an ideal mixture, because A–A, B–B, and A–B interactions are equally strong, so there is no energetic reward for mixing. However, entropy always rises when previously separated, distinguishable molecules are allowed to intermingle, since there are vastly more ways to arrange the mixed state than the separated one. With and , the term is negative, so must be negative — mixing is spontaneous on entropic grounds alone.
How does this relate to mixing ideal gases?
The derivation is structurally identical. For ideal gases, mixing at constant total pressure gives because each gas expands into the combined volume, lowering its partial pressure and hence its chemical potential by . For an ideal solution, the same algebraic form emerges because each component's chemical potential in the mixture is defined the same way, . The physics differs — volume expansion for gases, statistical dispersal on a lattice-like model for liquids — but the resulting equation is identical.
Does ΔmixG depend on pressure?
Not directly, in the ideal case. The formula contains no explicit dependence, because the pure and mixed states are compared at the same and , and the ideal-mixture assumption means volume changes on mixing are zero. In a real, non-ideal mixture, there can be a small volume of mixing, which would introduce weak pressure sensitivity through the contributions buried in the true and activity terms.
Can ΔmixG ever be positive for a real mixture?
Yes, but that means the mixture is behaving non-ideally, and full miscibility may fail. If is sufficiently positive (unfavorable A–B interactions) it can outweigh at some compositions, making positive there — this is exactly the mechanism behind partial miscibility and upper critical solution temperatures. For a strictly ideal mixture, though, this can never happen; is guaranteed negative everywhere between the pure limits.
Why does ΔmixG vanish at x = 0 and x = 1?
At these limits, one of the mole fractions equals 1 and the other equals 0. The term vanishes both when (since ) and when (since in that limit, even though , because goes to zero faster). Physically, these limits correspond to not actually mixing anything — you have pure A or pure B, and there is no dispersal to gain entropy from.