Evidence-first health & aging science Newsletter
Live Well News Live Well News
Back to Supplements

verdict · Supplements

Magnesium: uses, evidence, dosing and safety

Magnesium is bought mostly for sleep, which is its weakest evidence. Its real results are elsewhere: blood pressure in people who are short of it, migraine frequency, and heart rhythm after surgery.

Almonds and walnut halves scattered across a pale surface
Credit: Photo: Vie Studio / Pexels

Based on meta-analyses covering blood pressure, migraine, insomnia, post-surgical heart rhythm, depression and mortality across thirteen outcome areasMedlinePlus reference on dietary magnesium, requirements and deficiency

Summary
  • Involved in more than 300 biochemical reactions, which is why it is tested against everything.
  • Blood pressure falls, but mainly in people with hypertension or low magnesium to begin with.
  • Oral magnesium reduced migraine frequency and intensity, and it is an underused result.
  • For insomnia, the reviewers called the literature substandard for making recommendations.
  • Dietary magnesium tracked with lower mortality. Supplements did not.

Magnesium is bought overwhelmingly for sleep, and sleep is the weakest thing on this page.

Its genuine results are elsewhere, and mostly unadvertised: blood pressure in people who are short of it, migraine, and an irregular heartbeat after heart surgery.

What magnesium is

Magnesium is an essential mineral for human nutrition, and the reason it appears in so many claims is stated in the same reference: magnesium is needed for more than 300 biochemical reactions in the body.

Its named jobs are broad. It helps to maintain normal nerve and muscle function, supports a healthy immune system, keeps the heartbeat steady.

Food sources are ordinary rather than exotic: green vegetables, nuts, seeds, legumes and whole grains.

How magnesium works

Magnesium sits at the center of energy metabolism, since the molecule cells use for energy is handled as a magnesium complex. It also regulates how excitable nerve and muscle cells are, by competing with calcium at the channels that let cells fire.

That second role is the one behind most of the claims below. Calcium makes cells fire; magnesium damps them down. Muscle cramps, migraine, an irritable heart rhythm and difficulty settling to sleep are all, loosely, over-excitability, which is why one mineral gets sold for all of them.

The looseness is the problem. A plausible mechanism for everything is a strong prediction about nothing.

What the evidence says about magnesium and blood pressure

One of the better results, with a condition attached that decides whether it applies to you.

A 2025 review in the journal Hypertension supports the beneficial effect of magnesium on reducing BP among populations with hypertension and hypomagnesemia, BP meaning blood pressure, where hypomagnesemia means a low blood magnesium level.

Two qualifications from the reviewers themselves. Effects should be interpreted with caution due to high heterogeneity of studies. And, unusually, we found no dose-response relationship between magnesium and BP changes, meaning more did not produce more.

The absence of a dose-response is worth sitting with. Where an effect is real, it usually scales. Where it does not scale, it more often reflects correcting a shortfall than a drug-like action, which fits the finding that the benefit concentrated in people who were low to begin with.

What the evidence says about magnesium and migraine

Better evidence than the sleep claim, and hardly anyone buys it for this.

A meta-analysis found that oral magnesium significantly alleviated the frequency and intensity of migraine, and that given intravenously it works fast: intravenous magnesium reduces acute migraine attacks within 15 - 45 minutes, 120 minutes, and 24 hours after the initial infusion.

The reviewers’ recommendation is direct: intravenous and oral magnesium should be adapted as parts of multimodal approach to reduce migraine, meaning alongside other treatment rather than instead of it.

They are honest about the weakness. Some of the included studies did not adopt adequate randomization methods.

Migraine is a condition where magnesium appears in some clinical guidance, generally at a low evidence grade. On this page it is the use with the clearest practical case, and it belongs in a conversation with a doctor rather than a self-prescription.

What the evidence says about magnesium and sleep

The reason most magnesium is sold, and the answer is not what the shelf implies.

A review of oral magnesium supplementation for insomnia in older adults found the change favored magnesium but was statistically insignificant, meaning it could not be distinguished from chance.

The quality assessment is worse than the result. All trials were at moderate-to-high risk of bias and outcomes were supported by low to very low quality of evidence.

