Why Does My Leg Ache at Night? Causes & Relief

Nighttime leg aching is remarkably common, and it happens for a straightforward reason: the conditions of rest, lying flat, and reduced distraction all conspire to make leg pain more noticeable or genuinely worse after dark. About 30% of adults experience nocturnal leg cramps alone at least five times per month, and cramps are just one of several causes. The specific pattern of your pain, where it hits, and what relieves it can tell you a lot about what’s behind it.

Nocturnal Leg Cramps

The most common culprit is the classic charley horse: a sudden, involuntary tightening of the calf or foot muscles that jolts you awake. These cramps strike during sleep because your muscles are in a slightly shortened position for hours, and the normal nerve signals that keep them relaxed can misfire. About 24% of adults report mild nocturnal cramps, while 6% deal with moderate to severe episodes, meaning cramps 15 or more times per month.

Age is the biggest risk factor. Muscle tendons naturally shorten as you get older, making cramps more likely. Dehydration, electrolyte shifts, and prolonged sitting or standing during the day also set the stage. Pregnancy increases cramp frequency too, possibly due to lower circulating calcium levels, though researchers haven’t pinpointed a single mechanism.

Medications That Trigger Cramps

Certain prescription drugs significantly raise your odds. A large study published in JAMA Internal Medicine found that three drug classes stand out: diuretics (water pills), statins (cholesterol medications), and inhaled long-acting bronchodilators used for asthma or COPD. Among diuretics, potassium-sparing types carried the highest risk, more than doubling the likelihood of needing cramp treatment. Inhaled bronchodilators, particularly combination inhalers with a corticosteroid, showed an even stronger link. If you started a new medication and then noticed cramps getting worse, the timing is worth mentioning to your prescriber.

Restless Legs Syndrome

Restless legs syndrome (RLS) feels different from cramps. Instead of a sharp contraction, you get an uncomfortable creeping, pulling, or throbbing sensation deep inside the legs paired with an overwhelming urge to move them. The National Institutes of Health defines RLS by four criteria that all must be present: the urge to move is accompanied by unpleasant sensations, it starts or worsens during rest, movement partially or fully relieves it, and it’s worse in the evening or at night than during the day.

That last point is key. RLS follows a circadian pattern, meaning it’s tied to your body’s internal clock rather than simply being triggered by lying down. People with RLS often describe the sensation as impossible to ignore. Walking, stretching, or even just shifting position brings temporary relief, but the discomfort returns the moment you settle back in. Iron deficiency is one of the most treatable underlying causes, so blood work checking iron stores is typically the first step.

Peripheral Neuropathy

Nerve damage in the legs produces burning, tingling, or a deep ache that often peaks at night. The leading explanation is called gate control theory: during the day, your body processes a flood of sensory input from movement, touch, and temperature changes, and all of that activity essentially closes the “gates” in your spinal cord that transmit pain signals to your brain. At night, when you’re still and quiet, those gates open wider, letting more pain signals through.

Two additional factors make nighttime worse. First, your body’s natural pain-suppressing chemicals (hormones and other compounds that raise your pain threshold) tend to dip at night. Second, cooler bedroom temperatures can intensify nerve pain. Most types of neuropathy pain worsen in cold environments, so a chilly room can genuinely increase what you feel. Diabetes is the most common cause of peripheral neuropathy, but alcohol use, vitamin B12 deficiency, and certain medications can also damage nerves over time.

Vascular Causes

Two different circulatory problems cause nighttime leg aching through opposite mechanisms, and recognizing the difference matters.

Peripheral Artery Disease

When arteries in the legs become narrowed by plaque buildup, blood flow drops. During the day, gravity helps push blood down to your feet. When you lie flat in bed, that gravitational assist disappears, and severely narrowed arteries can no longer deliver enough blood to meet even the resting needs of your foot and toe tissues. The result is ischemic rest pain: a burning or aching in the forefoot or toes that wakes you up. The telltale sign is that dangling your leg off the side of the bed or standing up brings relief within minutes, because gravity restores some blood flow. This type of pain signals advanced arterial disease and needs prompt medical evaluation.

Chronic Venous Insufficiency

Venous insufficiency works in the other direction. Damaged valves inside your leg veins allow blood to pool rather than returning efficiently to the heart. After a full day of standing or sitting, that pooling reaches its peak, leaving your legs feeling heavy, achy, swollen, and fatigued by evening. You may also notice skin discoloration around the ankles, itching, or visible varicose veins. Unlike arterial pain, venous aching tends to improve when you elevate your legs above heart level.

What Your Pain Pattern Tells You

The character of your nighttime leg pain is the most useful clue to its cause. A sudden, gripping contraction that lasts seconds to minutes and leaves a sore muscle behind points to cramps. A restless, crawling discomfort that forces you to move suggests RLS. Burning or tingling in the feet that builds as the night goes on fits neuropathy. Deep aching in the forefoot that improves when you hang your leg down suggests poor arterial flow. And heavy, swollen legs that feel worst after a long day on your feet point toward venous insufficiency.

Some patterns warrant urgent attention. A leg that is suddenly swollen, red, and warm to the touch could indicate a blood clot (deep vein thrombosis), especially if it follows prolonged sitting such as a long flight. A leg that appears pale or feels unusually cool compared to the other side also needs same-day evaluation. These aren’t the kind of symptoms to wait on.

What Actually Helps

For nocturnal cramps, the single best-studied intervention is simple stretching before bed. A randomized trial in older adults found that performing calf and hamstring stretches every night for six weeks reduced cramp frequency by an average of 1.2 cramps per night compared to doing nothing. That’s a meaningful difference for people waking up multiple times. The routine doesn’t need to be elaborate: a standing calf stretch (leaning into a wall with one leg back, heel pressed to the floor) and a seated hamstring stretch held for 30 seconds each, repeated two or three times per side.

Magnesium supplements are widely recommended online, but the clinical evidence is not encouraging. A systematic review of 11 randomized controlled trials involving 735 people found no reduction in leg cramps from magnesium compared to placebo. That held true for general adults, pregnant women, and people with liver disease. The number of cramps per week, the severity, and the likelihood of meaningful improvement were all statistically identical between magnesium and sugar pills.

For RLS, addressing iron deficiency (if present) can dramatically reduce symptoms. Avoiding caffeine and alcohol in the evening also helps for some people, since both can worsen the restless sensation. Keeping a consistent sleep schedule reinforces the circadian rhythm that RLS disrupts.

For neuropathy-related nighttime pain, keeping your bedroom comfortably warm can make a noticeable difference, since cold temperatures are a known amplifier of nerve pain. Wearing light socks to bed is a low-effort option worth trying. Staying active during the day may also help by keeping spinal pain gates more regulated, though the effect varies from person to person.

Vascular causes require different strategies entirely. Venous insufficiency responds well to compression stockings worn during the day and leg elevation in the evening. Arterial disease, particularly rest pain, is a sign that blood flow has become critically low, and treatment focuses on restoring circulation, sometimes through procedures to open or bypass blocked arteries.