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. 4  If you take large amounts of antacids that contain aluminum, you may be at risk for calcium loss, which can lead to weak bones (osteoporosis).