Evidence explainerMagnesiumMagnesium oxideMagnesium citrate
Magnesium for Leg Cramps: What Cochrane Found in Older Adults and in Pregnancy
It is the most common reason people reach for magnesium at night. The best trials in older adults found it works about as well as a placebo; in pregnancy the evidence is mixed.
Key takeaways
- For night-time leg cramps in older adults, a 2020 Cochrane review of 5 trials found magnesium cut cramps by only 0.18 per week versus placebo, a difference that was not statistically significant (moderate-certainty evidence) [1].
- The largest single trial, 94 adults given magnesium oxide at bedtime for 4 weeks, saw cramps fall in both groups; the gap versus placebo was 0.38 cramps per week and not significant [2].
- In pregnancy the picture is mixed: some single trials found fewer cramps, others found no difference, and a 2021 meta-analysis of 4 trials (332 women) found no drop in cramp frequency [3][4].
- Side effects were mostly digestive: diarrhea affected 11% to 37% of magnesium takers across trials, versus 10% to 14% on control [1].
- Cramps are also a symptom of true magnesium deficiency, which is uncommon in healthy people but more likely with long-term diuretics, PPIs, diabetes or heavy drinking; that is a reason to test, not to guess [5].
The evidence, graded
Pulled from our monograph evidence tables. Grades follow our evidence-grading policy.
- No effectNo effectMuscle cramps (older adults)For idiopathic cramps, cramps per week barely moved versus placebo (−0.18; moderate certainty). Pregnancy-cramp results conflicted.
Night cramps after 50: the trials say placebo-level
Most magnesium-for-cramps research was done in people with ordinary night-time calf cramps, the kind with no obvious cause that become more common with age. Cochrane pooled 5 trials of these idiopathic cramps (mean age about 62 to 69) and found no meaningful effect. Its primary measure, the percentage change in weekly cramps at 4 weeks (3 trials, 177 people), differed from placebo by 9.59% with a confidence interval that crossed zero [1].
The share of people whose cramps fell by at least a quarter was the same with magnesium and placebo (risk ratio 1.04, high-certainty evidence), and cramp intensity and duration did not differ either [1]. The review authors concluded it is unlikely magnesium gives clinically meaningful cramp prophylaxis to older adults [1].
The 2017 JAMA Internal Medicine trial shows why so many people feel it works anyway. Weekly cramps dropped from about 7.8 to 4.4 on magnesium oxide, but also from 8.5 to 5.5 on placebo [2]. The authors called the shared improvement probably a placebo effect [2].
Leg cramps in pregnancy: mixed, low-certainty evidence
Pregnancy cramps are where magnesium has its best case, and it is still weak. The 2020 Cochrane pregnancy review found single trials pointing both ways: in one, women were more likely to report no cramps at all after magnesium (risk ratio 5.66, 69 women), while other comparisons showed little or no difference; all of it was low or very low certainty [3].
A 2021 meta-analysis that pooled 4 randomized trials in 332 pregnant women found no reduction in cramp frequency and no better recovery than control [4]. Anyone pregnant should clear any supplement with their prenatal care team; the supplemental upper limit in pregnancy is the same 350 mg a day as for other adults [5].
Cramps during exercise: no trials at all
Cochrane found no randomized trials of magnesium for exercise-associated cramps, or for cramps tied to conditions such as motor neuron disease beyond one small inconclusive study in liver cirrhosis [1]. Claims that magnesium stops cramps mid-run rest on mechanism, not trials. For hydration and salt during long efforts, see salt tablets for endurance and electrolyte drinks vs water.
When low magnesium really is the cause
Muscle cramps are a recognised symptom of magnesium deficiency, alongside numbness, tingling and, in severe cases, abnormal heart rhythms [5]. Deficiency from diet alone is uncommon in healthy people because the kidneys hold magnesium back, but it is more likely with Crohn's or celiac disease, type 2 diabetes, alcohol dependence, older age, long-term loop or thiazide diuretics, and proton pump inhibitors taken for more than a year [5].
If any of those apply, a blood test and a conversation with your clinician are more useful than a bedtime capsule; you can order your own blood work if you want a baseline first. Serum magnesium is an imperfect marker, because less than 1% of body magnesium sits in the blood [5].
If you try it anyway: dose and form
The cramp trials mostly used magnesium oxide or citrate at bedtime for about 4 weeks [1][2]. Supplemental magnesium has an adult upper limit of 350 mg a day, and the oxide, carbonate, chloride and gluconate forms are the ones most often linked to diarrhea [5]. A 4-week trial on yourself, with a cramp diary, is the honest test; if nothing changes, the trials suggest it will not. Check the label maths in how much magnesium is too much and the form comparison in magnesium glycinate vs citrate.
Quick answers
Does magnesium help leg cramps at night?
Not much, on the best evidence. In older adults with ordinary night cramps, pooled trials found magnesium reduced cramps by just 0.18 a week versus placebo, which was not significant [1]. People often improve on placebo too [2].
Is magnesium good for leg cramps in pregnancy?
The evidence is mixed and low-certainty: some single trials found fewer cramps, but a meta-analysis of 4 trials found no drop in frequency [3][4]. Ask your prenatal care team before taking any supplement.
What is the best magnesium for leg cramps?
No form has been shown to beat placebo for ordinary cramps [1]. The trials used oxide and citrate; glycinate is often chosen because it is gentler on the gut, but it has no cramp trial of its own [1][5].
How much magnesium is safe to take?
For adults, the upper limit for magnesium from supplements and medicines is 350 mg a day; magnesium from food does not count toward it [5]. People with kidney disease should not take magnesium without their clinician, because poor kidney function raises the risk of toxicity [5].
Keep reading
Full monographs
Related articles
- Best Magnesium Supplement 2026: Ranked by Form, Label Dose vs Studied Dose, Testing and Cost per 100 mg
- How Much Magnesium Is Too Much? The 350 mg Rule, the Label Trap and Who Should Be Careful
- Magnesium for Constipation: Oxide Matched Senna in a Placebo Trial, With One Kidney Warning
- Magnesium for Migraines: The 600 mg Dose, the Guideline Rating and the Diarrhea Trade-Off
Browse the full Supplement & Nutrient Encyclopedia or all supplement articles.
Where to buy Magnesium
Products from brands we partner with that contain Magnesium. Listing a product is not a claim that it works; check the amount per serving against the doses studied above, and the label for other ingredients.
- SupersmartPaid linkMagnesium Bisglycinate (Albion TRAACS)4 capsules: 3,000 mg magnesium bisglycinate chelate providing 300 mg elemental magnesium; 30 servingsShop at Supersmart (opens in new tab)Price and label checked 2026-10-11 on the brand’s site.
Partner links may earn us a commission. Learn more
Get 15% off with SMART026 (opens in new tab)15% off with code SMART026
Partner links may earn us a commission. Learn more
- Supersmart’s own terms and exclusions apply at checkout.
- 20% applies when 3 or more products ship on auto-delivery to the same address.
- The code discount and Subscribe & Save are separate offers; we don’t claim they combine.
- Offer terms from Supersmart’s site and its affiliate program, checked Oct 8, 2026. Offers can change; the brand's checkout is final.
- SupersmartPaid linkMagnesium Threonate (Magtein)3 capsules: 2,000 mg Magtein magnesium L-threonate providing 144 mg elemental magnesium; 30 servingsShop at Supersmart (opens in new tab)Price and label checked 2026-10-11 on the brand’s site.
Partner links may earn us a commission. Learn more
Get 15% off with SMART026 (opens in new tab)15% off with code SMART026
Partner links may earn us a commission. Learn more
- Supersmart’s own terms and exclusions apply at checkout.
- 20% applies when 3 or more products ship on auto-delivery to the same address.
- The code discount and Subscribe & Save are separate offers; we don’t claim they combine.
- Offer terms from Supersmart’s site and its affiliate program, checked Oct 8, 2026. Offers can change; the brand's checkout is final.
- SupersmartPaid linkMagnesium Malate2 tablets: 1,600 mg dimagnesium malate providing 320 mg elemental magnesium; 60 servingsShop at Supersmart (opens in new tab)Price and label checked 2026-10-11 on the brand’s site.
Partner links may earn us a commission. Learn more
Get 15% off with SMART026 (opens in new tab)15% off with code SMART026
Partner links may earn us a commission. Learn more
- Supersmart’s own terms and exclusions apply at checkout.
- 20% applies when 3 or more products ship on auto-delivery to the same address.
- The code discount and Subscribe & Save are separate offers; we don’t claim they combine.
- Offer terms from Supersmart’s site and its affiliate program, checked Oct 8, 2026. Offers can change; the brand's checkout is final.
References
- [1]Magnesium for skeletal muscle cramps (Cochrane review). Cochrane Database of Systematic Reviews, 2020.
- [2]Effect of Magnesium Oxide Supplementation on Nocturnal Leg Cramps: A Randomized Clinical Trial. JAMA Internal Medicine, 2017.
- [3]Interventions for leg cramps in pregnancy (Cochrane review). Cochrane Database of Systematic Reviews, 2020.
- [4]Effect of oral magnesium supplementation for relieving leg cramps during pregnancy: A meta-analysis of randomized controlled trials. Taiwanese Journal of Obstetrics and Gynecology, 2021.
- [5]Magnesium: Fact Sheet for Health Professionals (updated January 6, 2026; accessed October 11, 2026). NIH Office of Dietary Supplements, 2026.
