The pain is manageable during the day. Then you lie down, and every position seems to find the sore spot. You turn, readjust, shove a pillow somewhere, and finally drift off, only to wake at 3 a.m. stiff and aching, dreading the first move out of bed.

The best sleeping position for lower back pain is the one that keeps your spine in a fairly straight, neutral line, and pillows do most of that work. On your side, put a pillow between your knees. On your back, put one under your knees. If you sleep on your stomach, a thin pillow under your hips can reduce the arch. Below you’ll find each setup step by step, how to get out of bed without a jolt, and a short wind-down routine.

Why lying down can hurt

Over several hours, small strains add up. Your hips can sink into a soft mattress and pull your lower back into a curve. Stomach sleeping arches your spine. Sleeping on one side with your top leg dropped forward twists your pelvis. None of these hurt much for a minute, but over a night they can leave you stiff and sore.

The goal is simple: keep your ears, shoulders, and hips roughly lined up, the way they are when you stand tall.

Positions that take strain off your back

MedlinePlus suggests two positions for acute low back pain: curling up on your side with a pillow between your legs, or lying on your back with a pillow under your knees. Here’s how to set up each one, plus a fix for stomach sleepers.

Your usual position Setup What it does
On your side Bend your knees slightly toward your chest and put a firm pillow between your knees. Use a head pillow that keeps your neck level. Keeps your top leg from pulling your pelvis and lower back into a twist
On your back Put a pillow under your knees. A small rolled towel under your lower back can add support. Lets your lower back relax into a gentle, natural curve
On your stomach Put a thin pillow under your hips and lower belly. Use a flat head pillow, or none. Reduces the arch in your lower back
Reclined Some people sleep better propped up, for example in an adjustable bed or with a wedge Can ease certain kinds of back pain

If you’re a side sleeper, try switching sides through the night rather than staying on the sore side for hours.

A bed with a white comforter and a deer head mounted on the wall
Photo by Ahya Agawis on Unsplash

How to get out of bed without a jolt

The first move of the morning is often the worst. This “log roll,” commonly taught by physical therapists, avoids twisting your back:

  1. Bend your knees while lying on your back.
  2. Roll onto your side as one unit, shoulders and hips together.
  3. Let your legs slide off the edge of the bed.
  4. At the same time, push yourself up with your arms until you are sitting.
  5. Sit for a few breaths, then stand by pushing through your legs.

Reverse the steps to lie down at night.

Does your mattress matter?

It can, but there is no single best mattress for everyone. A surface that supports your body without letting your hips sink far is a reasonable goal. Before you spend money, try these first:

  • Too soft? Put the mattress on the floor for a night or two, or add a firm board underneath, to see whether firmer support helps.
  • Too hard? A mattress topper can soften pressure points on your shoulders and hips.
  • Old and sagging? A visible dip where you sleep can keep your spine bent all night.

A 10-minute wind-down for a sore back

Try this most evenings for a week:

Minutes Do this
0–5 A short, slow walk around your home to loosen up
5–8 Warmth on your lower back, such as a warm shower or heating pad on low (never fall asleep on a heating pad)
8–10 Two gentle stretches lying on your back: knee to chest and pelvic tilt, from our sciatica home-care guide

Then set up your pillows before you get comfortable. It is much harder to rearrange them in the dark.

Sleep and pain feed each other

Poor sleep can make pain feel worse the next day, and pain makes it harder to sleep. The National Heart, Lung, and Blood Institute recommends 7 to 9 hours of sleep a night for adults. Keeping a regular bedtime and wake-up time, even on weekends, can help you get there while your back recovers.

Night pain that needs a doctor

Most nighttime back pain comes from the same strains as daytime pain. But see a doctor if back pain:

  • Wakes you up most nights and doesn’t ease with any position
  • Comes with fever, chills, or weight loss you can’t explain
  • Comes with numbness, tingling, or weakness in your legs
  • Lasts more than a few weeks or keeps getting worse

And get care right away for back pain with new bladder or bowel problems.

Tonight’s setup

Before bed tonight, put one pillow between or under your knees, depending on how you sleep, and keep a second within reach. Tomorrow morning, use the log roll to get up. Give the new setup three or four nights before you judge it, since your body needs a little time to settle in.

If you’re not sure what’s behind your pain in the first place, our guide on what causes lower back pain helps you tell a strained muscle from a disc problem.