Paul Pavlou, Consultant Orthopaedic Knee Surgeon
One of the most common things patients tell me after a total knee replacement is: “The knee is doing well… but I just can’t sleep.”
If that sounds familiar, you are certainly not unusual. Disturbed sleep is extremely common during the first few weeks after knee replacement surgery. Studies looking specifically at sleep after total knee replacement consistently show a deterioration in sleep quality during the early postoperative period, usually followed by gradual improvement as pain, swelling and mobility improve. By around three months, sleep quality is generally significantly better.
Poor sleep after knee replacement is usually multifactorial. It is not simply a matter of finding a stronger sleeping tablet.
Why is sleeping difficult after knee replacement?
Pain is an obvious reason, but swelling, stiffness, difficulty finding a comfortable position, reduced daytime activity and disruption of normal sleep routines can all contribute.
There is also a two-way relationship between pain and sleep: pain makes it harder to sleep, while poor sleep can increase pain sensitivity. This can create an unpleasant cycle: pain → poor sleep → increased pain sensitivity → even poorer sleep.
1. Get the pain relief right — particularly before bedtime
Good postoperative pain control remains the cornerstone of getting a reasonable night’s sleep. Modern knee replacement pathways increasingly use multimodal analgesia: rather than relying heavily on one strong painkiller, several different methods of pain relief are combined.
NICE recommends a multimodal approach to postoperative pain management, typically incorporating drugs such as paracetamol and, when appropriate, anti-inflammatory medication, with stronger opioid medication reserved for more significant pain. Procedure-specific guidance for total knee replacement also supports multimodal analgesia, including local anaesthetic infiltration and appropriate nerve blocks, to reduce pain and minimise opioid requirements.
Timing matters.
A common problem is waiting until the knee is very painful before taking medication. During the early postoperative period it is often better to stay ahead of the pain, particularly in the evening. If you have been prescribed regular pain relief, taking your evening medication at the appropriate time before bed can prevent you reaching midnight with a very painful knee and then having to wait for medication to work. Always follow the specific medication plan given to you by your surgical team.
2. Ice the knee before bed
Cold therapy is one of the simplest measures patients can use. A 2024 systematic review and meta-analysis including 31 randomised controlled trials found that cryotherapy after total knee replacement reduced early postoperative pain and opioid consumption.
My usual advice is to use ice or an appropriate cooling device during the evening, particularly if the knee feels hot or swollen after the day’s activities. Expensive cooling machines are not necessarily essential: evidence has not consistently shown them to be superior to well-used conventional cold packs for pain relief.
Never apply ice directly to the skin, and follow your own surgical team’s advice regarding your wound and dressings.
3. Reduce the swelling
For many patients the knee is not particularly painful when they first go to bed. Instead it feels tight, throbbing and swollen. This is particularly common after a busy day.
The NHS advises elevating the leg regularly following knee replacement to help control swelling. Try to build periods of rest and elevation into your afternoon and evening rather than remaining upright for hours and only dealing with the swelling when you finally go to bed.
A useful evening routine is: Rest → elevate → ice → pain medication → bed.
4. Don’t put a pillow permanently underneath the knee
Patients often instinctively put a large pillow underneath the operated knee because keeping it slightly bent initially feels more comfortable. The problem is that spending prolonged periods with the knee flexed can make it harder to regain full knee extension.
The NHS advises patients not to sleep with a pillow directly underneath the knee following knee replacement. If support is needed, placing pillows further down under the calf and ankle can often elevate the leg without permanently holding the knee bent.
5. You don’t have to sleep on your back forever
There is no compulsory sleeping position after knee replacement. Once comfortable, many patients can sleep on their back or side. NHS guidance confirms that no specific sleeping position is required after knee replacement.
If you are sleeping on your side, a pillow between the legs can be more comfortable during the first few weeks. The main consideration is avoiding a position that significantly increases pain or puts uncomfortable pressure on the wound.
6. Don’t overdo the rehabilitation late in the evening
Rehabilitation is enormously important after knee replacement, but more is not always better. Patients sometimes perform a very vigorous set of exercises immediately before bed and then wonder why the knee is hot, swollen and throbbing at midnight.
Early rehabilitation should be progressive and tailored to the individual. If your knee regularly becomes significantly more swollen after exercising, discuss the intensity of your programme with your physiotherapist. I generally prefer the more demanding exercises to be done earlier in the day, leaving the evening for gentler movement, swelling control and recovery.
7. Move during the day
Doing too much can increase swelling, but doing virtually nothing is not the answer either. Regular walking and appropriate rehabilitation help restore movement and function and may also help re-establish a normal day-night rhythm.
Aim for frequent sensible activity rather than one enormous walk.
8. Re-establish a normal sleep routine
Surgery disrupts normal life. You may be napping in the afternoon, spending much more time sitting down, going to bed earlier than usual and waking repeatedly during the night. Good sleep hygiene is therefore worth re-establishing.
- Get up at roughly the same time each morning.
- Get some daylight during the day.
- Avoid long late-afternoon naps where possible.
- Reduce caffeine later in the day.
- Keep the bedroom cool and dark.
- Reduce phone and tablet use immediately before bed.
9. What about sleeping tablets?
Sleeping tablets can sometimes have a role, but I do not think they should automatically be the first solution. Recent systematic review evidence suggests that drugs such as zolpidem may improve short-term postoperative sleep, but potential adverse effects mean routine use after joint replacement is difficult to recommend.
Sedating medication can also interact with opioid painkillers and may increase the risk of dizziness, falls, confusion or excessive sedation. If sleep remains a significant problem, speak to your GP or surgical team rather than simply adding over-the-counter or prescription sleeping medication yourself.
10. What about melatonin?
Melatonin sounds attractive because it is often perceived as a relatively natural sleep aid. However, evidence specifically after hip and knee replacement is not convincing.
A 2026 systematic review and meta-analysis of four randomised controlled trials involving 455 patients found no significant improvement in subjective or objective sleep outcomes following joint replacement with melatonin. At present, I would not regard melatonin as the answer to routine postoperative sleep disturbance.
When should sleep start improving?
There is considerable variation between patients. In my experience, the first two to three weeks are often the most frustrating. The knee becomes more uncomfortable towards the end of the day and normal sleeping positions can still feel awkward.
Sleep then tends to improve alongside swelling, pain and mobility. Research broadly supports this pattern, with sleep disturbance greatest early after surgery and usually improving considerably over the following weeks and months. Recovery is not completely linear: you may have two excellent nights followed by a terrible one, and that does not necessarily mean anything has gone wrong.
When should you contact your surgical team?
Poor sleep alone is rarely concerning. However, increasing rather than improving pain, particularly if associated with increasing redness, wound discharge, fever or significant calf swelling, warrants medical advice. Similarly, if pain is consistently severe despite the medication you have been prescribed, contact your surgical team rather than increasing the dose yourself.
My key message
- Control the pain.
- Control the swelling.
- Use ice.
- Time your medication sensibly.
- Keep moving during the day.
- Don’t overdo the evening exercises.
- Find a comfortable sleeping position.
- And give the knee some time.
Poor sleep during the early weeks after knee replacement is extremely common and, for the vast majority of patients, it gradually improves as the knee settles.
| PAUL’S TIP If your knee throbs at night, think about what happened in the preceding 4–6 hours. Often the solution is better swelling control in the afternoon, rather than simply taking stronger medication at bedtime. |
Selected evidence and guidance
- Sleep after total knee arthroplasty: PubMed 39773594 — https://pubmed.ncbi.nlm.nih.gov/39773594/
- Perioperative sleep disturbance and pain: PubMed 39071825 — https://pubmed.ncbi.nlm.nih.gov/39071825/
- NICE Joint replacement (primary): hip, knee and shoulder (NG157/NG180-related perioperative recommendations) — https://www.nice.org.uk/
- PROSPECT recommendations for pain management after total knee arthroplasty: PubMed 35852550 — https://pubmed.ncbi.nlm.nih.gov/35852550/
- Cryotherapy after total knee arthroplasty systematic review/meta-analysis: PubMed 39402654 — https://pubmed.ncbi.nlm.nih.gov/39402654/
- NHS knee replacement recovery guidance — https://www.nhs.uk/tests-and-treatments/knee-replacement/recovery/
- Royal National Orthopaedic Hospital total knee replacement exercise guidance — https://www.rnoh.nhs.uk/
- Postoperative sleep medication systematic review: PubMed 40902687 — https://pubmed.ncbi.nlm.nih.gov/40902687/
- Melatonin after joint replacement systematic review/meta-analysis: PubMed 42205627 — https://pubmed.ncbi.nlm.nih.gov/42205627/
Disclaimer: This article provides general information and does not replace individual medical advice. Medication and rehabilitation plans should follow the advice of your own surgical team.
Paul Pavlou
Consultant Orthopaedic Knee Surgeon