CPLAP is a program designed to determine the thermodynamical stability of a material, and, if it is stable, to determine the ranges of the constituent elements' chemical potentials within which it is stable, in comparison with competing phases and the elemental forms.