Entropy of Mixing of Ideal Gases
Pull a partition out of a box separating argon from neon and something irreversible happens. Each gas expands into the space the other used to occupy. Even though no heat crosses the system boundary and no chemical bond forms, the entropy of the universe rises. This quiet fact — mixing itself generates entropy — sits at the heart of solution chemistry, colligative properties, and the meaning of disorder in the Second Law. The entropy of mixing matters because it explains why gases and miscible liquids mix spontaneously with no energy input at all. It sets the baseline against which every real solution's excess entropy is measured. It also exposes a famous conceptual trap, the Gibbs paradox, that forces us to think carefully about what "distinguishable" means at the molecular level. This article derives the entropy of mixing from the entropy of isothermal expansion of an ideal gas. You will see the partial-volume argument step by step. You will compute the mixing entropy for concrete examples. Then you will meet the Gibbs paradox and see why mixing identical gases must give zero entropy change.
- Mixing two different ideal gases at constant and increases entropy because each gas expands into the total volume.
- The result is , always positive for a genuine mixture.
- This formula depends only on mole fractions, not on the chemical identity of the gases.
- The Gibbs paradox arises if the formula is applied to mixing a gas with itself — it must give zero, not a positive number.
- Resolving the paradox requires recognizing that identical particles are fundamentally indistinguishable, foreshadowing the statistical view of entropy.
- Key idea: entropy of mixing is just the sum of independent free expansions, one for each gas into the full volume.
When a partition separating two different ideal gases is removed, each gas undergoes its own free expansion from its initial partial volume to the total volume, and because the gases do not interact, their entropy increases simply add — giving , a purely combinatorial, composition-dependent quantity independent of what the gases actually are, provided they are genuinely distinguishable.
The physical picture
Consider a rigid, insulated container divided by a removable partition into two compartments. The left compartment holds moles of gas A at volume ; the right holds moles of gas B at volume . Both compartments are at the same temperature and the same pressure , so the gases occupy volumes in proportion to their mole numbers. When the partition is withdrawn, nothing happens to the total energy — ideal gases have no intermolecular potential energy, so mixing at constant involves no enthalpy change. But each gas now has access to the full volume . Gas A, initially confined to , spontaneously expands to fill . Gas B does the same. Because ideal-gas molecules do not interact, gas A's presence does not hinder gas B's expansion, and vice versa. The process is exactly two independent free expansions happening simultaneously in the same container. Each free expansion is irreversible and isothermal, and from the earlier result for entropy of an ideal-gas expansion, the entropy change for an isothermal volume change is:
Applying this separately to A and to B, and adding the two contributions, gives the total entropy of mixing. The key physical insight is that mixing at constant total pressure is nothing more than two coupled isothermal expansions — the "mixing" language just describes what the expansion looks like when two different gases share one container.
The core relations
where: is the mole fraction of component at fixed .
where: is total moles; the sum runs over all components of the mixture.
where: always, since for ideal gases and .
Worked examples
Goal. Derive for an arbitrary number of ideal gases mixed at constant and .
Step 1. Set up the initial state. Suppose ideal gases, with moles, are each confined in their own compartment at the same temperature and same pressure . Each compartment has volume , since every gas independently obeys the ideal gas law at that shared and .
Step 2. Define the final state. All partitions are removed. The gases occupy one common volume:
The final pressure is still , because the total moles and total volume satisfy the same ideal gas law with no change in .
Step 3. Apply the expansion formula to each gas separately. Because ideal-gas molecules exert no forces on one another, each gas behaves exactly as if it alone were expanding into the full volume , oblivious to the presence of the others. The entropy change of gas is the entropy change of an isothermal free expansion from to :
Step 4. Rewrite the volume ratio as a mole-fraction ratio. Since at fixed and , we have , so:
Step 5. Sum over all components. Because the expansions are independent, the total entropy change is additive:
Factoring out total moles , using :
Step 6. Check the sign. Every mole fraction satisfies , so for every term, making every term strictly positive. Therefore for any genuine mixture of two or more distinguishable gases, vanishing only in the trivial limit where one component has .
Worked examples
Example 1 — Mixing two gases in equal amounts. Suppose 1.00 mol of N₂ and 1.00 mol of O₂, each initially in its own 22.4 L container at 273 K and 1.00 atm, are mixed by removing the partition between them. Find and at 273 K. Total moles: mol. Mole fractions: .
Evaluate the bracket: , so the bracket is .
At K:
Sanity check: has the units J K⁻¹, matches J K⁻¹ exactly as computed. The mixing is spontaneous, , with no enthalpy change — the whole driving force is entropic.
Example 2 — Mixing three gases in unequal amounts (exam-level). A gas cylinder is divided into three compartments at the same K and bar, containing 3.00 mol He, 1.00 mol Ne, and 1.00 mol Ar. All partitions are removed. Compute , , and the mixing entropy per mole of mixture. Total moles: mol. Mole fractions:
Compute each term:
Sum: .
Entropy per mole of mixture: J K⁻¹ mol⁻¹, comfortably below the maximum possible per-mole value J K⁻¹ mol⁻¹ for a three-component mixture at equal mole fractions — sensible, since this mixture is not equimolar. Gibbs energy of mixing at 298 K:
Both numbers are physically reasonable: entropy rises, Gibbs energy falls, and the whole effect scales with how "spread out" the composition is across components.
Limiting cases & common traps
| Situation | Behavior of | Note |
|---|---|---|
| Equimolar binary mixture | Maximum value per mole pair | Largest possible mixing entropy for two components |
| One component dominates () | "Mixing" a trace impurity barely changes entropy | |
| Mixing identical gases | Naive formula gives | This is the Gibbs paradox — physically wrong |
| More components at fixed | increases with number of components | Maximum at equal mole fractions across all components |
| Mixing at constant instead of constant | Formula does not apply directly | Must redefine initial partial volumes consistently |
The chemist behind it
The entropy of mixing sits at the intersection of thermodynamics and the emerging statistical picture of matter in the late nineteenth century. Josiah Willard Gibbs, working largely in isolation at Yale, built the theoretical apparatus — free energy, chemical potential, phase rule — that made quantitative sense of mixing, solutions, and phase equilibria. His 1875–78 papers "On the Equilibrium of Heterogeneous Substances" contain, almost as an aside, the paradox that now bears his name: the observation that naive combinatorial counting of gas mixing entropy gives a nonzero, discontinuous answer when two samples of the same gas are combined, unless one treats identical particles as indistinguishable from the start. This single puzzle quietly foreshadowed the deep quantum-statistical distinction between identical and distinguishable particles, decades before quantum mechanics existed to justify it.
Origins · 1 minJosiah Willard Gibbs and how this was discovered
Ask the tutor: How does the correction in statistical mechanics formally resolve the Gibbs paradox, and how does it connect to the Sackur–Tetrode equation for gas entropy?
Why is there no enthalpy change when ideal gases mix
Ideal gas molecules are defined as having no intermolecular potential energy — they interact only through elastic collisions that do not affect internal energy on average. Since enthalpy for an ideal gas depends only on temperature, and mixing at constant changes neither temperature nor the energetic environment of any molecule, exactly. All of the spontaneity of mixing therefore comes from the entropy term; is negative purely because is positive, not because of any energetic stabilization.
Does the entropy of mixing formula depend on which gases are being mixed
No — remarkably, the formula depends only on the mole fractions of the components, never on their molar mass, polarizability, or chemical identity. This is a direct consequence of the ideal gas model: since ideal gases do not interact, the entropy gained by each gas depends only on how much its own volume expands, which is fixed purely by the mole ratios at constant and . Real gases show small deviations from this ideal formula due to intermolecular forces.
How does the Gibbs paradox get resolved in statistical mechanics
Classical statistical mechanics initially double-counts microstates that differ only by swapping identical particles, producing an entropy that fails to be extensive and predicts a nonzero mixing entropy even for identical gases. Gibbs showed that dividing the classical partition function by , one factor for each species, removes this overcounting and restores the correct extensive entropy with zero mixing entropy for identical gases. This correction is justified rigorously by quantum mechanics, where identical particles are truly indistinguishable, not merely difficult to tell apart — a deeper explanation that the statistical-entropy treatment develops further.
Is entropy of mixing the same thing as entropy of solution for liquids or solids
Not quite. The ideal entropy of mixing derived here strictly applies to ideal gases, where zero enthalpy change and pure volume-expansion behavior are guaranteed. Liquid and solid solutions often show an "ideal" mixing entropy of the same combinatorial form when interactions between different components are similar to those between like components, but real solutions typically also have a nonzero enthalpy of mixing and excess entropy from packing and structural effects. The gas-phase formula is the reference baseline against which real-solution deviations are measured.
What happens to Δmix S if you mix many components instead of just two
Adding more distinguishable components at fixed total moles increases the mixing entropy, because spreading the same number of particles over more distinguishable categories increases the combinatorial possibilities. The mixing entropy per mole is maximized when all components have equal mole fractions, reaching for equally-populated components; unequal mole fractions always give a smaller value, as seen in Worked Example 2 where the entropy per mole fell below the equal-fraction maximum for three components.