Magnesium benefits

The known benefit of magnesium appears when a deficiency is corrected. For additional supplementation in people without deficiency, the evidence rests on findings that are small (blood pressure), limited (sleep, blood sugar) or showing no benefit (leg cramps in older adults), depending on the topic.

This page is part of: Magnesium

Short answer

Magnesium takes part in more than 300 enzyme systems; a deficiency needs to be corrected. In people without a deficiency, the effect of additional supplementation varies by claim: a benefit for leg cramps in older adults is unlikely, the effect on blood pressure is small, and evidence for sleep and blood sugar is limited and of low certainty. For each claim, it is necessary to look at which group was studied. [1] [2]

How are the role of magnesium and the benefit of a supplement distinguished?

Magnesium takes part in protein synthesis, muscle and nerve function, blood sugar control and blood pressure regulation. [1] These roles do not show that these processes will keep improving when more is taken. Four separate steps of evidence must be distinguished: having a role in the cell, low levels occurring together with a disease (observational association), a supplement changing the outcome in a controlled study, and that effect being clinically meaningful.

In the sections below, for each claim, who was studied and what the result does not cover are written. Because most studies are small, short and conducted with different magnesium compounds and different amounts, the results cannot be directly compared with one another.

Does magnesium prevent leg cramps?

The 2020 update of the Cochrane review evaluated 11 randomized studies (735 people; oral in all but one) examining magnesium supplementation for skeletal muscle cramps. Five studies examined leg cramps in pregnancy (408 people), five examined idiopathic cramps, that is, cramps of unknown cause (271 people), and one examined 29 people with liver cirrhosis. [2]

For nocturnal leg cramps in predominantly older adults (mean age 61.6–69.3), differences between magnesium and placebo were small and not statistically significant. At week four, the difference in weekly cramp count was −0.18 (95% CI −0.84 to 0.49; 5 studies, 307 people). The authors concluded that magnesium supplementation is unlikely to provide clinically meaningful cramp protection in older adults. [2]

For leg cramps in pregnancy, the literature was described as conflicting and more research was reported to be needed in this group. No randomized study examining exercise-associated cramps was found. Side effects were mostly gastrointestinal (such as diarrhea; 11%–37% in the magnesium group, 10%–14% in the control group); mild side effects tended to be more frequent in the magnesium group (RR 1.51; 95% CI 0.98–2.33; low certainty). [2]

Does magnesium help with sleep?

The 2021 review by Mah and Pitre pooled three randomized studies (151 people in total) comparing oral magnesium with placebo or no treatment in older adults. Time to fall asleep was 17.36 minutes shorter in the magnesium group than with placebo (95% CI −27.27 to −7.44). The 16.06-minute increase in total sleep time was not statistically significant. All studies carried a moderate-to-high risk of bias and the evidence was of low to very low certainty; the authors stated that the literature was insufficient to make recommendations. [3]

In a younger and healthy group, in a double-blind, placebo-controlled study published in 2025, 155 adults (aged 18–65) reporting poor sleep quality were given 250 mg of elemental magnesium (bisglycinate) per day for four weeks. The decrease in the Insomnia Severity Index was −3.9 in the magnesium group and −2.3 in the placebo group (p = 0.049); the effect size was small (Cohen d = 0.2). A more pronounced improvement in those with low dietary magnesium intake at baseline was reported as “exploratory”; there was no significant difference in other psychological measures. [4]

For this reason, the most measured statement that can be made about magnesium for sleep is this: limited and low-certainty evidence points to a small effect; large, long-term studies with objective sleep measurement are missing. The causes of persistent sleep problems require physician evaluation.

Is magnesium good for migraine?

As relayed by the NIH, serum and tissue magnesium levels are lower in people with migraine than in those without, but research on magnesium supplementation preventing migraine is limited. In three of four small, short, placebo-controlled studies, a moderate reduction in migraine frequency was seen with up to 600 mg of magnesium per day. [1]

The 2012 guideline update by the American Academy of Neurology and the American Headache Society, according to the NIH, found magnesium treatment “probably effective” for migraine prevention. Because the typical amount used for migraine prevention exceeds the supplement upper limit, the NIH states that this treatment should be used only under the direction and supervision of a health professional. [1] This page does not recommend an amount or duration for migraine.

The 2012 AAN/AHS guideline was retired on 16 September 2015 because of butterbur safety concerns; its recommendations are no longer supported by AAN. This does not establish that magnesium is ineffective; the historical citation is not current AAN guidance. [9]

