Why Are My Legs So Achy at Night?

Nighttime leg aches are one of the most common physical complaints in adults, and they usually come down to a handful of causes: muscle fatigue, restless legs syndrome, poor circulation, or the way your body processes inflammation while you rest. The reason your legs hurt more at night than during the day isn’t random. When you stop moving and lie down, you lose the distractions of daily activity, blood flow patterns shift, and certain conditions that were masked by movement suddenly make themselves known.

Why Lying Down Makes It Worse

During the day, your calf muscles act as a pump, squeezing blood back up toward your heart with every step. When you lie down, that pump stops working. Blood pools more easily in your lower legs, and any underlying vein or artery issue becomes more noticeable. Fluid that gravity pulled into your feet and ankles throughout the day also redistributes, which can create a dull, heavy ache.

There’s also a sensory component. Your brain processes pain signals differently when you’re not busy. A low-grade ache you barely noticed while cooking dinner can feel much more intense once you’re lying still in a quiet room. This doesn’t mean the pain isn’t real. It means the signal-to-noise ratio shifts, and your legs get your full attention.

Muscle Fatigue and Overuse

The simplest explanation is often the right one. If you spent the day on your feet, exercised harder than usual, or wore unsupportive shoes, your muscles may ache as they recover. Delayed-onset muscle soreness typically peaks 24 to 72 hours after exertion, so a long hike on Saturday can leave your calves throbbing on Sunday and Monday nights.

Dehydration and low electrolytes make this worse. When sodium, potassium, magnesium, or calcium levels drop, muscles struggle to relax fully and are more prone to cramping. This is especially common in people who exercise heavily, take diuretics, or don’t drink enough water throughout the day.

Restless Legs Syndrome

If your leg aches come with an irresistible urge to move, you may be dealing with restless legs syndrome (RLS). It affects roughly 5 to 10 percent of adults and is more common in women. The sensation is hard to describe precisely: people call it crawling, throbbing, pulling, or just a deep, uncomfortable ache that only improves when you get up and walk around. It almost always gets worse in the evening and at night, which is one of the defining features.

RLS has a strong link to iron levels. Updated guidelines from the American Academy of Sleep Medicine now emphasize checking iron stores in everyone with RLS symptoms. If levels are low, iron supplementation (sometimes given intravenously for faster results) can significantly reduce symptoms. For people whose iron is normal, medications that calm overactive nerve signaling, such as gabapentin or pregabalin, are now considered the strongest first-line treatment. These replaced older options that could actually worsen symptoms over time.

RLS also tends to worsen during pregnancy, particularly in the third trimester. It can overlap with the leg cramps that are already common in late pregnancy, making it hard to tell one from the other without paying attention to whether you feel that distinctive urge to move.

Leg Cramps During Pregnancy

Painful leg cramps at night are extremely common in the second and third trimesters. The exact cause isn’t fully understood, but lower blood calcium levels during pregnancy appear to play a role. The weight of a growing uterus also puts extra pressure on the blood vessels and nerves serving your legs.

Stretching your calves before bed is one of the most consistently helpful strategies. Regular physical activity during the day also reduces cramp frequency. Pregnant women need about 1,000 milligrams of calcium daily, and eating more magnesium-rich foods (whole grains, beans, nuts, seeds, and dried fruits) may help as well. When a cramp strikes, stretching the calf, walking briefly, and then elevating your legs can keep it from returning. A warm bath or ice massage on the muscle works for immediate relief. Supportive shoes with a firm heel counter during the day can also make a difference overnight.

Venous Insufficiency and Varicose Veins

When the valves inside your leg veins weaken, blood doesn’t flow back to your heart efficiently. It pools in your lower legs, causing a heavy, achy, throbbing sensation that typically worsens as the day goes on and peaks at night. You might also notice visible varicose veins, ankle swelling, or skin discoloration around your lower calves and ankles.

This condition is more common after age 50, in people who stand for long hours at work, and in those with a family history of varicose veins. Compression stockings worn during the day can reduce the pooling and make nights more comfortable. Elevating your legs above heart level for 15 to 20 minutes before bed helps drain accumulated fluid. For persistent cases, procedures that close off damaged veins can provide long-term relief.

Peripheral Artery Disease

Peripheral artery disease (PAD) occurs when narrowed arteries reduce blood flow to your legs. In the early stages, it causes muscle pain or cramping during walking that goes away when you stop. But as the disease progresses, the pain can occur at rest and even wake you from sleep. This rest pain is a sign of significantly reduced blood flow and typically affects the foot or toes rather than the calves.

PAD is most common in smokers, people with diabetes, and those with high blood pressure or high cholesterol. If your nighttime leg pain started gradually, gets worse when your legs are elevated, and improves when you dangle your feet over the side of the bed, that pattern is worth mentioning to your doctor. It suggests your legs aren’t getting enough blood supply in certain positions.

Medications That Cause Leg Aches

Several common medications list muscle pain as a side effect, and the aching often becomes most noticeable at night when you’re still. Statins, prescribed for high cholesterol, are the best-known culprit. Mild muscle pain is a common side effect, and in rare cases, statins can cause a more serious condition called rhabdomyolysis, involving severe muscle pain, soreness, and cramping. The risk increases when statins are combined with certain other drugs.

Blood pressure medications, particularly some older classes, can also contribute to nighttime leg discomfort. Diuretics cause electrolyte shifts that promote cramping. If your leg aches started or worsened after beginning a new medication, that timing is an important clue.

Red Flags That Need Attention

Most nighttime leg aches are uncomfortable but not dangerous. A few patterns, however, signal something more serious. Deep vein thrombosis (DVT), a blood clot in a deep leg vein, causes pain or cramping that often starts in the calf and comes with visible swelling in one leg, skin that looks red or purple, and a feeling of warmth in the affected area. The key distinction: DVT symptoms are almost always in one leg only, and the swelling is noticeable and persistent.

If a clot breaks loose and travels to the lungs, it becomes a pulmonary embolism. Warning signs include sudden shortness of breath, chest pain that worsens with deep breaths or coughing, dizziness, a rapid pulse, or coughing up blood. This is a medical emergency.

DVT risk is higher after surgery, during prolonged bed rest, in people with clotting disorders, and in those who sit for very long stretches (like long flights or desk work without breaks).

Practical Steps for Relief

For garden-variety nighttime leg aches, a few habits make a consistent difference. Stretching your calves and hamstrings for five to ten minutes before bed reduces both aching and cramping. A simple wall stretch, where you press your palms against a wall and step one foot back with the heel flat on the ground, targets the calf muscles that cause most nighttime complaints.

Staying hydrated matters more than most people realize. If you tend to stop drinking water in the early afternoon to avoid nighttime bathroom trips, your muscles may pay the price. Sipping water steadily throughout the day, including the evening, is a better approach than front-loading your intake.

Elevating your legs for 15 to 20 minutes before bed helps drain fluid and reduces the heavy, achy feeling associated with standing or sitting all day. A pillow under your calves while you sleep can maintain this benefit overnight. Gentle movement in the evening, like a short walk after dinner, keeps your calf-muscle pump active longer and helps prevent fluid from settling into your lower legs before you lie down.

If you suspect low magnesium or potassium, foods like bananas, sweet potatoes, spinach, and pumpkin seeds are easy additions to your diet. For people with RLS specifically, avoiding caffeine and alcohol in the evening can reduce symptom severity, since both interfere with the nervous system pathways involved.