Acid reflux occurs when the lower esophageal sphincter struggles to close off the stomach’s osophagus. Infrequent reflux can be treated with over-the-counter (OTC) drugs. Magnese is mixed with other ingredients in some of these. Magnesium, as well as hydroxide or carbonate ions, may help to neutralize the acid in your stomach. Acid reflux symptoms can be alleviated by magnesium-containing drugs for a short time. Magnesium has been shown to have improved bone density, hypertension, diabetes, and diabetes. Vitamin D is a key component of healthy bones.