Many people have experienced it: In the middle of the night, when sleep is at its deepest, a sudden tight squeeze in the calf brings on sharp pain that jolts you awake. These “night leg cramps,” medically known as nocturnal leg cramps (NLCs), usually strike the muscles at the back of the calf.
The spasm may last only seconds or a few minutes, but the pain is intense, often leaving lingering soreness and even cold sweats. While most people dismiss them as an annoyance or blame them on sleeping posture, doctors warn that frequent nighttime cramps could be a signal of more serious health problems — including declining kidney function.
Hidden risks behind cramps
A study in the Journal of Clinical Sleep Medicine found that about one-third of adults experience night leg cramps within a year, with the likelihood rising as people age. These cramps don’t just ruin a good night’s sleep — they can increase the risk of falls, fractures, and may even serve as an early sign of chronic illness.
Nephrologist Dr. Hong Yongxiang cautions that in severe cases, untreated conditions linked to cramps could lead to dialysis.
Why cramps should not be ignored
Occasional cramps may seem harmless, but recurring ones can cause real harm. Repeated nighttime awakenings from cramps not only drain energy the next day, but also weaken the immune system, slow down metabolism, and reduce neuromuscular responsiveness.
For older adults, being startled awake by pain and getting out of bed too quickly can lead to dangerous falls. Strong spasms themselves may strain or damage muscle fibers, cut off oxygen supply, or, in rare cases, even rupture the Achilles tendon. Over time, fear of cramps can discourage physical activity, reducing quality of life.
Dr. Hong stresses that if someone who rarely experiences cramps suddenly begins having them frequently, it’s important to consider possible links to diabetes, heart disease, hypothyroidism, peripheral nerve problems, or chronic kidney disease.

He recalls a case of a 55-year-old man who showed up exhausted, with dark circles under his eyes. He had skipped regular checkups, but lately suffered from both frequent nighttime urination and nightly cramps. Tests revealed he had entered the uremia stage of kidney failure and needed immediate dialysis. Remarkably, within two weeks of treatment, his cramps disappeared completely.
Common causes of night leg cramps
Dr. Hong points out that cramps rarely come from a single cause. Ten common factors include:
- Electrolyte imbalance — low levels of potassium, magnesium, or calcium overstimulate nerves and muscles.
- Dehydration — from exercise, sweating, or fever.
- Prolonged sitting or standing — reduces circulation and causes waste buildup.
- Overexertion or lack of stretching — leads to lactic acid buildup and fatigue.
- Poor sleeping posture — such as toes pointing downward for long periods.
- Nerve or vascular conditions — like diabetic neuropathy or varicose veins.
- Medication side effects — from diuretics, cholesterol-lowering drugs, or steroids.
- Late pregnancy — pressure from the uterus on veins and nerves.
- Aging and muscle loss — weaker muscles and nerve control.
- Chronic kidney or liver disease — disrupts electrolyte balance.
Foods that may help prevent cramps
For those with healthy kidney function, dietary changes can lower the risk of cramps. Patients with kidney disease, however, should consult a doctor before making changes. Dr. Hong recommends:
- Potassium-rich foods: bananas, avocados, spinach, sweet potatoes, and potatoes.
- Magnesium-rich foods: pumpkin seeds, cashews, almonds, oats, dark chocolate, tofu, and soy milk.
- Calcium-rich foods: sesame seeds, small dried fish, kale, amaranth, and dairy products (kidney patients should watch phosphorus intake).
- Sour cherry juice or fruit vinegar: may ease cramps caused by nerve reflexes.
- Sports drinks or light salt intake: beneficial after sweating or exercise.
- L-carnitine: found in red meat, often lacking in dialysis patients.

Daily habits to reduce cramps
Simple lifestyle changes can help:
- Stretch calf muscles before bed — studies show three weeks of nightly stretching lowers the frequency of cramps.
- Stay hydrated, but avoid drinking large amounts right before sleep.
- Keep active and avoid sitting too long.
- Make sure blankets don’t weigh down your toes.
- Check medications and consider blood tests to track electrolytes.
- Try supplements such as B vitamins, calcium, or magnesium if advised.
- Warm foot soaks or heat packs before bed can also improve circulation.
A signal worth listening to
Calf cramps are common, but they are sometimes the body’s way of sounding an alarm. They may result from simple issues like dehydration or lack of stretching — but they can also point to more serious conditions such as chronic kidney disease.
If cramps are frequent, severe, or accompanied by other symptoms, it’s best to seek medical advice. Paying attention early can help protect not only your sleep, but also your long-term health.
Translated by Joseph Wu
Follow us on X, Facebook, or Pinterest