The reviewers’ conclusion is unusually blunt: the quality of literature is substandard for physicians to make well-informed recommendations on usage of oral magnesium for older adults with insomnia.

They then make a pragmatic argument that is worth reporting accurately, because it is often quoted as if it were a finding. Given that oral magnesium is very cheap and widely available, they suggest the existing trial evidence may support trying it in doses under a gram a day.

That is a cost-benefit argument about a cheap, low-risk option. It is not evidence that it works.

What the evidence says about magnesium and heart rhythm after surgery

The strongest single result on this page, and it happens in an operating theater.

Atrial fibrillation, an irregular heart rhythm, is a common complication after cardiac surgery. A 2025 review found magnesium reduces the risk of new-onset POAF compared to control. POAF is post-operative atrial fibrillation.

The certainty is the notable part. Across all trials the finding sat at low certainty. But the subgroup analysis for trials with low/some concerns risk of bias strengthened it to high certainty. Evidence usually weakens when you exclude the worse studies. Here it did the opposite, which is a good sign.

What did not change was anything bigger. Magnesium consumption had no significant effect on all-cause mortality, nor on length of hospital stay. Significant there is the research sense: it means the difference did not clear a statistical threshold.

This is an intravenous hospital protocol, not a capsule. It is on the page because it is the clearest demonstration that magnesium genuinely does what the mechanism says, in the one setting where the dose and timing are controlled.

What the evidence says about magnesium and depression

An association with what people eat, not with what they supplement.

A 2025 review found an inverse dose-dependent association between dietary Mg intakes and risk of depression, holding in both a general population and a representative sample of nearly 50,000 people.

Dose-dependent matters here: more dietary magnesium went with less depression, steadily, which is the pattern a real relationship makes.

But this is intake measured by questionnaire in observational studies, not a trial. People who eat more magnesium eat more vegetables, nuts and whole grains, and differ in many other ways. The finding is a reason to eat those foods, which was already true.

What the evidence says about magnesium and blood sugar

Widely claimed, and the recent evidence does not support it.

A 2026 review concluded that magnesium supplementation does not appear to improve insulin resistance in individuals with diabetes or prediabetes to a degree it could distinguish from chance.

The reviewers checked whether dose or duration explained it, and neither did: subgroup analysis based on doses and duration of follow-up did not change the significance of the result.

They offer one hypothesis worth flagging as a hypothesis. Its effects may depend on baseline insulin status, which would fit the deficiency-correction pattern seen across this site but has not been demonstrated here.

What the evidence says about magnesium and cholesterol

Narrow and small.

A 2025 review found no change in most of the lipid panel. What moved was one measure: magnesium significantly increased HDL-C, the protective form of cholesterol, by a little over one milligram per decilitre.

The reviewers immediately qualify it. Due to high heterogeneity, we must note that more research is needed to make robust recommendations.

A small rise in one marker, with the trials disagreeing sharply. That is not a reason to take magnesium for cholesterol.

What the evidence says about magnesium and mortality

The clearest food-versus-supplement split on this site, and it is worth the whole page.

A 2021 review found that higher intake of dietary magnesium was associated with a reduced risk of all-cause and cancer mortality, by about 6% and 5% respectively, though not cardiovascular death.

Then the same analysis looked at supplements. Supplemental and total magnesium intakes were not associated with the risk of all-cause, CVD, and cancer mortality.

Same nutrient, same analysis, same population. The magnesium in food tracked with living longer. The magnesium in capsules did not.

The likely explanation is that dietary magnesium is a marker for a diet full of vegetables, nuts and whole grains rather than an active ingredient in its own right. That is exactly the confusion supplement marketing depends on.

What the evidence says about magnesium and muscle soreness

Modest, and the most practically specific finding on the page.

A review of magnesium in intense exercise found it reduced muscle soreness, improved performance, recovery and induced a protective effect on muscle damage.

The reviewers give an unusually concrete recommendation: individuals engaged in intense exercise should have a Mg requirement 10-20% higher than sedentary people, taken in capsules and roughly two hours before training.

The evidence base is small, at four studies meeting the criteria, so treat the precision of that advice as provisional rather than established.

