The detection of carbonates primarily relies on the chemical property that carbonate ions (CO₃²⁻) react with acids to produce carbon dioxide gas. In the experiment, a small amount of the sample is placed in a test tube, and a suitable amount of dilute hydrochloric acid or dilute nitric acid is added. The presence of bubbles is observed. If the sample contains carbonates, a noticeable gas generation phenomenon usually occurs, primarily carbon dioxide. For example, when calcium carbonate reacts with dilute hydrochloric acid, it produces calcium chloride, water, and carbon dioxide. The chemical reaction equation is: CaCO₃ + 2HCl → CaCl₂ + H₂O + CO₂↑. This method is simple to operate and is a common method for preliminary detection of carbonates in the laboratory.
To further confirm whether the generated gas is carbon dioxide, the gas produced can be passed into clear limewater. If the limewater gradually turns cloudy, it indicates the presence of carbon dioxide. This is mainly because carbon dioxide reacts with calcium hydroxide to form a precipitate of calcium carbonate, which is insoluble in water. The reaction equation is: CO₂ + Ca(OH)₂ → CaCO₃↓ + H₂O. It is important to note that bicarbonates can also react with acids to produce carbon dioxide, so the production of bubbles alone cannot completely distinguish between carbonates and bicarbonates. For samples with complex compositions, further testing using other chemical analytical methods is necessary to improve the accuracy of the test results.

