Gibbs' Phase Rule Calculator

Find a system’s degrees of freedom from its components, phases, and constant conditions.

Solves for F, C or P in any direction and flags counts a real system cannot have.

Updated October 12, 2026
Frank Zhao - Creator
CreatorFrank Zhao
Loading calculator…

What the calculator does

Gibbs' phase rule answers a structural question about a material system in equilibrium: once you know how many components it is built from and how many phases coexist in it, how many intensive properties can you still change freely? Those properties are the familiar dials of a lab — temperature, pressure, and the composition of each phase.

The answer is a single whole number, the degrees of freedom FF, and it tells you what kind of system you are looking at. A system with F=2F = 2 can be moved around in two independent directions; a system with F=0F = 0 is pinned to exactly one temperature and pressure. A negative answer is the rule's way of telling you that the constraints you described cannot all hold at once.

This calculator works in both directions: enter the components and phases to get the degrees of freedom, or enter the degrees of freedom with either count to recover the one you are missing. Whether a reaction or phase change will actually run is a separate question — the Gibbs free energy calculator covers that side of the problem.

Quick start with a worked example

  1. 1

    Count the components and the phases of your system. This is the step where nearly every mistake happens, so it is worth a second look — the counting section below shows how to do it.

  2. 2

    Decide what your setup holds fixed: both pressure and temperature, only one of them, or neither. That choice sets the factor in the formula, and the calculator shows you which factor it is using right below the menu.

  3. 3

    Enter the numbers. The degrees of freedom appear as soon as the calculator has enough to work with. If you already know the degrees of freedom, enter it together with one of the counts and the other count is solved for you instead.

Water boiling in an open flask

Liquid water and its vapour sit together in equilibrium while the flask heats on a hotplate. Nothing holds the temperature or the pressure at a fixed value, so the factor is f=2f = 2. There is one chemical species (C=1C = 1) in two physically distinct states (P=2P = 2).

F=C−P+fF = C - P + f==1−2+21 - 2 + 2==11

One degree of freedom means the two dials are linked: choose the temperature, and the vapour pressure follows from the liquid–vapour boundary. If you tried to set both yourself, most combinations would simply not exist.

How the phase rule works here

Josiah Willard Gibbs published this relation in 1875, and it has been the backbone of phase diagram reading ever since. The calculator evaluates it exactly as written:

Gibbs' phase rule
F=C−P+fF = C - P + \mathrm{f}
FF

Degrees of freedom

The intensive variables you can still change without changing the number of phases.

CC

Components

The smallest set of chemically independent species that can express every phase.

PP

Phases

Physically distinct, mechanically separable forms present at equilibrium.

f\mathrm{f}

Pressure/temperature factor

How many of those two external variables your setup leaves free.

What the factor is really saying

The factor is not a property of the material — it describes your experimental conditions, and you are the only one who knows them. The three cards below are the same three answers as the menu on this page:

Both are constant
f=0\mathrm{f} = 0

A thermostat and a pressurised rig hold temperature and pressure at set values.

Only one is constant
f=1\mathrm{f} = 1

One of the two is clamped while the other is free to drift.

Neither are constant
f=2\mathrm{f} = 2

Both are free — the familiar textbook form of the rule.

Solving in the other directions

The same relation is rearranged for the two counts, so entering the degrees of freedom together with one count recovers the other:

Recover the components

C=F+P−fC = F + P - \mathrm{f}

Recover the phases

P=C+f−FP = C + \mathrm{f} - F

The factor stays exactly the option you chose. Only 00, 11 and 22 are physically meaningful, so the calculator will never invent an in-between factor to make the arithmetic work.

Reading the answer

F=2F = 2

Two free variables

The system is an area on a phase diagram, and you can move inside it in two independent directions.

F=1F = 1

One free variable

The system lives on a line — a boiling curve, for example, where temperature and pressure stay locked to each other.

F=0F = 0

Invariant system

One fixed temperature and pressure, with the composition of every phase locked as well.

A system with nothing left to vary

A glass of saturated brine with undissolved salt, held at room temperature and atmospheric pressure, has two components and two phases — and nothing left to move:

