Ask around about leg cramps and someone will tell you to take magnesium. It makes sense on paper, since magnesium is involved in muscle contraction. But when researchers actually tested it, the results were underwhelming. Here's what we know.
Written by Vita Globe Editorial Team | Reviewed against a Cochrane systematic review, randomized trials and NIH guidance
Does magnesium help muscle cramps?
Probably not for most people. A Cochrane systematic review concluded it is unlikely that magnesium provides clinically meaningful cramp prevention for older adults with typical (idiopathic) muscle cramps[1]. A randomized trial of 94 adults with night leg cramps found magnesium oxide was no better than placebo[2]. Evidence in pregnancy is conflicting, and there were no randomized trials for exercise-associated cramps[1].
Caveat: Cramps can be a sign of real magnesium deficiency[3], and these studies weren't designed to test people who were actually deficient.
Sources: Cochrane 2020 · Roguin Maor 2017 · NIH ODS · Verified 2026-09-27
In this article
Why do people link magnesium to muscle cramps?
The idea isn't random. Magnesium helps move calcium and potassium across cell membranes, a process that matters for nerve signals and muscle contraction[3]. It's also a cofactor in more than 300 enzymatic reactions, including energy (ATP) metabolism[4].
And muscle contractions and cramps are listed among the signs of more advanced magnesium deficiency[3]. So it's reasonable to wonder whether extra magnesium would help. The question is whether it works for people with ordinary cramps, not just people who are deficient.
What does the best evidence say?
The strongest summary comes from a 2020 Cochrane review, which pooled randomized trials of magnesium for skeletal muscle cramps[1]. Its conclusions by group:
| Who | What the review found |
|---|---|
| Older adults with idiopathic (typical, unexplained) cramps | Magnesium is unlikely to provide clinically meaningful cramp prevention |
| Pregnancy-associated cramps | Conflicting results; studies had important limitations and more research is needed |
| Exercise-associated cramps | No randomized trials found |
The review also noted that minor side effects, mostly gastrointestinal upset, were common, affecting 11% to 37% of people on magnesium compared with 10% to 14% on placebo[1].
What did a recent randomized trial find?
A randomized, double-blind trial published in JAMA Internal Medicine enrolled 94 adults (average age about 65) who had frequent night leg cramps. They took magnesium oxide or a placebo nightly for four weeks[2].
Both groups improved, and by a similar amount. Cramps dropped by about 3.4 episodes a week with magnesium and about 3.0 with placebo, a difference that wasn't statistically significant. The researchers concluded oral magnesium was not superior to placebo for these cramps[2].
That placebo improvement is a useful reminder: when cramps ease, it's easy to credit whatever you tried last.
Are there situations where magnesium might matter?
Yes, a few. If someone has true magnesium deficiency, which is more likely with gastrointestinal disease, type 2 diabetes, alcohol dependence, older age or certain medications, correcting it is important, and cramps may be part of that picture[3]. That's a job for a clinician, not a supplement guess.
Pregnancy is another open question. The evidence is conflicting[1], so pregnant people should talk to their prenatal care provider before adding magnesium.
The honest summary
- For typical night leg cramps in older adults, magnesium probably won't help much.
- Pregnancy cramps: evidence is mixed. Ask your provider.
- Exercise cramps: essentially untested in randomized trials.
- Magnesium still matters for overall health; it just isn't a proven cramp fix.
What should you do about frequent cramps?
If cramps are frequent, severe, or come with muscle weakness, swelling, numbness or skin changes, see a healthcare provider. Cramps can have many causes, including some medications and medical conditions, and it's worth finding out which applies to you.
If you want to learn whether you're at risk of low magnesium, see our guide to signs of magnesium deficiency.
Our option
Vita Globe Magnesium Citrate Gummies
We'd rather be straight with you: we don't sell our magnesium gummy as a cramp remedy. The product is labeled 70 mg and comes 60 gummies to a bottle; the suggested use is 2 gummies once daily. The gummies are raspberry-flavored, vegan, gluten-free and non-GMO, made without artificial colors or flavors, and tested by an independent third-party lab. It's a simple way to help meet daily magnesium needs as part of a balanced diet.
Frequently asked questions
Does magnesium stop leg cramps at night?
For most older adults with typical night cramps, research says probably not. Both a Cochrane review and a randomized trial found little to no benefit over placebo[1][2].
Is magnesium good for cramps during pregnancy?
The evidence is conflicting[1]. Talk to your prenatal care provider before taking any supplement.
Does magnesium help cramps after exercise?
It hasn't been tested well. The Cochrane review found no randomized trials on exercise-associated cramps[1].
Can low magnesium cause cramps?
Yes, cramps and muscle contractions can be a sign of more advanced deficiency[3], but cramps have many possible causes.
What form of magnesium is best for cramps?
No form has been shown to reliably prevent typical cramps[1]. If you take magnesium for general health, citrate is a well-absorbed option.
Sources
- Garrison SR, Korownyk CS, Kolber MR, et al. Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev. 2020;(9):CD009402. doi:10.1002/14651858.CD009402.pub3
- Roguin Maor N, Alperin M, Shturman E, et al. Effect of Magnesium Oxide Supplementation on Nocturnal Leg Cramps: A Randomized Clinical Trial. JAMA Intern Med. 2017;177(5):617. doi:10.1001/jamainternmed.2016.9261
- Office of Dietary Supplements, National Institutes of Health. Magnesium: Fact Sheet for Health Professionals. Updated January 6, 2026. ods.od.nih.gov
- Gröber U, Schmidt J, Kisters K. Magnesium in Prevention and Therapy. Nutrients. 2015;7(9):8199-8226. doi:10.3390/nu7095388
About the Vita Globe Editorial Team
The Vita Globe Editorial Team researches and writes our wellness content, working from peer-reviewed research, systematic reviews and guidance from bodies such as the NIH and the FDA. We cite our sources inline and update articles when the evidence changes.
These statements have not been evaluated by the Food and Drug Administration. This product is not intended to diagnose, treat, cure, or prevent any disease. This article is for informational purposes only and is not a substitute for medical advice. Talk to your healthcare provider before starting any new supplement, particularly if you are pregnant, nursing, taking medication, or caring for a child.