Short answer: After shoulder surgery, most people sleep best on their back, propped up in a recliner or on a wedge pillow, with the arm resting in the sling on a pillow and no pressure on the operated side. After knee or hip surgery, sleep on your back with the leg supported. Broken sleep in the first weeks is common and usually improves over about 3 months [1][2][3].
Your surgical team's instructions come first. Rules about slings, pillows and side sleeping differ by operation and by surgeon, so use this guide to plan and to know what to ask. Below you will find the best positions for upper and lower body surgery, a week-by-week plan for shoulder surgery, a simple bedtime routine, the warning signs that mean you should call, and what your nutrition routine looks like along the way.
Why sleep matters after surgery
Recovering from surgery is hard work, and good sleep is one of the few things that helps on every front.
- Repair. Your body releases growth hormone while you sleep, which it uses for tissue repair. In adults, the most reliable pulse comes shortly after you fall asleep, during the first stretch of deep sleep [4].
- Immune support. Sleep and the immune system are closely linked. Sleep supports normal immune function and helps keep inflammation in balance, while ongoing short or broken sleep is tied to low-grade inflammation [5].
- Pain. Pain and poor sleep feed each other. Pain breaks up sleep, and short sleep can make pain feel worse [6]. In 6 trials of hip and knee replacement (416 patients), people given extra help to sleep better reported less pain at rest on days 1 and 3 after surgery [7].
- Mood. Recovery can be mentally and emotionally draining. A decent night's sleep makes stress, worry and irritability easier to handle.
Best sleep positions after surgery
Proper positioning is one of the biggest things you can control. Set up your sleep spot before surgery, while you still have two good hands.
After shoulder, elbow or arm surgery
Sleep on your back with several pillows under your arm and behind your back so you are slightly raised. This is the most comfortable position for most people early on. A wedge pillow can raise your upper body, or you can sleep in a recliner. Do not put pressure on your operated shoulder by sleeping on that side.
After rotator cuff repair, most people use a sling and avoid using the arm for the first 4 to 6 weeks. How long you need it depends on the size of the tear, your tissue quality and the type of repair [8]. Ask your surgeon whether the sling stays on in bed, and plan as if the answer is yes. A pillow made for this, such as the Shoulder Sleeper Pillow for sleeping after shoulder surgery, cushions the arm in bed without a neck strap.
After hip, knee, leg or foot surgery
Sleep on your back with your leg slightly raised on a stack of pillows or a wedge. This takes pressure off and lets fluid drain, which helps with swelling. If you prefer your side, put a pillow between your knees to keep your hips and knees lined up. In the early days, avoid lying on the operated side or on your stomach unless your surgeon says otherwise.
Rules differ by operation. After a knee replacement, the American Academy of Orthopaedic Surgeons (AAOS) says you can safely sleep on your back, either side or your stomach, and recommends raising the leg and using ice for swelling, which can last 3 to 6 months [9]. Our knee replacement nutrition guide covers eating well through that stretch. After a hip replacement, your surgeon may ask you to avoid certain positions or to sleep with a pillow between your legs for a time. Most people can drop the usual hip precautions, such as not crossing the legs, after 6 to 8 weeks [10].
| Surgery | Best early position | Avoid at first | When it usually changes |
|---|---|---|---|
| Rotator cuff repair, labral repair, shoulder replacement | On your back, semi-upright (recliner or wedge), arm supported on a pillow | Lying on the operated shoulder; reaching or pushing up with that arm | After the sling phase (4 to 6 weeks for most rotator cuff repairs) and only when your surgeon clears it [8] |
| Knee replacement | On your back with the leg raised; ice before bed for swelling | Whatever your surgical team has told you to avoid | AAOS says back, side or stomach are all safe positions; go by comfort [9] |
| Hip replacement | On your back, or on your side with a pillow between your legs if your surgeon asks | Crossing your legs; positions your surgeon has ruled out | Most precautions can be dropped after 6 to 8 weeks [10] |
| ACL, foot or ankle surgery | On your back with the leg raised on pillows or a wedge | Lying on the operated side or your stomach early on | Ask your surgeon; it depends on your brace, cast and weight-bearing plan |
Sleeping after shoulder surgery: week by week
Shoulder surgery is where sleep gets hardest, because you cannot lie flat and you cannot roll onto the sore side. Here is a realistic path for a rotator cuff repair. Your own timeline depends on your repair and your surgeon.
| Stage | Where and how you sleep | What the research says |
|---|---|---|
| Before surgery | Set up the recliner or wedge, pillows and a side table you can reach with your good hand. Try it for a night or two. | Poor sleep is common with a torn rotator cuff: 40.8% to 89.0% of patients slept poorly before repair in the 4 studies that counted it [1] |
| Week 1 | Semi-upright on your back, sling on, arm on a pillow. Ice before bed. Take pain medicine exactly as prescribed. | In a 70-patient trial after shoulder surgery, people using cold therapy reported less pain during sleep and more restful sleep on day 1 [11] |
| Weeks 2 to 6 | Move from the recliner to bed once lying back is comfortable, still propped up with the arm supported. Keep the sling on as directed. | The sling and protection phase usually lasts 4 to 6 weeks, and gentle passive exercises with your therapist usually start in this window [8] |
| Weeks 6 to 12 | Out of the sling if cleared. Ask before sleeping on either side; if the opposite side is allowed, hug a pillow in front to support the arm. | Active exercises begin after 4 to 6 weeks, and strengthening usually starts at 8 to 12 weeks [8] |
| Months 3 to 6 | Work back toward your usual bed and position as your surgeon allows. Expect some sore nights after busy days. | In 58 patients, sleep disturbance improved 3 to 6 months after arthroscopic repair [2]. A review of 8 studies (1,034 patients) found steady gains in sleep quality over the first 6 months [1] |
Shoulder replacement and labral repair follow a similar pattern, but sling time and when you can lie on the operated side are set by your surgeon. For the food side of shoulder recovery, see the shoulder surgery nutrition guide and our article on supplements after rotator cuff surgery.
Can't sleep after surgery? Here is what is normal
Trouble sleeping after surgery is very common, and for most people it is temporary. In 110 people tracked after knee replacement, self-rated sleep got worse for the first 30 days, then improved past their pre-surgery level by 90 days [3]. A review of 7 knee replacement studies also found sleep was most disturbed early on and improved after about three months [12]. After rotator cuff repair, the turn usually comes at 3 to 6 months [2].
The usual reasons are pain, an awkward position, a sling or brace, swelling, medicines, napping during the day, and worry. Most of these you can work on with the steps below. If sleep is getting worse rather than better, tell your surgical team. Sleeplessness can be a side effect of some medicines, and your physician may be able to adjust them or suggest other options.
Managing pain and discomfort at night
Pain is a common reason for waking at night, and short sleep can in turn make pain feel worse [6]. Follow your surgeon's instructions on pain medicine so you can get the rest you need. Alongside prescription and over-the-counter medicine, these simple steps can help:
- Cold therapy. Ice the surgical site before you get into bed, or use a cold compression unit that cycles on and off during the night. After shoulder surgery, continuous cold therapy was linked to less pain and more restful sleep [11]. Protect your skin and follow your team's advice on how long to use it.
- Movement as medicine. Joints get stiff when you stop using them, and stiffness brings more pain. Do the daily exercises your surgeon and therapist give you. Regular, gentle activity helps you recover in body and mind and can make it easier to sleep at night.
- Calm the mind. Slow breathing, mindfulness and meditation can ease anxiety and muscle tension. Many free guided sleep meditations are available online.
- Be careful with sleep aids. Prescription opioid pain medicines can cause drowsiness and slowed breathing [13]. Do not add sleeping pills, alcohol or other sedating products unless your surgical team says it is safe.
Build a sleep routine that works in recovery
Your goal is to get your body clock back to where it was before surgery as soon as you can.
- Keep a fixed wake time. Get up at the same time each morning as you did before surgery, even after a rough night.
- Limit naps. Avoid napping as much as possible, especially in the late afternoon or evening.
- Cut caffeine early. In a sleep study, 400 mg of caffeine disturbed sleep even when it was taken 6 hours before bed [14]. Have your last coffee or tea by early afternoon.
- Set the mood. Comfort is hard to come by after surgery, so control what you can. Keep your bedroom cool, use clean sheets and light, loose blankets, and cut down on noise and light. Skip screens and bright lights before bed.
- Prepare for the night. Keep water, medicine, your phone and the ice pack within reach of your good hand, and plan a clear path to the bathroom.
When to call your surgical team
AAOS lists these warning signs after joint replacement, and they are worth knowing after any orthopedic surgery [9]:
- Possible infection: fever that keeps going (higher than 100 degrees F), shaking chills, more redness, tenderness or swelling around the wound, drainage from the wound, or pain that keeps getting worse at rest and with activity.
- Possible blood clot: pain in your leg or calf that is not from the incision, tenderness or redness above or below the knee, or growing swelling in the calf, ankle or foot.
- Get emergency care (call 911) for shortness of breath, sudden chest pain, or chest pain when you cough, which can mean a clot has moved to the lungs.
Nutrition and sleep after surgery
What you eat during the day affects how you feel at night. Stay well hydrated and eat regular, balanced meals with protein, complex carbohydrates and healthy fats. Steady meals also help keep blood sugar in a healthy range, which matters because high blood sugar around surgery is linked with more complications in people without diabetes [15]. Focus on whole foods, go easy on processed foods, and avoid caffeine and other stimulants in the hours before bed.
Protein is the easiest nutrient to fall short on when you do not feel like eating. European clinical nutrition experts (ESPEN) estimate that surgical patients need about 1.5 g of protein per kg of ideal body weight per day. For a 70 kg person that is 70 x 1.5 = 105 g a day [16]. If your appetite is low after surgery, a daily shake can make the target easier to reach. Our guide to what to eat after surgery covers meals in more detail.
If you want a simple routine, Thrive's OptiFuel is a once-daily packet with 25 g of whey protein, 3 g of leucine, collagen, glutamine, omega-3s, curcumin, and vitamins C and D. One packet covers about a quarter of that 105 g example (25 / 105 = about 24%). It is thin enough to sip through a straw, which helps when one arm is in a sling. The Surgical Protocol Kit starts about 1 week before surgery and adds 2 OptiCharge carbohydrate packets for the night before. The Recovery Protocol Kit is the same daily OptiFuel for people who are already past surgery or recovering from an injury. Thrive Protocol kits are HSA/FSA eligible. OptiFuel is a nutrition product, not a sleep aid, and it is not a replacement for meals.
Magnesium and sleep
Magnesium is a mineral involved in more than 300 processes in the body, including muscle relaxation, nerve signaling and the systems that help regulate sleep. In clinical studies, magnesium supplements helped people fall asleep faster, by about 17 minutes on average compared with placebo, and may modestly improve how long they sleep [23]. Many adults don't get enough magnesium from their diet, and the stress of surgery can lower levels further. That's why OptiFuel includes approximately 200 mg of magnesium glycinate, a well-absorbed form that is gentle on the stomach. Together with magnesium-rich foods like leafy greens, nuts, seeds and beans, it helps you meet your daily needs during recovery.
These statements have not been evaluated by the Food and Drug Administration. This product is not intended to diagnose, treat, cure, or prevent any disease.
What happens after you start: a realistic timeline
Here is what a typical plan looks like for sleep and nutrition together. No study has tested Thrive products, so the research column describes what published studies found, not a promised result.
| When | Sleep setup | Nutrition routine | What the research says |
|---|---|---|---|
| About 1 week before surgery | Set up the recliner, wedge or shoulder pillow. Practice getting in and out with one arm or one leg. | Start one OptiFuel packet a day, between meals. | ESPEN puts protein needs around surgery at about 1.5 g/kg of ideal body weight a day [16] |
| The night before | Keep your normal bedtime. Lay out what you need for the first night home. | 2 OptiCharge packets at bedtime, each in 12 to 16 oz of water, within your team's fasting rules. If you have insulin-dependent or poorly controlled diabetes, ask first. | In a 252-person trial, a carbohydrate drink the evening before (100 g) and the morning of surgery (50 g) left people less hungry and less anxious while they waited than fasting [17]. 2 OptiCharge packets x 46 g = 92 g, taken the night before only, so results may not transfer exactly. |
| Week 1 | Expect broken sleep. Semi-upright for shoulder surgery; leg raised for knee or hip surgery. Ice before bed. | One OptiFuel packet a day in the shaker, sipped through a straw if that is easier. Keep drinking water. | Protein alone does not stop muscle loss from not moving: in older men with a leg in a cast for 5 days, extra protein did not reduce the loss [18]. Your daily exercises matter. |
| Weeks 2 to 6 | Move back to bed with support when it is comfortable. Shoulder patients usually stay in the sling for this stretch [8]. | Keep the daily packet and spread protein across your meals. | In a small lab study, spreading protein evenly (about 30 g per meal) raised muscle building over 24 hours by about 25% compared with eating most of it at dinner [19]. A 2025 review of 10 orthopedic trials found amino acid supplements protected muscle in some studies but not all [20]. |
| After 6 weeks | Restrictions start to lift. Side sleeping on the operated side only when your surgeon clears it. | As therapy turns to strengthening, some people add the Recovery and Strength Mix, the only Thrive product with creatine. | In healthy adults coming out of a leg cast, creatine plus strength training helped thigh muscle size and power come back faster during rehab [21]. It worked alongside exercise, not instead of it. If you have kidney disease, ask your doctor before using creatine [22]. |
| Months 3 to 6 | Work back toward your usual bed and sleeping position as cleared. | Continue for the length of your kit (4 weeks, 3 months or 6 months) if it helps you reach your protein target. | Sleep improved 3 to 6 months after rotator cuff repair [2] and past baseline by 90 days after knee replacement [3] |
If you have kidney disease, insulin-dependent or poorly controlled diabetes, a milk allergy, or a special diet after bariatric or bowel surgery, check with your surgical team before changing your protein intake or adding any supplement.
These statements have not been evaluated by the Food and Drug Administration. This product is not intended to diagnose, treat, cure, or prevent any disease.
Frequently asked questions
How should I sleep after shoulder surgery?
On your back, propped up in a recliner or on a wedge pillow, with your arm in the sling and resting on a pillow. Do not lie on the operated shoulder. Ask your surgeon whether the sling stays on at night.
How long do I have to sleep in a recliner after shoulder surgery?
There is no fixed rule. Stay semi-upright for as long as lying back in bed hurts. Move to bed when you can sleep there comfortably with a wedge and the arm supported. Ask your surgeon or therapist if you are not sure.
When can I sleep on my side after shoulder surgery?
Only when your surgeon clears it. For most rotator cuff repairs the sling phase alone lasts 4 to 6 weeks [8], so plan on at least that long before lying on the operated side. Ask whether you can lie on the opposite side first, with a pillow hugged in front of you to support the arm.
Do I have to sleep in my sling?
Ask your surgeon, because their instructions decide this. You cannot control your arm while you are asleep, so plan your setup as if the sling stays on in bed during the protection phase.
Is it normal to not be able to sleep after surgery?
Yes. Sleep is often worse for the first few weeks and then improves. After knee replacement it got worse for 30 days and was better than before surgery by 90 days [3]. After rotator cuff repair it improved at 3 to 6 months [2]. Tell your team if it is getting worse, because some medicines can cause sleeplessness.
Can I sleep on my side after a knee or hip replacement?
After a knee replacement, AAOS says back, side and stomach sleeping are all safe [9]. After a hip replacement, your surgeon may ask you to avoid some positions or to keep a pillow between your legs for a while. Most hip precautions can be dropped after 6 to 8 weeks [10].
The bottom line
Sleep is a big part of recovery from surgery, for healing, mood and pain. Good positioning, cold therapy, a steady routine and steady nutrition can all help make the nights easier. Remember that poor sleep after surgery is temporary, and always follow the advice of your healthcare team as you find your way back to sleeping naturally.
References
- Kunze KN et al. Systematic review of sleep quality before and after arthroscopic rotator cuff repair: are improvements experienced and maintained? Orthop J Sports Med. 2020;8(12):2325967120969224.
- Longo UG et al. Arthroscopic rotator cuff repair improves sleep disturbance and quality of life: a prospective study. Int J Environ Res Public Health. 2021;18(7):3797.
- Gibian JT et al. Sleep disturbances following total knee arthroplasty. J Arthroplasty. 2023;38(6S):S120-S124.
- Van Cauter E, Plat L. Physiology of growth hormone secretion during sleep. J Pediatr. 1996;128(5 Pt 2):S32-7.
- Besedovsky L, Lange T, Haack M. The sleep-immune crosstalk in health and disease. Physiol Rev. 2019;99(3):1325-1380.
- Haack M et al. Sleep deficiency and chronic pain: potential underlying mechanisms and clinical implications. Neuropsychopharmacology. 2020;45(1):205-216.
- Shen SP et al. Improved perioperative sleep quality or quantity reduces pain after total hip or knee arthroplasty: a systematic review and meta-analysis. Orthop Surg. 2021;13(4):1389-1397.
- American Academy of Orthopaedic Surgeons (OrthoInfo). Rotator cuff tears: surgical treatment options.
- American Academy of Orthopaedic Surgeons (OrthoInfo). Activities after knee replacement.
- American Academy of Orthopaedic Surgeons (OrthoInfo). Activities after hip replacement.
- Singh H et al. The efficacy of continuous cryotherapy on the postoperative shoulder: a prospective, randomized investigation. J Shoulder Elbow Surg. 2001;10(6):522-5.
- Akbal S, Yildirim M. Changes in sleep quality after total knee arthroplasty: a systematic review. Am J Nurs. 2024;124(12):38-45.
- MedlinePlus, US National Library of Medicine. Opioids and opioid use disorder.
- Drake C et al. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med. 2013;9(11):1195-200.
- Kotagal M et al. Perioperative hyperglycemia and risk of adverse events among patients with and without diabetes. Ann Surg. 2015;261(1):97-103.
- Weimann A et al. ESPEN guideline: clinical nutrition in surgery. Clin Nutr. 2017;36(3):623-650.
- Hausel J et al. A carbohydrate-rich drink reduces preoperative discomfort in elective surgery patients. Anesth Analg. 2001;93(5):1344-50.
- Dirks ML et al. Skeletal muscle disuse atrophy is not attenuated by dietary protein supplementation in healthy older men. J Nutr. 2014;144(8):1196-203.
- Mamerow MM et al. Dietary protein distribution positively influences 24-h muscle protein synthesis in healthy adults. J Nutr. 2014;144(6):876-80.
- Brown E et al. Amino acid supplementation may help prevent muscle wasting after orthopedic surgery, but additional studies are warranted: a systematic review of randomized clinical trials. HSS J. 2025;21(2):200-210.
- Hespel P et al. Oral creatine supplementation facilitates the rehabilitation of disuse atrophy and alters the expression of muscle myogenic factors in humans. J Physiol. 2001;536(Pt 2):625-33.
- Kreider RB et al. International Society of Sports Nutrition position stand: safety and efficacy of creatine supplementation in exercise, sport, and medicine. J Int Soc Sports Nutr. 2017;14:18.
- Mah J, Pitre T. Oral magnesium supplementation for insomnia in older adults: a systematic review and meta-analysis. BMC Complement Med Ther. 2021;21(1):125.



Traveling after surgery