The Gibbs phase rule relates the number of degrees of freedom (F) of a system to the number of components (C) and phases (P) present, given by the equation F = C - P + 2. A phase is a homogeneous, physically distinct portion of a heterogeneous system separated by well-defined boundaries. The number of components is the number of independently varying chemical constituents that can describe the composition of all phases. The degrees of freedom represent the minimum number of variables needed to specify the system.