Skip to content
Guide

Does magnesium help with muscle cramps?

This is the most widespread belief about magnesium, and the one the evidence most clearly contradicts. It deserves an honest answer.

Short answer: No — not unless you have a documented deficiency. A Cochrane review of randomised trials found that in idiopathic cramps, particularly night leg cramps in older adults, magnesium did not reduce the frequency, intensity or duration of cramps compared with placebo. There is also no evidence that it prevents exercise-associated cramps.

What the Cochrane review found

The reference source is a Cochrane systematic review updated in 2020. It searched randomised trials of magnesium — oral or intravenous — in skeletal muscle cramps, comparing it with placebo, no treatment and other treatments. Eleven trials were included.

  • Five trials were in older adults, five in pregnant women, and one in people with liver cirrhosis.
  • No trial was found in people who cramp during exercise. So the claim about athletes is not supported or refuted by randomised evidence — the field is empty.
  • In idiopathic cramps — cramps with no identified cause, mostly night leg cramps in older adults — magnesium did not significantly reduce cramp frequency, intensity or duration compared with placebo.
  • In pregnancy the results conflict and the certainty of the evidence is low: some trials reported benefit, others none.

The American Academy of Neurology guideline points the same way: oral magnesium is probably ineffective for idiopathic muscle cramps in adults and is not recommended for routine use. The same source adds that correcting a documented low magnesium level is a separate matter and is appropriate.

So why is the belief so widespread?

Two things get conflated. Genuine magnesium deficiency does cause muscle twitching and cramps; that picture is well described. From there people jump to “if I cramp, I must be deficient.” In most cramps magnesium levels are normal, and adding more of something that is not lacking changes nothing.

With athletes the usual rationale is sweat loss. Sports nutrition reviews correct the scale of this: magnesium concentration in sweat is very low, and even in heavy sweaters the loss is small. For roughly eight hours of cycling in the heat the reported total loss is around 15–20 mg — an amount a balanced sports diet covers comfortably.

The authorised claim on muscle function

The conclusion of this page is not that magnesium has nothing to do with muscle. That magnesium contributes to normal muscle function is an EFSA authorised claim. The distinction is this: contributing to normal function is not the same as resolving a complaint. The first is authorised; the second has not been demonstrated.

What does help

For night leg cramps, the usual evidence-based first steps are stretching, adequate fluid intake and a review of daytime triggers. In exercise cramps the mechanism is thought to relate more to neuromuscular fatigue than to electrolytes — meaning the answer lies in managing load and conditioning.

When to see a doctor

One-sided, persistent calf pain with swelling or redness needs urgent assessment. Cramps that become more frequent can also relate to thyroid problems, kidney disease, diuretics and nerve compression. Whether your magnesium level is genuinely low is determined by a blood test, not by guesswork.

Frequently asked

The questions most often searched on this topic, answered as they are.

Will magnesium help my night leg cramps?
A review of randomised trials found that in night leg cramps in older adults magnesium did not outperform placebo on frequency, intensity or duration, and the American Academy of Neurology does not recommend routine use. Correcting a documented low magnesium level is a separate matter and is appropriate.
My eyelid is twitching. Is that magnesium deficiency?
Twitching can occur in magnesium deficiency, but on its own it is not proof of it. Stress, caffeine and poor sleep are among the most common causes. Widespread, persistent twitching is usually benign and stress-related. If it continues, see a doctor.
My blood test was normal. Could I still be deficient?
It is possible. Serum magnesium can look normal while tissue stores are low. That is why symptoms and medication history are also taken into account, and why red blood cell or urinary magnesium may be requested. That is a clinical decision.
Should athletes take magnesium for cramps?
There is no randomised evidence here: the Cochrane review found no trials in people who cramp during exercise. The mechanism of exercise-associated cramps is considered different from cramps in clinical deficiency. See Sport and magnesium.
If not magnesium, what helps with cramps?
For night cramps, stretching, adequate fluid intake and reviewing daytime triggers are usually recommended. More frequent cramps can also relate to thyroid problems, kidney disease, diuretics and nerve compression.

Related reading

This content is for information only and is not medical advice. Food supplements should not be used as a substitute for a varied and balanced diet and are not intended to prevent or treat any disease. If you are pregnant or breastfeeding, have a long-term health condition or take regular medication, talk to your doctor before taking a supplement. Do not exceed the recommended daily dose.