CaCO3 (calcite) + 2HCl (hydrochloric acid) → H2O (water) + CO2 (carbon dioxide gas) + CaCl2 (calcium chloride)
The presence of carbonates in a mineral can be easily identified by the effervescence (fizzing) that occurs when the mineral is exposed to hydrochloric acid. This reaction is commonly used in geology and mineralogy to identify carbonate-containing minerals. Some common carbonate minerals that fizz when treated with hydrochloric acid include calcite, dolomite, and magnesite.