Leg pain that starts when you lie down is common, and the position itself is usually part of the cause. Lying flat changes how your spine curves, where your weight presses, and how much attention your brain gives to pain signals. Pain in only one leg most often points to something on that side, such as a pressed nerve or a sore hip, rather than a whole-body problem. A few causes, mainly poor blood flow to the foot, need medical attention rather than a new pillow.
A Pinched Nerve in the Lower Back
When you lie on your back, the natural inward curve of your lower back becomes deeper than it is when you sit or recline.1Spine-health. Why Your Leg Pain Feels Worse When Lying Down That makes the small openings where nerve roots leave the spine smaller.1Spine-health. Why Your Leg Pain Feels Worse When Lying Down Lying flat can also narrow the main channel the spinal cord runs through, which matters most when that channel is already tight.2VCU Health. Finding nighttime comfort: A patient’s guide to sleeping with spinal stenosis A herniated disc or bone spur that already crowds a nerve may then press on it directly, and you feel pain running down the leg, known as sciatica.1Spine-health. Why Your Leg Pain Feels Worse When Lying Down
Nerve pain from the back often shoots or burns from the buttock down the back or side of the leg. It may come with tingling, numbness, or pins and needles in the foot. Back pain itself can be mild or missing even when the leg hurts, and coughing or sneezing may make the leg pain flare.
The pain may not hit the moment you lie down. It often builds gradually after you settle in, because the nerve root stays pressed for a while and becomes irritated and inflamed. Many people notice it when they roll onto their back or stomach, since those positions deepen the lower-back curve more than lying on your side with knees bent. Pain that eases after you get up and walk around for a few minutes fits a back-nerve cause, though that clue alone doesn’t prove it.
Sitting up or curling up often feels better for the same reason. Bending forward, or lying with your knees bent, flattens the lower back curve and reopens the nerve openings, easing the pressure.
The reason it is often one leg is that each nerve root exits on one side of the spine, so a disc bulge or spur on the right side affects the right leg. The sciatic nerve can also be squeezed anywhere along its path, from the spine down to behind the knee, not only in the back.3PubMed Central. Diagnosis and treatment of piriformis syndrome Back problems are far more common causes of sciatic pain than squeezing in the buttock, which is considered only after the back is ruled out.3PubMed Central. Diagnosis and treatment of piriformis syndrome One such buttock cause is a tight muscle deep in the buttock pressing on the nerve; the pain is often worse with sitting or pressure on the buttock.
Hip and Pelvis Pain That Spreads Into the Leg
Pain on the outside of the hip can spread into the thigh and buttock.4NHS inform. Greater trochanteric pain syndrome It typically hurts more when you lie on that side or press on the hip.4NHS inform. Greater trochanteric pain syndrome So if your right leg hurts mostly when you sleep on your right side, the hip may be the source.
It helps to know how this pain differs from nerve pain. Hip pain is usually tender when you press on the bony point on the side of your hip. It aches rather than shooting down to the foot, and it rarely causes numbness or tingling. Rolling onto the other side often eases it within minutes.
The sacroiliac joint, where the base of the spine meets the pelvis, can send pain beyond the lower back.5PubMed. Sacroiliac joint pain referral zones About half of people with pain from this joint also feel it in the leg.5PubMed. Sacroiliac joint pain referral zones About 1 in 4 feel it below the knee, and some feel it in the foot.5PubMed. Sacroiliac joint pain referral zones Leg pain below the knee therefore doesn’t automatically mean a pinched nerve.
The hip, buttock, and thigh share overlapping nerve supply, so the brain can’t always tell which structure is hurting. An examination sorts it out better than the location of the ache does. It is also common to have more than one source at once, such as a sore hip and a stiff back.
For a sore hip, avoid lying directly on the painful side. On the other side, put a pillow between your knees so the top leg doesn’t drop forward. A mattress that is too firm adds pressure on the hip bone.
Night Cramps and Medicines That Trigger Them
Night leg cramps are a common cause of broken sleep, especially in older adults.6PubMed Central. Nocturnal leg cramps They can make it hard to fall asleep, wake you up, and keep you from drifting off again.6PubMed Central. Nocturnal leg cramps Most have no clear cause, though some are linked to other health conditions.6PubMed Central. Nocturnal leg cramps
A cramp is a sudden, hard, visibly tight muscle, usually in the calf or foot, that lasts seconds to a few minutes and then lets go. Nerve pain and hip pain tend to ache, burn, or shoot without the muscle turning rock-hard. After a cramp, the muscle can stay tender for hours, and that lingering soreness isn’t a sign of a new problem.
Some medicines make cramps more likely. Starting a water pill (diuretic) is followed by more night cramps than expected, about 1.5 times as often.7PubMed. Nocturnal leg cramps and prescription use that precedes them: a sequence symmetry analysis Inhaled long-acting asthma or COPD medicines are linked to about 2.4 times more cramps.7PubMed. Nocturnal leg cramps and prescription use that precedes them: a sequence symmetry analysis Cholesterol-lowering statins carry a smaller increase.7PubMed. Nocturnal leg cramps and prescription use that precedes them: a sequence symmetry analysis Muscle symptoms from cholesterol medicines often center on the legs and, unexpectedly, are often felt while resting and lying down.8PubMed. A comprehensive description of muscle symptoms associated with lipid-lowering drugs If leg pain began after starting a new medicine, tell your doctor rather than stopping it on your own.
To stop a cramp in the moment, pull your toes up toward your shin to stretch the calf. You can also stand and press your heel to the floor, or massage the hard knot of muscle. Warmth afterward can ease lingering soreness.
To make cramps less frequent, gently stretch your calves and hamstrings before bed and keep sheets loose so your toes aren’t pointed all night. Drink enough during the day. Ask a doctor before taking supplements, since the evidence for them is mixed.
Nerve Pain and Restless Legs That Get Worse at Night
Nerves in the spine act like gates that let pain signals reach the brain or hold them back.9Mass General Brigham. Why Is Neuropathy Worse at Night? Lying still in bed may open those gates to stronger signals from damaged nerves.9Mass General Brigham. Why Is Neuropathy Worse at Night? During the day your body also makes more natural pain-dampening chemicals, and less at night.9Mass General Brigham. Why Is Neuropathy Worse at Night? In a quiet dark room your brain has less else to attend to, so signals from your feet get more of its attention.10Diabetic Nerve Clinic. Why Diabetic Neuropathy Pain Is Worse at Night And What Helps In bed, the same signal can feel stronger even though the nerve damage hasn’t changed.
Pain from nerve damage often burns, tingles, or feels like electric shocks. It is common with diabetes and usually starts in the feet. It usually affects both feet, so pain in one leg only makes a back nerve or another one-sided cause more likely. A doctor can check the feeling in your feet.
Restless legs syndrome (RLS) causes an urge to move the legs that is worse at rest and worse in the evening and night.11PubMed Central. Why the worsening at rest and worsening at night criteria for Restless Legs Syndrome are listed separately: review of the circadian literature on RLS and suggestions for future directions It seems linked to daily swings in dopamine, a brain chemical, which leaves daytimes fairly calm.11PubMed Central. Why the worsening at rest and worsening at night criteria for Restless Legs Syndrome are listed separately: review of the circadian literature on RLS and suggestions for future directions Poor vein drainage in the legs has also been tied to restless-leg symptoms at night.12Michigan Vascular Center. Leg Pain Causes, Symptoms & When to Seek Care
Restless legs feel more like crawling or pulling than pain. Moving or walking relieves it right away, and it arrives when you sit or lie still in the evening. Low iron is a known contributor and worth testing.
Blood Flow Problems That Need a Doctor
In peripheral artery disease (PAD), narrowed arteries reduce blood flow to the legs, and muscles ache from too little oxygen.12Michigan Vascular Center. Leg Pain Causes, Symptoms & When to Seek Care In its advanced stage, pain sits in the foot or toes and is felt mainly when lying down.13PubMed Central. Understanding the Pain Experience and Treatment Considerations Along the Spectrum of Peripheral Artery Disease: A Scientific Statement from the American Heart Association This pain can be severe and badly disturb sleep.13PubMed Central. Understanding the Pain Experience and Treatment Considerations Along the Spectrum of Peripheral Artery Disease: A Scientific Statement from the American Heart Association It marks a stage where the limb itself is at risk, so it needs prompt medical care.13PubMed Central. Understanding the Pain Experience and Treatment Considerations Along the Spectrum of Peripheral Artery Disease: A Scientific Statement from the American Heart Association
Several signs point to poor blood flow. The foot may feel cold or look pale, bluish, or shiny. You may find relief by hanging the leg over the bed. Calf pain when walking that stops with rest often came first. Smoking, diabetes, and heart disease raise the risk.
Hanging the leg helps because gravity helps push blood down into the foot through narrowed arteries. Lying flat removes that help, so the pain flares.
A clot in a leg vein behaves differently. It usually causes throbbing pain in the calf or thigh when walking or standing.14NHS inform. Deep vein thrombosis (DVT) symptoms and treatments The pain may worsen when you bend your foot up toward your knee, though this sign is not reliable on its own.14NHS inform. Deep vein thrombosis (DVT) symptoms and treatments Pain that appears only when lying down is less typical of a clot, but any new one-sided leg swelling needs same-day care.
Other signs of a clot include one calf or thigh that is swollen, warm, and red, and pain that is new and not explained by an injury. Recent surgery, a long journey, or immobility raise the risk. Sudden breathlessness with any of this is an emergency.
Sleeping Positions That Ease Leg Pain
Keeping the spine in its natural line while sleeping reduces muscle and joint pain.15PubMed Central. What type of mattress should be chosen to avoid back pain and improve sleep quality? Review of the literature The pelvis carries more pressure against the mattress than the chest does.15PubMed Central. What type of mattress should be chosen to avoid back pain and improve sleep quality? Review of the literature A mattress that spreads pressure evenly while keeping alignment suits hip and back pain best. A pillow supporting the leg can also make sleeping with leg pain more comfortable.16ACC English. Proper sleeping position – Relieve the pain But if the pain is in the foot and eases when the leg hangs down, don’t raise the leg; see a doctor about blood flow.
For back nerve pain, lying on your back with a pillow under your knees flattens the lower curve. On your side, bend your knees and lie on the pain-free side, with a pillow between the knees to keep the pelvis level. A recliner can help people with a narrowed canal.
Knees-bent positions that ease back nerve pain usually suit hip pain too, but lying on the sore hip does not. If a position makes pain worse within minutes, change it.
Some habits around bedtime help too. A short walk and gentle stretch loosen muscles, and heat on the lower back or hip can relax tight ones. Poor sleep itself makes pain sharper, so steady sleep times help. Keep a few nights of notes on position and pain to show your doctor.
When to See a Doctor
Night pain is one of several warning signs doctors look for in back pain, alongside weight loss, fever, and past cancer.17PubMed. The diagnostic value of Red Flags in thoracolumbar pain: a systematic review One warning sign alone rarely means something serious.17PubMed. The diagnostic value of Red Flags in thoracolumbar pain: a systematic review Several together make a serious cause more likely and deserve prompt review.17PubMed. The diagnostic value of Red Flags in thoracolumbar pain: a systematic review
Losing sleep for a full night also makes the body more sensitive to pain.18PubMed Central. Total sleep deprivation increases pain sensitivity, impairs conditioned pain modulation and facilitates temporal summation of pain in healthy participants See a doctor if leg pain at night lasts weeks or keeps waking you.
Go to urgent care or the emergency department if:
- leg weakness or foot drop appears
- you lose bladder or bowel control
- the groin or inner thighs feel numb
- the foot is cold, pale, and painful at rest
- the calf is swollen and hot, especially with breathlessness
At the visit, the doctor will ask where the pain sits and what position eases it. They will check reflexes, strength, and feeling in the leg, feel the pulses in your foot, and may compare blood pressure at the ankle and arm. Imaging is ordered only if nerve signs or red flags are present.

