Magnesium
Last reviewed October 2026 · Based on 37 studies
Bottom line
Magnesium supplements modestly lower blood pressure, mainly in people with high blood pressure or low magnesium levels, and may slightly improve blood sugar in type 2 diabetes, though the gains in newer trials are small. Evidence for sleep, migraine and mood is limited and inconsistent, and for leg cramps in older adults it shows no meaningful benefit. Diarrhoea is the most common side effect.
What it helps with
- Lowers blood pressure — Benefit, evidence grade C (Limited). Two large meta-analyses of RCTs (38 and 78 trials) show a small drop, but a third analysis found no significant change; downgraded for a surrogate outcome and inconsistency.
- Improves blood sugar control in type 2 diabetes — Benefit, evidence grade C (Limited). Meta-analyses disagree on size (HbA1c -0.73 vs -0.15 points), the newest insulin-resistance meta-analysis and a 12-month RCT were not significant; downgraded for inconsistency and a surrogate marker.
- Higher intake is linked to lower diabetes, stroke and heart failure risk — Benefit, evidence grade B (Moderate). Large, consistent prospective cohorts (40 studies, >1 million people); observational, so capped at B. No link with coronary heart disease.
- Helps you fall asleep and sleep better — Mixed results, evidence grade C (Limited). Small trials with low to very low certainty and inconsistent results; a 2025 trial of 155 adults found a small benefit (d = 0.2).
- Prevents migraine attacks — Benefit, evidence grade C (Limited). A recent meta-analysis found fewer attacks, but an earlier one found insufficient evidence; inconsistent and small.
- Eases depression and anxiety — Benefit, evidence grade C (Limited). Open-label RCT (126 people), two small 2026 add-on-to-fluoxetine trials (40 each) and a mixed systematic review; small and at risk of bias.
- Relieves muscle and leg cramps — No effect, evidence grade B (Moderate). Cochrane review and a separate pregnancy meta-analysis agree on no meaningful benefit; downgraded for small total sample.
- Raises testosterone in men — Mixed results, evidence grade C (Limited). One small 4-week trial found higher testosterone, but a zinc-magnesium trial found no hormone change and a 2024 review of boosters listed no mineral blend as effective; small samples and inconsistent results.
What it is
Magnesium is a mineral the body needs, and people who eat more of it in their diet have lower rates of type 2 diabetes, stroke and heart failure in long-term studies [1]. Supplements come as different salts — such as oxide, citrate, gluconate and aspartate — at doses that vary widely between trials [2] [3].
What the research says
Blood pressure. A 2025 meta-analysis of 38 randomised trials with 2,709 people found magnesium lowered blood pressure by 2.8/2.1 mmHg compared with placebo [3]. The drop was larger in people with high blood pressure already on medication (7.7 mmHg systolic) and in people with low magnesium levels, while in people with normal blood pressure it was not significant [3]. A 2026 meta-analysis of 78 trials found a similar small drop of 2.5/1.6 mmHg [4], although a separate 2026 analysis of 12 trials found no significant blood pressure change [5].
Type 2 diabetes. Across 18 trials in people with type 2 diabetes, about 500 mg a day lowered HbA1c by an estimated 0.73 percentage points, though the authors judged the evidence not yet sufficient for clinical guidelines [6]. A larger 2026 meta-analysis of 78 trials found a smaller average HbA1c drop of 0.15 percentage points and a fasting glucose drop of 3.6 mg/dL [4]. A 2026 meta-analysis of 15 trials (1,085 people with diabetes or prediabetes) found no significant change in insulin resistance [7], and in a 12-month trial of 247 adults with type 2 diabetes, magnesium oxide lowered HbA1c by 0.30 points versus 0.05 on placebo, a difference that was not statistically significant [8]. In 40 cohort studies with over a million people, each extra 100 mg of dietary magnesium a day was linked to a 19% lower risk of developing type 2 diabetes [1].
Heart and stroke. The same cohort analysis linked higher magnesium intake to lower risk of stroke and heart failure, but not of coronary heart disease or overall cardiovascular disease [1].
Sleep. In three small trials of 151 older adults with insomnia, magnesium shortened the time to fall asleep by about 17 minutes, but the evidence was of low to very low quality [9]. A 2026 review of 12 trials found inconsistent results and concluded that magnesium is not supported as a routine insomnia treatment [10]. A 2025 placebo-controlled trial of 155 adults with poor sleep found a larger improvement in insomnia scores with 250 mg of magnesium bisglycinate a day for four weeks, though the effect was small (Cohen's d 0.2) [11].
Migraine. A 2025 meta-analysis found magnesium reduced migraine attacks and monthly migraine days [12], while an earlier analysis of three trials (226 people) found no significant effect on severity and called the evidence insufficient [13].
Mood. In an open-label trial of 126 adults with mild-to-moderate depression, 248 mg of magnesium a day for six weeks improved depression scores by 6 points and anxiety scores by 4.5 points [14]. Two small 2026 trials of 40 people each, adding magnesium (250 or 350 mg a day) to the antidepressant fluoxetine for six weeks, found larger improvements than fluoxetine alone: depression scores fell by 6.35 versus 2.80 points [15], and a memory and attention test improved by 4.8 versus 1.35 points [16]. A systematic review found the overall evidence on magnesium and mental health mixed [17].
Testosterone. In one 4-week trial, magnesium increased free and total testosterone in athletes and sedentary men [18]. But an 8-week trial of a zinc-magnesium supplement (ZMA) in 42 resistance-trained men found no changes in anabolic or catabolic hormones [19], and a 2024 systematic review of 52 booster studies found most products did not raise total testosterone, listing no zinc or magnesium product among its few possibly effective ones [20].
Muscle cramps. A Cochrane review of 11 trials concluded that magnesium is unlikely to give clinically meaningful relief to older adults with muscle cramps [21]. In four trials with 332 pregnant women, it did not reduce leg cramps either [22]. A 2026 trial of 121 adults aged 50 to 85 with frequent leg cramps found no difference between magnesium and placebo, while compression stockings reduced cramps [23].
Doses used in studies
Blood pressure trials used 82–637 mg of elemental magnesium a day (median 365 mg) for a median of 12 weeks [3]. Glycaemic benefits were estimated at around 500 mg a day [6], and the depression trial used 248 mg a day [14]. The 2026 diabetes trial used 302 mg of elemental magnesium (as oxide) a day for 12 months [8], and the add-on depression trials used 250 and 350 mg a day [15] [16]. The testosterone trial used 10 mg of magnesium per kilogram of body weight a day for four weeks [18].
Safety and interactions
- Side effects: mostly digestive, especially diarrhoea, reported by 11–37% of people taking magnesium versus 10–14% on placebo; serious side effects were no more common than with placebo [21].
- Kidney problems and older age: magnesium oxide needs care with dose and blood levels in older people and people with impaired kidney function [24].
- Medicines: magnesium-containing antacids can bind tetracycline and fluoroquinolone antibiotics and reduce their absorption, so they are separated by taking the antacid 4 hours before or 2 hours after the antibiotic; bisphosphonates may be affected in the same way [25].
- Pregnancy: a Cochrane review of 10 trials with 9,090 women found not enough high-quality evidence that magnesium supplements help in pregnancy, and a possible rise in neonatal deaths in one trial, which the authors said should be read with caution [2].
- Upper limits: this page does not cover official upper intake limits; trial doses are listed above.
Caveats and open questions
Many trials are small, short and use different magnesium salts and doses [10] [3]. Benefits seem largest in people who are low in magnesium to begin with [3]. Effects on blood sugar look smaller in the newest and largest analyses than in earlier ones [4] [7].
References
- Dietary magnesium intake and the risk of cardiovascular disease, type 2 diabetes, and all-cause mortality: a dose-response meta-analysis of prospective cohort studies.. BMC Med, 2016.
- Magnesium supplementation in pregnancy.. Cochrane Database Syst Rev, 2014.
- Magnesium Supplementation and Blood Pressure: A Systematic Review and Meta-Analysis of Randomized Controlled Trials.. Hypertension, 2025.
- Comprehensive Effects of Magnesium Supplementation on Cardiometabolic Risk Factors: A Systematic Review and Dose-Response Meta-Analysis.. Nutrients, 2026.
- The effects of oral magnesium supplements on vascular and endothelial function: an updated systematic review and meta-analysis of randomized controlled trials.. BMC Cardiovasc Disord, 2026.
- The effects of oral magnesium supplementation on glycaemic control in patients with type 2 diabetes: a systematic review and dose-response meta-analysis of controlled clinical trials.. Br J Nutr, 2022.
- Oral magnesium supplements and insulin resistance in individuals with diabetes and pre-diabetes: an updated systematic review and meta-analysis of randomized controlled trials.. BMC Nutr, 2026.
- The effect of oral magnesium supplementation on glycemic control and metabolic parameters in type 2 diabetes mellitus: a double-blind randomized controlled trial.. Front Endocrinol (Lausanne), 2026.
- Oral magnesium supplementation for insomnia in older adults: a Systematic Review & Meta-Analysis.. BMC Complement Med Ther, 2021.
- Magnesium Supplementation for Sleep in Adults: A Systematic Review of Randomized Controlled Trials.. J Diet Suppl, 2026.
- Magnesium Bisglycinate Supplementation in Healthy Adults Reporting Poor Sleep: A Randomized, Placebo-Controlled Trial.. Nat Sci Sleep, 2025.
- Effects of selected dietary supplements on migraine prophylaxis: A systematic review and dose-response meta-analysis of randomized controlled trials.. Neurol Sci, 2025.
- Vitamins and Minerals for Migraine Prophylaxis: A Systematic Review and Meta-analysis.. Can J Neurol Sci, 2019.
- Role of magnesium supplementation in the treatment of depression: A randomized clinical trial.. PLoS One, 2017.
- Magnesium supplementation as an adjunct to fluoxetine therapy for depression.. East Asian Arch Psychiatry, 2026.
- Effects of magnesium supplementation on serum brain-derived neurotrophic factor levels and cognitive function in patients undergoing fluoxetine therapy for depression.. East Asian Arch Psychiatry, 2026.
- The Role and the Effect of Magnesium in Mental Disorders: A Systematic Review.. Nutrients, 2020.
- Effects of magnesium supplementation on testosterone levels of athletes and sedentary subjects at rest and after exhaustion.. Biol Trace Elem Res, 2011.
- Effects of Zinc Magnesium Aspartate (ZMA) Supplementation on Training Adaptations and Markers of Anabolism and Catabolism.. J Int Soc Sports Nutr, 2004.
- Do "testosterone boosters" really increase serum total testosterone? A systematic review.. Int J Impot Res, 2024.
- Magnesium for skeletal muscle cramps.. Cochrane Database Syst Rev, 2020.
- Effect of oral magnesium supplementation for relieving leg cramps during pregnancy: A meta-analysis of randomized controlled trials.. Taiwan J Obstet Gynecol, 2021.
- Secondary prevention of leg cramps using compression stockings or magnesium supplements: a three-arm randomized clinical trial.. Trials, 2026.
- Magnesium Oxide in Constipation.. Nutrients, 2021.
- Clinically significant drug interactions with antacids: an update.. Drugs, 2011.