A white precipitate forms if sulfate ions are present ... Carbonate ions also produce a white precipitate with silver nitrate solution. The acid reacts with any carbonate ions present.