Pain in Leg When Resting: Causes and What to Do

Leg pain that shows up when you sit down, lie in bed, or otherwise stop moving can stem from several very different problems, ranging from poor circulation and nerve irritation to muscle cramps and neurological conditions. The cause matters because the right response varies wildly: one type of resting leg pain calls for gentle stretching, another for urgent vascular evaluation. Understanding which pattern your pain follows is the first step toward the right fix.

Blocked Arteries and Critical Limb Ischemia

Peripheral artery disease, or PAD, is one of the most serious reasons legs hurt at rest. PAD develops when fatty deposits narrow the arteries that supply blood to the legs. In early stages, the pain shows up only during walking and eases when you stop, a pattern called intermittent claudication. But as the disease progresses, blood flow drops so much that even resting tissues don’t get enough oxygen. At that point, pain occurs while you’re sitting or lying down, especially at night when gravity no longer helps push blood to your feet. This stage is called critical limb ischemia, and it means the perfusion deficit persists even without the extra demand of exercise.

Rest pain from PAD tends to settle in the forefoot or toes rather than the calf. People often notice it worsens when they lie flat and improves slightly when they dangle their legs over the side of the bed, because gravity nudges a little more blood downward. The skin on the affected foot may look pale or dusky, feel cool to the touch, and wounds or sores may heal slowly or not at all. These are signs that the tissue is starving for blood.

Critical limb ischemia is not a wait-and-see situation. Without restoring adequate blood flow, the risk of tissue death and amputation climbs steeply. Revascularization, either through catheter-based procedures or bypass surgery, is the standard treatment when rest pain or tissue loss develops.1PubMed Central. Endovascular intervention for peripheral artery disease If you have resting foot pain along with skin changes, non-healing wounds, or coolness in one leg compared to the other, get a vascular evaluation promptly.

Venous Insufficiency

While arterial disease starves the leg of incoming blood, venous insufficiency is the opposite plumbing problem: blood has trouble making the return trip back up to the heart. Valves inside the veins that normally prevent backflow become leaky, so blood pools in the lower legs. The result is aching, heaviness, and cramping that tends to worsen after prolonged standing or sitting and improves with elevation. Chronic venous insufficiency, or CVI, is extremely common, and pain is reported by a wide range of those affected, with prevalence estimates running from about 15% to 70% depending on the population studied.2PubMed Central. Management of Lower Extremity Pain from Chronic Venous Insufficiency: A Comprehensive Review

Unlike arterial rest pain, which concentrates in the foot, venous pain tends to affect the calf and lower leg. You may also notice visible varicose veins, swelling around the ankles that pits when you press it, or brownish skin discoloration above the ankle. The discomfort often feels like a dull, heavy ache rather than a sharp or burning sensation. Elevating the legs above heart level for 15 to 20 minutes typically provides noticeable relief, which is a useful clue that the pain is venous rather than arterial. Compression stockings are the first-line treatment, and they can substantially reduce both swelling and pain over time.

Restless Legs Syndrome

Restless legs syndrome, or RLS, produces an altogether different kind of resting discomfort. Rather than a straightforward pain, most people describe it as a crawling, tingling, pulling, or itching sensation deep inside the legs. The hallmark is an almost irresistible urge to move the legs, and moving them brings immediate but temporary relief. These sensations appear during periods of rest and get worse in the evening and at night, which makes falling asleep or staying asleep a real struggle.3Restless Legs Syndrome: Education for Patients and the Public. Restless Legs Syndrome: Types, Causes, Symptoms, Diagnosis, and Treatments

RLS is a neurological condition, not a circulation problem, although it can coexist with vascular issues in the same person. Iron deficiency is one of the most well-established triggers: low iron levels in the brain appear to disrupt dopamine signaling. Checking ferritin levels is one of the first steps a doctor will take, and iron supplementation alone resolves or improves symptoms in a meaningful number of cases. Pregnancy, kidney disease, and certain medications such as antihistamines and some antidepressants can also provoke or worsen RLS.

For people whose symptoms don’t respond to iron correction, several classes of medication have demonstrated effectiveness. Dopamine agonists like ropinirole, pramipexole, and the rotigotine patch reduce symptoms, though side effects including daytime sleepiness and impulse control issues can be limiting. Alpha-2-delta ligands such as gabapentin and pregabalin are also effective and do not carry the risk of augmentation, a troublesome phenomenon where the medication gradually makes symptoms worse over time, though sedation and dizziness can occur.4Neurotherapeutics. Management of Restless Legs Syndrome

One small randomized study found a tendency for external sensory stimulation, such as vibration applied to the legs, to reduce RLS discomfort, suggesting that non-drug approaches could eventually play a larger role in managing milder cases.5PubMed Central. Effect of Sensory Stimuli on Restless Legs Syndrome: A Randomized Crossover Study Some people find that walking, stretching, or massaging the legs before bed delays the onset of symptoms enough to fall asleep.

Nocturnal Leg Cramps

