Magnesium for Cramps: 0.18 Fewer per Week, and No Trials for Exercise

Quick Answer
Magnesium is sold for muscle cramps more confidently than almost any other supplement claim, and the highest tier of evidence does not support it. The 2020 Cochrane review by Garrison and colleagues pooled 11 randomised trials enrolling 735 people. In older adults with idiopathic night-time leg cramps — the commonest presentation, mean ages 61.6 to 69.3 — magnesium changed the number of cramps per week at four weeks by −0.18 cramps (95% CI −0.84 to 0.49). The proportion of people getting at least a 25% reduction in cramp rate was RR 1.04 (95% CI 0.84 to 1.29), and the review graded that particular comparison high-certainty evidence. Heterogeneity was almost nil (I² = 0% to 12%), meaning the trials agreed with each other about finding nothing. The review’s own summary sentence: “It is unlikely that magnesium supplementation provides clinically meaningful cramp prophylaxis to older adults experiencing skeletal muscle cramps.” Two things it did not find are just as important. For pregnancy-associated cramps the literature is conflicting and all five trials were judged at high risk of bias. And for exercise-associated cramps — the reason a great deal of magnesium is actually bought — the reviewers found no randomised trials at all. The one signal that was not null pointed the wrong way: more minor adverse events on magnesium than placebo, mostly gastrointestinal.
What the review actually pooled
This is an update of a review first published in 2012, with the search run to 9 September 2019. Eleven trials, 735 individuals, of whom 118 in cross-over trials additionally served as their own controls.
The participants split into distinct groups, and the split matters more than the headline:
- Five trials in women with pregnancy-associated leg cramps — 408 participants
- Five trials in people with idiopathic cramps — 271 participants, plus 118 crossed over to control
- One trial in people with liver cirrhosis — 29 people, only some of whom had cramps
All but one trial gave magnesium orally; the exception used slow intravenous infusions. Nine of the eleven compared magnesium against placebo.
The risk-of-bias picture is uneven in a way worth carrying into everything below. The reviewers judged all five pregnancy trials and the cirrhosis trial at high risk of bias. Among the five idiopathic-cramp trials, only one was rated high risk. So the group with the cleanest evidence is the older adults — which is also the group where the answer is clearly negative.
The numbers for night-time leg cramps
This is the presentation most people mean when they search for this, and it is where the evidence is strongest.
The review reports that differences in cramp frequency between magnesium and placebo were small, not statistically significant, and showed minimal heterogeneity. In detail, at four weeks:
| Outcome at four weeks | Result | Certainty |
|---|---|---|
| Percentage change from baseline in cramps per week (primary endpoint) | MD −9.59% (95% CI −23.14% to 3.97%) 3 studies, 177 participants | Moderate |
| Difference in cramps per week | MD −0.18 cramps/week (95% CI −0.84 to 0.49) 5 studies, 307 participants | Moderate |
| Proportion with a 25% or better reduction in cramp rate | RR 1.04 (95% CI 0.84 to 1.29) 3 studies, 177 participants | High |
| Rating cramps as moderate or severe | RR 1.33 (95% CI 0.81 to 2.21) 2 studies, 91 participants | Moderate |
| Majority of cramps lasting one minute or more | RR 1.83 (95% CI 0.74 to 4.53) 1 study, 46 participants | Low |
Read the second row as a person rather than a statistician. 0.18 cramps per week is roughly one fewer cramp every five and a half weeks — and the confidence interval runs from −0.84 to 0.49, meaning the data are equally compatible with magnesium causing slightly more cramps.
The third row is the one that settles it. A responder analysis — how many people improved by at least a quarter — is the outcome closest to what a person cares about, and it came back at 1.04 with high-certainty evidence. Cochrane does not hand out that grade often.
And the near-zero heterogeneity (I² = 0% to 12%) removes the usual escape hatch. The trials were not disagreeing with each other. They were agreeing about a non-effect.
Where the answer is genuinely unknown
A review that only ever said “no” would be easy to write and less useful. This one draws two clear lines around what it cannot tell you.
Pregnancy-associated cramps
Here the reviewers could not perform a meta-analysis, and the trials contradict one another. Of the three that compared magnesium to placebo: one found no benefit on frequency or intensity, another found benefit for both, and a third reported inconsistent results for frequency that could not be reconciled. A separate trial comparing magnesium to no treatment failed to find a statistically significant benefit on a three-point scale of overall efficacy.
All five of these trials were judged at high risk of bias. The review’s verdict is that the literature is conflicting and further research in this population is needed — which is a real finding, not a shrug, and it is a different answer from the one for older adults.
Exercise-associated cramps
This is the striking one. A large share of magnesium sold for cramps is bought by people who cramp during or after sport.
The reviewers state plainly that they found no randomised controlled trials evaluating magnesium for exercise-associated muscle cramps, nor for disease-state-associated cramps such as motor neuron disease, other than the single small and inconclusive study in people with liver cirrhosis.
Not weak evidence. Not conflicting evidence. No trials. Anyone telling you magnesium prevents cramps at the gym is not describing a body of research that was searched for and found wanting — they are describing one that was searched for and not found.
The side effects were the clearest signal
Pooling all studies regardless of setting, major adverse events occurred in 2 of 72 magnesium recipients and 3 of 68 placebo recipients — no meaningful difference, and withdrawals due to adverse events were not significantly different either.
Minor adverse events went the other way. More participants had them on magnesium: RR 1.51 (95% CI 0.98 to 2.33) across 4 studies and 254 participants, graded low-certainty. The events were mostly gastrointestinal, diarrhoea prominent among them, and across studies they were experienced by between 11% and 37% of magnesium takers against 10% and 14% in the corresponding control groups.
So the honest summary of the trade is this: the benefit in older adults is indistinguishable from zero on high-certainty evidence, and the most likely thing you will notice is loose stools.
Why the claim persists anyway
Three reasons, none of them evidence.
Cramps resolve on their own. A cramp lasts seconds to minutes and then stops. Anything taken during or shortly before that window collects the credit, which is exactly what placebo controls exist to strip out.
Magnesium genuinely matters in muscle physiology. That is true and it is not the question. A nutrient being involved in a process does not mean supplementing it in people who are not deficient changes the outcome — the same gap sits underneath a great many supplement claims.
Frequency is noisy. Night cramps come in clusters. Start a supplement during a bad patch and regression to the mean does the rest. Over five studies and 307 participants that noise averages out to 0.18 cramps a week.
What this does not say
It does not say magnesium is useless generally — that is a different question for each use, and we have looked separately at magnesium for sleep, magnesium for eye twitching, and whether to take calcium and magnesium together.
It does not say your cramps have no cause worth finding. Cramps that are new, frequent, severe, one-sided, or accompanied by weakness, swelling or colour change in the leg are a reason to see a doctor rather than to buy anything. The review deals with idiopathic cramps — the ones with no identified underlying pathology — and the first job is establishing that yours are.
And it does not settle pregnancy. If you are pregnant and cramping, the review’s own answer is that the evidence conflicts, which makes it a conversation with your midwife or doctor rather than a purchase decision.
Frequently Asked Questions
Does magnesium help leg cramps at night?
Not to a degree anyone would notice, on the best available evidence. The 2020 Cochrane review found that in older adults with idiopathic cramps the difference at four weeks was 0.18 fewer cramps per week (95% CI −0.84 to 0.49), and that the proportion of people achieving at least a 25% reduction in cramp rate was RR 1.04 (95% CI 0.84 to 1.29), graded high-certainty evidence. The reviewers concluded it is unlikely that magnesium supplementation provides clinically meaningful cramp prophylaxis to older adults experiencing skeletal muscle cramps.
What about cramps during exercise?
There is no trial evidence either way. The Cochrane reviewers searched for and found no randomised controlled trials evaluating magnesium for exercise-associated muscle cramps. That is a different and more honest statement than saying it does not work: nobody has run the study. Anyone who tells you confidently that it does work for sport cramps is not citing research, because on this question there is none to cite.
Does it help cramps in pregnancy?
The evidence conflicts and the trials are weak. Five trials enrolled 408 pregnant women and the reviewers judged all five at high risk of bias, which is why no meta-analysis was possible. Among the three placebo-controlled ones, one found no benefit, one found benefit on both frequency and intensity, and one produced inconsistent frequency results that could not be reconciled. Cochrane’s position is that the literature is conflicting and further research in this population is needed.
How much magnesium would I need to take?
The review’s finding is about the intervention, not the dose, and it does not identify a dose that worked in older adults with idiopathic cramps because it did not find an effect to attribute to one. Chasing a higher dose in search of a benefit the trials did not detect also runs into the adverse-event side of the same review, where minor events — mostly gastrointestinal — were more common on magnesium at RR 1.51 (95% CI 0.98 to 2.33), affecting between 11% and 37% of participants across studies.
Are there side effects?
Mostly digestive, and they were the clearest signal in the review. Major adverse events were comparable between groups, 2 of 72 on magnesium against 3 of 68 on placebo, and withdrawals due to adverse events did not differ significantly. Minor adverse events were more frequent on magnesium, RR 1.51 (95% CI 0.98 to 2.33) across 4 studies and 254 participants, low-certainty evidence, and the review describes them as mostly gastrointestinal with diarrhoea prominent.
If not magnesium, what does help?
This review does not answer that, and we are not going to fill the gap with a substitute product. What it establishes is narrower and still useful: one widely sold answer does not hold up for older adults, and has never been tested for exercise cramps. Cramps that are new, frequent, severe, one-sided, or come with weakness, swelling or a change in the colour of the leg belong in front of a doctor, because the review deals only with idiopathic cramps and the first question is whether yours are.
Why is there no product recommendation on this page?
Because the conclusion does not support one. A page that puts a buy button under a negative finding has told you the button means nothing. The high-certainty comparison in this review came back at RR 1.04, the most likely noticeable effect is loose stools, and for the use most people have in mind there are no trials at all. There is nothing here we could point you at honestly.
Sources
- Garrison SR, Korownyk CS, Kolber MR, Allan GM, Musini VM, Sekhon RK, Dugré N. Magnesium for skeletal muscle cramps. Cochrane Database of Systematic Reviews 2020, Issue 9. Art. No.: CD009402. DOI 10.1002/14651858.CD009402.pub3. PMID 32956536. PMCID PMC8094171. Eleven randomised trials, 735 individuals, search run to 9 September 2019. For idiopathic cramps in older adults (mean age 61.6 to 69.3): percentage change from baseline in cramps per week at four weeks MD −9.59% (95% CI −23.14% to 3.97%), 3 studies, 177 participants, moderate certainty; cramps per week at four weeks MD −0.18 (95% CI −0.84 to 0.49), 5 studies, 307 participants, moderate certainty; proportion with a 25% or better reduction RR 1.04 (95% CI 0.84 to 1.29), 3 studies, 177 participants, high certainty; I² = 0% to 12%. Adverse events: major 2/72 magnesium vs 3/68 placebo; minor RR 1.51 (95% CI 0.98 to 2.33), 4 studies, 254 participants, low certainty, mostly gastrointestinal, 11% (10% control) to 37% (14% control). Authors’ conclusions, verbatim: “It is unlikely that magnesium supplementation provides clinically meaningful cramp prophylaxis to older adults experiencing skeletal muscle cramps. In contrast, for those experiencing pregnancy-associated rest cramps the literature is conflicting and further research in this population is needed. We found no RCTs evaluating magnesium for exercise-associated muscle cramps or disease-state-associated muscle cramps.” Declared conflict of interest recorded in the same entry: the first author is an author of one included study. Checked 16 August 2026. PubMed record
- Risk-of-bias assessments within the same review. All five trials in participants with pregnancy-associated leg cramps and the single trial in people with liver cirrhosis were judged at high risk of bias; among the five trials in participants with idiopathic rest cramps, only one was rated high risk. Cited separately because the strength of the negative finding rests on it: the group with the cleanest trials is the group where the result is clearest. Checked 16 August 2026. PubMed record
- Garrison SR, et al. Magnesium for skeletal muscle cramps. Cochrane Database of Systematic Reviews 2012, Issue 9. Art. No.: CD009402.pub2. DOI 10.1002/14651858.CD009402.pub2. Cited as the earlier version that the 2020 review updates, which is how the reviewers describe it: the update was performed to identify and incorporate more recent studies. Checked 16 August 2026.


