Magnesium and calcium are very common in the earth's crust, with calcium the fifth-most-abundant element, and magnesium the eighth. None of the alkaline earth metals are found in their elemental state, but magnesium and calcium are found in many rocks and minerals: magnesium in carnallite, magnesite, and dolomite; and calcium in chalk, limestone, gypsum, and anhydrite.