Thermodynamics of Mixing Ideal Gases
Open a valve between two flasks of different gases and something irreversible happens instantly. Nothing collides differently, no bonds break, yet the universe changes forever. This is mixing, the simplest spontaneous process in all of chemistry. Understanding why mixing is spontaneous, and by how much, requires nothing more exotic than the chemical potential of a perfect gas. It matters because every solution, every separation process, and every equilibrium calculation in chemistry rests on this foundation. Distillation columns, osmotic pressure, and even the entropy cost of unmixing air all trace back to this one idea. This article builds the chemical potential of a gas in a mixture from the partial pressure. You will see how Dalton's law feeds directly into Gibbs energy. Then you will derive the Gibbs energy, entropy, and enthalpy of mixing. Finally you will see why mixing perfect gases is always spontaneous, and never releases or absorbs heat.
- Each gas in an ideal mixture behaves thermodynamically as if it alone occupied the container at its own partial pressure.
- The chemical potential of gas is .
- Mixing perfect gases at constant total pressure lowers the Gibbs energy: , always negative.
- Because there are no intermolecular forces, the enthalpy of mixing is exactly zero: .
- The entire driving force for mixing is entropy: .
- Key idea: Mixing perfect gases is spontaneous solely because it increases entropy, with the Gibbs energy drop coming entirely from the term.
In a mixture of perfect gases, each component's chemical potential depends only on its own partial pressure, exactly as if the other gases were not there. This one fact, combined with Dalton's law, is enough to derive the Gibbs energy, entropy, and enthalpy of mixing without any new physics.
The physical picture
Consider a rigid container of volume held at temperature , containing a mixture of perfect gases. Because perfect gas molecules do not interact, each gas's molecules move as though the others were absent. The pressure exerted by gas alone, called its partial pressure , is exactly the pressure it would exert if it occupied the whole volume by itself at temperature . Dalton's law states that the total pressure is the sum of these partial pressures.
This independence is the key simplification. The chemical potential of a pure perfect gas at pressure is known from earlier work on chemical potential in mixtures.
The bold step, justified rigorously below, is that this same expression applies to each component of a mixture if we simply replace the total pressure with that component's partial pressure . The chemical potential of "sees" only its own partial pressure. It is blind to whatever other gases share the container, because in a perfect gas there is no energy of interaction to register their presence. This picture explains, at a glance, why mixing gases lowers the Gibbs energy of the system. Before mixing, each gas is at some pressure (often or the total pressure ). After mixing, each gas is diluted, its partial pressure drops below the total pressure, and since chemical potential increases with pressure, each gas's chemical potential falls. Every component becomes thermodynamically "happier" simply by being dilute.
A second view helps: plotting the Gibbs energy of mixing against composition for a two-component system shows a single symmetric minimum at equal mole fractions, always below zero for any composition between pure A and pure B.
The core relations
where: is the standard chemical potential of pure at , and is its partial pressure in the mixture.
where: is the mole fraction of and is the total pressure.
where: is total moles, is temperature, and the sum runs over all components.
where: this is minus the temperature derivative of at constant .
where: follows because and the two temperature-dependent terms cancel exactly.
Goal. Starting from the chemical potential of a perfect gas at its partial pressure, derive , , and for mixing several perfect gases at constant total pressure and temperature.
Step 1: Justify from a mechanical mixture. Imagine gases A and B, each perfect, separated by a partition, each initially at the same pressure as the final mixture. Because perfect gas molecules exert no forces on each other, inserting gas B into the volume already containing gas A changes nothing mechanically for A: A's molecules still collide with the walls exactly as before, now simply diluted among B's molecules. The partial pressure of A in the mixture is defined operationally as the pressure A alone would exert in that volume, and by the perfect gas law this equals when the mixture occupies the combined volume at total pressure . Since A's molecules do not "feel" B, A's chemical potential in the mixture is identical in form to that of pure A at pressure .
The same argument applies to every component. This is the essential content of Dalton's law extended to chemical potential.
Step 2: Gibbs energy of the unmixed gases. Take moles of each pure gas , each confined separately at the same total pressure that will prevail after mixing (this is the standard "mixing at constant and " setup). The total Gibbs energy of the separated gases is the sum of over components, where is the chemical potential of pure at pressure .
Step 3: Gibbs energy of the mixture. After the partition is removed, gas has partial pressure , and its chemical potential is given by Step 1. Summing over all components:
Step 4: Subtract to isolate the mixing term. Form . The terms cancel exactly (same moles of each substance before and after), and the terms cancel too, since .
using . Since each , every , so this sum is always negative: mixing perfect gases always lowers at fixed and .
Step 5: Entropy of mixing from the temperature derivative. Recall . Since carries all the temperature dependence associated with the reference state, and is composition, not temperature, differentiating with respect to at constant composition and pressure gives directly:
Because is negative for , is always positive — entropy increases on mixing, as expected for a more disordered arrangement of distinguishable gases.
Step 6: Enthalpy of mixing by subtraction. Using , rearrange for :
The two terms are equal in magnitude and opposite in sign, so they cancel exactly, term by term, for every component.
This is the physical fingerprint of a perfect gas mixture: mixing is driven entirely by entropy, with zero enthalpy change, because there is no intermolecular energy to alter upon mixing.
Worked examples
Example 1 — Mixing two gases in equal amounts (foundational). One mole of N₂ and one mole of O₂, each initially at 1 bar and 298 K, are mixed at constant total pressure of 1 bar and constant temperature. Find , , and . Total moles mol. Mole fractions: . Compute the composition sum first, since it appears in both and formulas:
Gibbs energy of mixing:
Entropy of mixing:
Check consistency: , matching exactly, confirming .
Sanity check: is negative (spontaneous), is positive (disorder increases), and is exactly zero, all consistent with perfect gas mixing.
Example 2 — Mixing three gases in unequal amounts (applied). A gas cylinder is filled at 1.00 bar and 350 K with 3.00 mol N₂, 1.00 mol O₂, and 1.00 mol Ar, previously stored in three separate compartments at the same pressure and temperature. Calculate and for opening the partitions, and find the partial pressure of each gas afterward. Total moles: mol. Mole fractions:
Partial pressures at total bar:
Check: bar, matching Dalton's law. Composition sum:
Gibbs energy of mixing:
Entropy of mixing:
Check: , agreeing with to rounding. as always for perfect gases. Sanity check: three components mixed unevenly give a larger per mole of gas than the equal 50:50 case in Example 1, since more mole fractions are far from 1, but note the effect is diluted somewhat by N₂ dominating the mixture. The sign and structure are exactly as expected.
Limiting cases & common traps
| Situation | Result | Why |
|---|---|---|
| Mixing identical gases (same substance) | No real mixing occurs; there is no distinguishability, so the formula must not be applied — this is the origin of the Gibbs paradox | |
| One component with | Its contribution | A nearly pure gas contributes negligibly to mixing quantities |
| (trace component) | Even though , the product vanishes; trace gases barely affect per mole of solvent | |
| Mixing at constant volume instead of constant total pressure | Same , formulas | Because perfect gas partial pressure equals regardless of how the mixing is staged, provided each gas ends up occupying the full final volume |
| Non-ideal (real) gases or liquids | Formulas are only approximate | Intermolecular forces make in general; ideal formulas are the reference, not the rule |
The chemist behind it
John Dalton first framed the additivity of partial pressures in 1801, studying humid air and the "mechanical mixture" of gases. He had no access to entropy or Gibbs energy, both nineteenth-century constructs developed decades later by Clausius and Gibbs. Yet Dalton's simple experimental law, that each gas in a mixture behaves as though the others are absent, turned out to be exactly the microscopic justification Josiah Willard Gibbs needed for the chemical potential expression used throughout this article. The bridge from Dalton's partial pressures to Gibbs's chemical potentials is one of the cleanest examples in physical chemistry of an empirical gas law becoming a rigorous thermodynamic statement.
Origins · 1 minJohn Dalton and how this was discovered
Ask the tutor: How does the Gibbs energy of mixing change when the gases are not perfect and intermolecular forces make the enthalpy of mixing nonzero?
Why does mixing perfect gases lower the Gibbs energy if no bonds change and no heat is released
Gibbs energy depends on both enthalpy and entropy through . For perfect gases exactly, so the entire drop in comes from the term. Mixing increases the number of accessible microstates because molecules of each type can now be found throughout the whole volume rather than confined to their original half. That configurational entropy gain, multiplied by temperature, is large enough to make negative for any composition between the pure states.
Does the formula for Δmix G apply to mixing liquids or solutions as well
Only approximately, and only if the components behave as an ideal solution, meaning intermolecular forces between unlike molecules resemble those between like molecules closely enough that mixing releases no heat. Real liquid mixtures usually have nonzero , and their entropy of mixing can deviate from the ideal formula too. The perfect gas result is the reference against which real solution behavior, described later using activities and activity coefficients, is measured.
What happens to Δmix G if the two gases are mixed at different initial pressures rather than the same pressure
The clean formula assumes both gases start at the same pressure as the final total pressure of the mixture. If the initial pressures differ, an additional Gibbs energy change accompanies compressing or expanding each gas to the common final pressure before the "mixing" step proper. The problem then splits into two contributions: a pressure-equalization term and the mixing term derived here.
Is the entropy of mixing really about disorder, or is that description misleading
The entropy of mixing is best understood through the number of ways indistinguishable arrangements can be realized, formalized by Boltzmann's . Mixing multiplies the number of accessible spatial configurations for each type of molecule, increasing and hence . Describing this as "disorder" is a common shorthand, useful but imprecise. The rigorous statement is that mixing increases the number of microstates consistent with the macroscopic description of the system.
Why is Δmix H exactly zero rather than just small for perfect gases
Enthalpy changes on mixing arise from changing intermolecular interaction energies as unlike molecules come into contact. Perfect gas molecules are defined as having no intermolecular forces at all, and no volume of their own, meaning there is no interaction energy to change upon mixing, whatever the identity or proportion of gases involved. This makes an exact consequence of the perfect gas model, not merely a good approximation, though real gases at high pressure will show small deviations.