What causes muscle cramps at night?

Last updated September 3, 2026.

Night cramps usually come from muscle fatigue, long sitting or standing, dehydration, or age - plus pregnancy and some medications (diuretics, statins). Mid-cramp: stretch and massage - straighten the leg, pull toes toward your shin, or stand on it. Painkillers work too slowly to stop a cramp but ease the soreness after. The best-evidenced prevention is calf stretches before bed - lean into a wall, leg straight, hold, repeat for a few minutes. See a doctor for frequent severe cramps, or cramps with swelling, redness, warmth, weakness, or numbness, or ones starting with a new medication. Pymander is a free AI doctor, 24/7 by text, and can help you work out your pattern.

Cramps waking you up? Text a free AI doctor

Start a free AI doctor consult →

What to do

Related questions

Sources

Pymander is not a replacement for a physician and does not provide medical advice, diagnosis, or treatment.

Free AI doctor, 24/7 by textStart a free AI doctor consult