Magnesium supplements have a reputation for upsetting the stomach, but that upset is usually not gastritis, the kind of inflammation that damages the stomach lining. Most of what people feel happens lower down, in the intestines, where magnesium affects how much water the bowel holds and how it moves.1PubMed Central. Magnesium for disease treatment and prevention: emerging mechanisms and opportunities That makes the trouble mostly a question of dose and form, not a sign that your stomach is being harmed. Magnesium is even a standard ingredient in antacids that people take to calm an irritated stomach.2PubMed. Effects of Aluminum/Magnesium Hydroxide and Calcium Carbonate on Esophageal and Gastric pH in Subjects with Heartburn
Why Magnesium Does Not Usually Inflame the Stomach Lining
Gastritis is inflammation of the stomach lining that a doctor can see through a camera as redness, erosions or ulcers. A sore or queasy stomach on its own doesn’t mean the lining is inflamed. Magnesium also doesn’t drive the main thing that wears down an inflamed lining. Taken by mouth or by injection, it does not change how much acid the stomach makes, either at rest or when acid production is pushed to its maximum.3PubMed. Magnesium and gastric acid secretion
The two kinds of upset tend to feel different. Gastritis usually causes burning or gnawing pain high in the belly that persists or keeps coming back, often with a feeling of fullness. Magnesium upset shows up as cramping lower down and loose stools within hours of a dose. It eases when you lower the dose or stop for a few days, while true gastritis usually does not. That is also why symptoms can’t settle the question. Gastritis also has common causes of its own: H. pylori infection, regular pain relievers like ibuprofen, and alcohol.
If anything, magnesium is used to soothe the stomach. Antacids containing aluminum and magnesium hydroxide made the stomach less acidic in people with heartburn, though the effect lasted only about 26 minutes.2PubMed. Effects of Aluminum/Magnesium Hydroxide and Calcium Carbonate on Esophageal and Gastric pH in Subjects with Heartburn
Pain, nausea and bloating are poor guides to what the lining looks like, since people with clearly inflamed linings sometimes feel little and people with normal linings can feel miserable. Doctors confirm gastritis with an endoscopy, where a thin camera looks at the lining and small samples can be taken. They also often test for H. pylori when gastritis is suspected, which points toward a cause unrelated to magnesium.
The reports of stomach damage come from special settings. In mice given oral magnesium oxide, researchers saw bleeding, dead cells and inflammation in the stomach wall.4Samarra Journal of Pure and Applied Science. Evaluation the Effect of Oral Magnesium Oxide Administration on the Histoarchitecture of the Liver, Kidney, and Stomach for Adult Albino Mice Those were lab animals given the compound under experimental conditions, often at doses scaled far above what a person takes from a bottle, and a mouse stomach is not a stand-in for a person swallowing a capsule with water. Some people also developed erosive gastritis and ulcers after a tablet bowel-prep kit made mainly of sodium sulfate, with magnesium sulfate and potassium chloride added.5The American Journal of Gastroenterology. S2517 Pill Prep Problems? Erosive Gastritis and Peptic Ulcers due to Sodium Sulfate-Based Tablet Bowel Prep That prep is a large one-time dose of several salts taken to clear the bowel before a colonoscopy, and magnesium is only one minor part of the mixture, so the reaction can’t be pinned on magnesium alone.
What Actually Causes the Stomach Pain and Diarrhea
Magnesium that isn’t absorbed stays in the intestine and draws water in with it, which softens and bulks up the stool.1PubMed Central. Magnesium for disease treatment and prevention: emerging mechanisms and opportunities It is the same effect that makes magnesium work as a laxative. When people got diarrhea from magnesium hydroxide, the amount of magnesium in their stool was always unusually high.6PubMed. Diagnosis of magnesium-induced diarrhea The more magnesium that passed through, the heavier and wetter the stool became, by about 7 grams for each extra unit of magnesium.6PubMed. Diagnosis of magnesium-induced diarrhea The fuller, wetter contents also stretch the gut wall and tend to trigger stronger movement.
Magnesium also relaxes gut muscle, which may be a second contributor. Raising the magnesium level around gut tissue weakened its contractions in lab tests,7Cyprus Journal of Medical Sciences. The Effects of Extracellular Magnesium on Gastrointestinal Contractility and in rats given magnesium glycinate for a long time, intestinal muscle contracted less and relaxed more.8PubMed Central. Effect of chronic administration of magnesium supplement (magnesium glycinate) on male albino wistar rats’ intestinal (Ileum) motility, body weight changes, food and water intake Those findings come from tissue and animal experiments, so how much this matters at supplement doses in people isn’t known.
A typical reaction is loose or urgent stools a few hours after a larger dose, often the same evening or the next morning. Because the water-pulling happens in the intestines, the pain is gurgling, crampy or pressure-like in the lower belly. Burning high under the breastbone or ribs is a different pattern and fits acid reflux or gastritis better, so where it hurts is one clue to the cause, though not proof. Nausea can still occur, more so when a dose is taken on an empty stomach, but it usually comes along with the bowel symptoms instead of lingering as an upper-belly ache.
Reported side effects include nausea, stomach pain, softer stools and diarrhea.9Vinmec. Potential Side Effects of Magnesium Supplements These typically fade within a few hours.
If you take magnesium for constipation, this same effect is what helps you. A dose that is right for one person can be too much for another, depending on their gut, so the practical goal is the dose where stools are soft but not watery.
Does the Form of Magnesium Make a Difference
Absorption differs a lot between forms. Magnesium oxide barely dissolves in water and only about 43% dissolves even in strong stomach acid.10PubMed. Magnesium bioavailability from magnesium citrate and magnesium oxide Magnesium citrate dissolves well even in water, so much more magnesium from citrate reached the body than from oxide when people took the same dose.10PubMed. Magnesium bioavailability from magnesium citrate and magnesium oxide In general, inorganic forms like oxide and hydroxide are absorbed less well than organic forms like citrate or glycinate.11PubMed. Bioavailability of magnesium food supplements: A systematic review
Magnesium the body doesn’t absorb is what draws water into the bowel. Poorly absorbed forms such as oxide or hydroxide are therefore more likely to loosen stools, which is why they are used in laxatives and antacids. That same poor absorption is why oxide shows up in products for both constipation and heartburn, and why people who take it daily are most likely to notice loose stools. Citrate, though, is absorbed well and is also sold as a laxative, so high doses of any form can cause loose stools.
The supplement facts panel usually names the salt next to the magnesium amount: oxide, citrate, glycinate, chloride or malate. Oxide is cheap and packs a lot of magnesium into each tablet but is poorly absorbed. Glycinate is often chosen by people who want a gentler option for sleep or muscle cramps. Products sold for constipation are usually citrate, oxide or hydroxide on purpose. If your bottle says oxide and loose stools bother you, a glycinate or citrate product is the usual alternative, though absorption and tolerance still differ between people, and good absorption doesn’t guarantee a form will never upset your gut.
Form helps, but dose matters as much. When you switch, start low again rather than copying the old dose.
How Much Magnesium Is Likely to Upset Your Stomach
For adults, the official upper limit for magnesium from supplements is 350 mg a day, set mainly to avoid diarrhea. The evidence is more forgiving than that number suggests. Seven studies giving 128 to 1,200 mg a day found no more diarrhea than placebo.12PubMed Central. Perspective: Call for Re-evaluation of the Tolerable Upper Intake Level for Magnesium Supplementation in Adults At 520 mg a day, stomach complaints were only slightly more common than with placebo, and people didn’t drop out more often.12PubMed Central. Perspective: Call for Re-evaluation of the Tolerable Upper Intake Level for Magnesium Supplementation in Adults Few complaints are reported to US regulators, with only 40 digestive cases linked to single-ingredient magnesium products.12PubMed Central. Perspective: Call for Re-evaluation of the Tolerable Upper Intake Level for Magnesium Supplementation in Adults Most people tolerate typical supplement doses without trouble, though some do get diarrhea. Many people take more than 350 mg without problems, and others get loose stools below it, so your own response is a better guide than the number.
Dose also changes how much your body takes in. The share of magnesium absorbed depends on the dose,11PubMed. Bioavailability of magnesium food supplements: A systematic review so a larger single dose tends to leave more in the bowel, which is where the loose stools come from.
Labels can show the weight of the whole compound or the elemental magnesium, the actual magnesium content. A label might say 500 mg of magnesium citrate, but the magnesium inside is only part of that weight. Look for the amount listed as magnesium, since that figure counts toward your daily intake, and the 350 mg limit refers to it. The limit applies to supplements, not food. Magnesium in food doesn’t count toward it and rarely causes diarrhea. Add up magnesium from every product you take, including multivitamins, sleep blends and laxatives.
How to Take Magnesium Without Stomach Trouble
- Start low: Begin with 50 to 100 mg of elemental magnesium and increase gradually.13iHerb Wellness Hub. Magnesium Glycinate Side Effects: What to Expect and When to Stop
- Take it with food: Have it with a meal or snack to reduce nausea.13iHerb Wellness Hub. Magnesium Glycinate Side Effects: What to Expect and When to Stop
- Split the dose: Divide the day’s amount into a morning and an evening dose rather than one large one.13iHerb Wellness Hub. Magnesium Glycinate Side Effects: What to Expect and When to Stop
- Change the form: Consider a better-absorbed form such as citrate or glycinate if oxide upsets you.10PubMed. Magnesium bioavailability from magnesium citrate and magnesium oxide
- Watch your stools: Lower the dose if stools turn loose, since that is the clearest sign of too much.
Stay at the starting dose for several days and note how your stools respond. Raise it a small step at a time, only while your gut stays settled. If diarrhea appears, go back to the last amount that felt fine and stay there.
Food can help by slowing how quickly the supplement moves through the gut. Taking it with dinner often suits people using magnesium for sleep.
Magnesium can also reduce the absorption of some antibiotics and thyroid medicine, so if you take these, check timing with a pharmacist. Spacing doses a few hours apart is a common approach, and the pharmacist can tell you the right gap for your medicines.
If You Already Have Gastritis, Reflux or Ulcers
Since magnesium doesn’t increase acid output, it isn’t expected to worsen gastritis through acid.3PubMed. Magnesium and gastric acid secretion A stomach that is already inflamed or reflux-prone can still react to almost any swallowed pill with queasiness, so taking the supplement with food, starting small and increasing slowly gives it the best chance of settling.
Telling the source of symptoms apart is the harder part. Burning in the upper belly or chest that comes and goes with meals fits your existing gastritis or reflux better than a magnesium reaction. Cramping and loose stools within hours of a dose point more toward the magnesium. If you’re unsure, pause the supplement for a few days: symptoms that ease suggest magnesium, while a flare that continues without it suggests the underlying condition.
A few things are worth checking with your doctor. Reduced kidney function makes magnesium build up in the blood, so dose limits differ. Mention your magnesium if you take acid-reducing medicine, and remember that antacids containing magnesium count toward your daily intake.
When Stomach Symptoms Need a Doctor
Supplement-related upset usually passes within hours, so symptoms that persist call for a doctor.9Vinmec. Potential Side Effects of Magnesium Supplements Pain that keeps coming back in the upper belly, or symptoms that began before you started magnesium, are also worth having checked.
Stop magnesium and seek care for black or bloody stools, vomiting blood, or severe belly pain. Ongoing diarrhea can dehydrate you and lower potassium, especially in older adults.
Too much magnesium in the blood is rare with normal kidneys but more likely with kidney disease or very high doses, usually from large laxative or antacid amounts. Signs include weakness, low blood pressure, drowsiness and a slow heartbeat.
When you see the doctor, name the product, the form and the daily dose, and say when symptoms started relative to your first dose. List your pain relievers, alcohol and other medicines too, since these are common causes of gastritis.

