Why do I get leg cramps in perimenopause?
No trial has isolated a hormonal cause, and the biggest review of the evidence calls ordinary nocturnal leg cramps "idiopathic," meaning no underlying pathology has been identified. A 2020 Cochrane review pooled 11 randomized trials and found that cramps linked to a known condition were mostly studied in pregnancy or liver cirrhosis, not perimenopause (Cochrane Database of Systematic Reviews, 2020). The five idiopathic-cramp trials in that review enrolled mostly older adults, mean age 61.6 to 69.3, not women tracked by menopause stage. That gap matters because it is exactly the claim repeated on wellness sites without a trial behind it. The hormonal link some blogs present as settled has not actually been tested as its own question. What has been tested, in detail, is whether the standard remedies work, and that evidence is below.
Does magnesium actually stop nocturnal leg cramps?
Not by much, according to the best evidence available. The 2020 Cochrane review combined five placebo-controlled trials of magnesium for idiopathic nocturnal leg cramps, 307 participants, mostly older adults. The change in weekly cramp frequency after four weeks was nearly identical between magnesium and placebo groups: a mean difference of -0.18 cramps per week (95% CI -0.84 to 0.49), and a percentage-change analysis in three of those trials found a mean difference of -9.59% that was not statistically significant (95% CI -23.14% to 3.97%) (Cochrane Database of Systematic Reviews, 2020). The reviewers' conclusion is direct: it is unlikely magnesium gives older adults clinically meaningful cramp relief. It also was not free of downsides. Oral magnesium caused diarrhea and other minor gastrointestinal effects in 11% to 37% of users, against 10% to 14% on placebo, depending on the dose and formulation tested.
What actually worked in the newest trial on leg cramps?
Something unglamorous: compression. A 2026 Finnish trial, registered as ClinicalTrials.gov NCT04694417, randomized 121 adults aged 50 to 85 (72% women) with at least two weekly leg cramps to knee-high compression stockings, magnesium, or placebo pills for four weeks. By week eight, median weekly cramps dropped from four to two in the compression group, a baseline-adjusted difference of -1.43 cramps per week versus placebo (95% CI -2.36 to -0.50, p = .001) (Trials, 2026). Magnesium hydrochloride, tested in the same trial against the same placebo, showed no significant effect: an adjusted difference of -0.20 cramps per week (95% CI -1.49 to 1.09, p = .929). The stockings group also reported fewer cramp-related nighttime wakings and lower pain intensity. Four people stopped wearing the stockings due to skin irritation; nobody had a serious adverse event in either active arm.
Is this the same as restless legs syndrome?
No, and the distinction changes what you try first. A leg cramp is a sudden, painful, involuntary muscle contraction, usually in the calf, that resolves within minutes once the muscle is stretched. Restless legs syndrome is a different condition: an uncomfortable crawling or pulling sensation, mostly in the evening or at rest, that comes with an urge to move the legs and improves with movement rather than stretching. Magnesium is marketed for both, and the evidence for restless legs is just as uncertain as it is for cramps. A 2019 systematic review found only one placebo-controlled trial of magnesium for restless legs syndrome or periodic limb movement disorder, and that single trial found no significant benefit, though it may have been too small to detect one (Sleep Medicine Reviews, 2019). If stretching the calf stops the episode in a minute or two, that points toward a cramp. If movement itself is what relieves the discomfort, restless legs is the more likely fit, and it is worth naming correctly before trying a fix built for the wrong problem.
What else causes leg cramps in perimenopause besides hormones?
The Cochrane review's own list of who gets studied for cramps is a useful map of what to rule out first: pregnancy, advanced age, exercise, and in rarer cases liver disease or motor neuron disorders. None of the trials in that review enrolled women specifically for a perimenopause diagnosis, which means a clinician has to work through the ordinary causes before hormones get blamed by default. That list, worth raising with a doctor by name rather than describing in general terms, includes dehydration, a new or changed medication (diuretics and statins are common culprits in general practice), and thyroid function, since both an underactive and overactive thyroid can disturb muscle and nerve signaling. Asking specifically which of these have already been checked, and which have not, tends to get a more useful answer than asking generally why the cramps are happening.
Could muscle loss or balance changes make perimenopause leg cramps worse?
Possibly, though no trial connects the two directly. Midlife muscle loss and the balance and grip changes covered in the perimenopause clumsiness piece are both measured, real changes across this transition, and a calf muscle doing more relative work to stabilize an unsteady step is a plausible extra strain, even without a trial measuring cramps as the outcome. This is exactly the kind of connection that is reasonable to suspect and unfair to state as proven, which is why it stays a question rather than a claim here. What is proven, from the Cochrane review, is that cramp risk already rises with age alone, independent of any menopause-specific mechanism, so some of what shows up in the perimenopause years would likely have shown up a decade later anyway, hormones or not.
What helps perimenopause leg cramps if magnesium does not?
The only intervention with a significant result against placebo, in the largest recent trial, was daily compression stockings, which took eight weeks to show their effect and roughly halved the weekly cramp count (Trials, 2026). Beyond that trial, the ordinary advice, stretching the calf at the first twinge, staying hydrated, and checking in with a doctor about any new medication or thyroid symptoms, is not disproven by the evidence above, it is simply untested at this scale by a controlled trial. Staying ahead of overall dehydration is worth ruling out on its own, since fluid shifts are common in this transition and are easier to fix than a mineral deficiency that the trial evidence above does not support treating with a supplement.
When are perimenopause leg cramps not just leg cramps?
Most nighttime calf cramps are the ordinary kind covered above and ease with stretching within a minute or two. But a cramp in one leg only, paired with swelling, redness or warmth in that leg, needs same-day medical care, since those are signs of a possible blood clot rather than a muscle spasm, and a clot in a calf vein can be dangerous if it moves. The same is true for cramping that comes with new muscle weakness or dark urine, which can point to a more serious muscle breakdown or kidney problem rather than an ordinary cramp. None of those patterns match the idiopathic cramps described in the trials above, where the signature is two-sided, brief and resolves with a stretch. A pattern that is one-sided, persistent, or accompanied by swelling or weakness should not wait for a routine appointment.
My Perspective
What struck me researching this one is how confidently magnesium gets sold as the answer to a problem the best trial evidence says it barely touches. I am not against magnesium, I take it myself for other reasons, but I would rather tell you plainly that the Cochrane reviewers call it unlikely to help with this specific symptom than let an ad do the explaining.
The part I did not expect is that the fix with actual trial evidence behind it is something as unglamorous as compression stockings. That is not a satisfying answer if you wanted a supplement to solve it. It is, as far as the current research goes, the honest one.
A note from Marilyn: This is education, not a diagnosis or medical advice. I am a nutrition specialist and health coach, not a physician. A cramp in one leg with swelling or redness needs same-day care, not a stretch and a wait-and-see.
If you want the fuller picture of what else shifts in the body across this transition, that is what Estrogen Left the Chat: Biohacking Menopause is for. If you are tracking more than one odd symptom at once, the free symptom tracker will plot the pattern, and the 60-second quiz points you toward the guide that matches what is loudest for you right now.
Frequently asked questions
Is it normal to get leg cramps in perimenopause?
Cramps are common at this age, but no trial has tested perimenopause specifically as a cause. The largest review of nocturnal leg cramp trials studied mostly older adults in general, not women tracked by menopause stage, and classifies most cases as idiopathic, meaning no single cause was identified.
Does magnesium help with perimenopause leg cramps?
Not meaningfully, according to the best available trials. A 2020 Cochrane review of five placebo-controlled trials (307 participants) found magnesium made no statistically significant difference in weekly cramp frequency, and a 2026 trial of 121 adults found the same result against placebo, while also finding magnesium caused more minor gastrointestinal side effects than placebo.
What actually works for nighttime leg cramps?
The only treatment with a statistically significant result in a recent trial was daily compression stockings. In a 2026 Finnish trial of 121 adults, stockings cut median weekly cramps from four to two over eight weeks, a significantly larger drop than placebo, while magnesium in the same trial did not beat placebo.
When are leg cramps in perimenopause a sign of something more serious?
Same-day medical care is needed for a cramp in one leg only with swelling, redness or warmth in that leg, which can signal a blood clot, and for cramping with new muscle weakness or dark urine, which can point to a muscle or kidney problem. Ordinary two-sided nighttime calf cramps that ease with stretching do not fit that pattern.
