Night leg cramps are usually sudden, involuntary muscle spasms, most often in the calf, and they’re commonly linked to muscle fatigue, sitting or standing too long, sleeping with the feet pointed, dehydration, or sometimes medicines and medical conditions like nerve or blood-flow problems.

Why it happens

  • Your calf can shorten while you sleep if your toes point downward, which can trigger a cramp.
  • Overuse during the day, long periods of sitting, or standing on hard surfaces can make the muscles more prone to cramping at night.
  • Dehydration and low minerals such as magnesium, potassium, or calcium may contribute in some people.
  • Less commonly, cramps can be related to nerve issues, poor circulation, kidney disease, diabetes, or certain medicines like diuretics or statins.

What may help

  • Stretch the leg and gently flex your foot upward when a cramp starts.
  • Massage the tight muscle and walk a few steps if you can.
  • Stay hydrated and consider gentle calf stretching before bed.
  • If you suspect a medicine is contributing, ask a clinician before changing it.

When to get checked

If cramps are frequent, severe, happen with swelling or weakness, or are paired with numbness, color changes, or trouble walking, it’s worth seeing a clinician to look for an underlying cause.

If you want, I can also give you a quick “what to do tonight” checklist for stopping a cramp fast.