Overview: Magnesium antacids are taken to help relieve indigestion, heartburn, or a sour stomach. You may notice that your poop may be loose, watery, or more frequent when taking a magnesium antacid.