You may have side effects from taking these medicines. Antacids are made with 3 basic ingredients. If you have problems, try another brand. 1  Brands with magnesium may cause diarrhea. 2  Brands with calcium or aluminum may cause constipation. 3  Rarely, brands with calcium may cause kidney stones or other problems.