Nearly every magnesium side effect is loose stools, and nearly every case of loose stools is either too high a dose or the wrong form. In the guides we publish here, magnesium generates more "should I stop taking this" questions than any other mineral, and the answer is usually to change the form rather than to stop.
Effects outside the gut are rare in people with healthy kidneys, because the kidneys clear whatever the body does not need. The exception matters and it is narrow: reduced kidney function changes the safety picture entirely.
The NIH Office of Dietary Supplements magnesium fact sheet is the reference document behind most of the numbers on this page.
The Verdict
The Side Effects That Are Dose-Dependent
Four effects account for the overwhelming majority of reports, and all four rise and fall with the dose.
- Diarrhoea and loose stools. The most common by a wide margin, and the effect that set the official upper limit.
- Abdominal cramping. Usually arrives with the loose stools rather than separately.
- Nausea. More common on an empty stomach, and largely avoidable by taking the dose with food.
- Metallic taste. Reported mainly with liquid and powder formats.
None of these signals harm. They signal that magnesium is sitting in your intestine rather than crossing into circulation, which means the dose is partly wasted as well as uncomfortable.
Why the Form Decides How Much Reaches Your Gut
Magnesium is always bound to something, and what it is bound to determines how much is absorbed. The unabsorbed remainder stays in the intestine and pulls water in, which is the entire mechanism behind the gut effects.
| Form | Absorption | Likelihood of loose stools | What to know |
|---|---|---|---|
| Magnesium oxide | Poor. A large share of the dose stays in the gut | Highest. It is used deliberately as a laxative at higher doses | The form most likely to be behind a diarrhoea complaint, and the most common in cheap supermarket tablets |
| Magnesium citrate | Good | Moderate, and dose-dependent. Used as a bowel preparation at gram-level doses | Loose stools at 300 mg and above are common. Splitting the dose usually resolves it |
| Magnesium glycinate | Good | Low | The form most people tolerate at higher doses. Larger capsules are needed because the glycine adds weight |
| Magnesium malate | Good | Low to moderate | Few head-to-head comparisons exist. Tolerance reports sit between citrate and glycinate |
| Magnesium L-threonate | Good | Low | Sold for cognitive claims at doses that deliver little elemental magnesium, so gut effects are rare mainly because the dose is small |
| Magnesium sulfate (Epsom salts) | Not intended for oral use as a supplement | Very high orally | Oral use is a medical intervention rather than a supplement. Bathing in it does not meaningfully raise blood magnesium |
Magnesium oxide is the form behind most complaints, and it is also the cheapest and most widely stocked. It is used deliberately as a laxative at higher doses, which tells you what to expect when you take it for sleep. Our page on the best magnesium supplement covers the elemental content of each form and how to read a label that quotes compound weight rather than elemental magnesium.
The Upper Limit and What It Covers
The tolerable upper intake level for supplemental magnesium is 350 mg of elemental magnesium a day for adults. That figure was set by the Institute of Medicine in 1997 and is published by the NIH Office of Dietary Supplements.
Two features of it are regularly misread. It applies only to magnesium from supplements and magnesium-containing medications, and not to magnesium from food, because dietary magnesium is absorbed and excreted without difficulty. It was also set on gut tolerance rather than on toxicity, with diarrhoea named as the limiting factor.
That second point explains why the limit sits below the recommended dietary allowance for adult men, which is 400 to 420 mg. The two numbers measure different things: one is total daily requirement from all sources, the other is how much you can add as a supplement before your gut objects.
When Magnesium Is Genuinely Unsafe
Hypermagnesaemia, meaning blood magnesium above the normal range, is the one presentation that matters clinically, and it is close to impossible to reach through supplements with normal kidney function. The kidneys excrete the surplus.
Reduced kidney function removes that safeguard. In advanced chronic kidney disease, magnesium accumulates, and the presentation runs from nausea, facial flushing and low blood pressure through muscle weakness to cardiac effects at high levels. Anyone with an estimated glomerular filtration rate below 30, or on dialysis, should treat magnesium supplements as a decision for their nephrology team.
Two other groups sit in the same category. People taking magnesium-containing laxatives or antacids regularly can accumulate a dose they have not counted, because those products are not thought of as supplements. People with bowel obstruction or severe bradycardia should also avoid oral magnesium.
Drug Interactions Worth Timing Around
Three interactions come up often enough to plan around, and two of them are solved by spacing doses rather than by avoiding magnesium.
- Tetracycline and quinolone antibiotics. Magnesium binds these drugs in the gut and reduces how much is absorbed. Separate the doses by at least two hours.
- Bisphosphonates for osteoporosis. Same binding problem, same fix. These drugs already carry timing rules of their own, so check the label instructions.
- Proton pump inhibitors. The interaction runs the other way. Long-term use can lower blood magnesium, and the US Food and Drug Administration issued a safety communication about it in 2011. Anyone on one of these long term is a reasonable candidate for having magnesium checked rather than assumed.
Diuretics complicate the picture in both directions, since loop and thiazide diuretics increase magnesium loss while potassium-sparing diuretics reduce it. That is a conversation with a pharmacist rather than a rule you can apply from a webpage.
Effects Commonly Blamed on Magnesium That Are Not
Three complaints attach themselves to magnesium online without a supporting mechanism, and chasing them wastes time that a real cause deserves.
- Heart palpitations. Magnesium deficiency is associated with arrhythmia. Supplementation causing palpitations is not established. New or persistent palpitations warrant a clinical assessment.
- Headaches. Magnesium is studied as a migraine preventive rather than as a trigger. A new headache pattern deserves its own explanation.
- Weight gain. Magnesium contains no calories and has no established effect on body weight. Fluid shifts from a magnesium-containing product can move the scale for a day.
Who Should Not Take Magnesium
Three groups should not start magnesium on their own.
- Anyone with chronic kidney disease or on dialysis. Reduced clearance is the one scenario where accumulation is a real risk rather than a theoretical one.
- Anyone with myasthenia gravis. Magnesium can worsen neuromuscular blockade, which makes this a specific contraindication rather than a general caution.
- Anyone with heart block or severe bradycardia. The cardiac effects of raised magnesium are the concern here, and it belongs with a cardiologist.
Our reading of the 350 mg limit would change if the Institute of Medicine revisited it. A 2023 perspective paper in Advances in Nutrition argued the figure is conservative and conflates a gut tolerance threshold with a safety ceiling, since it was derived largely from studies of poorly absorbed forms. A revised limit set on absorbed magnesium rather than on compound weight would put the well-tolerated forms on a different footing than the oxide the original figure was built around.
If magnesium is upsetting your stomach, check the elemental figure on the supplement facts panel, switch to glycinate, and split it across two servings taken with food before deciding the mineral does not suit you.
Frequently Asked Questions
What are the side effects of magnesium supplements?
Diarrhoea, loose stools, nausea and abdominal cramping account for nearly all reported side effects, and all four are dose-dependent. The National Institutes of Health Office of Dietary Supplements names diarrhoea as the limiting factor that set the tolerable upper intake level for supplemental magnesium at 350 mg of elemental magnesium a day for adults. Effects beyond the gut are rare in people with normal kidney function, because healthy kidneys clear the excess.
Why does magnesium give me diarrhoea?
Unabsorbed magnesium stays in the intestine and draws water into it, which loosens stool. How much stays behind depends on the form: magnesium oxide is poorly absorbed and is used as a laxative for that reason, while glycinate and malate are absorbed better and cause fewer complaints at the same elemental dose. Splitting the dose across two servings and taking it with food both reduce the effect. Switching from oxide to glycinate fixes it for most people.
How much magnesium is too much?
The tolerable upper intake level for supplemental magnesium is 350 mg of elemental magnesium a day for adults, set by the Institute of Medicine and published by the NIH Office of Dietary Supplements. That figure applies to supplements and magnesium-containing medications rather than to magnesium from food, because the kidneys handle dietary magnesium without difficulty. The limit was set on gut tolerance rather than on toxicity, which is why exceeding it produces diarrhoea rather than danger in people with healthy kidneys.
Can magnesium cause heart palpitations?
Magnesium deficiency is associated with palpitations and arrhythmia, and supplementation causing them is not established in the literature. When someone starts magnesium for sleep and notices palpitations, the more common explanations are caffeine, alcohol, anxiety, thyroid dysfunction, or an arrhythmia that was already present and simply got noticed at bedtime. New or persistent palpitations warrant a clinical assessment rather than stopping a supplement and assuming the question is settled.
Is magnesium safe for your kidneys?
Magnesium is safe in people with normal kidney function, because the kidneys excrete what is not needed. It is not safe at supplement doses in advanced chronic kidney disease, where reduced clearance allows blood magnesium to accumulate. Hypermagnesaemia produces nausea, low blood pressure, facial flushing, muscle weakness and, at high levels, cardiac effects. Anyone with an estimated glomerular filtration rate below 30, or on dialysis, should not take magnesium supplements without their nephrology team agreeing.
Can magnesium cause headaches?
Magnesium is studied as a preventive treatment for migraine rather than as a cause of headache, and there is no established mechanism by which oral supplementation triggers one. A headache starting alongside a new supplement is more often dehydration, changed sleep, caffeine timing, or coincidence. If the headache is new, severe or different from your usual pattern, that is a reason to see a clinician rather than to work through supplement forms.
Does magnesium interact with medications?
Yes, and the important interactions are about absorption timing rather than danger. Magnesium binds tetracycline and quinolone antibiotics and bisphosphonates in the gut, which reduces how much of the drug is absorbed. Separating the doses by at least two hours resolves it. In the other direction, long-term proton pump inhibitor use can lower blood magnesium, which the FDA issued a safety communication about in 2011. Check any new supplement against your prescriptions with a pharmacist.
Is magnesium safe during pregnancy?
Magnesium is a required nutrient with an established intake recommendation during pregnancy, and dietary intake plus a standard prenatal supplement is the usual route. Additional magnesium supplementation is common for leg cramps and constipation, and it is a reasonable thing to raise at an antenatal appointment rather than to start unilaterally. Intravenous magnesium sulfate used in pre-eclampsia is a different intervention entirely, at doses no oral supplement approaches.
Related
- Best magnesium supplement: the forms compared on elemental content
- Best time to take vitamin D: the co-factor question
- Best vitamins for energy: what the evidence supports
- Cortisol supplements: the adjacent sleep and stress category
- Normal vs optimal ranges: reading a magnesium result
- How much sleep you need: the reason most people start magnesium