“Magnesium is a powerful fix for stress and muscle cramps.”
Magnesium is not a powerful fix for stress or muscle cramps: it barely changed night leg cramps in trials, and stress benefits are small and uncertain.
Magnesium is a nutrient your body needs, not a proven fix for stress or leg cramps. If you take it hoping it will stop night cramps, you are unlikely to notice a difference.
Eat more magnesium-rich foods (greens, nuts, seeds, beans); supplement only to fill a likely gap.
Safety note: Magnesium supplements can cause diarrhea: in cramp trials, minor stomach side effects affected about 11 to 37 percent of people taking magnesium, compared with 10 to 14 percent taking a placebo. People with significant kidney disease can build up too much magnesium.
Talk to a healthcare professional if: you have kidney disease, or you take prescription medicines and plan to take magnesium supplements regularly.
The better cramp trials, mostly in older adults with night leg cramps, found no meaningful benefit, and trials of stress and anxiety are small and of poor quality with only hints of benefit. There are no trials of cramps during exercise, so confidence is limited.
Magnesium is not a powerful fix for stress or muscle cramps: it barely changed night leg cramps in trials, and stress benefits are small and uncertain. In trials of mostly older adults, magnesium changed cramps by about 0.2 a week compared with placebo, which was not a real difference. Correcting a true magnesium shortage is a different question.
A review of trials on magnesium and anxiety found hints of benefit in people prone to anxiety, but the studies were of poor quality. For leg cramps in pregnancy, trial results conflict, and no trials have tested magnesium for cramps during exercise.
- Garrison SR, Korownyk CS, Kolber MR, et al. Magnesium for skeletal muscle cramps. Cochrane Database of Systematic Reviews. 2020;9:CD009402. DOI: 10.1002/14651858.CD009402.pub3
- Boyle NB, Lawton C, Dye L. The Effects of Magnesium Supplementation on Subjective Anxiety and Stress-A Systematic Review. Nutrients. 2017;9:429. DOI: 10.3390/nu9050429
- NIH Office of Dietary Supplements. Magnesium: Health Professional Fact Sheet. Updated 2026