Short answer: For most adults, probably not. A 2020 Cochrane review pooled the trials and found that magnesium is unlikely to prevent the common night-time leg cramps that many older adults get: differences from placebo were small and not statistically significant. Magnesium matters for muscle and nerve function, and if you're truly low, correcting it makes sense. But it isn't the cramp solution it's often marketed as. Gentle stretching, staying active and checking your medicines with your doctor are better first steps.
What the research shows
The Cochrane review (Garrison and colleagues, 2020) looked at 11 randomized trials of magnesium for muscle cramps:
- Idiopathic cramps (no obvious cause), mostly night-time leg cramps in adults with an average age of about 62–69: magnesium made little difference to how often cramps happened compared with placebo. The authors rated this moderate-certainty evidence.
- Pregnancy-related cramps: results were mixed, and the trials were at high risk of bias.
- Side effects: some people had mild digestive upset, such as diarrhea.
The review didn't find trials of magnesium for exercise-related cramps.
Why magnesium gets the credit
Magnesium is involved in muscle contraction and nerve signals, and severe magnesium deficiency can cause muscle cramps and spasms. That's where the idea comes from. But most people with everyday cramps aren't deficient, and the trials don't show a benefit for them.
What can cause muscle cramps
- Night-time leg cramps that come with age, often with no clear cause
- Hard exercise or muscle fatigue
- Sitting or standing in one position for a long time
- Some medicines, such as diuretics
- Pregnancy
- Medical conditions, including nerve, kidney and thyroid problems
What may help instead
- Stretch the muscle gently during a cramp, for example by pulling your toes towards you for a calf cramp.
- Stretch before bed, especially your calves and hamstrings.
- Stay active during the day, and build strength gradually.
- Check your medicines with your doctor or pharmacist.
- Get your magnesium from food (pumpkin seeds, almonds, spinach, beans, whole grains), and take a supplement only if you fall short or your doctor finds you're low.
When to see a doctor
- Cramps are frequent, severe or disturb your sleep regularly.
- You also have muscle weakness, swelling, numbness or skin changes.
- Cramps started after a new medicine.
Where ByEla fits
ByEla has 167.5 mg of magnesium per scoop (magnesium malate and Aquamin™), about half the daily target for women, as part of a daily formula for muscle, bone and energy.* I don't claim it prevents cramps, because the research doesn't support that.
→ See every ingredient and dose: ByEla Vitality Blend
Questions women ask
Does magnesium stop leg cramps at night?
For most adults, probably not. A Cochrane review found it unlikely to prevent common night-time leg cramps.
What is the best magnesium for cramps?
No form has been shown to prevent everyday cramps. If you supplement for other reasons, well-absorbed forms like citrate are a reasonable choice.
What deficiency causes muscle cramps?
Severe magnesium, potassium or calcium deficiency can cause cramps, but these are uncommon. Your doctor can check with a blood test.
How much magnesium should I take for cramps?
There's no proven dose for cramps. The daily target for women is 320 mg from food and supplements, with no more than 350 mg from supplements.
Why do I get more cramps after 40?
Night-time leg cramps become more common with age, often with no clear cause. Medicines and some health conditions can contribute too.
Related reading
- Does magnesium help with perimenopause?
- What type of magnesium is best for menopause?
- Can you take magnesium with calcium, zinc and vitamin D?
Sources
- Garrison SR et al. (2020). Magnesium for skeletal muscle cramps. Cochrane Database Syst Rev: https://pmc.ncbi.nlm.nih.gov/articles/PMC8094171/
- NIH Office of Dietary Supplements, Magnesium fact sheet for health professionals: https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/
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.