Sudden, involuntary, and painful muscle contractions in the calf, foot, or thigh are among the most common reasons people wake up with leg pain. These nocturnal leg cramps are especially frequent in older adults: roughly a third of people over 50 report them, and about one in five of those also experience cramps during daytime rest periods.6PubMed Central. Criteria in diagnosing nocturnal leg cramps: a systematic review A cramp can last from a few seconds to several minutes, and the muscle may remain sore for hours afterward.

Dehydration, electrolyte imbalances, prolonged sitting, and certain medications like diuretics and statins are frequently blamed, though pinning down the exact cause in any individual can be frustratingly difficult. Unlike RLS, cramps involve visible and palpable muscle tightening, and movement doesn’t so much relieve the urge to move as it forcibly stretches the contracting muscle to break the spasm.

Stretching before bed is one of the best-supported non-drug interventions. A randomized trial in older adults found that a nightly calf and hamstring stretching routine reduced cramp frequency by about 1.2 cramps per night and lowered pain severity by roughly 1.3 points on a 10-point scale after six weeks compared to a control group.7PubMed. Stretching before sleep reduces the frequency and severity of nocturnal leg cramps in older adults: a randomised trial A separate pilot study in frail adults over 75 confirmed this finding, showing that six weeks of stretching significantly reduced both frequency and intensity of cramps.8PubMed. Pilot testing a stretching regimen for prevention of night time nocturnal leg cramps The routine doesn’t need to be elaborate: holding a calf stretch for 10 to 15 seconds, repeated a few times on each leg before getting into bed, appears to be enough.

Nerve Compression From the Spine

Pain radiating down one leg while you’re sitting or lying down can sometimes originate not in the leg at all but in the lower back. When a herniated disc, bone spur, or degenerative narrowing of the spinal canal presses on a nerve root, the resulting pain follows the path of that nerve down into the buttock, thigh, calf, or foot. This is often called sciatica, and it tends to worsen in positions that increase pressure on the nerve, which for many people includes sitting and lying on the affected side.

The distinguishing feature of nerve-related leg pain is its character and distribution. It often has an electric, shooting, or burning quality and follows a specific band down the leg rather than spreading across the whole limb. Numbness, tingling, or weakness in part of the foot or leg can accompany the pain. MRI can reveal the structural source of compression.9International Journal of Science and Research (IJSR). A 3 Tesla Magnetic Resonance Imaging Study of Disco – Vertebral Changes and Nerve Root Compression in Degenerative Lumbar Radiculopathy Most episodes of sciatica improve with conservative measures over several weeks, including physical therapy, anti-inflammatory medication, and avoiding positions that aggravate the nerve. Surgery becomes an option when pain is severe, persistent, or accompanied by progressive weakness.

How to Tell These Apart

When you’re lying in bed at 2 a.m. with an aching leg, diagnostic nuance is probably the last thing on your mind. But a few practical clues can help you narrow down what’s going on and decide how urgently you need to act.

  • Location: Forefoot and toe pain that worsens when lying flat and improves with dangling the leg points toward arterial disease. Calf heaviness and ankle swelling suggest venous insufficiency. A band of pain following a line from the hip or buttock down to the foot suggests nerve compression.
  • Character: A sudden, rock-hard muscle contraction is a cramp. A creeping, restless sensation relieved by movement is likely RLS. A burning or shooting quality is more typical of nerve pain.
  • Timing: RLS builds gradually through the evening and into the night. Cramps strike suddenly, often after you’ve been asleep. Arterial rest pain is more constant and may wake you repeatedly.
  • Response to movement: Getting up and walking relieves both RLS and venous aching. Stretching the muscle breaks a cramp. Arterial rest pain may improve slightly with dangling the leg but does not go away with walking. Nerve pain from spinal compression may worsen with certain movements and ease with others.

These patterns overlap in reality. A person with PAD can also have RLS. Someone with a disc herniation may develop cramps from altered posture. Still, paying attention to these features gives you a head start in a conversation with a doctor.

When Resting Leg Pain Is an Emergency

Most resting leg pain builds gradually over weeks or months, giving you time to seek evaluation. Certain presentations, however, require same-day or emergency attention:

  • Sudden onset of a cold, pale, or blue leg: Acute limb ischemia, caused by a blood clot suddenly blocking an artery, is a surgical emergency. The leg may feel numb and weak, and you may not feel a pulse at the ankle. Hours matter in saving the limb.
  • Swollen, warm, and painful calf: A deep vein thrombosis (DVT) can cause a clot that travels to the lungs. If one calf is noticeably more swollen and tender than the other, especially after immobility, surgery, or a long flight, get evaluated the same day.
  • Leg pain with new back pain, loss of bladder or bowel control, or progressive weakness: These can indicate cauda equina syndrome, a compression of the nerve bundle at the base of the spine that requires urgent surgical decompression.

Outside of these red-flag situations, most resting leg pain warrants a non-urgent but timely medical evaluation, particularly when it recurs, disrupts sleep, or is accompanied by skin changes, swelling, or numbness.

Growing Pains in Children

