Key points

  • There is no single best sleeping position, but there is a single principle: keep the spine in a comfortable neutral line and fill the gaps that let it sag or twist.
  • Back sleepers do best with a pillow under the knees and a thin pillow under the head; side sleepers need a pillow between the knees and a thicker one under the neck.
  • Front sleeping is the least kind position for both the neck and the low back; if you cannot give it up, a pillow under the hips and no head pillow reduces the strain.
  • Pain and sleep run in a loop: pain fragments sleep, and short broken sleep lowers your pain threshold the next day, so fixing the bed is worth real effort.
  • Back or neck pain that is worse at night, wakes you from sleep, does not ease when you change position, or comes with fever or unexplained weight loss needs assessment.

You cannot control your posture while you are asleep. You can control the shape of the bed you fall asleep in, and that distinction does most of the work here.

Advice on this topic usually stops at “sleep on your side,” which is roughly a fifth of the useful information. What decides whether you wake up comfortable is the detail: what goes under your knees, how high the pillow sits, whether the top leg is supported, and how you get out of bed in the morning. This guide covers those details position by position, then the pillow and mattress questions everyone asks, and finally the small number of night-time symptoms that mean something else is going on.

Why sleep position matters more than daytime posture

Sleep position matters because it is the only posture you hold for hours at a stretch without noticing what it is doing to you.

Awake, you fidget constantly. You shift in a chair every few minutes, cross and uncross your legs, stand up to reach something. Those small adjustments are the main reason ordinary sitting does not wreck your back. Asleep, that feedback loop is switched off. You still turn over several times a night, but you hold each position far longer than you would ever tolerate awake, and nothing wakes you to say a joint has been at end of range for ninety minutes.

Over seven to nine hours, the recommended sleep window for adults, that adds up to a meaningful dose of load in a small number of postures.

The loop between pain and sleep

Pain and sleep make each other worse, and the traffic runs in both directions.

Pain fragments sleep in the obvious way: it wakes you when you turn, and it makes falling back asleep slower. The less obvious half is that short, broken sleep lowers your pain threshold the following day. Poorly slept nervous systems report the same physical stimulus as more painful. This is a well-documented two-way relationship, and it is why a run of bad nights so often turns a manageable back into a miserable one without anything new happening to the spine itself.

The practical consequence is encouraging. Improving how you lie is not only about the eight hours. It changes how sensitive you are to everything else the next day, which is a much bigger return than a pillow usually promises.

A better night does not just mean fewer hours of pain. It means a nervous system that is less easily provoked by everything else you do tomorrow.

The principle behind every good position

Every recommendation below comes from one idea: keep the spine in a comfortable neutral line, and fill the gaps that would otherwise let it sag or twist.

Neutral does not mean flat or rigid. It means your head sits in line with your ribcage rather than propped forward or dropped sideways, your pelvis is not rotated relative to your shoulders, and your low back is neither flattened hard against the mattress nor arched away from it.

Gaps are where this goes wrong. Lie on your side and there is a gap under your waist and a space where the top knee wants to fall forward. Lie on your back and there is a hollow under the lumbar curve and a pull from the hip flexors when the legs are straight. Pillows are simply gap-fillers. Once you see them that way, where they go stops being a matter of guesswork.

Sleeping on your back

Back sleeping is a good option for most spinal pain, provided you put a pillow under your knees. Without one, it is a mediocre position; with one, it is often the most comfortable available.

Put a pillow under your knees

Lying flat with the legs straight pulls on the hip flexors, tips the pelvis forward and increases the arch in the low back. For a back that is already irritable, holding that mild extension for hours is a common reason people wake stiff and sore.

A pillow under the knees breaks the chain. Bending the knees slightly lets the pelvis roll back, flattens the excessive arch, and lets the lumbar muscles switch off. A standard pillow suits most people. If your back likes more, try a firmer bolster or two pillows; if the arch already feels comfortable, a folded towel may be enough.

Aim for a gentle bend, not a steep one. Knees propped so high that the hips are at a right angle can leave the low back rounded and the position hard to hold.

Use a thin pillow under your head

On your back, the gap between the mattress and the back of your head is small, so the pillow should be too. A thin or medium pillow that supports the curve of the neck without pushing the chin towards the chest is what you want.

