Gibbs' Phase Rule Calculator
Enter the number of components (C) and phases (P) in your system to instantly calculate the degrees of freedom (F) using the Gibbs phase rule F = C - P + 2. For reactive systems, add the number of independent chemical reactions. Toggle fixed temperature or pressure to apply the appropriate constraint. Results are classified as invariant, univariant, divariant, or multivariant, with a full worked breakdown and common system examples.
Formula
Worked example
Water at its triple point: C = 1 (one component), P = 3 (solid, liquid, gas). F = 1 - 3 + 2 = 0. The system is invariant: T = 273.16 K and P = 611.7 Pa are the only values at which all three phases coexist, and neither can be changed without losing a phase. For a binary ethanol-water mixture in a single vapor-liquid equilibrium at open-air pressure (P fixed): C = 2, P = 2, fixedP = 1. F = 2 - 2 + 2 - 1 = 1. Fix either T or the liquid-phase composition and the entire equilibrium is determined.
What is the Gibbs phase rule?
The Gibbs phase rule, published by J. Willard Gibbs in 1875-1876, is the fundamental equation of heterogeneous equilibrium. It relates the number of degrees of freedom (F) of a multicomponent, multiphase system to the number of independent chemical components (C) and the number of phases simultaneously present at equilibrium (P): F = C - P + 2. The constant 2 accounts for the two classical intensive variables, temperature and pressure, that can be varied without changing the identity of the phases. Degrees of freedom (also called the variance of the system) is the count of intensive variables, such as temperature, pressure, or mole fractions, that you can change independently without altering the number of phases in equilibrium. A result of F = 0 means the system is fully pinned at a unique T, P, and composition set (invariant). F = 1 means fixing one variable determines all others (univariant). F = 2 or higher gives progressively more freedom to tune conditions.
The reactive phase rule and external constraints
When chemical reactions occur among the species, each stoichiometrically independent reaction adds an equilibrium constraint and reduces the count of truly independent components. The reactive form of the phase rule is F = C - P + 2 - r, where r is the number of independent reactions. For example, the thermal decomposition of calcium carbonate (CaCO3 = CaO + CO2) involves three species but only one reaction, giving an effective C = 3 - 1 = 2. Two phases coexist (solid CaO and gas CO2), so F = 2 - 2 + 2 - 1 = 1: the equilibrium is univariant, controlled by temperature alone (the CO2 pressure is a unique function of T). External constraints reduce F further: if temperature is held constant by a thermostat, subtract 1; if pressure is held constant (open vessel at 1 atm), subtract 1 more. In many practical laboratory settings both are controlled, leaving F = C - P - r, which counts only composition-based freedom.
Phase diagrams and the phase rule: reading the regions
A one-component (C = 1) phase diagram plots pressure on the y-axis and temperature on the x-axis. Areas (single-phase regions) have F = 1 - 1 + 2 = 2: you can move freely in two dimensions. Lines (two-phase coexistence curves, e.g. the boiling curve) have F = 1 - 2 + 2 = 1: one variable (say T) pins the other (P). The triple point, where three phases coexist, has F = 1 - 3 + 2 = 0: it sits at a unique, unmovable point. For a two-component (C = 2) system, a three-phase equilibrium has F = 2 - 3 + 2 = 1: it traces a line in temperature. These relationships make the phase rule the key to interpreting every feature on a phase diagram.
Components vs. species: what to count
The number of components C is not the same as the number of distinct chemical species. C is the minimum number of independently variable chemical entities needed to specify the composition of every phase. To find C from a species list, subtract the number of independent equilibrium relations (reactions) and any special constraints such as charge balance or stoichiometry fixed by preparation conditions. For a pure water system C = 1, even though water is in equilibrium with H+ and OH- ions, because the charge balance fixes the ratio. For a binary solution of salt in water C = 2 (water and the salt, treated as a single species). In practice, for educational problems you can usually identify C as the number of distinct molecular formulas minus the number of independent reactions.
Common equilibrium systems and their degrees of freedom
| System | C | P | F | Variance |
|---|---|---|---|---|
| Pure ice melting at the triple point (H2O) | 1 | 3 | 0 | Invariant |
| Pure water: liquid-vapor equilibrium | 1 | 2 | 1 | Univariant |
| Pure water: single-phase liquid | 1 | 1 | 2 | Divariant |
| Binary liquid mixture: two liquid phases | 2 | 2 | 2 | Divariant |
| Binary: liquid + vapor + solid (eutectic) | 2 | 3 | 1 | Univariant |
| Ternary: three-phase liquid system | 3 | 3 | 2 | Divariant |
| Ternary: two-phase liquid-vapor | 3 | 2 | 3 | Multivariant |
| CaCO3 decomposition (1 reaction, 3 species, 2 phases) | 2 | 2 | 1 | Univariant |
All examples use the nonreactive form F = C - P + 2 with both T and P variable.
Frequently asked questions
What does a negative degrees of freedom mean?
A negative result (F < 0) is thermodynamically impossible. It means the system as specified cannot exist in stable equilibrium with that many phases. The usual cause is too large a P for the given C and r: the maximum number of phases that can coexist is C + 2 - r. Re-examine your phase and component counts.
How do I count the number of components (C)?
C is the minimum number of chemically independent species needed to describe all phases. Start by counting distinct molecular formulas. Then subtract one for each independent equilibrium reaction among them and one for any additional stoichiometric or electrical-neutrality constraints. For water in equilibrium with its ions, C = 1, not 3, because charge balance and the water-dissociation equilibrium remove 2 degrees of composition freedom.
Why does fixing temperature or pressure reduce the degrees of freedom?
The standard formula F = C - P + 2 treats temperature and pressure as two free intensive variables. When you clamp one externally, for example by running in a thermostat or an open vessel, that variable is no longer free: it has been set by the surroundings. The phase rule is adjusted to F = C - P + 1 (one fixed) or F = C - P (both fixed) to reflect the reduced number of variables that are still under your control.
What is the difference between invariant, univariant, and divariant?
Invariant (F = 0) means all intensive properties are fixed: temperature, pressure, and the composition of every phase are uniquely determined. The triple point of water is the textbook example. Univariant (F = 1) means fixing one variable, such as temperature, determines all others: you can trace a line on a phase diagram. Divariant (F = 2) means you can independently vary two variables, such as T and P, and the system remains in the same multiphase or single-phase equilibrium as you move over an area of the phase diagram.
Does the phase rule apply to reactions?
Yes, with a correction. Each independent chemical reaction reduces the number of truly independent components by 1, giving the reactive form F = C - P + 2 - r. For example, the decomposition CaCO3 = CaO + CO2 has three species and one reaction, so C = 2 (3 - 1). With two phases (solid and gas) F = 2 - 2 + 2 - 1 = 1, meaning only temperature can be set independently; the equilibrium CO2 pressure is uniquely determined by T.
What counts as a phase?
A phase is a macroscopically homogeneous, physically distinct region of matter, uniform in both chemical composition and physical state throughout its volume. Each gas counts as one phase (gases mix freely). Each distinct liquid layer is a separate phase. Each crystal structure of the same compound is a separate solid phase: ice I, ice III, and ice VI are three separate phases even though all are H2O.