Solid acids, such as hydrochloric acid, may be added to test whether a mineral or rock contains calcium carbonate. If the sample contains calcium carbonate, carbon dioxide will be immersed and produced.