What the evidence says about magnesium in kidney disease

A hospital use, included because kidney disease is also the main reason magnesium supplements can be dangerous.

A 2023 review in chronic kidney disease found magnesium supplementation increased serum magnesium and reduced calcium, parathyroid hormone and the thickness of the carotid artery wall.

What it did not do is the point: it did not reduce VC scores. VC is vascular calcification, the hardening of blood vessels that the treatment was aimed at.

Markers moved, the target did not. And this is precisely the population that should not self-supplement, because failing kidneys cannot clear excess magnesium.

What the evidence says about magnesium in pregnancy

A genuine, established clinical use, and one of the few places on this site where a supplement prevents a serious outcome.

A 2024 meta-analysis of magnesium sulfate given before preterm birth found that MgSO4 administration can improve fetal neurological impairment and cerebral palsy, with a roughly 30% reduction in cerebral palsy.

It did not affect survival: neonatal mortality was not significantly associated with MgSO4 injection.

This is an intravenous obstetric treatment given in hospital during preterm labor, and it has nothing to do with taking magnesium tablets in pregnancy. It is included because it is the strongest evidence magnesium has anywhere, and because the distinction between the two is the kind that supplement marketing blurs.

Myths about magnesium, and what the evidence says

“Magnesium helps you sleep.” The insomnia review found no effect it could distinguish from chance, at low to very low quality, and called the literature substandard for making recommendations.

“It lowers blood pressure.” In people with hypertension or low magnesium, yes. There was no dose-response, and no evidence it helps people whose levels are normal.

“Magnesium deficiency is everywhere.” Intakes below the recommended amount are common; true deficiency, measured in blood, is not, and it mostly accompanies other illness or medication.

“Supplements give you the benefits of a magnesium-rich diet.” In the mortality analysis, dietary magnesium tracked with lower death rates and supplements did not.

“More is better.” The blood pressure review specifically found no dose-response, and the practical ceiling for most people is diarrhea.

“Any form will do.” Forms differ mostly in absorption. Oxide is the cheapest and the most laxative, which means less of it reaches the blood and more stays in the gut.

Dosing and forms of magnesium

Adult requirements sit in the low hundreds of milligrams a day and vary by age and sex, with somewhat higher amounts in pregnancy and breastfeeding.

The form on the label changes how much gets absorbed. Citrate, glycinate and malate are generally better absorbed; oxide and sulfate are cheaper and pull more water into the gut, which is why they work as laxatives and why they cause loose stools at doses others tolerate.

Where trials exist, the doses are modest. The insomnia review looked at under a gram a day in divided doses; the exercise work suggests a requirement perhaps a fifth higher than sedentary intake, taken before training.

Food remains the version with the mortality evidence behind it.

Safety, side effects and who should be careful

For most people the limiting side effect is diarrhea, and it arrives well before anything dangerous. Taking it with food and choosing a better-absorbed form both help.

The serious caution is kidney function. Magnesium is cleared by the kidneys, so anyone with reduced kidney function can accumulate it to harmful levels, and the vascular calcification review above is a reminder that this population is studied precisely because magnesium behaves differently in it.

Very high blood magnesium causes low blood pressure, confusion, muscle weakness and heart rhythm problems. That is a hospital event, essentially confined to people with kidney failure or those given intravenous magnesium.

Interactions

Magnesium binds several medicines in the gut and reduces their absorption. The main ones are certain antibiotics, including tetracyclines and quinolones, and bisphosphonates for osteoporosis. Spacing doses a few hours apart is the usual fix.

It also adds to the effect of some blood pressure medicines, and diuretics change how much magnesium the body retains in both directions depending on the drug.

Proton pump inhibitors taken long-term can lower magnesium, which is one of the more common reasons for a genuinely low blood level.

Bottom line on magnesium

Magnesium is a real nutrient with real uses, and almost none of them are the one on the front of the box.

If you have high blood pressure and a low magnesium level, supplementing is reasonable. If you get migraines, it is worth raising with a doctor, because that evidence is better than its profile suggests. If you are having heart surgery, the anaesthetist already knows.