This is where most back sleepers go wrong. Two stacked pillows raise the head enough to hold the neck in mild flexion all night, which produces exactly the morning neck ache people then blame on the mattress. If you have ever woken with a stiff neck after a night that felt comfortable when you got in, look at pillow height first.

TIP

A quick check for back sleepers: lie down as you normally would and have someone look at you from the side. Your chin should sit roughly level with your forehead, not tipped down towards your chest or tilted back.

A note for snorers and reflux

Flat back sleeping is not ideal for everyone. If you snore heavily, have known sleep apnoea, or get reflux at night, back lying can make those worse regardless of what it does for your spine. Side lying, or raising the whole head end of the bed slightly rather than stacking pillows, tends to be the better compromise.

Sleeping on your side

Side lying is the most popular position and works well for back and neck pain, but only when the top leg and the head are properly supported. Unsupported side lying is one of the most common causes of a rotated, aching low back by morning.

A pillow between the knees is not optional

This is the single highest-value change most side sleepers can make.

Without a pillow, the top leg slides forward and down. The knee lands on the mattress in front of the bottom leg, which drags the top half of the pelvis forward while your shoulders stay put. The result is a sustained twist through the lumbar spine and a pull across the sacroiliac joints, held for hours.

A pillow between the knees keeps the top thigh roughly parallel to the mattress and the pelvis stacked. Height matters more than softness: the pillow should be thick enough that the top knee sits level with the hip rather than dropping below it. For most adults that means a full pillow rather than a small cushion. Running it down between the ankles as well as the knees stops the lower legs twisting, which some people find makes the difference.

Support the top arm and upper body

The same problem happens at the top of the body. Let the upper arm fall forward and the shoulders rotate, twisting the thoracic spine and dragging on the neck.

Hugging a second pillow, or resting the top arm on a bolster in front of you, keeps the shoulders stacked. It also stops the upper arm from resting on the ribcage in a way that compresses the shoulder. People with neck pain that radiates towards the shoulder blade often notice this one more than the knee pillow.

Pillow height for a side sleeper

Side sleepers need a taller pillow than back sleepers, because the gap between the head and the mattress is now as wide as your shoulder.

The pillow should fill that gap so that your nose lines up with the middle of your chest and your head is neither propped up towards the ceiling nor drooping down towards the mattress. Broad-shouldered people need noticeably more height than smaller-framed ones, which is why a pillow that suits one person in a bed can be wrong for the other.

Two habits worth avoiding

Curling the top arm under the pillow and beneath your head raises the head unpredictably and can compress the nerves in the arm, which is a frequent cause of a hand that is numb on waking. Sleeping with the bottom shoulder pulled under the chest, meanwhile, jams the shoulder joint and rounds the upper back. Bringing the bottom shoulder slightly forward so you rest just behind it usually solves both.

The foetal position, and when it earns its reputation

Curling onto your side with the knees drawn up towards the chest often gives real relief in spinal stenosis and in some disc-related pain, because both tend to feel better with the spine in flexion.

The reason is anatomical. Bending the lumbar spine forward slightly increases the space in the spinal canal and in the small openings where the nerve roots exit. This is the same mechanism behind the classic stenosis story of walking better when leaning on a shopping trolley, which our guide to spinal stenosis and walking pain explains in more detail. If leaning forward eases your symptoms in the day, a mildly curled side position often eases them at night.

Two qualifications keep this useful rather than dogmatic. Curl gently rather than tightly, since a hard tuck holds the low back at full flexion for hours and can leave it stiff. And keep the pillow between your knees, because the foetal position rotates the pelvis just as readily as any other side position.

Not everyone with disc pain prefers flexion. Some people with a herniated disc feel markedly better lying flatter, and a smaller group are most comfortable slightly extended. Your own response over a few nights is better evidence than any general rule.

Sleeping on your front

Front sleeping is the least kind position for both the neck and the low back, and if you can change it, it is worth the effort.

Two things happen at once. To breathe, your head has to stay rotated close to the limit of its range, to one side, for hours at a time. No one would hold that position awake for ten minutes. Meanwhile the abdomen sinks into the mattress, which drops the pelvis forward and holds the lumbar spine in extension all night. People who wake with a one-sided neck ache and a sore low back are very often front sleepers.

If you genuinely cannot give it up

