Research summary
Magnesium and Muscle Cramps
Magnesium supplements are widely marketed for muscle and leg cramps, but the highest-quality pooled evidence does not support this use. A 2020 Cochrane meta-analysis of 11 randomized trials found that magnesium produced only small, statistically non-significant differences from placebo in cramp frequency, intensity, and duration among older adults with idiopathic nocturnal leg cramps, and an earlier meta-analysis reached a similar conclusion. Evidence in pregnancy is conflicting and limited, and magnesium was linked to more minor gastrointestinal side effects than placebo.[1], [2]
What the pooled evidence shows
Skeletal muscle cramps, including nocturnal leg cramps, are common in older adults and during pregnancy, and magnesium supplements are frequently promoted to prevent them. The most rigorous synthesis to date is a 2020 Cochrane meta-analysis of 11 randomized controlled trials enrolling 735 participants. For idiopathic cramps, largely in older adults presumed to have nocturnal leg cramps, the differences between magnesium and placebo in cramp frequency, intensity, and duration at four weeks were small and not statistically significant, with the review authors concluding it is unlikely that magnesium provides clinically meaningful cramp prophylaxis in this group.[1], [2]
An earlier systematic review and meta-analysis of seven randomized trials in adults with nocturnal leg cramps reached a consistent conclusion, finding that magnesium therapy did not appear effective in the general population and reporting only a small possible effect in pregnant women. The authors rated the overall strength of this evidence as weak, mainly because of small study sizes and short follow-up.[1], [2]
Pregnancy and tolerability
For pregnancy-associated leg cramps, the evidence is conflicting and limited. The 2020 Cochrane review judged all five pregnancy trials to be at high risk of bias and could not combine them in a meta-analysis, while a separate review found only a small, weak signal in pregnant women. Taken together, the current body of evidence does not establish a clear benefit, and the authors of both reviews called for better-designed trials.[1], [2]
On tolerability, pooled trial data showed that major adverse events with magnesium did not differ from placebo, but minor, mostly gastrointestinal effects such as diarrhoea were reported more often in the magnesium groups. This means that for many people with cramps the supplement carries a modest chance of digestive side effects without convincing evidence of cramp relief.[1], [2]
Evidence limitations
The trials underlying these conclusions were generally small, used varied magnesium forms and outcome measures, and followed participants for only about four weeks, which limits certainty for longer-term use. The pregnancy-cramp studies in particular were at high risk of bias and could not be pooled, so conclusions there are weaker than for older adults.[1], [2]
No randomized trials were available evaluating magnesium for exercise-associated or disease-state-associated muscle cramps other than a single small, inconclusive study, so the evidence-limitation findings here apply mainly to idiopathic and pregnancy-related cramps rather than all cramp types. This is general information, not medical advice.[1], [2]
References
- Magnesium for skeletal muscle cramps.. The Cochrane database of systematic reviews. 2020. Systematic review and meta-analysis View source →
- Effect of magnesium therapy on nocturnal leg cramps: a systematic review of randomized controlled trials with meta-analysis using simulations.. Family practice. 2014. Systematic review and meta-analysis View source →