If you are buying it to sleep, the evidence says the literature is not good enough to tell you whether it works. It is cheap and low-risk, which is a fair reason to try it and not a reason to expect much.

And the finding that should outlast the rest of this page: the magnesium that tracked with living longer was the magnesium in food.

People also ask

What does magnesium do?

A great deal, which is the problem with studying it. MedlinePlus states that magnesium is needed for more than 300 biochemical reactions in the body, and that it helps to maintain normal nerve and muscle function, supports a healthy immune system, keeps the heartbeat steady. A nutrient involved in that many processes gets tested against almost every condition, and the results are correspondingly scattered.

Does it lower blood pressure?

In the right people. A 2025 review in Hypertension supports the beneficial effect of magnesium on reducing BP among populations with hypertension and hypomagnesemia, hypomagnesemia meaning low blood magnesium. The reviewers add that effects should be interpreted with caution due to high heterogeneity of studies, and they found no dose-response relationship between magnesium and blood pressure changes.

Does it help migraine?

This is one of its better-supported uses and one of the least advertised. A meta-analysis found that oral magnesium significantly alleviated the frequency and intensity of migraine (odds ratios 0.20 and 0.27), and that intravenous magnesium reduces acute migraine attacks within 15 to 45 minutes, 120 minutes, and 24 hours after the initial infusion. The reviewers recommend it be adapted as parts of multimodal approach to reduce migraine.

Does magnesium help you sleep?

This is the biggest reason people buy it and the weakest evidence on the page. A review of oral magnesium for insomnia in older adults found improvements that were statistically insignificant, with all trials at moderate-to-high risk of bias and outcomes supported by low to very low quality of evidence. The reviewers concluded the quality of literature is substandard for physicians to make well-informed recommendations.

Is there a difference between food magnesium and supplements?

The mortality evidence says yes, sharply. A 2021 review found higher intake of dietary magnesium was associated with a reduced risk of all-cause and cancer mortality, but not CVD mortality, at 6% and 5% respectively. In the same analysis, supplemental and total magnesium intakes were not associated with the risk of all-cause, CVD, and cancer mortality.

What about blood sugar?

Weaker than the marketing suggests. A 2026 review concluded that magnesium supplementation does not appear to improve insulin resistance in individuals with diabetes or prediabetes significantly, and that subgroup analysis by dose and duration did not change that. The authors suggest effects may depend on baseline insulin status, which is a hypothesis rather than a finding.

Which form should I take, and how much?

Requirements sit in the low hundreds of milligrams a day and most people get close to that from food; green vegetables, nuts, seeds, legumes and whole grains are the usual sources. Forms differ mainly in how much reaches the blood and how much stays in the gut: citrate and glycinate absorb better, oxide is cheaper and more laxative. The insomnia trials that exist used under a gram a day in divided doses.

Can you take too much?

From food, no. From supplements, the first sign is usually diarrhea, which is dose-limiting for most people before anything worse happens. The serious risk is in kidney disease, because the kidneys clear magnesium and a failing kidney cannot. Anyone with reduced kidney function should not take magnesium supplements without medical advice. This is general information rather than medical advice.

References

  1. Magnesium Supplementation and Blood Pressure: A Systematic Review and Meta-Analysis of Randomized Controlled Trials. Hypertension, 2025.
  2. Total, Dietary, and Supplemental Magnesium Intakes and Risk of All-Cause, Cardiovascular, and Cancer Mortality. Advances in Nutrition, 2021.
  3. Effects of Intravenous and Oral Magnesium on Reducing Migraine: A Meta-analysis of Randomized Controlled Trials. Pain Physician, 2016.
  4. Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis. BMC Complementary Medicine and Therapies, 2021.
  5. Dietary Magnesium Intake in Relation to Depression in Adults: A GRADE-Assessed Systematic Review and Dose-Response Meta-Analysis. Nutrition Reviews, 2025.
  6. Magnesium for Prevention of New-onset Postoperative Atrial Fibrillation Following Cardiac Surgery. Heart International, 2025.
  7. MedlinePlus Medical Encyclopedia. Magnesium in diet. US National Library of Medicine.
Search