Most antacids are made of calcium carbonate (CaCO3) from the mineral calcite or the rock limestone. The carbonate is good at neutralizing stomach acid.