Sleeping with your legs elevated means positioning them 6 to 12 inches above heart level, typically using a wedge pillow or stacked pillows beneath your lower legs. This simple change uses gravity to help blood and fluid drain back toward your heart instead of pooling in your feet and ankles overnight. Getting the setup right matters, though, because the wrong positioning can leave you uncomfortable, sliding down the bed, or waking up with new aches.
Why Elevation Works
When you stand or sit during the day, gravity pulls blood and fluid downward into your legs. Veins have to work against that force to push blood back up to your heart. By the end of the day, this one-way battle can leave your ankles swollen, your legs heavy, and your veins under extra pressure.
Raising your legs above heart level flips the equation. Gravity now assists blood flow back toward your chest, increasing the volume of blood returning to your heart and reducing pressure in the veins of your lower legs. Fluid that has accumulated in the tissues around your ankles and calves drains more effectively. This is why elevation helps with everything from general end-of-day swelling to varicose veins, recovery after surgery, and pregnancy-related puffiness.
How High to Elevate
The target is getting your knees slightly above the level of your heart while lying flat. For most people, that means an elevation of 6 to 12 inches at the highest point. If you’re dealing with noticeable swelling or circulation problems, aim closer to 12 inches. For general comfort or mild lower back relief, 6 to 8 inches is usually enough.
More isn’t always better. Going too high can strain your hip flexors, pull on your lower back, or make it nearly impossible to fall asleep. The elevation should feel like a gentle incline, not like your legs are propped straight up against a wall.
Best Ways to Position Your Legs
A foam wedge pillow is the most stable option for sleeping. These are designed with a gradual slope that supports your legs from mid-thigh to ankle, and they don’t shift around the way regular pillows do. Look for one that matches the height range you need. Place it so your calves and ankles rest on the thickest part, with the slope running down toward your knees and thighs.
If you don’t have a wedge, you can stack two or three firm bed pillows under your lower legs. The key is building a gradual ramp rather than just shoving a pillow under your ankles, which creates a gap under your knees and can cause discomfort. You want continuous support from your knees down to your heels.
One important detail if you’re recovering from hip or knee surgery: place the pillow under your ankle and calf rather than directly under the knee. A pillow jammed behind the knee can limit your range of motion over time and encourage stiffness in the joint.
Back Sleepers
This position works best for leg elevation because your spine stays relatively neutral. Place the wedge or pillow stack under both legs, and add a small pillow under the natural curve of your lower back if needed. A pillow under your knees alone (without full leg elevation) can also help relax your back muscles and maintain your lumbar curve, which is useful if back pain is your main concern rather than swelling.
Side Sleepers
Sleeping on your side with elevated legs takes more creativity. Place a wedge or firm pillow between and slightly under your knees and lower legs so both legs stay supported and your hips stay aligned. A pillow between the knees prevents your top leg from rolling forward and twisting your pelvis. This position is especially recommended during pregnancy. Sleeping on your left side takes pressure off the large vein (the inferior vena cava) that returns blood from your lower body to your heart, and even a slight elevation with pillows adds extra benefit.
Stomach Sleepers
This is the hardest position to combine with leg elevation. Propping your feet up while face-down hyperextends your lower back and puts pressure on your knees. If you can’t sleep any other way, a thin pillow under your ankles and shins offers a very modest elevation without forcing your spine into an uncomfortable arch, but you won’t achieve true above-heart-level positioning.
How Long and How Often
For overnight sleeping, keeping your legs elevated the entire night provides the most benefit for chronic swelling, varicose veins, or post-surgical recovery. Your body has 7 to 8 hours of uninterrupted drainage time, and many people notice that morning ankle swelling is significantly reduced after a few nights of consistent elevation.
You don’t have to commit to all night, though. Even elevating your legs for 15 to 20 minutes several times a day makes a measurable difference. Stanford Health Care recommends elevating your feet above heart level three or four times daily for about 15 minutes each session to manage varicose vein symptoms. If overnight elevation disrupts your sleep quality, shorter daytime sessions may be more practical.
Balance elevation with gentle movement throughout the day. Staying in any single position for too long, even an elevated one, can contribute to stiffness. Periodic elevation paired with light walking gives you the best of both worlds: reduced venous pressure during rest and active muscle pumping during movement.
Conditions That Benefit Most
Leg elevation during sleep is commonly recommended for several specific situations:
- Edema and general swelling. Fluid retention in the legs from long days on your feet, heat, or high salt intake responds well to elevation. Higher elevations (closer to 12 inches) tend to be more effective for significant swelling.
- Varicose veins. These develop when blood pools in superficial veins, making them swollen and twisted. Elevation lowers the pressure inside these veins, which can ease aching, heaviness, and visible swelling.
- Deep vein thrombosis recovery. After a blood clot in a leg vein, elevation can help reduce the swelling and pain that often linger during treatment.
- Post-surgical recovery. After knee or hip replacement, elevation throughout the day (not just at night) helps control swelling. Alternate between elevation and gentle prescribed exercises.
- Pregnancy. Swollen ankles are common in the second and third trimesters. Lying down with legs slightly raised, particularly on the left side, helps fluid drain and eases the extra circulatory load of pregnancy.
- Lower back pain. Even modest elevation with a pillow under the knees relaxes the muscles along the spine and maintains the natural lumbar curve, reducing pressure on the lower back.
When Elevation Can Cause Problems
Leg elevation isn’t safe for everyone. People with peripheral artery disease (PAD), a condition where narrowed arteries reduce blood flow to the legs, can experience increased pain when their legs are raised. In PAD, gravity actually helps push blood down into the feet. Removing that assistance by elevating the legs reduces blood flow to already starved tissues, causing aching or burning in the toes and forefoot. If you notice pain in your feet that gets worse when they’re elevated and improves when you dangle them off the bed or stand up, that’s a red flag worth discussing with your doctor.
People with certain heart conditions should also be cautious. Elevation shifts blood volume toward the chest and heart. For a healthy heart, this is fine. For a heart that’s already struggling to handle its workload, the sudden increase in returning blood can worsen symptoms.
Tips for Sleeping Comfortably
The biggest complaint about sleeping with elevated legs is that it feels unnatural at first. A few adjustments make the transition easier. Start with a lower elevation (around 6 inches) for the first few nights and gradually increase if you need more. This gives your body time to adapt without disrupting your sleep.
Keep your pillow setup stable. Loose pillows slide apart during the night, and you wake up with one leg elevated and the other flat, or with everything on the floor. A foam wedge solves this, but if you’re using regular pillows, placing them inside a pillowcase together or tucking them tightly under your fitted sheet can help. Some people place a thin blanket over the wedge for comfort, since bare foam can feel warm against skin.
If you find yourself sliding down the bed because of the incline, try placing a small pillow or rolled towel at the foot of your sleeping surface to give your body something to rest against. Wearing grippy socks or using a mattress pad with some texture can also help you stay in place. It typically takes three to five nights before sleeping elevated starts to feel normal, so give yourself that adjustment window before deciding it doesn’t work for you.

