Hormones & Menopause

Leg Cramps at Night After 40: Why They Happen

Quick answer

Sudden, intense calf cramps that wake you up at night are common and usually harmless, and they become more frequent after 40. The exact cause isn't always clear, but inactivity during the day, dehydration, certain medications, and low magnesium or potassium are the usual suspects. In the moment, stretching the calf by pulling your toes toward your shin is the fastest relief. Staying active, hydrated, and mindful of a few habits can reduce how often they happen.

There is a specific kind of awful that comes with waking up to a calf muscle seizing into a knot. It passes in a minute or two, but it can leave you rattled, and sleepless, long after.

Nocturnal leg cramps are their own thing, separate from the daytime swelling covered in our swollen legs guide, though the two can certainly show up in the same person.

Why do leg cramps become more common after 40?

Nocturnal leg cramps are a sudden, involuntary contraction of a muscle, most often the calf, that can last anywhere from a few seconds to several minutes. They become noticeably more common with age, and some research suggests more than half of adults over 50 experience them at some point.

Muscles and tendons naturally shorten a bit over the years, and reduced activity during the day (sitting more, standing less) seems to make nighttime cramping more likely. Hormonal shifts around perimenopause and menopause are also thought to play a role, though the exact mechanism isn't fully settled.

What else contributes to leg cramps?

Dehydration: not drinking enough during the day, especially if you're active, is a commonly cited contributor.

Low magnesium or potassium: these minerals are involved in normal muscle contraction and relaxation, tying into the broader picture in our magnesium guide — though it's worth knowing that clinical trial evidence for magnesium supplements actually preventing cramps is mixed, not settled.

Medications: some blood pressure medications (particularly diuretics), statins, and asthma medications have been associated with a higher likelihood of cramps.

Sitting or standing for long periods: the same daytime habits that contribute to leg swelling also show up on lists of cramp triggers.

📊 Worth knowing: nocturnal leg cramps are considered one of the most common sleep-disrupting conditions in adults over 50, and studies estimate a large share of that age group experiences them at least occasionally — this is a widely shared, ordinary experience, not a rare or alarming one on its own.
Hands holding fresh eggs over a kitchen table with fruits, vegetables and whole-grain bread
Getting enough magnesium and potassium through food is a reasonable, low-risk habit, even though it isn't a guaranteed fix.

What helps stop a cramp in the moment?

The cramp itself usually eases within a minute or two, though the muscle can stay tender for a day afterward, similar to how it feels after an unfamiliar workout.

What helps prevent cramps from happening?

Gentle calf stretches before bed, staying reasonably hydrated during the day, and regular movement (our walking guide has a realistic plan) are the most commonly recommended, low-risk habits. There isn't a guaranteed fix, but these are worth trying consistently for a few weeks before concluding they don't help.

When should you talk to a doctor about leg cramps?

Worth a conversation if cramps are frequent, severe, regularly disrupt your sleep, or come with muscle weakness, numbness, or swelling that doesn't go away. It's also worth mentioning if cramps started around the same time as a new medication, since a doctor can tell you whether that's a likely connection.

A note from The Well Chapter: we're writers and researchers, not medical professionals. This article is general education, not personalized medical advice. Talk to your doctor about leg cramps that are frequent, severe, or come with other symptoms like weakness or numbness.

Frequently asked questions

Why do I get calf cramps at night after 40?

Nocturnal leg cramps are common and usually harmless, and they become more frequent with age. Inactivity, dehydration, medications, and low magnesium can all contribute.

What is the fastest way to stop a leg cramp?

Straighten your leg and pull your toes up toward your shin to stretch the calf, or stand and put weight on it. It usually eases within a minute or two.

Can dehydration or low magnesium cause leg cramps?

Both are commonly discussed contributors, though evidence for magnesium supplements preventing cramps is mixed. Staying hydrated and getting enough minerals through food is still a reasonable, low-risk step.

When should I see a doctor about leg cramps?

If they're frequent, severe, disrupt sleep regularly, or come with weakness, numbness, or unresolved swelling.

Sources

  1. MedlinePlus (U.S. National Library of Medicine) — leg cramps at night. medlineplus.gov
  2. Mayo Clinic — muscle cramps: symptoms and causes. mayoclinic.org
Chris S. monogram avatar

Chris S. — Founder & Writer

Chris is 46 and living the same chapter she writes about. She started The Well Chapter to turn solid sources into calm, practical guidance for women navigating the changes that come after 40 — without hype, fear, or miracle promises.