In a system where the two variables, temperature and pressure, are controlled externally, the number of phases will not usually exceed the number of components. In geology the maximum number of naturally occurring minerals in a rock is equal to the number of components where a given mineral assemblage is stable over a range of temperatures and pressures.