F=C−P+fF = C - P + \mathrm{f}==2−2+02 - 2 + 0==00

The dissolved salt content is not something you choose — it is the saturation value for that temperature, and extra salt just settles as more solid at the bottom.

A negative result is not a glitch. It means the constraints you entered cannot all hold at equilibrium — the most common way to get one is in the first question below.

Counting components and phases correctly

The arithmetic is one line; the counting is where the real work is. Both numbers deserve a moment of thought before you type them in.

Components

A component is a chemically independent species: the fewest number of substances from which the composition of every phase can be written. Species tied together by a reaction you treat as equilibrated do not add a new component, because their amounts are no longer independent of each other.

Limestone decomposing in a kiln

CaCO3(s)\mathrm{CaCO_3(s)}⇌\rightleftharpoonsCaO(s)+CO2(g)\mathrm{CaO(s)} + \mathrm{CO_2(g)}

Three species take part, but they are tied together by one independent reaction, so the system carries only two components:

C=3−1C = 3 - 1==22

Knowing where that reaction sits — how much of each species coexists at a given temperature — is an equilibrium constant calculation, a different question from counting the components.

Phases

Count each physically distinct, mechanically separable form once. The quickest way to get this right is to sort the familiar cases into two piles:

Counts as its own phase

  • Every solid in contact — two minerals touching are two phases, even though neither is liquid.
  • Each immiscible liquid — oil floating on water is two liquid phases.
  • The liquid and the vapour of the same pure substance.

Does not add a phase

  • A mixture of gases — however many gases blend together, they form one gas phase.
  • A dissolved substance — salt water is a single liquid phase holding two components.
  • A finely divided form of the same solid — particle size does not make a new phase.

Only when undissolved salt sits at the bottom does the phase count rise: the brine above it and the solid below it are two separate phases of the same two-component system.

Mistakes worth checking twice

  • Assuming a pure liquid and its vapour are one phase — they are two.

  • Forgetting the solid at the bottom of the flask — undissolved material is a real phase.

  • Recounting components after a reaction has already tied species together.

  • Mixing the factor into the chemistry — the pressure/temperature choice describes your setup, never the material.

Common questions

Pure water can hold ice, liquid and vapour together, so why do I get a negative number?

Because those three phases only coexist at one special point, and you have to leave both external variables free to reach it. Enter C=1C = 1, P=3P = 3 with both pressure and temperature fixed and the rule returns 1−3+0=−21 - 3 + 0 = -2 — three phases of a pure substance cannot be squeezed onto a fixed temperature and pressure at the same time. Switch the menu to neither constant, and you get 1−3+2=01 - 3 + 2 = 0: the invariant point where ice, water and vapour really do coexist, at one temperature and one pressure and nothing else.

Why doesn't the calculator work out the pressure/temperature factor for me?

The factor describes your setup, not the material. In a lab you know whether the thermostat and the pressure jacket are running; the calculator cannot guess that from the chemistry. So the choice stays yours, and the calculator solves the numbers around whatever you select — it will never reverse-solve the factor into a value that is not one of the three options.

Can it tell me the actual temperature, pressure or composition of my phases?

No — it counts free variables, it does not supply physical data. A result of F=1F = 1 tells you that one relation still has to be supplied before any numbers follow. For vapour–liquid systems that relation often comes from a Raoult's law calculation, which converts a chosen temperature into phase compositions and pressures.

Limitations

  • Equilibrium only. The rule describes a system at equilibrium and says nothing about how fast it gets there; a supercooled liquid or any other metastable state is outside its reach.

  • The counting is yours. The calculator applies the formula to the numbers you enter — it cannot check whether your component count matches your chemistry, and a confident wrong count still gives a confident wrong answer.

  • A negative result flags incompatible constraints; it does not describe a real material. Read it as a signal to revisit what you held fixed or how you counted the phases.

  • Only pressure and temperature are treated as external variables. Systems that also involve extra external constraints, such as magnetic or gravitational fields, are handled by extended forms of the rule that this calculator does not implement.

Gibbs' Phase Rule Calculator — Degrees of Freedom F = C − P + f