Calcium carbonate is a chemical compound with the formula Ca C O 3.It is a common substance found in rocks as the minerals calcite and aragonite (most notably as limestone, which is a type of sedimentary rock build mainly of calcite) and is the main component of pearls and the shells of marine organisms, snails, and eggs.