Pain and sleep are locked together. Pain makes it harder to fall asleep and harder to stay asleep, and poor sleep lowers pain tolerance and increases the perception of pain the next day. Each makes the other worse, which is why the cycle is so persistent.
The direction of the loop
Studies that restrict sleep in healthy people show increased pain sensitivity within a single night. That is a striking finding: the relationship is not only pain causing bad sleep, but bad sleep causing more pain.
This matters practically, because it means improving sleep is a pain intervention rather than just a comfort measure.
Position matters more than mattress marketing
For back pain, sleeping on the side with a pillow between the knees keeps the spine closer to neutral. For some people, lying on the back with a pillow under the knees is better. Neither is universally right, and the useful test is a week of each.
Pillow height should fill the gap between the head and the mattress so the neck stays roughly straight. A pillow that is too high or too flat strains the neck over hours.
Timing the pain relief
If you take pain relief, the timing matters. A dose that wears off at two in the morning produces a predictable waking, and discussing the timing with a clinician or pharmacist is often more useful than changing the drug.
Do not adjust medication without advice. The point is to ask the question, not to experiment alone.
The bed becomes the enemy
When pain makes sleep difficult, people spend more time in bed trying, which weakens the association between bed and sleep. The standard advice is the same as for any insomnia: use the bed for sleep, get up if you are awake and frustrated, and keep a fixed wake time.
Our guide to nap duration and timing covers how naps interact with night sleep, which is relevant if you are catching up during the day.
Movement, not rest
Long-term rest tends to worsen chronic pain. Gentle movement during the day, at a level that does not provoke a flare, supports both sleep and pain control. Walking, swimming, and gentle strength work are common starting points.
The dose is the hard part. Start below what you think you can do, and increase slowly enough that you can tell whether it helped.
What to expect
Sleep may improve before pain does, or the other way round. The changes are gradual and uneven, and judging them night by night is misleading. Look at weekly averages instead. A comfortable position matters more than the perfect mattress, and most people find theirs by trial. If discomfort is the main barrier to sleep, treat that first rather than accepting it as normal.
Sleep Foundation on pain and sleep covers the relationship between sleep and pain.
When to get help
Persistent pain that disrupts sleep for weeks is worth a medical review, both to check the cause and to access treatments that are more effective than over-the-counter options. Chronic pain services and CBT for insomnia are both worth asking about.
This is not a problem to solve alone with pillows and willpower.
Frequently asked questions
Does poor sleep make pain worse?
Yes. Sleep restriction increases pain sensitivity within a single night, which is why the cycle runs both ways.
What is the best sleeping position for back pain?
On the side with a pillow between the knees, or on the back with a pillow under the knees. Test each for a week.
Should I stay in bed if I am in pain?
No. Long-term rest tends to worsen chronic pain. Gentle daily movement supports both sleep and pain control.
When should I see a doctor about pain and sleep?
If pain disrupts sleep for weeks. Ask about chronic pain services and CBT for insomnia.
Read next
A Consistent Sleep Window Beats Perfect Sleep
Sleep improves when the schedule is boring. Pick a wake time you can keep, set the window around it, and stop negotiating with the alarm clock.