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
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 , and it tells you what kind of system you are looking at. A system with can be moved around in two independent directions; a system with 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
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
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
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 . There is one chemical species () in two physically distinct states ().
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:
Degrees of freedom
The intensive variables you can still change without changing the number of phases.
Components
The smallest set of chemically independent species that can express every phase.
Phases
Physically distinct, mechanically separable forms present at equilibrium.
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:
A thermostat and a pressurised rig hold temperature and pressure at set values.
One of the two is clamped while the other is free to drift.
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
Recover the phases
The factor stays exactly the option you chose. Only , and are physically meaningful, so the calculator will never invent an in-between factor to make the arithmetic work.
Reading the answer
Two free variables
The system is an area on a phase diagram, and you can move inside it in two independent directions.
One free variable
The system lives on a line — a boiling curve, for example, where temperature and pressure stay locked to each other.
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:
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
Three species take part, but they are tied together by one independent reaction, so the system carries only two components:
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 , with both pressure and temperature fixed and the rule returns — 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 : 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 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.
Related Calculators
Magnitude of Acceleration Calculator
Estimate the magnitude of acceleration using mass and force, acceleration components, or velocity vectors difference. Includes unit conversion and bidirectional solving.
Chemical Equation Balancer
Balance a chemical reaction and get the smallest whole-number coefficients. Supports bracketed groups such as Fe(OH)3, user-supplied coefficients, and unicode subscripts.
Net Ionic Equation Calculator
Reduce a molecular equation to its net ionic form. Balances the reaction, splits soluble compounds into ions, and names the spectator ions that cancel out.
Atom Calculator
Calculate atomic properties including protons, neutrons, electrons, atomic number and mass number
Electron Configuration Calculator
Get the electron configuration for any element from the periodic table. View atomic number, atomic mass, and valence electrons.
Atomic Mass Calculator
Calculate atomic mass from protons and neutrons. Get atomic mass in various units including atomic mass units (u), kilograms, and more.