Nighttime leg pain usually comes down to one of a few common causes: muscle cramps, restless legs syndrome, nerve issues, or problems with blood flow. Between 50 and 60 percent of adults experience nocturnal leg cramps alone, and the prevalence increases with age. The good news is that most causes are manageable once you identify what’s behind the pain.
Nocturnal Leg Cramps
The most common reason your legs hurt at night is simple muscle cramping, sometimes called a charley horse. These are sudden, involuntary contractions that typically strike the calf, foot, or both. They can last from a few seconds to several minutes and leave a lingering soreness afterward.
The exact mechanism isn’t fully understood, but one leading theory points to body position. When you’re lying down, your foot naturally points downward, which puts your calf muscles in a shortened position. In that state, even a small burst of nerve activity can trigger a full cramp. Some researchers have also suggested that modern lifestyles, which involve far less squatting and deep stretching than our ancestors performed, leave leg tendons and muscles chronically tight and more cramp-prone.
Several everyday factors raise your risk:
- Dehydration: Not drinking enough water during the day, especially in warm weather or after exercise.
- Inactivity: Sitting at a desk for long stretches or standing on hard floors can set you up for cramps later that night.
- Overexertion: Too much high-intensity exercise fatigues muscles and makes cramping more likely.
- Age: Tendons naturally shorten as you get older, which increases susceptibility.
- Stress: Physical and mental tension can contribute to cramping.
If a cramp strikes, stretching the affected muscle usually provides immediate relief. For a calf cramp, flex your foot upward toward your shin. Gentle massage and a warm towel or heating pad on the muscle can also help it relax. To prevent cramps from recurring, try stretching your calves for a few minutes before bed and staying well hydrated throughout the day.
Restless Legs Syndrome
Restless legs syndrome (RLS) is often confused with leg cramps, but the two feel quite different. RLS doesn’t usually cause sharp pain. Instead, it produces an uncomfortable, hard-to-describe sensation, often like crawling, tingling, or a deep urge to move your legs. The hallmark is that the feeling starts or worsens when you’re resting, especially at night, and moving your legs temporarily relieves it.
A diagnosis is based on five criteria established by the International Restless Legs Syndrome Study Group: you feel a strong, often irresistible urge to move your legs accompanied by uncomfortable sensations; symptoms start or worsen when you’re sitting or lying down; movement partially or temporarily relieves them; symptoms are worse at night; and no other condition fully explains what’s happening.
RLS symptoms tend to last longer than a cramp and can make falling asleep extremely difficult. If you notice that walking around the room or stretching calms your legs but the sensation returns the moment you get back into bed, RLS is a likely explanation worth discussing with your doctor.
Nerve Pain That Gets Worse at Night
Burning, tingling, or “pins and needles” in your legs and feet at night often points to peripheral neuropathy, which is damage to the nerves outside your brain and spinal cord. Diabetes is the most common cause, but it can also result from alcohol use, vitamin deficiencies, or other metabolic conditions.
There’s a compelling reason nerve pain intensifies at night. Your body uses something called pain gating: nerves in your spinal cord act as gatekeepers that either allow pain signals to reach your brain or block them. During the day, movement, physical sensations, and mental engagement help close those gates. At night, when you’re lying still in a quiet, dark room, the gates swing open and pain signals flow more freely.
Temperature plays a role too. Cooler bedrooms can worsen most types of neuropathy pain. And your body’s natural pain-suppressing chemicals, which are more active during daytime hours, dip at night, effectively lowering your pain threshold. The combination of stillness, cold, fewer distractions, and reduced natural pain relief creates a perfect storm for nighttime nerve discomfort.
Blood Flow Problems
Two vascular conditions commonly cause leg pain that’s noticeable at night: peripheral artery disease (PAD) and chronic venous insufficiency (CVI).
Peripheral Artery Disease
PAD involves narrowed arteries in your legs that restrict blood flow. In earlier stages, you might notice pain, cramping, or fatigue in your calves, thighs, or buttocks during walking that stops within about 10 minutes of resting. As PAD progresses, you can develop what’s called rest pain: a burning or aching sensation in your legs, feet, or toes that shows up when you’re lying flat. A telling clue is that dangling your legs over the edge of the bed often eases the pain, because gravity helps blood flow downward past the narrowed arteries.
Chronic Venous Insufficiency
CVI works in the opposite direction. Valves inside your leg veins that normally push blood upward toward your heart become damaged and stop closing properly. Blood pools in your legs, increasing pressure inside those veins. This creates an achy, heavy, or full feeling in your legs, often accompanied by visible swelling. The discomfort tends to build throughout the day and can be especially noticeable by the time you get into bed.
Pregnancy and Leg Pain
About 40 percent of pregnant women experience leg cramps, most commonly during the second and third trimesters. The extra weight strains leg muscles, and shifts in mineral levels may contribute. Some research suggests that lower calcium levels in the blood during pregnancy play a role. Getting 1,000 milligrams of calcium daily is recommended for pregnant women, and magnesium supplements may help prevent cramps, though the evidence is mixed.
Medications That Cause Leg Pain
Certain medications can trigger or worsen nighttime leg cramps. Drugs that increase urine output (diuretics) are a common culprit because they can deplete electrolytes your muscles need to function smoothly. Birth control pills and some medications used to treat high blood pressure and high cholesterol have also been linked to leg cramps. If your leg pain started or worsened around the time you began a new medication, that connection is worth bringing up with your prescriber.
Signs That Need Prompt Attention
Most nighttime leg pain is benign and responds to stretching, hydration, and lifestyle adjustments. But certain symptoms signal something more serious. Pain, swelling, redness, and warmth concentrated in one lower leg can indicate a blood clot and warrants emergency care. A leg that looks pale or feels noticeably cooler than your other leg suggests a sudden disruption in blood flow. Calf pain that develops after prolonged sitting, such as a long flight or car ride, also raises concern for a clot. Any of these combinations should be evaluated urgently rather than managed at home.

