Sleep After a Knee Replacement
Why sleep after a knee replacement is so often broken, how long it commonly takes to settle, why the knee can feel worse at night, a measured view of sleeping tablets, and what actually helps. By Perth orthopaedic surgeon Dr Rhys Clark.
Sleep is the most under-discussed part of a knee replacement and one of the most distressing. It rarely appears on a consent form, it is almost never raised in clinic, and it accounts for a large share of why some weeks feel harder than earlier ones.
This page is about the course — why sleep is so often broken, how long it tends to take to settle, and what helps. For how to position the leg and set the bed up in the first fortnight, the first two weeks at home covers the practical side and is the better starting point if you have just come home.

The shape of it
Most people expect sleep to improve steadily as the knee improves. Often it does not, and the mismatch is part of what makes it distressing.
There is no single timetable. Sleep is commonly at its most disturbed in the first few weeks. In a 2026 prospective study of 93 patients, sleep measured by a wearable device was worst in the first week, while the patients themselves rated their sleep worst between weeks two and four. Beyond that, people vary widely. Many find sleep settling over the following weeks to months, some have a second bad patch as pain relief is reduced or activity increases, and a smaller number take many months to get back to how they slept before.
Somebody sleeping through at four weeks is not doing better than you; they are sleeping differently, and they probably did before surgery too.
Why sleep can get worse again
Not everyone has a second bad patch. When it happens, a few things often coincide.
The strong pain relief is coming down. Often the least anticipated. Opioid medication disturbs the structure of sleep while you take it and can unsettle sleep again for a while as you come off it. Pain relief and coming off it sets out how the taper is managed; the sleep cost of the taper is real and usually temporary.
Physiotherapy has stepped up. The knee is being worked harder than before, and it may respond by swelling more in the evening. A swollen knee is a tight knee, and a tight knee can be worse lying still.
You are doing considerably more. The walking aid is going, the house is being navigated properly, and the leg is being asked for far more than it was a fortnight ago on strength it has not yet rebuilt.
The early exhaustion has gone. In the first weeks the sheer physiological toll of surgery helped put you to sleep. Later that has worn off and you are left with the discomfort.
None of these on its own means the operation has gone wrong. Sleep broken by a knee that is increasingly swollen, hot or painful is a different matter, and the list at the end of this page sets out when to call. This stretch often overlaps with the phase of recovery where progress feels like it has reversed — knee replacement recovery describes that more broadly.
Why the knee is worse at night
Not imagination, and worth understanding because understanding it takes some of the menace out of it.
- Nothing is competing. Pain with no distraction is felt more than the same pain during a busy day.
- Staying still stiffens the joint. Hours without moving and the first movement genuinely hurts, which can wake you fully rather than half.
- The day’s swelling is still there. A knee that was worked hard during the day is often at its tightest by evening.
- An evening dose may be wearing off in the small hours.
If night pain is what keeps waking you, raise it specifically at your review. The timing and type of your evening pain relief can sometimes be adjusted, but that is a decision for your treating team based on what you have been prescribed, not something to change on your own.
Sleeping tablets: a straight answer
This is asked constantly and answered vaguely, so:
It is a conversation for your GP, not a trip to the chemist. The specific concern is combining a sedative with opioid pain relief. Both suppress breathing, the effect is more than additive, and the weeks when you most want a sleeping tablet are the weeks you are still on the strongest medication.
Sedating antihistamines — the ones sold over the counter as sleep aids — are a poor choice for most people having a knee replacement. In older adults they cause confusion, dry mouth, urinary retention and falls, and a fall onto a new knee replacement is a genuinely bad outcome.
Benzodiazepines and Z-drugs work, and they work for a short time before tolerance and rebound insomnia set in. If one is prescribed, a short defined course with an end date is the sensible form.
Melatonin is the mildest option and the most reasonable one to ask about, particularly where the problem is getting to sleep rather than staying asleep. It is prescription-only in Australia for most formulations.
Alcohol is not a sleep aid. It shortens the time to fall asleep and wrecks the second half of the night, which is the half you are already losing. It also interacts badly with several of the medications you are likely taking.
What actually helps
Things that commonly help:
- Ask about your evening pain relief if night pain is what wakes you. Your treating team can review the timing and type of what you have been prescribed.
- Ice before bed as routine, whether or not the knee hurts at that moment. Pre-empting the swelling beats chasing it.
- Move the leg before you settle. A dozen slow bends and straightens immediately before lying down leaves the knee less likely to seize.
- Get up and walk a lap rather than lying there when you wake stiff at 3am. Two minutes of movement resets it; two hours of lying still waiting does not.
- Keep the nap short and early. Twenty to thirty minutes after lunch. Not two hours at four o’clock.
- Get daylight into the morning, outside if you can manage it. Body clocks drift badly when several weeks are spent indoors, and morning light is the strongest correction available.
- Do something physical every day within what the knee allows. Under-activity is a common and unrecognised cause of poor sleep in this stretch.
- Keep the bed for sleeping. Several weeks of sitting in bed reading, eating and watching television teaches your body that bed is not for sleep. Sit in a chair during the day if you can get out of it safely.
When broken sleep is telling you something
Most of it is ordinary. These are the exceptions:
- Sleep getting worse at three months rather than better, particularly with a knee that is increasingly swollen, hot or painful. That warrants assessment rather than patience.
- Fever, chills or night sweats alongside a wound that is red, discharging or increasingly painful — phone the rooms, do not wait for the next appointment.
- Lying awake with your mind racing rather than with a sore knee. That is a mood symptom rather than a knee symptom, it is common at this stage of recovery, and it has its own answer — the emotional side of recovery covers it properly.
- A partner reporting heavy snoring or pauses in breathing. Weight change, deconditioning and opioid medication can unmask sleep apnoea that was previously borderline. Worth investigating rather than ignoring.
- Burning, electrical or crawling sensations keeping you awake rather than ordinary ache. Those respond to different medication entirely — see numbness, zaps and nerve pain.
The part worth holding on to
Sleep often lags behind the knee, improving after it rather than alongside it, and the gap between the two is where people lose confidence in an operation that may be going perfectly well.
If you are a few weeks out and sleeping badly, that is common and is often simply part of the recovery. It is worth saying out loud at your review anyway — the fixes are small, specific and often available.
Next: Pain relief and coming off it — or the emotional side of recovery.
How long does sleep stay disrupted after a knee replacement?+
It varies more than most people are told. Broken sleep is very common in the first weeks: in a 2026 prospective study of 93 patients, sleep measured by a wearable device was worst in the first week, while patients rated their own sleep worst between weeks two and four. After that people differ widely. Many find sleep improving over the following weeks to months, some have another bad patch as pain relief is reduced or activity increases, and a smaller number take many months to return to how they slept before. Knowing it may not follow a straight line is most of what makes it bearable.
Why has my sleep got worse again after improving?+
It happens to some people, though not everyone. Several things can coincide: the stronger pain relief is being reduced or stopped, and sleep can be unsettled for a while afterwards; physiotherapy is stepping up, so the knee is being worked harder and may swell more in the evening; and you are doing more during the day on a leg that is not yet strong. On its own it is not a sign that something has gone wrong, but sleep broken by a knee that is increasingly swollen, hot or painful, or by fever or sweats, should be checked.
Why does my knee hurt more at night than during the day?+
Partly because there is nothing else competing for your attention, which is real rather than dismissive — pain with no distraction is genuinely felt more. Staying still for hours also lets the knee stiffen, so the first movement hurts; swelling built up during the day is still there; and an evening dose of pain relief may be wearing off in the small hours. If night pain is a consistent problem, raise it at your review: the timing and type of your evening pain relief is something your treating team can look at with you.
Can I take sleeping tablets after a knee replacement?+
It is a reasonable conversation to have with your GP rather than something to start from the chemist. The specific caution is combining a sedative with opioid pain relief, because both suppress breathing and the combination carries more risk than either alone — this matters most in the weeks when you are still on stronger medication. Sedating antihistamines, widely sold as sleep aids, are a poor choice in older adults because of confusion, falls and urinary retention. Where a short course is genuinely warranted, short is the operative word.
Should I nap during the day if I have not slept at night?+
A short early-afternoon nap of twenty to thirty minutes is reasonable and does not meaningfully cost you that night's sleep. Long afternoon naps do, and a two-hour sleep at four in the afternoon is one of the most common self-inflicted causes of a bad night. In the first fortnight the body's demand for rest usually overrides this advice, and that is fine — it is from about week three onwards that nap discipline starts to matter.
Is it normal to sweat heavily at night after a knee replacement?+
Night sweats in the first weeks are commonly reported and usually reflect the body's inflammatory response to major surgery, sometimes with a contribution from opioid medication as it is reduced. What separates ordinary night sweats from something that needs attention is the company they keep: sweats with fever or chills, with a wound that is red, hot or discharging, or with pain that is escalating rather than easing, warrant a call to the rooms rather than a change of sheets.
When should broken sleep after a knee replacement be reported?+
When the pattern changes for the worse rather than slowly improving; when pain is waking you more often at three months than it did at six weeks; when sleep is broken by fever, sweats or a knee that is increasingly swollen and hot; when you are lying awake with your mind racing rather than with a sore knee, which points towards mood rather than the joint; or when a partner reports that you have started snoring heavily or stopping breathing. Each of those has a different answer, and none of them improves by waiting it out.