text: *A phase is a form of matter that is homogeneous in chemical composition and physical state. Typical phases are solid, liquid and gas. Two immiscible liquids (or liquid mixtures with different compositions) separated by a distinct boundary are counted as two different phases, as are two immiscible solids. 
  *The number of components (C) is the number of chemically independent constituents of the system, i.e. the minimum number of independent species necessary to define the composition of all phases of the system.
  *The number of degrees of freedom (F) in this context is the number of intensive variables which are independent of each other.
  The basis for the rule is that equilibrium between phases places a constraint on the intensive variables. More rigorously, since the phases are in thermodynamic equilibrium with each other, the chemical potentials of the phases must be equal. The number of equality relationships determines the number of degrees of freedom. For example, if the chemical potentials of a liquid and of its vapour depend on temperature (T) and pressure (p), the equality of chemical potentials will mean that each of those variables will be dependent on the other. Mathematically, the equation , where , the chemical potential, defines temperature as a function of pressure or vice versa. (Caution: do not confuse  as pressure with , number of phases.)
  To be more specific, the composition of each phase is determined by  intensive variables (such as mole fractions) in each phase. The total number of variables is , where the extra two are temperature T and pressure p. The number of constraints is , since the chemical potential of each component must be equal in all phases. Subtract the number of constraints from the number of variables to obtain the number of degrees of freedom as .
  The rule is valid provided the equilibrium between phases is not influenced by gravitational, electrical or magnetic forces, or by surface area, and only by temperature, pressure, and concentration.