Resting leg pain is not just an adult problem. Children between ages 3 and 12 commonly experience what are traditionally called growing pains: aching in the legs that typically appears in the late afternoon or evening and can wake them from sleep. The pain tends to affect both legs, especially the thighs, calves, and the area behind the knees. It comes and goes, with pain-free intervals of days or weeks between episodes.10PubMed Central. Growing pains

Despite the name, there’s no evidence that growth itself causes the pain. The term has stuck around for lack of a better explanation. Growing pains are considered benign and self-limiting, meaning they resolve on their own over time. Massage, gentle stretching, and over-the-counter pain relief are usually enough to manage episodes. The important clinical task is ruling out more concerning causes of limb pain in children, including bone infections, inflammatory arthritis, and, rarely, bone malignancies. A limp, pain that is consistently on one side, joint swelling, fever, or pain that worsens over time rather than waxing and waning all warrant medical evaluation rather than a reassuring diagnosis of growing pains.10PubMed Central. Growing pains

Practical Self-Care Strategies

What you can do at home depends on which problem you’re dealing with, but several strategies overlap enough to be broadly useful while you work toward a diagnosis.

For cramps, the stretching evidence is strong enough to be worth trying even before you see a doctor. A simple nightly routine of calf stretches, holding each for 10 to 15 seconds for three repetitions, meaningfully reduced both cramp frequency and severity in trials of older adults.7PubMed. Stretching before sleep reduces the frequency and severity of nocturnal leg cramps in older adults: a randomised trial Staying hydrated and checking whether any of your medications list leg cramps as a side effect are also worthwhile steps.

For RLS, reducing caffeine and alcohol intake in the evening, keeping a consistent sleep schedule, and trying light leg massage or a warm bath before bed are commonly recommended as starting points. If symptoms are frequent, getting your iron levels checked is important, since correcting a deficiency can make a substantial difference without medication.

For venous insufficiency, leg elevation and compression stockings are the cornerstone of self-management. Elevating your legs above your heart for 15 to 20 minutes a few times per day can relieve the heaviness and aching. Avoid sitting or standing in one position for prolonged stretches.

For nerve-related pain, experimenting with sleep positions can help. Many people with sciatica find relief sleeping on their side with a pillow between their knees, or on their back with a pillow under their knees, both of which reduce the angle of lumbar flexion and take pressure off irritated nerve roots.

Medications and Procedures Worth Knowing About

When self-care isn’t enough, the medical options branch sharply depending on the cause. For PAD that has progressed to critical limb ischemia with rest pain or tissue loss, revascularization is typically necessary. This can mean balloon angioplasty, stenting, or surgical bypass to restore blood flow. The urgency increases as the limb becomes more threatened.1PubMed Central. Endovascular intervention for peripheral artery disease Alongside the procedure, management of the underlying risk factors, particularly smoking, diabetes, high blood pressure, and cholesterol, is critical to prevent recurrence.

For RLS, the medication landscape has shifted in recent years. Dopamine agonists were once the default first-line treatment, but growing awareness of augmentation, where the drugs gradually make symptoms worse and spread them to earlier in the day or to the arms, has led many specialists to favor alpha-2-delta ligands like gabapentin and pregabalin as initial therapy instead.4Neurotherapeutics. Management of Restless Legs Syndrome For severe cases, low-dose opioids remain an option, though they carry their own risks.

For nocturnal cramps, quinine was once widely prescribed but has fallen out of favor due to rare but serious side effects including heart rhythm disturbances. No single drug has taken its place with strong evidence, which is part of why stretching remains the primary recommendation. Magnesium supplements are popular and generally safe, though the evidence supporting their effectiveness for cramps is thin and mixed.

Why the Same Symptom Can Mean Very Different Things

One reason resting leg pain trips people up is that the symptom itself, pain at rest, sits at the intersection of completely unrelated body systems. The vascular system, the nervous system, and the musculoskeletal system can all produce pain in the same limb at the same time of day, but the underlying processes have nothing in common. Arterial rest pain is a tissue oxygen emergency. Venous pain is a pressure and fluid problem. RLS is a dopamine signaling issue in the brain. Cramps are a motor neuron misfiring. Sciatica is a mechanical compression problem in the spine.

This also means that a treatment perfectly suited to one cause can be useless or even counterproductive for another. Compression stockings that help venous insufficiency could theoretically worsen arterial disease if the blood supply is already marginal. Walking that relieves RLS makes arterial claudication worse. Lying flat and elevating legs that eases venous pooling can intensify arterial rest pain. Getting the cause right before committing to a management strategy is not just academic; it changes what you should and shouldn’t do with your legs.

If your leg pain at rest has been going on for more than a couple of weeks, is worsening, or is disrupting your sleep regularly, that’s enough reason to bring it up with your doctor. A focused history and a few simple tests, an ankle-brachial index for arterial disease, an ultrasound for venous problems, or a trial of iron supplementation for suspected RLS, can usually sort out the cause without anything invasive. The sooner the right problem gets identified, the sooner the right solution can start working.