This page is part of: Magnesium
At a glance
- Magnesium works in more than 300 enzyme systems; correcting a deficiency and the benefit of extra supplementation in people without one are separate questions. [1]
- For night leg cramps, the Cochrane review and a 2026 randomized trial showed no benefit; a single trial published in between reported a positive result. [2] [14]
- The average fall in blood pressure is limited to a few mmHg; it may be larger in people with high blood pressure and low magnesium. [12]
- Evidence for sleep, migraine, blood glucose and anxiety is limited, of low certainty or conflicting. [15] [17]
- In trials, the most common side effects were digestive complaints such as diarrhea. [2]
- This guide does not recommend a personal dose.
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]
A 60-day magnesium oxide monohydrate trial published after the 2020 review reported greater reductions in cramp frequency and duration than placebo; 175 participants completed it and trial registration was retrospective. Differences in formulation, duration and methods mean this single positive trial may not overturn the earlier pooled negative findings. [11]
In a three-arm Finnish trial published in 2026, 121 people aged 50–85 with at least two leg cramps a week used magnesium, knee-high compression stockings or placebo for four weeks; according to the full text, the magnesium group received 250 mg of elemental magnesium a day. At week 8 there was no significant difference in cramp frequency between magnesium and placebo (adjusted mean difference −0.20 cramps/week; 95% CI −1.49 to 1.09), while compression stockings reduced frequency. No serious adverse events were reported. This finding shows that the positive result of the 2021 trial was not repeated with another product and duration. [14]
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.
The 2026 systematic review by Lopresti and colleagues examined 12 randomized trials that used magnesium as the only active ingredient for sleep, insomnia or poor-sleep outcomes; trials on night cramps and restless legs were assessed separately. Populations, compounds, amounts and durations varied widely; findings were inconsistent across subjective measures, EEG, actigraphy and wearable-derived data, and the certainty of evidence was low to very low. The authors reported that current evidence does not support magnesium as a routine treatment for insomnia, while it may offer modest benefit on some subjective outcomes in some adults. [15]
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]
Two newer analyses reached different results. The 2025 dose-response meta-analysis by Talandashti and colleagues covered 22 randomized trials of various dietary supplements for migraine prevention; according to the abstract, magnesium reduced the number of attacks (mean difference −2.51), attack severity (−0.88) and monthly migraine days (−1.66) compared with control. The abstract does not state how many magnesium trials these results rest on. [16]
The 2026 network meta-analysis by Peng and colleagues pooled 14 randomized trials (791 participants) comparing supplements in adults with migraine. Magnesium showed no significant difference from placebo in attack frequency (mean difference −0.82 attacks/month; 95% CI −2.03 to 0.13); a 3.56-point reduction in attack severity on a 0–10 scale was reported. No supplement significantly shortened attack duration; the authors treated the supplement rankings as exploratory. [17] Benefit for attack frequency is therefore uncertain, and the fall in severity rests on few trials.
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.
The 2025 meta-analysis by Argeros and colleagues pooled 38 randomized trials lasting at least 4 weeks (2,709 participants; elemental magnesium 82.3–637 mg, median 365 mg; median 12 weeks). Compared with placebo, systolic blood pressure fell by 2.81 mmHg (95% CI −4.32 to −1.29) and diastolic by 2.05 mmHg (−3.23 to −0.88). The systolic fall was 7.68 mmHg in hypertensive people on blood-pressure medication and 5.97 mmHg in those with hypomagnesemia. The authors asked for cautious interpretation because of high heterogeneity. [12]
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]
The 2026 updated meta-analysis by Amiri and colleagues examined 15 randomized trials (1,085 participants) comparing oral magnesium with placebo in diabetes and prediabetes. In people with diabetes there was no significant change in insulin level (mean difference −1.73; 95% CI −3.73 to 0.27) or HOMA-IR (−0.74; −1.58 to 0.09); results in prediabetes were similar. In meta-regression, baseline insulin and HOMA-IR modified the effect; dose and duration subgroups did not change the result. [13]
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]
The 2024 systematic review by Rawji and colleagues evaluated 15 interventional studies of magnesium in anxiety and sleep disorders. Improvement in subjective anxiety was reported in 5 of 7 studies measuring anxiety, and improvement in sleep parameters in 5 of 8 studies measuring sleep. The authors noted that the data were heterogeneous, participant numbers were mostly small and some studies included other active ingredients; the search covered PubMed only, and larger randomized trials were said to be needed. [18]
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.
The 2024 systematic review by Tarsitano and colleagues examined four studies of magnesium alone in physically active people for muscle soreness; these studies reported reduced muscle soreness, improved performance and recovery, and a protective effect against muscle damage. A four-study review presents no pooled effect size; the authors’ timing and amount suggestions rest on these limited data and are not passed on as recommendations in this guide. [19]
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.
How should the magnesium benefit research be read?
- Role and benefit are separate: The fact that magnesium works in enzyme systems does not show that taking it above the requirement improves that function. Correcting a deficiency and extra supplementation in people without one are separate questions. [1]
- Conflicting new trials: In night cramps, the positive 2021 trial and the negative 2026 trial used different products and durations; in migraine, the 2025 and 2026 analyses reached different results with different trial sets and methods. A single new trial does not by itself change the earlier pooled result. [11] [14] [16] [17]
- Industry links: The positive 2021 cramp trial was supported, according to the full text, by an unrestricted research grant from a pharmaceutical company (Naveh Pharma) and registered retrospectively. The 2025 bisglycinate sleep trial was run with a university institute’s funds; one author declared being managing director of a contract research organization that receives research funding from nutraceutical companies. [11] [4]
- Intermediate markers and clinical outcomes: Blood pressure, fasting glucose and HOMA-IR are intermediate markers; these trials did not measure heart attack, stroke or the development of diabetes. Subgroup differences in blood pressure are treated as exploratory. [12]
- Subjective measures and multi-ingredient products: Most sleep and anxiety trials rely on subjective scales; the 2026 sleep review reported inconsistency between subjective measures, EEG and actigraphy. Anxiety reviews also include trials giving magnesium with other ingredients. [15] [7] [18]
- Animal and cross-sectional data: Part of the exercise evidence comes from animal studies and cross-sectional associations; these do not show that supplements improve performance in humans. [8]
- Guideline status: The 2012 AAN/AHS guideline often cited for migraine was retired in 2015; this page clarified that on 19 October 2026. [9]
Are there side effects of magnesium supplements?
In the Cochrane review pooling cramp trials, side effects with oral magnesium were mostly gastrointestinal (for example diarrhea); depending on the trial, these complaints were reported by 11% (10% in the control group) to 37% (14% in the control group) of those taking magnesium. Minor side effects tended to be more frequent with magnesium; serious side effects and withdrawals due to side effects did not differ from placebo. [2]
- Diarrhea and high amounts: The NIH states that high amounts of magnesium from supplements and medicines can cause diarrhea, nausea and abdominal cramps; because the amount used in migraine trials exceeds the supplement upper limit, physician supervision is needed. [1]
- Kidney disease: When kidney function is impaired, excess magnesium may not be excreted; in that case supplements are evaluated under physician supervision. [1]
- Drug interactions: Spacing is needed with bisphosphonates and with tetracycline and quinolone antibiotics; details are on the when to take magnesium page.
- Pregnancy: Evidence for leg cramps in pregnancy is conflicting; in pregnancy the decision on a supplement is made with a physician. [2]
Upper limits, signs of excess and risk groups are covered in the magnesium side effects guide.
Evidence table: claim, population and limits
| Claim | Population studied | Result and limit |
|---|---|---|
| Prevents night leg cramps | 5 RCTs, idiopathic cramps; mostly older adults (Cochrane) | Weekly cramp difference −0.18 (95% CI −0.84 to 0.49); evidence conflicting in pregnancy. [2] |
| Night leg cramps (2017) | 94 older adults, 4 weeks, magnesium oxide | No difference from placebo. [10] |
| Night leg cramps (2021) | 175 participants completed, 60 days | Greater reduction than placebo; company funding, retrospective registration. [11] |
| Night leg cramps (2026) | 121 people, aged 50–85, 4 weeks | No difference from placebo (−0.20 cramps/week). [14] |
| Time to fall asleep | 3 RCTs, 151 older adults | 17.36 min shorter; low to very low certainty. [3] |
| Sleep quality (younger adults) | 1 RCT, 155 people, aged 18–65, 4 weeks | Small additional fall in insomnia score (Cohen d 0.2). [4] |
| Sleep (overall) | 12 RCTs, adults (2026 review) | Inconsistent findings; routine treatment not supported. [15] |
| Migraine prevention | 22 RCTs, several supplements (2025) | Fewer attacks, lower severity and fewer migraine days; number of magnesium trials not in abstract. [16] |
| Migraine prevention | Network meta-analysis: 14 RCTs, 791 adults (2026) | No significant difference in frequency (−0.82 attacks/month); lower severity. [17] |
| Blood pressure (2016) | 34 RCTs, 2,028 people | Systolic −2.00, diastolic −1.78 mmHg. [5] |
| Blood pressure (2025) | 38 RCTs, 2,709 people | Systolic −2.81, diastolic −2.05 mmHg; high heterogeneity. [12] |
| Blood glucose | 18 RCTs, people with or at risk of diabetes | Fasting glucose SMD −0.40 in diabetes (I² 77%); high heterogeneity. [6] |
| Insulin resistance | 15 RCTs, 1,085 people | No significant change in insulin or HOMA-IR. [13] |
| Anxiety | 18 studies (2017); 15 studies (2024) | Partly positive, low-quality and heterogeneous evidence. [7] [18] |
| Exercise and muscle soreness | Narrative review; 4-study systematic review | No pooled effect; very few studies. [8] [19] |
| Digestive side effects | Side-effect data from 11 RCTs | Complaints such as diarrhea in 11%–37% (10%–14% in controls). [2] |
Frequently asked questions
Does magnesium help with sleep?
In three small studies in older adults, time to fall asleep shortened by about 17 minutes; the evidence is of low or very low certainty. A 2026 systematic review of 12 trials found the findings inconsistent and reported that magnesium is not supported as a routine treatment for insomnia.
Does magnesium prevent leg cramps?
The 2020 Cochrane review found a clinically meaningful benefit unlikely in older adults, and a 2026 randomized trial also saw no difference from placebo. A single company-funded trial published in between reported positive results for one formulation.
Does magnesium lower blood pressure?
Two meta-analyses saw systolic and diastolic blood pressure fall by a few mmHg; the fall was larger in people with high blood pressure and low magnesium. The effect is small and does not replace blood pressure medication.
Is magnesium used for migraine?
According to the NIH, a 2012 American guideline found magnesium “probably effective” for migraine prevention; that guideline was retired in 2015. In a 2026 network meta-analysis, attack frequency did not differ significantly from placebo, while severity fell. Because the amount used exceeds the supplement upper limit, physician supervision is needed.
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
- Guideline / review NIH Office of Dietary Supplements — Magnesium: Health Professional Fact Sheet (2022)Back to text ↑
- Magnesium for skeletal muscle cramps. (2020)Back to text ↑
- Mah ve Pitre — Oral magnesium supplementation for insomnia in older adults: a systematic review & meta-analysis (2021)Back to text ↑
- RCT Schuster et al. — Magnesium Bisglycinate Supplementation in Healthy Adults Reporting Poor Sleep: A Randomized, Placebo-Controlled Trial (2025)Back to text ↑
- Zhang et al. — Effects of Magnesium Supplementation on Blood Pressure: a meta-analysis of randomized double-blind placebo-controlled trials (2016)Back to text ↑
- Veronese et al. — Effect of magnesium supplementation on glucose metabolism in people with or at risk of diabetes (2016)Back to text ↑
- Guideline / review Boyle et al. — The Effects of Magnesium Supplementation on Subjective Anxiety and Stress: A Systematic Review (2017)Back to text ↑
- Guideline / review Zhang et al. — Can Magnesium Enhance Exercise Performance? (2017)Back to text ↑
- Guideline / review Holland et al. — AAN/AHS migraine prevention guideline [RETIRED — 2015] (2012)Back to text ↑
- RCT Effect of Magnesium Oxide Supplementation on Nocturnal Leg Cramps: A Randomized Clinical Trial. (2017)
- RCT A randomized, double-blind, placebo-controlled, multicenter study assessing the efficacy of magnesium oxide monohydrate in the treatment of nocturnal leg cramps. (2021)
- Argeros et al. — Magnesium Supplementation and Blood Pressure: A Systematic Review and Meta-Analysis of Randomized Controlled Trials (Hypertension) (2025)Back to text ↑
- Amiri et al. — 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)Back to text ↑
- RCT Kuusipalo et al. — Secondary prevention of leg cramps using compression stockings or magnesium supplements: a three-arm randomized clinical trial (Trials) (2026)Back to text ↑
- Guideline / review Lopresti et al. — Magnesium Supplementation for Sleep in Adults: A Systematic Review of Randomized Controlled Trials (J Diet Suppl) (2026)Back to text ↑
- Talandashti et al. — Effects of selected dietary supplements on migraine prophylaxis: A systematic review and dose-response meta-analysis of randomized controlled trials (Neurol Sci) (2025)Back to text ↑
- Peng et al. — Nutritional supplements for migraine prevention: evaluating evidence sufficiency and effect modifiers through network meta-analysis, trial sequential analysis, and meta-regression (Front Nutr) (2026)Back to text ↑
- Guideline / review Rawji et al. — Examining the Effects of Supplemental Magnesium on Self-Reported Anxiety and Sleep Quality: A Systematic Review (Cureus) (2024)Back to text ↑
- Guideline / review Tarsitano et al. — Effects of magnesium supplementation on muscle soreness in different type of physical activities: a systematic review (J Transl Med) (2024)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.





