Home › Guides › Healthy Aging
Healthy Aging

Leg Cramps at Night: Why They Happen After 45 and How to Stop Them (Fast Fixes + Magnesium)

It always strikes at the worst moment: deep asleep, and suddenly your calf locks into a rock-hard knot. Nighttime leg cramps become much more common after 45. Here's why they happen, how to stop one in seconds, and how to keep them from coming back.

Audrey Larson
By Audrey LarsonUpdated 8 min read
Woman holding a magnesium spray
Quick answer: night leg cramps are sudden, painful tightening of the calf or foot muscles, very common after 45. The usual causes are tired or tight muscles, sitting or standing for long periods, dehydration, low minerals like magnesium, and some medications. To stop one, flex your foot toward you and stretch the calf. To prevent them: stretch before bed, drink enough water and keep your magnesium up. Many people now spray magnesium oil on their calves and feet at bedtime; our pick is WellaNaturals Magnesium Oil Spray.

Why do leg cramps happen at night?

How to stop a leg cramp right now

  1. Flex your foot: pull your toes toward your knee.
  2. Stand up and put your weight on the cramping leg.
  3. Massage the knot firmly.
  4. Apply warmth: a warm towel or shower relaxes the muscle.

How to prevent night leg cramps

  1. Stretch your calves for a minute before bed.
  2. Drink water through the day.
  3. Loosen the blankets at the foot of the bed.
  4. Move during the day: short walks beat long sitting.
  5. Keep your magnesium up with food (nuts, seeds, leafy greens, beans) and, if you need more, a supplement or a magnesium spray.

Magnesium for leg cramps and restless legs

Magnesium helps muscles relax after they contract and supports normal nerve signals, which is why it's the mineral most people reach for when cramps and restless legs keep them up. Pills work for many, but some people get stomach upset. That's why magnesium oil spray has become so popular: you spray it directly on your calves and feet before bed, massage it in, and make it part of a calming nightly ritual.

WellaNaturals Magnesium Oil Spray
What we'd choose instead

WellaNaturals Magnesium Oil Spray

Spray it on your calves and feet at bedtime: pure Zechstein magnesium at 0.6 g/ml, zero sting, no pills.

  • Targets cramps where they happen
  • Zero-sting Zechstein magnesium
  • No stomach upset
  • 30-day money-back guarantee

When to see a doctor

See a doctor if cramps are frequent and severe, come with swelling, redness or weakness, happen after starting a new medication, or don't improve with stretching and hydration.

Want to know more about magnesium sprays? Read our guide to magnesium oil.

Audrey Larson

Audrey Larson

Health & Wellness Evaluation Specialist at Olivewell Report

Audrey Larson is a health journalist and wellness investigator with more than 10 years of experience covering supplements, nutrition, and consumer health. With a background in Biomedical Science and Clinical Research, she specializes in analyzing scientific evidence behind health products and debunking misleading claims, misinformation, and fake health trends. As a Health & Wellness Evaluation Specialist for Olivewell Report, Audrey reviews peer-reviewed research, ingredient transparency, and manufacturing standards to separate fact from fiction. Her work emphasizes scientific integrity and practical guidance, helping readers make informed decisions about their health and well-being.

Keep reading