longevitywatch

Why do you still get muscle cramps despite taking magnesium?

No · Strong evidence

Magnesium has no demonstrable effect on the most common nocturnal cramps, and with exercise-related cramps the cause likely lies elsewhere. If the cramps persist, discuss with your doctor whether there is another explanation.

Magnesium simply does not help with nocturnal cramps in older adults, as two independent Cochrane reviews based on multiple randomised trials make clear. The measured difference compared with a placebo was negligible: an average of 0.18 fewer cramps per week, a figure that is statistically indistinguishable from chance. If you take magnesium and still get cramps, that is therefore not surprising.

One important reason why magnesium may fail: the cause of your cramps may have nothing to do with magnesium deficiency. With cramps during or after exercise, a growing body of research points to a disruption in the nerve control of the muscle. The activating signals from the muscle dominate, while the inhibiting signals from the tendon weaken. That is a mechanism in which extra magnesium plays no role.

The popular theory that sweating leads to electrolyte loss and that this causes cramps is also on shaky ground. Four prospective cohort studies do not support this hypothesis. The evidence for it comes largely from anecdotes and small case reports totalling eighteen cases combined.

There is one more practical pitfall: are you also taking a proton pump inhibitor such as omeprazole or pantoprazole? Long-term use of these medications can lead to low magnesium levels in the blood, because absorption deteriorates. People who then take magnesium tablets may not be offsetting part of that problem. This is a known but by no means always recognised complication.

Finally, muscle cramps can also arise from muscular or neurological diseases, hormonal problems, or other metabolic disorders. If you have persistent or severe cramps that do not respond to stopping or adding magnesium, it is worthwhile discussing with your doctor whether there is another explanation.

The evidence
8 studies · 2 meta-analyses

Two Cochrane reviews (PMID 22972143 and 32956536) form the basis for the conclusion on nocturnal cramps. Reviews on exercise-related cramps (PMID 18981039, 29857264, 7830383) and classification of cramp types (PMID 12614310, 2178579) support the remaining points. The claim about proton pump inhibitors is based on one study not further indexed (PMID 21555654).

Last checked: August 2026 · how this was judged
Related answers

How do I know if I am losing too much muscle mass (sarcopenia)?

You can identify sarcopenia through a standardised pathway: first a short questionnaire, then a strength measurement, and if necessary a measurement of your muscle mass. If you have doubts, discuss them with your GP or physiotherapist.

Does paracetamol help with muscle pain?

Paracetamol probably does not relieve exercise-induced muscle pain any better than a placebo, and there are indications that it suppresses recovery substances in your muscles. Do not use it routinely after a workout, and if in doubt consult your doctor or physiotherapist.

No · Moderate evidence

Does walking do enough to maintain your muscles?

Walking alone is not enough to maintain muscle as you age. Add strength training and ensure adequate protein intake for the best results.

No · Moderate evidence

Can you regain lost muscle mass in later life?

Yes, regaining lost muscle mass in later life is possible, but the earlier you start, the better the outcome. Resistance training is the cornerstone; adequate protein intake (approximately 1.2-1.6 g/kg/day) makes the effect somewhat greater.

Yes · Strong evidence

Does magnesium help with poor sleep and muscle cramps, and which form should you take?

Magnesium demonstrably does not work better than a placebo for ordinary muscle cramps, and for sleep problems the evidence is too weak to support a recommendation. If you suspect you have a deficiency, have it checked by your GP before starting supplements.

Preliminary evidence

Can you take too much magnesium?

Yes, too much magnesium can be dangerous, although serious toxicity from ordinary supplements is rare in people with healthy kidneys. With kidney problems or when using intravenous magnesium, medical supervision is genuinely necessary.

Yes · Moderate evidence
All Magnesium answers on “What works” →
Related research
04 Oct
A fat molecule in muscles drives aging
29 Sep
Exercise slows ovarian aging via fat-tissue hormone
26 Sep
Creatine shields muscle mass even without exercise
Don't see your question?
Ask it and we'll look it up for you.
Ask a question →
Newsletter

Stay in the loop

Twice a week, the most important longevity research in your inbox.