Magnesium for muscle cramps: clear evidence in some groups, mixed in others

Magnesium for muscle cramps: a useful tool for specific populations, not a universal fix

Magnesium supplementation reliably reduces muscle cramps specifically in pregnancy and in people with documented magnesium deficiency, while evidence in otherwise healthy non-deficient people is weaker.

Magnesium supplementation reliably reduces muscle cramps specifically in pregnancy and in people with documented magnesium deficiency, while evidence in otherwise healthy non-deficient people is weaker.

Time to effect

4-6 weeks

4-6 weeks

Dose

200-400mg elemental magnesium daily (glycinate, citrate, or malate, not oxide) at bedtime for nocturnal cramps

200-400mg elemental magnesium daily (glycinate, citrate, or malate, not oxide) at bedtime for nocturnal cramps

Active compound

Glycinate, citrate, or malate (not oxide)

Glycinate, citrate, or malate (not oxide)

▪ The challenge at hand

Muscle cramps, whether in the calves at night, in the feet, or during exercise, are a common, disruptive experience, and magnesium is reflexively recommended for them. The evidence is more specific than that recommendation usually acknowledges: magnesium has the clearest support for cramps in pregnancy, where demand is elevated and deficiency is common, and in people who are genuinely low in magnesium, such as those taking diuretics or proton pump inhibitors.

For otherwise healthy, non-deficient people with idiopathic muscle cramps, the evidence is more mixed and less convincing. Knowing which of these two groups you're in determines whether this experiment is worth running. The same considerations about form apply as for other magnesium uses: the glycinate or malate forms absorb better and cause fewer GI side effects than the oxide form that's cheapest and most common.

▪ What it is

Magnesium (in a well-absorbed form: glycinate, malate, or citrate), taken daily for muscle cramp prevention, most evidence-supported in pregnant women and people with conditions that deplete magnesium (diuretics, proton pump inhibitors).

Why this is surprising

Magnesium is reflexively recommended for muscle cramps, but the evidence splits sharply by population: reliable evidence supports it for cramps in pregnancy and in people with genuine magnesium deficiency (those on diuretics, PPIs, or with conditions causing magnesium loss). For otherwise healthy, non-deficient people with idiopathic cramps, the evidence is more mixed. Knowing which group you're in makes this a targeted test rather than hopeful guessing, and the same form caveat applies: oxide is poorly absorbed and the wrong form.

▪ How it works

Calming overexcitable muscle cells.

Magnesium plays a key role in regulating muscle cell excitability and the calcium-driven muscle contraction-relaxation cycle. Low magnesium in the muscle environment can increase the spontaneous firing of motor neurons and impair the relaxation phase of muscle contraction, contributing to cramping. Replenishing magnesium normalizes this excitability and supports normal contraction and relaxation cycling.

▪ The research

What the evidence says

A systematic review of magnesium for leg cramps found clear benefit in pregnancy specifically, where magnesium supplementation significantly reduced cramp frequency and intensity compared with placebo across multiple trials. Evidence for cramps in other populations, including the common 'nocturnal leg cramps' in otherwise healthy non-pregnant adults, is more heterogeneous, with some positive trials but also several null results, making the case strongest where deficiency or elevated demand is present.

Nygaard IH et al. Acta Obstet Gynecol Scand. 2008;87(8):835-40. PMID: 18607740. (Pregnancy leg cramps.) Also: Garrison SR et al., Cochrane review of magnesium for nocturnal leg cramps, 2020.

WE'VE COACHED THOUSANDS OF USERS WITH THEIR PAIN

WE'VE COACHED THOUSANDS OF USERS WITH THEIR PAIN

Magnesium for muscle cramps, in practice

Magnesium for muscle cramps, in practice

Magnesium for muscle cramps, in practice

Pain interventions often take several weeks before patterns emerge clearly. Here's how it played out for people actually tracking it.

Pain interventions often take several weeks before patterns emerge clearly. Here's how it played out for people actually tracking it.

Pain interventions often take several weeks before patterns emerge clearly. Here's how it played out for people actually tracking it.

420

420

started

67%

67%

completed

56%

56%

noticed a change

19%

19%

made it routine

Self-reported by Coco users. Not a clinical outcome.

Self-reported by Coco users. Not a clinical outcome.

Data across the Coco Health user base, not a clinical outcome.

▪ What to look for

A practical buying guide

Magnesium oxide, the cheapest and most common form in grocery stores, is poorly absorbed and also the most likely to cause GI upset. Glycinate, malate, or citrate forms are meaningfully better-absorbed options. If you're pregnant or take diuretics, this is a more evidence-supported experiment; if you're otherwise healthy with no documented deficiency, set expectations accordingly.

Coco is the AI health coach that runs experiments like this one with you

Know exactly what to do: Coco sets the protocol and checks in by call or message

See what's actually changing: Coco tracks your symptoms and synthesizes the trend

Get a real answer: Coco tells you whether the data supports continuing or stopping

▪ What to expect over time

If it's going to help for cramps, most people notice a reduction within 4-6 weeks of consistent nightly use at a full absorbed dose.

Side effects

Loose stools at higher doses, least common with glycinate form.

Who should be cautious

Avoid with significant kidney impairment. Separate from certain antibiotics by about 2 hours. If you're already taking magnesium for sleep, migraine, or another purpose, count your total daily intake rather than adding a second full dose. Always consult a care provider when adding or removing a supplement from your routine.

FAQ

I don't have any deficiency. Will this still help my leg cramps?

Does the form of magnesium really matter for this?

Is Coco a replacement for my doctor?

Coco helps you turn health ideas like this into small, trackable experiments you can actually stick with.

The hard part isn't starting — it's knowing if it's working

Stay consistent: Coco checks in so you don't have to rely on motivation

See clearly: Coco reads your symptom data so you can trust what you're seeing

Get a real answer: Coco tells you whether it's working, even if it isn't

Educational only. This is not medical advice. Always talk with a qualified clinician before changing medications, supplements, or care plans.