Muscle, joint & pain

Why Sleep Falls Apart After Surgery, and How to Get It Back

Save

Nobody warns you that the hardest part of the first two weeks after surgery might not be the incision itself but the nights — waking every time you roll over, unable to find a position that doesn't hurt, wired from medication or from simply not being able to move the way you're used to. This is what is actually happening, and what helps.

Last updated: July 2026

Talk to a clinician

Gale can help you find a clinician in your state and request a visit.

Find care →

Why does surgery wreck sleep so badly?

A handful of things compound at once. Pain itself is the biggest driver — surgical pain tends to be worst with movement, and sleep involves dozens of small position shifts a night that a healthy body barely notices and a healing one cannot ignore. Add to that a brace, dressing, cast, or simply a joint or incision that rules out a favorite sleeping position (side-sleeping after a shoulder repair, for instance, or lying flat after some spine procedures), plus the lingering effects of anesthesia and pain medication on sleep architecture, and a normal night's sleep becomes hard to find for a while. This combination is common and expected in the first one to two weeks after most orthopedic procedures, not a sign of a complication.

Does the type of surgery change what's happening?

Yes, mostly through positioning constraints rather than anything more mysterious. A hip or knee replacement usually restricts which side is comfortable to lie on for weeks. A shoulder repair often means sleeping semi-upright in a recliner or with a wedge pillow because lying flat pulls on the repair. Spine surgery frequently means learning to log-roll in and out of bed and finding a supported position that keeps the back neutral rather than twisted. If the surgery was for back pain specifically, it is worth knowing that guideline-recommended care for the underlying condition already leans away from medication alone — the American College of Physicians recommends non-drug approaches like staying appropriately active and structured exercise as first-line for ongoing back pain 1, and a broader review of back pain evidence reaches a similar conclusion: non-pharmacological care, staying active, and limited, prudent use of medication generally outperform relying on medication as the main strategy 2. That matters for sleep too, since pain that is being actively rehabilitated tends to ease faster than pain that is simply being medicated through.

What actually helps in the first couple of weeks?

Positioning is the highest-leverage fix, and it is worth experimenting with rather than assuming one setup works. Pillows between the knees after hip or knee surgery, a wedge or extra pillows to sleep semi-upright after shoulder or chest-area procedures, and a firm pillow to keep the spine neutral after back surgery all address the mechanical side of the problem directly. Timing pain relief so its effect covers the hours you're actually trying to sleep, rather than taking it only once pain has already woken you, keeps the pain-wake cycle from repeating itself. The goal in these first weeks is not a perfect night — it's staying ahead of pain enough to string together longer stretches of sleep, which tends to improve week over week as healing progresses.

Does staying active during the day actually help you sleep at night?

For back-related recovery specifically, yes, and this is one of the few places the evidence is direct enough to lean on. Guideline-concordant recovery from low back pain favors staying appropriately active over prolonged rest 2, and that same logic extends to sleep: a day spent almost entirely still tends to produce a night of restless, shallow sleep, while appropriate movement within pain limits — short walks, prescribed exercises, simply getting out of the bed or chair regularly — tires the body in a way that supports deeper sleep later. This does not mean pushing through pain to "earn" better sleep; it means not defaulting to complete stillness out of fear, which is a common but usually counterproductive instinct in the first week or two.

What about naps, caffeine, and screens?

The usual sleep-hygiene advice still applies after surgery, though with more grace than usual. Long daytime naps can eat into the sleep pressure that helps you fall asleep at night, so short naps, or none, tend to serve better than a two-hour afternoon sleep, especially once past the first few very disrupted days. Caffeine late in the day and screens right before bed work against sleep the same way they always do; neither is a major factor compared with pain and positioning, but they are easy, low-cost things to adjust while the bigger issues resolve on their own timeline.

When does this stop being ordinary post-op sleep disruption?

Most people see sleep meaningfully improve within two to four weeks as pain settles and mobility returns. Sleep that is not improving at all by that point, or that comes with new daytime sleepiness severe enough to affect safety, snoring or breathing pauses noticed by a partner (which can be worsened by opioid pain medication), or a mood that is sliding rather than the fatigue lifting, is worth mentioning at a follow-up visit rather than assuming it will simply resolve.

Common questions

Yes. Pain that flares with movement, positioning restrictions from the surgical site, and residual medication effects commonly disrupt sleep in the first several days. It is uncomfortable but expected, and it typically eases as pain and mobility improve over the following one to two weeks.

Many people find it helps to time pain relief so its effect covers the hours they're trying to sleep, rather than waiting until pain has already woken them. This is worth discussing with the surgical team, since the right approach depends on the specific medication and surgery.

Many procedures restrict certain positions temporarily — hip and knee surgery often limit side-lying, shoulder repairs often require sleeping semi-upright, and spine surgery usually means keeping the back neutral rather than twisted. These restrictions are typically temporary and ease as healing progresses.

It can. Long daytime naps reduce the sleep pressure that helps you fall asleep at night. Short naps, or none, generally work better once you're a few days past surgery and no longer catching up on a very disrupted early recovery.

Most people notice real improvement within two to four weeks as pain decreases and positioning becomes less restrictive. Sleep that hasn't improved at all by then, or new symptoms like loud snoring or breathing pauses, are worth raising at a follow-up appointment.

Related

Say it back

How would you explain this to someone you love?

Two or three sentences, just as you’d say it. Gale reflects back what you focused on — a mirror, not a quiz.

Talk to a clinician

Gale can help you find a clinician in your state and request a visit.

Find care →

When sleep trouble after surgery needs a closer look

  • Loud snoring, gasping, or breathing pauses during sleep noticed by a partner, especially while taking opioid pain medication
  • Daytime sleepiness severe enough to affect driving or basic safety
  • Sleep that shows no improvement at all after two to four weeks
  • Mood that is worsening rather than fatigue simply lifting, or new hopelessness

This article is educational and does not replace guidance from the surgical or care team managing a specific recovery. Sleep or breathing concerns, especially alongside opioid pain medication, should be discussed with a clinician.

References

  1. 1.Qaseem A, Wilt TJ, McLean RM, Forciea MA (American College of Physicians) (2017). Noninvasive Treatments for Acute, Subacute, and Chronic Low Back Pain: A Clinical Practice Guideline From the American College of Physicians. Annals of Internal Medicine. doi:10.7326/M16-2367ACP recommends non-pharmacologic approaches, including staying active and exercise, as first-line for ongoing back pain rather than relying on medication alone.
  2. 2.Foster NE, Anema JR, Cherkin D, et al. (2018). Prevention and treatment of low back pain: evidence, challenges, and promising directions. The Lancet. doi:10.1016/S0140-6736(18)30489-6Guideline-concordant first-line care for low back pain favors staying active and non-pharmacological approaches over medication as the primary strategy.

2 sources, numbered by first appearance. General health information, not medical advice. AI-assisted editorial content — citations link their sources. Editorial policy