Some people simply do not fall asleep any other way, and lying awake for two hours in a “correct” position is worse for pain than sleeping soundly in an imperfect one. Two adjustments take most of the strain out of it:

  • Put a thin pillow under your hips and lower abdomen. This lifts the pelvis and takes the arch out of the low back. It is the single most useful change a front sleeper can make.
  • Sleep without a head pillow, or with a very thin one. Because your head is already turned, adding height twists and tilts the neck at the same time.

Alternating which way you turn your head, rather than always facing the same side, also spreads the load. And if you want to move away from the habit, the usual route is to start on your side hugging a large body pillow, which gives the front of your body something to rest against and satisfies most of what front sleeping provides.

Choosing a position for your particular problem

The general principles cover most people, but a few conditions have clear preferences worth knowing about.

Side lying on the pain-free side with a pillow between the knees is the usual starting point, since it avoids compressing the painful side and keeps the pelvis level. Back lying with a pillow under the knees works well for many too.

If leg pain flares in one particular position, that is information rather than bad luck. Our overview of what sciatica is and why the leg hurts explains why position changes symptoms so predictably when a nerve root is irritated.

Spinal stenosis

Flexion is your friend here. A gently curled side position, or back lying with a generous pillow or two under the knees, tends to be more comfortable than lying flat. Sleeping face down is usually the worst option in stenosis, because it puts the spine into the extended position that narrows the canal.

Neck pain, with or without arm symptoms

Get the pillow height right first, since it does more than the position does. Back or side lying both work. Front sleeping is the one to break.

If your symptoms travel into the arm or hand, a small pillow or folded towel supporting the forearm on your side, or resting the arm on a pillow when on your back, sometimes reduces the overnight nerve irritation. If screen habits are driving the daytime part of the problem, our guide to text neck and screen posture covers the other sixteen hours of the day.

Sacroiliac joint pain

The priority is preventing the pelvis from twisting, so a firm pillow between the knees is essential rather than optional. Many people with SI joint pain also find back lying with the knees supported more comfortable than any side position, because it loads both sides symmetrically. If one side is consistently the problem, lying on the unaffected side is the usual choice.

Pregnancy

Left side lying with a pillow between the knees and one supporting the bump is the standard recommendation in later pregnancy, for reasons that go beyond the spine. Back lying becomes uncomfortable and is generally advised against in the third trimester. The wider picture is covered in our guide to back pain in pregnancy.

After spine surgery

Follow your surgeon’s instructions rather than general advice. Position guidance after spinal surgery is specific to the procedure, the level operated on and whether anything was fused or implanted, and it changes as you progress through recovery. If nobody has given you clear instructions about sleeping and getting in and out of bed, ask before you improvise.

Getting your pillow height right

A pillow’s only job is to fill the gap between your head and the mattress so the neck stays in line with the rest of the spine. Everything else about it, the material, the price, the marketing, is secondary to whether it is the right height for how you sleep.

That framing makes the answer straightforward:

  • Side sleeping needs the most height, roughly the width of your shoulder, so the head stays level rather than dropping towards the mattress.
  • Back sleeping needs noticeably less, enough to support the curve of the neck without pushing the head forward.
  • Front sleeping needs almost none.

The classic mistake is too much, not too little

Stacking pillows is the most common pillow error by a wide margin, and it is usually well-intentioned. People with neck pain prop themselves higher, feel momentarily supported, and then hold their neck flexed for seven hours.

The tell is waking with a stiff, achy neck that loosens within the first hour of being up. If that is your pattern, take a pillow away before you buy anything.

NOTE

One pillow of the right height beats two of the wrong height, every time. If you use two because one feels too thin, the honest answer is that you need a different single pillow, not another one on top.

A simple way to test it

Lie down in your normal position and ask someone to look at you from behind and from the side. On your side, your nose should be in line with the center of your chest and your head should look level, not tilted up or hanging down. On your back, the chin should be roughly level with the forehead.

If nobody is available, a phone photo taken from behind you does the same job. It is a more reliable guide than how the pillow feels in the first thirty seconds, which is mostly a judgment of softness rather than alignment.

On pillow types

Memory foam, latex, feather, contoured and cooling pillows all have people who swear by them, and there is no strong evidence that any material outperforms the others for neck pain. What differs is how well each holds its height through the night. A soft feather pillow that compresses to nothing by 2am is functionally a different pillow at 2am than it was at 11pm, which is worth knowing if you wake sore in the second half of the night.