Does magnesium lower blood pressure?

The 2016 meta-analysis by Zhang and colleagues pooled 34 double-blind placebo-controlled studies (2,028 participants; normotensive and hypertensive adults). With a median of 368 mg/day of magnesium given for a median of 3 months, systolic blood pressure fell by 2.00 mmHg (95% CI 0.43–3.58) and diastolic by 1.78 mmHg (0.73–2.82). The authors noted that residual heterogeneity between studies may persist. [5]

Other assessments relayed by the NIH also show the effect is small: a 12-study meta-analysis covering 545 hypertensive participants found a decrease of 2.2 mmHg in diastolic blood pressure only, and the US Food and Drug Administration (FDA) in 2022 approved a “qualified health claim” on the relationship between magnesium and blood pressure, with a warning that the evidence is “inconsistent and inconclusive.” In the DASH diet, the fall in blood pressure is influenced not only by magnesium but also by other nutrients such as potassium and calcium; the independent share of magnesium cannot be distinguished. [1]

Practical conclusion: the effect of additional magnesium on blood pressure is small and does not replace blood pressure medication; changes in blood pressure treatment are a physician’s decision.

Does magnesium work for blood sugar?

In observational studies, a magnesium-rich diet is associated with a lower risk of type 2 diabetes; however, such studies may be affected by other dietary and lifestyle differences. [1]

The 2016 meta-analysis by Veronese and colleagues pooled 18 randomized studies comparing oral magnesium with placebo in people with diabetes or at high risk of diabetes. In people with diabetes, fasting plasma glucose decreased (SMD −0.40; 95% CI −0.80 to −0.00; 9 studies; I² 77%). In people at high risk of diabetes, 2-hour oral glucose tolerance test values improved (SMD −0.35; 3 studies; I² 0%) and a trend-level decrease was seen in HOMA-IR (I² 88%). [6]

The limits are important: heterogeneity between studies is high, and many studies are small and short. According to the NIH, the American Diabetes Association states there is not enough evidence to support routine use of magnesium to improve glycemic control in diabetes, and the benefit of vitamin-mineral supplementation in people with diabetes who have no deficiency is unclear. [1]

Does magnesium reduce anxiety?

The 2017 systematic review by Boyle and colleagues evaluated 18 studies examining the effect of magnesium (alone or with up to five components) on subjective anxiety and stress. All studies were conducted in groups prone to anxiety (mild anxiety, premenstrual syndrome, postpartum period, hypertension). A positive effect was reported in 4 of 8 studies in anxious samples, 4 of 7 studies in premenstrual syndrome samples and 1 of 2 studies in hypertensive samples; there was no effect in postpartum anxiety. No study used a valid scale for stress. [7]

The authors stated that the evidence “suggests a beneficial effect” but that its quality is weak and well-designed randomized studies are needed. A mineral supplement does not replace the treatment of an anxiety disorder. [7]

Does magnesium improve exercise performance?

The 2017 narrative review by Zhang and colleagues summarized animal and human studies between magnesium status/supplementation and exercise performance. Animal studies suggested that magnesium may improve performance by increasing glucose availability in the brain, muscle and blood and by reducing lactate accumulation in muscle. Most human studies focused on physiological indicators such as blood pressure, heart rate and maximal oxygen consumption rather than directly on functional performance. In cross-sectional research, a positive association was found between magnesium status and measures of muscle performance such as grip strength and leg strength; in intervention studies, improvement in functional indicators such as quadriceps torque, and improvement in walking speed and chair-rise time in older women, were reported. [8]

This is a narrative review; it presents no pooled (meta-analytic) effect size, and a cross-sectional association does not mean cause and effect. It cannot be concluded from these sources that supplementation improves performance in athletes without a deficiency.

Summary of the evidence

ClaimGroup examinedResultWhat cannot be generalized
Nocturnal leg crampsPredominantly older adults, 5 RCTs (idiopathic cramps)No benefit shown [2]Evidence for cramps in pregnancy is conflicting; exercise cramps not studied
Sleep3 RCTs in older adults (151 people); 1 RCT at ages 18–65 (155 people)Small effect, low certainty [3] [4]No objective sleep measurement or long-term study
Migraine preventionSmall, short placebo-controlled studies“Probably effective” (2012 guideline, as relayed by the NIH) [1]Amount used is above the upper limit; physician supervision
Blood pressure34 RCTs, 2,028 peopleSystolic −2.00, diastolic −1.78 mmHg [5]Does not replace drug treatment
Blood sugarPeople with diabetes or at risk, 18 RCTsImprovement in some glucose indicators [6]High heterogeneity; cannot be carried over to people without deficiency
AnxietyGroups prone to anxiety, 18 studiesMixed, low-quality evidence [7]Does not replace treatment of anxiety disorder
ExerciseAnimal and human studies (narrative review)No pooled effect [8]No performance increase shown in athletes without deficiency

