In chemistry, Gibbs' phase rule describes the possible number of degrees of freedom in a closed system at equilibrium, in terms of the number of separate phases and the number of chemical constituents in the system. It was deduced from thermodynamic principles by Josiah Willard Gibbs in the 1870s.

The phases of matter are solid, liquid, gas. At a temperature of zero degrees centigrade and pressure of 611.73 pascal, water exists in all three phases at the same time, and that temperature-pressure pair is called the triple point for that reason. Gibbs' rule related the number of phases to the number of degrees of freedom in the thermodynamic system, modeling it on the Euler characteristic (pronounced "oiler").

Gibbs' rule is:

F = CP + 2.

Where F is the number of degrees of freedom, C the number of chemical constituents, and P is the number of phases that cannot be shared. For instance, a balloon filled with carbon dioxide has one component and one phase, and therefore has only two degrees of freedom - in this case temperature and pressure. If you have two phases in the balloon, some solid and some gas, then you loose a degree of freedom - and indeed this is the case, in order to keep this state there is only one possible pressure for any given temperature.

Gibbs' formula is in some ways a restatement of the universal gas law that had first been developed in the 1830s, which relates pressure, volume, temperature and the number of particles involved. Gibbs' version simplifies the law for quickly understanding specific cases.

Gibbs' phase rule can be syntactically transformed into the polyhedral formula of Leonhard Euler (1707-1784), so that chemical students knowledgeable in Gibbs' phase rule can understand Euler's polyhedral formula, and vice versa.

Euler's polyhedral formula states a relation between the number of a polydedron's vertices, V, with the number of the polyhedron's faces, F, and the number of the polyhedron's edges, E. In the ordering of Gibb's rule, Euler's formula can be written: V = E − F + 2. For the familiar cubic polyhedron: V = 8, E = 12, F = 6, so that 8 = 12 − 14 + 2, which checks.

The syntactic transformation of Gibbs' phase rule into (and from) Euler's polyhedral formula is: F V; C E; P F.