What about your mattress?

Medium-firm suits most people with back pain better than the firmest available option, and the age of the mattress often matters more than the model.

”The firmer the better” is a myth

The advice to sleep on a board, or on the hardest mattress you can find, persisted for decades and has not held up. A very firm surface does not let the shoulder and hip sink in when you lie on your side, so it pushes the spine into a curve and concentrates pressure on those two points. The opposite extreme is no better: a mattress that is too soft lets the heaviest part of you, the pelvis, sink and the spine sag.

Medium-firm sits between the two and is where most comparative research points. It is a starting point rather than a prescription, and heavier and lighter people reasonably land on different sides of it.

Age tells you more than the brand

A mattress that has developed a visible dip where you lie, or one that is somewhere past its first decade, is likely working against you regardless of what it cost when new. Sag is the thing to look for, because it produces exactly the sinking middle that a soft mattress does, and it does so gradually enough that you may not have noticed the change.

We do not recommend specific products, and you should be sceptical of anyone in healthcare who does. There is no orthopedic mattress category with a meaningful clinical definition behind it.

Two cheap tests before you spend

A mattress topper is the sensible experiment if you suspect your bed is too firm. It costs a fraction of a new mattress and answers the question within a couple of weeks. If your back is reliably better on holiday, in a hotel or in a spare room, that is a genuine clue rather than a coincidence.

Whatever you change to, give it two to four weeks before judging. A different support surface usually feels odd at first even when it is the right one, and the first three nights are the least reliable data you will get.

Getting in and out of bed without a flare

Plenty of morning flare-ups do not come from how you slept. They come from the ten seconds of sitting straight up and twisting your legs over the side.

The alternative is the log roll, which keeps the shoulders and hips moving together instead of twisting against each other:

  1. Bend both knees so your feet are flat on the mattress.
  2. Roll onto your side as one unit, shoulders and hips turning together, as though your trunk were a single piece. Keep your nose in line with your chest.
  3. Let your lower legs slide off the edge of the bed as you push up sideways with your top hand and lower elbow.
  4. Come to sitting using your arms, letting the weight of your legs going down help your upper body come up. Pause for a moment before you stand.

Reverse the sequence to get in. It feels laborious for about three days and then becomes automatic. It is standard advice after spinal surgery, and it is just as useful during an ordinary acute flare, when the first movement of the day is often the one that sets the tone for it. The same trunk-control principle applies to everything else you do in the day, which is the subject of our guide to safe lifting technique.

What to do when you wake in pain at 3am

Do not lie still and wait it out. Stiffness from being in one position responds to movement, and lying rigid while the pain builds is the least effective option available.

A sequence that works for most people:

  • Change position deliberately. Roll onto the other side, or onto your back with the knees supported, using the log roll rather than a sharp twist.
  • Move gently in bed for a minute or two. Slow knee rolls side to side, or bringing one knee at a time towards the chest, often unlock a back that has seized.
  • If it has not settled in fifteen or twenty minutes, get up. Walk to the kitchen, stand for a moment, use a warm pack if you have one to hand. Then go back to bed.
  • Keep the lights low and stay off screens. Bright light and a phone at 3am will cost you the rest of the night even after the pain settles.

The one thing worth resisting is lying awake in bed for an hour hoping. It teaches your brain to associate the bed with being awake and in pain, which makes future nights harder. Getting up briefly and returning is the better habit.

TIP

Keep whatever helps within reach before you go to sleep: a spare pillow, a warm pack, water, any medication you have been prescribed for the night. Hunting through a dark house at 3am wakes you up far more thoroughly than the pain did.

Sleep habits that lower how much things hurt

Because poor sleep raises pain sensitivity, ordinary sleep hygiene is a genuine part of pain management rather than a bolt-on.

The measures with the best return are unglamorous:

  • Keep a consistent wake time, including at weekends. Anchoring the morning does more for sleep quality than anchoring the bedtime.
  • Get daylight early. Light in the first hour or two after waking is the strongest signal your body clock receives.
  • Stop caffeine by early afternoon. It has a long tail, and many people who believe it does not affect them are simply used to sleeping badly.
  • Be honest about alcohol. It gets you to sleep faster and reliably wrecks the second half of the night, which is when back pain tends to wake people.
  • Keep the room cool and dark, and keep the phone out of the bedroom.
  • Do not chase sleep. If you are awake and frustrated after twenty minutes, get up, do something dull in low light, and return when you feel sleepy.

