What Does It Mean When Your Legs Hurt at Night?

Nighttime leg pain is remarkably common, affecting roughly 30% of adults at least five times per month. The cause ranges from harmless muscle cramps to circulation problems or nerve damage, and the type of pain you’re feeling is the best clue to what’s behind it. Most cases come down to one of a handful of explanations, and understanding which one fits your symptoms can help you figure out whether it’s something you can manage at home or something worth getting checked out.

Nocturnal Leg Cramps

The most common reason for leg pain at night is a sudden, involuntary muscle cramp, usually in the calf. These cramps hit without warning, last anywhere from a few seconds to several minutes, and leave behind a sore, tight feeling that can linger for hours. They tend to strike when you’re lying still in bed, and they often wake you from sleep.

About 24% of adults experience these cramps on a mild basis (fewer than 15 nights per month), while around 6% deal with them on 15 or more nights per month. They become more frequent with age, during pregnancy, and after long days on your feet. Dehydration, low potassium, and low magnesium can all make cramps more likely, as can certain medications. Statins (cholesterol-lowering drugs) are a well-known culprit. Mild muscle soreness is a common side effect, and in rare cases, statins can cause a more serious breakdown of muscle tissue. Diuretics, which flush fluid and electrolytes from the body, also increase cramp risk.

When a cramp strikes, the fastest relief comes from stretching the affected muscle. For a calf cramp, flex your foot so your toes point toward your shin, or stand and press your heel into the floor. A nightly stretching routine before bed can reduce how often cramps happen. One study found that six weeks of pre-sleep calf and hamstring stretches meaningfully lowered cramp frequency. Staying well hydrated and making sure you’re getting enough potassium (from bananas, potatoes, leafy greens) and magnesium (from nuts, seeds, whole grains) can also help. Some experts recommend a magnesium supplement or vitamin B complex, though neither works 100% of the time.

Restless Legs Syndrome

Restless legs syndrome (RLS) is often confused with nighttime cramps, but it feels quite different. Rather than a sharp, seizing pain, RLS produces an uncomfortable crawling, tingling, or pulling sensation deep inside the legs. The defining feature is an overwhelming urge to move your legs, and moving them temporarily relieves the discomfort. RLS is generally not painful in the way cramps are, and the sensations tend to last much longer, sometimes persisting for hours rather than minutes.

RLS symptoms almost always appear when you’re sitting or lying still, especially at bedtime. The condition runs in families and is linked to low iron levels in the brain. If you notice that your legs feel restless rather than cramped, and that walking around or shifting position brings relief, RLS is a more likely explanation than muscle cramps.

Nerve Damage and Neuropathy

If your nighttime leg pain feels like burning, tingling, numbness, or electric shocks, particularly in your feet and lower legs, peripheral neuropathy may be the cause. Nerve damage from diabetes is the most common trigger, but it can also result from vitamin deficiencies, alcohol use, or certain medications.

Neuropathy pain tends to worsen at night for several reasons. The leading explanation is called the gate control theory of pain: during the day, physical movement and sensory input essentially “close the gate” on pain signals traveling to your brain. At night, when you’re lying still with fewer distractions, those gates open and the signals come through more intensely. Cooler bedroom temperatures also play a role, since cold worsens most types of neuropathic pain. There’s also evidence that the body’s natural pain threshold fluctuates with its internal clock, dipping lower at night.

Gentle pressure, warmth (like a heating pad on a low setting), and light movement before bed can all help take the edge off. Keeping your bedroom at a comfortable temperature rather than letting it get too cold is a simple change that sometimes makes a noticeable difference.

Poor Circulation

Leg pain at night can also signal a problem with blood flow. There are two main vascular causes to be aware of, and they feel quite different from each other.

Peripheral Artery Disease

Peripheral artery disease (PAD) occurs when fatty deposits narrow the arteries supplying blood to your legs. The classic symptom is pain in the calves during walking that goes away with rest. But in more advanced cases, or in people who also have diabetes or spinal stenosis, the pain can persist even at rest. People with PAD who experience leg pain both during activity and at rest tend to have poorer balance, slower walking speed, and reduced nerve sensation in their legs. If your leg pain feels like a deep ache or cramping that gets worse when you lie flat and improves when you dangle your legs over the side of the bed, poor arterial blood flow could be contributing.

Chronic Venous Insufficiency

Chronic venous insufficiency (CVI) is a different circulation problem where the valves in your leg veins stop working properly. Instead of pushing blood back up toward the heart, damaged valves let blood pool in the lower legs. This causes swelling, heaviness, and cramping, especially at night after a long day of standing or sitting. You might notice your ankles are puffy by evening, your skin looks discolored around the lower legs, or you have visible varicose veins.

Elevating your legs above heart level when lying down helps reduce the pressure buildup. Compression stockings worn during the day are another effective strategy, since they support the veins and prevent blood from pooling in the first place.

Growing Pains in Children

If a child is complaining about leg pain at night, growing pains are a common and generally harmless explanation. These typically affect both legs, centered in the thighs, calves, or behind the knees, and they occur in the evening or at night rather than during the day. The pain is real, but it isn’t caused by actual bone growth. Gentle massage, a warm compress, and stretching usually provide relief.

Symptoms That Need Prompt Attention

Most nighttime leg pain is benign, but certain patterns point to something more serious. You should seek medical care promptly if one leg becomes suddenly swollen, red, or warm to the touch, as this can indicate a blood clot. A leg that looks unusually pale or feels noticeably cooler than the other suggests a more severe circulation blockage. Calf pain that develops after prolonged sitting, such as a long flight, also warrants a call to your doctor. And if both legs are swelling alongside shortness of breath, that combination needs immediate evaluation.

Persistent nighttime pain that doesn’t respond to stretching, hydration, and basic lifestyle changes is also worth investigating. Ongoing symptoms could point to an underlying condition like neuropathy, PAD, or venous insufficiency, all of which are more manageable the earlier they’re identified.