Why Do My Legs Ache at Night? Causes & Relief

Nighttime leg aches are remarkably common, affecting up to 60% of adults at some point. The pain tends to show up when you’re finally still, which feels counterintuitive, but several physiological factors converge once you lie down that can make your legs ache, cramp, or throb. The cause ranges from something as simple as overworked muscles to circulatory problems that deserve medical attention.

Why Pain Gets Worse at Night

Your body’s pain sensitivity actually fluctuates on a 24-hour cycle. Research shows that pain thresholds drop in the late evening, meaning the same level of discomfort that barely registered during the day can feel noticeably worse at bedtime. This is driven partly by shifts in inflammatory signaling molecules that rise at night, and partly by falling levels of cortisol, your body’s natural anti-inflammatory hormone.

There’s also a simpler explanation layered on top of that biology: distraction disappears. During the day, movement, conversation, and mental focus compete for your brain’s attention. At night, with fewer signals coming in, low-grade aches that were always there become impossible to ignore.

Muscle Cramps and Overuse

Nocturnal leg cramps are the most frequent culprit. About 50 to 60% of adults experience them, with the rate climbing as you get older and occurring slightly more often in women. These involuntary contractions typically hit the calf but can grip the thigh or foot, lasting anywhere from a few seconds to several minutes and leaving a sore, tender feeling afterward.

Common triggers include standing or walking for long periods, starting a new exercise routine, dehydration, and sitting in awkward positions that compress muscles or nerves. Certain medications, particularly diuretics and cholesterol-lowering drugs, can also increase cramp frequency.

Electrolyte and Mineral Imbalances

Your muscles rely on a balance of minerals to contract and relax properly. When magnesium levels drop too low, symptoms include muscle spasms, cramps, numbness in the hands and feet, fatigue, and weakness. Potassium and calcium play similar roles in muscle function, and falling short on any of them can leave your legs more prone to cramping and aching overnight.

You don’t need to be severely deficient for this to matter. Even mild shortfalls, common in people who sweat heavily, take certain blood pressure medications, or don’t eat enough leafy greens, nuts, and potassium-rich foods, can tip the balance enough to trigger nighttime symptoms.

Circulation Problems

Two vascular conditions frequently cause nighttime leg pain, and they work in opposite ways.

Chronic Venous Insufficiency

When the valves inside your leg veins weaken or become damaged, blood has trouble traveling back up to your heart. It pools in the lower legs, raising pressure inside the veins and causing a heavy, achy, tired feeling. Cramping at night is a hallmark symptom. You might also notice visible varicose veins, swelling around the ankles, or skin discoloration near the shins. Elevating your legs above heart level relieves the pressure and is one of the first things recommended for management.

Peripheral Artery Disease

Narrowed arteries reduce blood flow to the legs, and when the condition is severe, it causes what’s known as rest pain. Unlike venous insufficiency, this pain comes from not enough blood reaching the tissue rather than too much pooling. The aching can range from mild to extreme, may wake you from sleep, and often affects one leg more than the other. Risk factors include smoking, diabetes, high blood pressure, and high cholesterol. Rest pain from peripheral artery disease is a sign the condition has progressed and needs medical evaluation.

Nerve-Related Pain

Peripheral neuropathy, damage to the nerves outside the brain and spinal cord, produces a distinctive set of nighttime sensations: burning, tingling, “pins and needles,” numbness, or sharp pain in the feet and legs. These symptoms are often worse at night. Diabetes is the most common cause, but neuropathy can also result from vitamin B12 deficiency, alcohol use, autoimmune conditions, and certain medications.

The pain pattern is different from cramps. Rather than a sudden, gripping contraction, neuropathic leg pain tends to be constant or wave-like, with an unpleasant quality that feels electrical or burning. It usually starts in the feet and works upward over time.

Restless Legs Syndrome

If your legs don’t just ache but feel like they need to move, with an uncomfortable crawling or pulling sensation that only improves when you get up and walk around, restless legs syndrome is a likely explanation. The discomfort typically begins or worsens in the evening and can seriously disrupt sleep. It’s more common during pregnancy, in people with iron deficiency, and in those with kidney disease. The key distinction is the overwhelming urge to move: the aching itself is relieved by motion and returns when you’re still again.

Pregnancy and Leg Aches

Leg cramps during pregnancy are especially common in the second and third trimesters. The exact mechanism isn’t fully understood, but lower calcium levels in the blood during pregnancy likely contribute. The growing uterus also places increasing pressure on the veins returning blood from the legs, compounding the problem. Added body weight, fluid retention, and shifting posture all pile on additional strain to the leg muscles and circulatory system.

Stretching to Reduce Nighttime Cramps

One of the most effective and side-effect-free approaches is a simple nightly stretching routine. A clinical trial found that performing calf and hamstring stretches three times daily for six weeks significantly reduced both the frequency and the pain intensity of nocturnal leg cramps. Every participant in the study, including frail adults with an average age of 85, was able to perform the stretches safely.

The routine doesn’t need to be complicated. A standing calf stretch (leaning into a wall with one leg extended behind you) and a seated hamstring stretch (reaching toward your toes with legs straight) cover the two muscle groups most involved in nighttime cramps. Holding each stretch for 20 to 30 seconds and repeating two or three times per leg, particularly before bed, gives you the best chance of a cramp-free night.

Beyond stretching, staying hydrated throughout the day, keeping your sheets and blankets loose so they don’t push your feet into a pointed position, and eating enough magnesium and potassium-rich foods (bananas, sweet potatoes, spinach, nuts, seeds) can all help reduce episodes.

Signs That Need Medical Attention

Most nighttime leg aches are benign and respond to stretching, hydration, and minor lifestyle adjustments. But certain patterns warrant a closer look. Swelling, redness, or warmth concentrated in one leg could signal a blood clot. Pain that consistently wakes you from sleep, especially if it’s severe or getting worse over weeks, may point to peripheral artery disease or another progressive condition. Leg pain paired with fever, unexplained weight loss, or an inability to bear weight on the affected leg needs prompt evaluation. Persistent numbness or burning that’s spreading upward from the feet suggests nerve damage that benefits from early treatment.