Calcium carbonate is a chemical compound, with chemical formula CaCO3. It is commonly used medicinally as a calcium supplement or as an antacid. Calcium carbonate is the active ingredient in agricultural lime. It is a common substance found as rock in all parts of the world and is the main component of seashells and the shell of snails. It is usually the principal cause of hard water.