You are deep asleep when it hits โ a sudden, searing knot in your calf that feels like the muscle is being wrung out like a wet towel. You sit bolt upright, grab your leg, and limp around the bedroom until it lets go. By the time you fall back asleep, your calf aches as if you ran a 5K.
That is a nocturnal leg cramp, and if you have had one, you are far from alone. Research estimates that up to 60 percent of adults experience nighttime leg cramps at some point, and the odds climb with age: roughly one in three adults over 60 gets them at least weekly. Most are harmless. But understanding why they strike โ and what actually stops them โ can turn a recurring midnight ambush into an occasional nuisance.
A nocturnal leg cramp is an involuntary, sustained contraction of one or more leg muscles, usually the gastrocnemius (calf), but sometimes the foot or thigh. The muscle fires hard and stays fired โ typically for a few seconds to a few minutes โ and then leaves behind a soreness that can linger into the next day.
Scientists still debate the exact trigger, but the leading explanation is a glitch in how your nervous system keeps muscles from over-contracting. Muscles have built-in sensors called muscle spindles and Golgi tendon organs that tell your brain when to contract and when to back off. At night, after a day of use, that feedback loop can misfire โ especially if the muscle is shortened (think: sleeping with your toes pointed) or fatigued. The result is a runaway contraction your brain did not order.
Nighttime is the perfect setup for a cramp for several reasons:
Age matters too: tendons naturally shorten and muscle bulk declines over the decades, so the calf's margin for error shrinks with every decade after 50.
When you are mid-cramp, you want the fastest off-switch, not a lecture. Try these in order:
What does not help much: pounding water during the cramp, or hopping on one foot while shouting โ hydration prevents future cramps but does little for the one already firing.
Cramps are rarely random โ they respond to a few boring, consistent habits:
A note on magnesium supplements: they are the internet's favorite cramp cure, but large trials show only modest benefit, mostly in pregnant women. Food sources โ leafy greens, nuts, beans, whole grains โ are the safer bet unless your doctor finds an actual deficiency.
Occasional nighttime cramps are a normal, if annoying, part of life. But talk to your doctor if you notice any of these:
These patterns can signal conditions such as peripheral artery disease, lumbar spinal stenosis, or certain neurological disorders โ all treatable, but only if they are identified.
Nighttime leg cramps are your muscles misfiring after a long day โ usually triggered by a shortened calf position, fatigue, dehydration, or medications. Stretch the calf before bed, hydrate steadily, and keep moving during the day, and most people see the frequency drop within a few weeks.
And the next time one strikes at 2 AM, skip the panic: toes toward your shin, heel down, hold โ and your midnight charley horse will surrender faster than you expect.

Throbbing pain, light sensitivity, nausea โ or just a tight band around your skull? Here is how neurologists tell migraines apart from ordinary headaches, and what actually helps.

Up to 1 in 3 Americans grind their teeth at night โ often without knowing it. Here is how to spot the damage, what causes bruxism, and the fixes that actually work.

Up to 40% of American adults get sciatica at some point. Here is what is actually pinching your nerve, which fixes work, and the red flags you should never ignore.