Magnesium and muscle cramps: what the trials show for night-time leg cramps, pregnancy and exercise
Bottom line: Magnesium has Grade D evidence for muscle cramps: in older adults with night-time leg cramps, pooled trials found no meaningful difference from placebo, pregnancy trials conflict, and no trial has tested cramps during exercise.
For the most common kind, night-time leg cramps with no clear cause in older adults, there is a fair amount of evidence and it points against a meaningful effect. A 2020 Cochrane review pooled 5 randomized trials (307 people) and found 0.18 fewer cramps a week with magnesium than with placebo, with a confidence interval running from 0.84 fewer to 0.49 more (moderate-certainty evidence) (Garrison 2020). The largest single trial, in 94 adults given magnesium oxide for 4 weeks, also found no difference from placebo (Roguin Maor 2017). In pregnancy the trials conflict and the certainty is low or very low (Luo 2020), and a 2021 meta-analysis of 4 trials found no drop in cramp frequency (Liu 2021). No randomized trial has tested magnesium for cramps during exercise. Grade D here does not mean untested: the trials that exist do not support magnesium for cramps.
Reviewed . We sell some of what we grade.
Editorial section. Research summaries are not product claims and contain no product links or offers. A summary is never proof that any product works.
- The question
- Does taking magnesium reduce muscle cramps, including night-time leg cramps in older adults, leg cramps in pregnancy and cramps during exercise, and what side effects did the trials report?
- Study design
- Garrison 2020: Cochrane systematic review of 11 randomized trials (735 people): 5 in pregnancy-associated leg cramps (408 participants), 5 in idiopathic cramps, mostly older adults with presumed night-time leg cramps (271 participants, plus 118 who also served as their own controls in crossover trials), and 1 in 29 people with liver cirrhosis. All but one trial gave magnesium by mouth; one used slow intravenous infusions. Nine trials compared magnesium with placebo. Roguin Maor 2017: randomized, double-blind, placebo-controlled trial in northern Israel in 94 community-dwelling adults (mean age 64.9) who had at least 4 night-time leg cramps during a 2-week screening period, given magnesium oxide or placebo once daily at bedtime for 4 weeks. Luo 2020: Cochrane review of 8 small randomized trials (576 women) testing any treatment for leg cramps in pregnancy, including magnesium, calcium, vitamin B and vitamin D. Liu 2021: meta-analysis of 4 randomized trials of oral magnesium in 332 pregnant women. Araújo 2020: 132 women in the first trimester of pregnancy with leg cramps, randomized to 300 mg a day of magnesium citrate or placebo for 4 weeks; the authors title it an observational controlled trial although allocation was randomized. The NIH Office of Dietary Supplements magnesium fact sheet (upper limit, side effects, interactions). [1][2][3][4][5][6]
- What they found
- Night-time and other idiopathic cramps, mostly in adults with a mean age of 61.6 to 69.3: after 4 weeks, the change in cramps per week did not differ from placebo (mean difference -9.59%, 95% CI -23.14% to 3.97%; 3 trials, 177 people), nor did the number of cramps per week (-0.18, 95% CI -0.84 to 0.49; 5 trials, 307 people). The share of people whose cramps fell by at least 25% was the same in both groups (risk ratio 1.04, 95% CI 0.84 to 1.29; high-certainty evidence), and cramp intensity and duration did not differ either (Garrison 2020). In Roguin Maor 2017, cramps fell from 7.84 to 4.44 a week on magnesium oxide and from 8.51 to 5.48 a week on placebo, a difference of 0.38 a week (P = 0.67), with no difference in severity, duration, quality of life or sleep quality; the authors judged the drop in both groups to be probably a placebo effect, which they said may explain why magnesium is so widely used for cramps. Pregnancy: Garrison 2020 could not pool these trials; of the three placebo-controlled ones, one found no benefit, one found benefit and one gave results that could not be reconciled. In Luo 2020, single trials suggested more women reported no cramps after magnesium (risk ratio 5.66, 95% CI 1.35 to 23.68; 69 women) or a 50% drop in cramps (risk ratio 1.42, 95% CI 1.09 to 1.86; 86 women), while other results showed little or no difference, all at low or very low certainty. Liu 2021 pooled 4 trials and found cramp frequency did not fall (weighted mean difference -0.47, 95% CI -1.14 to 0.20). In Araújo 2020, cramps resolved in 27.2% of women on 300 mg of magnesium citrate and 32.8% on placebo, with no difference between groups. Exercise: Garrison 2020 found no randomized trial of magnesium for exercise-associated cramps. Side effects: serious adverse events were similar (2 of 72 on magnesium, 3 of 68 on placebo), but minor ones, mostly digestive such as diarrhea, tended to be more common on magnesium (risk ratio 1.51, 95% CI 0.98 to 2.33; low certainty), reported by 11% to 37% of people on magnesium versus 10% to 14% on placebo (Garrison 2020). [1][2][3][4][5][6]
- Limitations
- Most trials lasted about 4 weeks, were small, and counted cramps from self-reported diaries, and cramps fell by roughly 40% on placebo alone in Roguin Maor 2017, so a small true effect would be hard to see. Garrison 2020 rated all five pregnancy trials at high risk of bias, and the pregnancy trials reported outcomes in ways that could not be combined (Luo 2020). The abstracts we read do not say whether participants were low in magnesium to begin with, so these results do not show what happens in people with a diagnosed shortfall. Forms varied: Roguin Maor 2017 used oxide and Araújo 2020 used citrate; we did not find a cramp trial of magnesium glycinate, and the Cochrane abstract does not list forms. Conflicts and funding: the lead author of Garrison 2020 wrote one of the included trials, which the review declares; Roguin Maor 2017, Liu 2021 and Araújo 2020 reported no conflicts; funding was not stated in the abstracts we read.
- What this does not mean
- None of this means magnesium treats or prevents cramps or any condition, and we do not make a cramp claim for our magnesium. Our claim is structure/function only: supports the nervous system in the wind-down period before sleep. Practical points from the sources: the better trials found that magnesium did no better than placebo for night-time leg cramps in older adults, so frequent, severe or new cramps are a reason to see a clinician rather than to raise the dose. Cramps that come with leg swelling, weakness, numbness or a new medicine also warrant a clinician visit. Count every magnesium supplement, antacid and laxative toward the adult upper limit of 350 mg a day from supplements and medicines; food does not count (NIH ODS). Diarrhea was the most common side effect in the cramp trials. Pregnant or breastfeeding people, people with kidney disease, and anyone taking bisphosphonates, tetracycline or quinolone antibiotics, diuretics or long-term proton pump inhibitors should ask a clinician before taking magnesium (NIH ODS). For forms, dose and the upper limit, see magnesium-forms-dose-upper-limit.
- Sources
- Garrison SR et al. Cochrane Database Syst Rev. 2020;9(9):CD009402. Magnesium for skeletal muscle cramps, 11 trials, 735 people. doi.org/10.1002/14651858.CD009402.pub3
- Roguin Maor N et al. JAMA Intern Med. 2017;177(5):617-623. Magnesium oxide vs placebo for night-time leg cramps, 94 adults, 4 weeks. doi.org/10.1001/jamainternmed.2016.9261
- Luo L et al. Cochrane Database Syst Rev. 2020;12(12):CD010655. Interventions for leg cramps in pregnancy, 8 trials, 576 women. doi.org/10.1002/14651858.CD010655.pub3
- Liu J et al. Taiwan J Obstet Gynecol. 2021;60(4):609-614. Meta-analysis, oral magnesium for leg cramps in pregnancy, 4 trials, 332 women. doi.org/10.1016/j.tjog.2021.05.006
- Araújo CAL et al. PLoS One. 2020;15(1):e0227497. 300 mg magnesium citrate vs placebo in pregnancy, 132 women. doi.org/10.1371/journal.pone.0227497
- NIH Office of Dietary Supplements: Magnesium fact sheet for health professionals (350 mg upper limit, side effects, interactions). ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/
Spot an error? Email hello@everstackhealth.com and we will correct it within 48 hours.