What can be said about bone and heart?

The NIH reports that adequate magnesium intake from food contributes to bone health, but that studies on increasing bone density with supplements are few and short. For heart disease and stroke, large observational studies have found an association of higher magnesium intake and serum level with lower risk; however, the NIH stresses that such studies may be confounded by other dietary components and that a large, well-designed clinical trial is needed to understand the role of magnesium in primary protection. [1]

Detailed guideMagnesium guide: functions, reference intakes and safety Detailed guideMagnesium deficiency symptoms and the meaning of testing Detailed guideMagnesium forms: what evidence exists for which form? Detailed guideWhen to take magnesium Detailed guideWhich foods contain magnesium?

This guide does not recommend a personal dose. In the presence of kidney disease, pregnancy, regular medication use or a diagnosed disease, the decision on a supplement is made together with a physician.

Correction: 19 October 2026

The retirement status of the 2012 migraine guideline was clarified.

Frequently asked questions

Does magnesium help with sleep?

In three small studies in older adults, time to fall asleep was shortened by about 17 minutes; however, the evidence is of low or very low certainty. In a single 4-week study in healthy adults reporting poor sleep, the effect was small.

Does magnesium prevent leg cramps?

According to the Cochrane review, a clinically meaningful benefit for idiopathic nocturnal cramps in older adults is unlikely. Studies of cramps in pregnancy are conflicting.

Does magnesium lower blood pressure?

In a meta-analysis of 34 studies, with a median of 368 mg/day after about 3 months, systolic blood pressure fell by 2.00 mmHg and diastolic by 1.78 mmHg. The effect is small and does not replace blood pressure medication.

Is magnesium used for migraine?

According to the NIH, the American Academy of Neurology and the American Headache Society found magnesium “probably effective” for migraine prevention. Because the amount used exceeds the supplement upper limit, it is considered only under physician supervision. The 2012 AAN/AHS guideline was retired on 16 September 2015 because of butterbur safety concerns; its recommendations are no longer supported by AAN. This does not establish that magnesium is ineffective; the historical citation is not current AAN guidance.

Does magnesium reduce anxiety?

In a systematic review of 18 studies, results were mixed and the quality of evidence was low. A positive effect was reported in some studies in groups prone to anxiety; no firm conclusion can be drawn.

Sources

  1. Guideline / review NIH Office of Dietary Supplements — Magnesium: Health Professional Fact Sheet (2022)Back to text ↑
  2. Meta-analysis Magnesium for skeletal muscle cramps. (2020)Back to text ↑
  3. Meta-analysis Mah ve Pitre — Oral magnesium supplementation for insomnia in older adults: a systematic review & meta-analysis (2021)Back to text ↑
  4. RCT Schuster et al. — Magnesium Bisglycinate Supplementation in Healthy Adults Reporting Poor Sleep: A Randomized, Placebo-Controlled Trial (2025)Back to text ↑
  5. Meta-analysis Zhang et al. — Effects of Magnesium Supplementation on Blood Pressure: a meta-analysis of randomized double-blind placebo-controlled trials (2016)Back to text ↑
  6. Meta-analysis Veronese et al. — Effect of magnesium supplementation on glucose metabolism in people with or at risk of diabetes (2016)Back to text ↑
  7. Guideline / review Boyle et al. — The Effects of Magnesium Supplementation on Subjective Anxiety and Stress: A Systematic Review (2017)Back to text ↑
  8. Guideline / review Zhang et al. — Can Magnesium Enhance Exercise Performance? (2017)Back to text ↑
  9. Guideline / review Holland et al. — AAN/AHS migraine prevention guideline [RETIRED — 2015] (2012)Back to text ↑

Method: Institutional clinical guidance and relevant studies were compared. Each finding is presented with its population, outcome, sources and limitations. Independent medical review has not yet been completed.

Updated

This content is for information only and is not medical advice. It does not recommend doses, products or vendors. Talk to your clinician before making any health decision.