React the substance with hydrochloric acid (HCl).If the substance contains a carbonate ion, carbon dioxide gas will bubble out of the solution, Collect the gas and bubble it through limewater, If the limewater turns cloudy, it confirms the gas is carbon dioxide.