ReachWell

Sleeping after surgery: positions, pillows and better nights at home (2026)

Bad nights are one of the most common complaints in the first weeks home after surgery. Pain, a stiff or swollen joint, a sling or a brace, new medicines, a changed routine and plain worry all get in the way, and being tired makes the next day's walking and exercises harder. A few practical changes help most people: a plan for night-time pain, the right pillows in the right places, a safe path to the bathroom and steady sleep habits. This guide pulls together what MedlinePlus (U.S. National Library of Medicine), the NHS and HealthLink BC tell patients. It's general information, not medical advice: the positions and precautions your own surgeon, physiotherapist or occupational therapist gave you come first.

Not sure where to start? Use the Home Aid Finder to match home aids to your area, difficulty and budget.

Short on time? See the quick list for sleeping after surgery: what to have ready, why each aid helps, and matching products

Why sleep is harder after surgery

The NHS lists the most common causes of poor sleep as stress, anxiety or depression, noise, a room that's too hot or cold, uncomfortable beds, and alcohol, caffeine or nicotine, and it names pain and many medicines as other things that keep people awake. After an operation several of these arrive at once: you may be sleeping in a different room or position, lying still in one spot for hours, waking to take medicine, and worrying about how the recovery is going. HealthLink BC notes that most people have sleep problems now and then from temporary stress or an irregular schedule, and that worrying about sleep only makes it worse. Expect some broken nights in the first weeks, and work on the things you can change rather than lying there counting hours.

Official sources: NHS: Insomnia · HealthLink BC: Insomnia, improving your sleep

Plan pain relief for the night

MedlinePlus's knee replacement discharge advice says to take pain medicine when the pain starts, because waiting too long lets it become worse than it should be, and to take it about 30 minutes before you increase activity or do physiotherapy in the early weeks. Its page on opioid (narcotic) pain medicine adds that letting a scheduled dose wear off can make pain harder to control, and that drowsiness and impaired judgment are common, so don't drink alcohol, drive or operate machinery while taking them. Before you go home, ask your surgeon or pharmacist how to time your doses around bedtime and what to do if you wake in pain, and never double up if you miss a dose. A pill organizer and a written schedule on the night table make 2 a.m. decisions easier. For knee surgery, MedlinePlus suggests icing the knee 30 minutes after activity or exercise to bring swelling down, which many people find helps before bed.

Official sources: MedlinePlus: Knee joint replacement, discharge · MedlinePlus: Pain medications, narcotics

After hip replacement: sides, stomach and a pillow between the thighs

MedlinePlus's advice on caring for a new hip says not to sleep on the side of your new hip or on your stomach, and if you sleep on your other side, to place a pillow between your thighs. A special abductor pillow or splint may be used to keep the hip in the right position. The same page says not to cross your legs or ankles while sitting, standing or lying down, and to avoid bending the hip past 90 degrees, which matters when you reach down for blankets or sit up in a low bed. Sleeping on your back with a pillow between your legs keeps the legs apart. Hip precautions differ by surgeon and surgical approach, so follow the exact list you were given and ask when it's OK to sleep on your operated side.

Official source: MedlinePlus: Taking care of your new hip joint

After knee replacement: pillow under the heel, not the knee

It's tempting to tuck a pillow under a sore new knee, but MedlinePlus says that when lying in bed you should keep a pillow under your heel or ankle, not your knee, because it's important to keep the knee straight; try to stay in positions that don't bend it. Swelling around a new knee is common, and MedlinePlus says icing after activity helps bring it down. Your physiotherapist will tell you when it's fine to sleep on your side, and whether a pillow between the knees helps when you do.

Official source: MedlinePlus: Knee joint replacement, discharge

After shoulder surgery: sling on, arm supported

MedlinePlus's shoulder replacement advice says to wear the sling all the time unless your surgeon says you don't have to, and to rest the shoulder and elbow on a rolled-up towel or small pillow when lying down, so the arm and hand stay level with your body, for 6 to 8 weeks after surgery, even in the sling. That support stops the muscles and tendons from being stretched while you sleep. Don't lie on the operated side. Many people find lying flat uncomfortable at first, so ask your surgeon or therapist whether sleeping propped up on pillows or in a reclining chair is fine for you. Our shoulder and back surgery guides have more on getting in and out of bed with one arm or a sore back.

Official source: MedlinePlus: Using your shoulder after replacement surgery

Set up the bed so getting in and out is safe

MedlinePlus's guide to getting your home ready for hip or knee surgery says your bed should be low enough that your feet touch the floor when you sit on the edge, and the mattress firm enough that you don't sink in when you sit on the side. Set the bed up on the main floor if you can so you limit stairs to about once a day, and keep your phone where you can reach it from bed. A leg lifter strap helps lift a stiff or heavy leg onto the mattress without bending at the hip, and a bed assist rail gives a solid handhold for sitting up, but ask your physiotherapist or OT which side and which method suits your surgery. Practise getting in and out before the first night, while someone is there to help.

