Sleep

Stretches to do before bed for a stiff, achy back

By Gabi Moreno · 19 October 2026

It is late, you finally lie down, and your back starts complaining. So you grab your phone and search for back pain stretches in bed, hoping there is something you can do without getting up again. There is, and it takes about 5 minutes.

This guide gives you 2 short routines. One you can do lying on the mattress, and one on the floor for nights when you have a bit more energy. Neither one makes anything go away for good, and that is worth saying out loud. What they do is take the edge off the stiffness that builds up after a day of sitting, and give your body a signal that the day is over.

Hold the gentle version of every move. Before bed is not the moment to chase a deep stretch. It is the moment to slow your breathing down and let your back stop bracing.

Why stretching before bed helps

Your back does not ache at night because you sat 'wrong' during the day. Some people slouch all day and feel nothing, others sit very upright and still hurt. What backs do not like is staying in 1 position for hours, and that is exactly what a workday and then a night in bed add up to.

A few minutes of slow movement before you lie down does 2 useful things. It moves the joints and muscles through ranges they have not visited since the morning, which is why you feel less stiff afterwards. And it slows your breathing, which makes it easier to actually fall asleep instead of lying there noticing every ache.

The goal is mild. If a stretch makes you grit your teeth, you have gone past the point where it helps you sleep.

Back pain stretches in bed

You can do all 4 of these lying on your mattress, lights almost off. A firm mattress works better than a very soft one, but do them anyway. Done slowly, this takes about 5 minutes.

  1. Single knee hug. Lie on your back. Pull 1 knee towards your chest with both hands and hold for 20 to 30 seconds. Let the other leg rest flat or bent, whichever feels easier. Switch sides.
  2. Both knees hug. Now pull both knees in at once. Hold 20 to 30 seconds. You can rock gently side to side if that feels good.
  3. Knee rocks. Keep both knees bent, feet on the mattress. Let both knees fall slowly to 1 side while your shoulders stay down. Hold 20 seconds, come back through the middle, go to the other side.
  4. Pelvic tilts. Knees still bent. Flatten your lower back into the mattress as you breathe out, then let it relax as you breathe in. Do 10 slow ones. The movement is small on purpose.

If 1 of these feels clearly worse than the others, skip it tonight. The routine works with 3 moves just as well as with 4.

Back pain stretches before bed, on the floor

On nights when you are not already horizontal, the floor gives you a bit more room to move. These 3 pair well with the in-bed ones, or replace them.

  1. Cat-cow. On hands and knees. Round your back up towards the ceiling as you breathe out, then let your belly drop as you breathe in. Do 8 to 10 slow rounds. This is the 1 move that covers the most ground in the least time.
  2. Child's pose. From hands and knees, sit your hips back towards your heels and stretch your arms forward. Rest your forehead down if it reaches. Stay 30 seconds to a minute, breathing into your lower back.
  3. Hip flexor kneel. Kneel on 1 knee like a proposal, the other foot flat in front. Shift your weight gently forward until you feel a pull at the front of the back hip. Hold 20 to 30 seconds per side. If you sat all day, the front of your hips has been shortened for hours, and this is where you feel it.

No bouncing on any of these. Ease in, hold, breathe, ease out.

How long, how hard, how often

The honest answer on intensity: gentler than you think. A stretch before bed should feel like a mild pull you could hold while having a conversation, never like pain.

And manage your expectations. Most people feel looser right after and sleep a bit easier that night. The bigger change, waking up less stiff in general, shows up after a couple of weeks of doing it most nights, not after 1.

After the stretches: getting comfortable to sleep

A lot of searches for a back pain sleeping exercise are really asking a simpler question: how do I lie down so it bothers me less? There is no single right position, only positions that load your back less for you. Test these for a few nights each.

If you wake up stiff no matter what, repeat the knee hugs and knee rocks before getting out of bed. 1 minute or 2 of movement before you stand makes the first steps of the morning easier.

When this is not for you and it is time to see a healthcare professional. These stretches are for the ordinary ache of a stiff back, not for everything. See a healthcare professional if the pain wakes you up or keeps you from sleeping night after night, if it runs down a leg or an arm, if you notice tingling, numbness or loss of strength, if it started after a blow or a fall, or if you have done gentle movement for a few weeks and nothing has changed.

What to do with what you have read

Do not try to memorise all 7 moves tonight. Pick the 4 in-bed ones, do them once, and see how you sleep. That is the whole experiment.

The stretches are not magic and they are not supposed to be. They are a way of giving your back some movement at the end of a day that gave it almost none, and that is the part that actually helps.

If you would rather move than read

5 minutes a day for your back

BackPain gives you 5 minutes of gentle exercises a day, chosen by where it bothers you and what you are after. At home, no equipment, guided one at a time. If there are exercises you like more, build your own routines with them: the best exercise is the one you will actually do.

Download on the App Store Get it on Google Play

7-day free trial · Cancel anytime

Quick questions

back pain stretches in bed

The 4 that work lying down are single knee hugs, both knees hugged together, knee rocks from side to side, and slow pelvic tilts. Hold each stretch 20 to 30 seconds and keep everything gentle. The whole routine takes about 5 minutes and you never have to leave the mattress.

back pain stretches before bed

On the floor, cat-cow, child's pose and a kneeling hip flexor stretch cover the most ground in a few minutes. Do them slowly, breathing out as you move into each position. They pair well with the in-bed stretches or can replace them on nights you have more energy.

is it bad to stretch right before sleeping

No, as long as it is gentle. Slow stretching with calm breathing tends to make falling asleep easier, not harder. What can keep you awake is intense exercise close to bedtime, so save anything that raises your heart rate for earlier in the day.

how long should I stretch before bed

About 5 minutes is enough if you do it most nights. Hold each stretch 20 to 30 seconds at a mild pull, never at pain. Consistency matters far more than length, so a short routine you actually repeat beats a long one you abandon.

what is the best sleeping position for back pain

There is no single best one, only what loads your back less for you. On your side, a pillow between your knees usually helps, and on your back, a pillow under your knees. Try each for a few nights and judge by how you feel in the morning.

why does my back hurt more at night

Often it is the accumulation of a day spent in 1 position, usually sitting, followed by more hours of stillness in bed. Stiffness builds when you stop moving, which is why gentle stretches before sleep and a minute of knee hugs before getting up can take the edge off. If night pain regularly wakes you up, that is a sign to see a healthcare professional rather than stretch through it.

BackPain is a wellness app, not a medical device. This guide is general information and is no substitute for a healthcare professional. It does not diagnose, treat, cure or prevent any condition. If your pain persists, see a healthcare professional.