A typical mineral that forms rocks is dolomite. Its chemical formula is CaMg (CO3)2, which indicates that it is a calcium magnesium carbonate. It is the main constituent of the metamorphic rock known as dolomitic marble as well as the sedimentary rock known as dolostone. Dolomitic limestone is a type of limestone that contains some dolomite.