Official source: MedlinePlus: Getting your home ready, knee or hip surgery

Make night trips to the bathroom safer

Getting up half-asleep, in the dark, on a new joint or a walker is when many falls happen. MedlinePlus suggests night lights in hallways and rooms that can be dark, removing loose rugs and cords from the path, and keeping a bathroom or a portable commode on the floor where you spend most of your time. Keep your walker or crutches within reach of the bed, sit on the edge for a moment before standing, and wear non-skid footwear rather than slippers. HealthLink BC suggests not going to bed thirsty but not drinking so much in the evening that you need to get up often, so front-load fluids earlier in the day.

Official sources: MedlinePlus: Getting your home ready, knee or hip surgery · HealthLink BC: Insomnia, improving your sleep

Sleep habits that help while you recover

The NHS, MedlinePlus and HealthLink BC agree on the basics: wake up and get out of bed at the same time every day, even after a bad night; relax for about an hour before bed; keep the bedroom dark, quiet and cool; and use pillows and covers that are comfortable. HealthLink BC suggests no caffeine for at least 4 to 6 hours before bedtime and no alcohol late in the evening, and keeping a notepad by the bed for worries. Daytime walking, as your surgeon allows, helps you sleep at night. Rest is part of recovery, but long naps late in the day push bedtime back, and both the NHS and MedlinePlus advise against daytime naps when sleep is a problem, so keep rests short and earlier. MedlinePlus says that if you can't fall asleep within 30 minutes, get up and do something quiet in another room until you feel sleepy; after surgery, only do this if you can get up safely, and a nearby chair works too.

Official sources: MedlinePlus: Changing your sleep habits · NHS: Insomnia

Sleeping pills, sleep aids and alcohol

Check with your doctor or pharmacist before taking anything to help you sleep, especially while you're on opioid pain medicine, which already causes drowsiness. The NHS says pharmacy sleep aids, some with antihistamines and some with ingredients like valerian or lavender, can't cure insomnia, may help for 1 to 2 weeks at most, and can leave you drowsy, and that doctors now rarely prescribe sleeping pills because of serious side effects and the risk of dependence. MedlinePlus says to ask your provider about the effect of any medicines, herbs or supplements on your sleep. Skip the nightcap too: MedlinePlus says not to drink alcohol while taking opioids, and HealthLink BC notes that alcohol before bed can wake you later in the night.

Official sources: NHS: Insomnia · MedlinePlus: Pain medications, narcotics

When to call about sleep and night-time symptoms

MedlinePlus says to contact your provider if you feel sad or depressed, if pain or discomfort keeps you awake, if a medicine may be keeping you awake, or if you've been taking sleep medicines without talking to your provider. After knee replacement it also lists pain that doesn't go away after pain medicine, swelling or pain in the calf, chest pain and breathing problems as reasons to call your surgeon; sudden chest pain or trouble breathing is an emergency, so call 911. Caregivers should also watch for new confusion at night, seeing things or being much sleepier or more restless than usual, which can be delirium and needs a call to the care team the same day.

Official sources: MedlinePlus: Changing your sleep habits · MedlinePlus: Knee joint replacement, discharge

Safety notes

  • Suction grab bars are a balance aid only. They can release without warning and must never hold your body weight or be used to stop a fall.
  • Anchor wall grab bars into studs or approved blocking, never drywall alone, and follow the manufacturer's instructions or use a qualified installer.
  • Check the weight capacity and fit of any seat, rail or pole, and follow the manufacturer's instructions.

Find more home aids with the Home Aid Finder

Common questions

Can I sleep on my side after hip replacement?

MedlinePlus says not to sleep on the side of your new hip or on your stomach. If you sleep on your other side, put a pillow between your thighs. Ask your surgeon when it's OK to sleep on the operated side, because precautions vary by surgery.

Should I put a pillow under my knee after knee replacement?

No. MedlinePlus says to keep a pillow under your heel or ankle, not your knee, so the knee stays straight while you lie in bed.

How should I sleep after shoulder replacement?

Wear the sling unless your surgeon says otherwise, and rest the shoulder and elbow on a rolled-up towel or small pillow so the arm stays level with your body. MedlinePlus says to keep doing this for 6 to 8 weeks.

Can I take a sleeping pill after surgery?

Ask your doctor or pharmacist first, especially if you take opioid pain medicine. The NHS says pharmacy sleep aids may help for 1 to 2 weeks at most and can cause drowsiness, and doctors rarely prescribe sleeping pills now.

Why can't I sleep after surgery?

Usually a mix of pain, an unfamiliar position or bed, medicines, a changed routine and worry. The NHS lists pain, uncomfortable beds, stress and many medicines among the things that keep people awake. A night-time pain plan and steady sleep habits help most people.

More guides

Prices are approximate typical ranges seen at major retailers in October 2026 and change often. Not medical advice; an occupational therapist can help you choose safely.

Get new finds by email

Occasional, practical tips. No spam, unsubscribe any time.