calcium carbonate The main chemical compound in limestone, a rock made from the tiny shells of ancient marine organisms. Its formula is CaCO3 (meaning it contains one calcium atom, one carbon atom and three oxygen atoms). It’s also the active ingredient in some antacid medicines (ones used to neutralize stomach acids).