The reaction of carbon dioxide with lime water is a classic test for CO2. The initial formation of a white precipitate and its subsequent dissolution upon excess CO2 are due to the formation of calcium carbonate and then calcium bicarbonate, respectively.