None of this replaces getting the position and the pillow right. It compounds with it, which is why people who fix both usually notice a bigger change than either one predicted.

When night pain is a warning sign

Most back and neck pain is stiffest at night and in the early morning simply because you have been still, and it eases within the first half hour of moving. That pattern is reassuring, and it is covered in more detail in our guide to a stiff lower back every morning.

A different pattern is not reassuring, and it should not be managed with a new pillow.

WARNING

Seek medical assessment for back or neck pain that is genuinely worse at night, that wakes you from sleep, or that does not ease when you change position. Get seen promptly if night pain comes with fever or night sweats, unexplained weight loss, a history of cancer, or new numbness, weakness, or any change in bladder or bowel control.

The reason these matter is that mechanical pain, the ordinary kind caused by joints, discs and muscles, is load-dependent by definition. It should change when the load on the spine changes. Pain that ignores position entirely, or that is at its worst when you are least loaded, is behaving unlike a mechanical problem, and that is why clinicians take it seriously. The great majority of people with night pain turn out to have something ordinary. The point of assessment is to confirm that rather than assume it. Our guide on when to see a spine doctor sets out the wider list of reasons to get checked.

The practical bottom line

If you take only one thing from this, take the pillows. Under the knees on your back, between the knees on your side, and one pillow of the right height under your head rather than a stack of them. Those three changes cost nothing and fix most of what goes wrong overnight.

Everything else is refinement. Change one variable at a time, give each change a couple of weeks, and judge it by how you feel in the first hour after getting up rather than by how the bed felt when you got into it.

Sleep set-up alone will not resolve a back that hurts all day. It works alongside staying active and building strength, which is where guided spine physiotherapy and non-surgical, conservative care do the heavier lifting, supported by core work that protects the lower back. But a bed that stops actively provoking your spine for seven hours a night is a rare thing in back pain care: cheap, quick, and entirely within your control.

Common questions

What is the best sleeping position for lower back pain?

For most people it is side lying with a pillow between the knees, or lying on the back with a pillow under the knees. Both keep the lumbar spine close to neutral and stop the pelvis from rotating or the low back from arching. The best position is ultimately the one that lets you wake without a fresh ache, so use these as starting points rather than rules.

Should I put a pillow under my knees or between them?

Under the knees if you sleep on your back, between the knees if you sleep on your side. On your back, a pillow under the knees lets the pelvis tilt slightly and takes the arch out of the low back. On your side, a pillow between the knees stops the top leg dropping forward and twisting the pelvis and lumbar spine.

How many pillows should I sleep with for neck pain?

One, of the right height for your position. The pillow's job is to fill the gap between your head and the mattress so the neck stays level with the rest of the spine. Stacking two or three pillows props the head forward and holds the neck bent for hours, which is one of the most common causes of waking with neck pain.

Is a firm mattress better for back pain?

Not usually. The evidence points towards medium-firm suiting most people better than the firmest option available, which is a persistent myth. A mattress that is too hard leaves the hips and shoulders unsupported on your side, and one that is too soft lets the middle sag. The age and condition of the mattress often matters more than the model.

Is sleeping on your stomach bad for your back?

It is the hardest position on both ends of the spine. The neck has to stay rotated to one side for hours, and the low back is held in extension while the abdomen sinks into the mattress. If you cannot break the habit, place a thin pillow under your hips and lower abdomen and sleep without a head pillow, which reduces both problems.

Why is my back pain worse at night?

Ordinary mechanical back pain is often stiffest at night and first thing in the morning simply because you have been still for hours, and it eases once you move. Pain that is genuinely worse at night, wakes you from sleep, does not change when you shift position, or comes with fever, night sweats or unexplained weight loss is a different pattern and should be assessed.

Talk it through

Weighing a procedure? A short consultation turns this general guidance into a clear answer about your spine - bring your questions and your imaging.

This article is for education, not a diagnosis. For advice about your specific case, speak with a specialist.

Medically reviewed by

Dr. Osama Kashlan, MD, MPH

Fellowship-trained in endoscopic and minimally invasive spine surgery

Considering your options?

If surgery is on the table, make sure it's the right one. Start with a consultation - or an independent second opinion.