28 September 2026 · NutriZen · Last reviewed: 28 September 2026
Magnesium for Night Leg Cramps: Does It Help?
In short
Night-time leg cramps are common and usually harmless, often linked to dehydration, prolonged sitting or standing, and low magnesium. Magnesium contributes to normal muscle function, which is why it's commonly used for cramps alongside stretching and hydration. Frequent, severe or unusual cramps should be checked by a doctor.
Why cramps happen at night
Night-time leg cramps — usually a sudden, painful tightening in the calf, though they can also affect the foot or thigh — are common and, for most people, not a sign of anything serious. They tend to happen at night because the leg muscles are shortened while you're lying still, and blood flow patterns shift slightly compared to when you're upright and moving during the day. Older adults, pregnant women and people who are very physically active all report them more often.
Magnesium and muscle function
Magnesium contributes to normal muscle function, including the relaxation phase after a muscle contracts — think of it as the mineral that helps a muscle "let go" after it tightens. Low magnesium is one of several factors linked to cramping, alongside dehydration, prolonged sitting or standing, intense or unaccustomed exercise, pregnancy, and some medications (see our guide on medications that can lower magnesium). It's rarely the only cause, but it's one of the more straightforward ones to address through diet or a daily supplement.
Other common causes to rule out
Before assuming magnesium is the answer, it's worth considering the other usual suspects: not drinking enough water during the day, standing or sitting in one position for long stretches, unusually intense exercise the same day, and certain medications including statins and some diuretics. Addressing these alongside a magnesium supplement, rather than instead of it, tends to give the best results.
Which form to choose
Magnesium Oxide provides a high amount of magnesium per capsule and is a straightforward option for cramps and general replenishment. Magnesium Complex combines oxide with citrate, bisglycinate and malate, which adds gentler evening-friendly forms if sleep quality is also a concern alongside the cramping — a common combination, since poor sleep and cramps often show up together.
Stretching and hydration
A gentle calf stretch before bed, staying hydrated through the day, and avoiding long periods of sitting or standing without moving all help independently of any supplement. If cramps follow a hard workout, replacing fluids and electrolytes afterwards matters as much as anything else. If a cramp does strike, straightening the leg and gently pulling the toes back toward the shin usually releases it faster than waiting it out.
When to see a doctor
Occasional night cramps are common and usually harmless. See a doctor if cramps are frequent, severe, affect other muscles besides the calves, or come with swelling, redness or muscle weakness, since these can point to a circulation or medication-related cause that needs proper assessment rather than a supplement alone.
Browse the full Bone, Muscle & Recovery range.
