Sleep has a more direct effect on male sexual function than most men realise. Testosterone is largely produced during sleep, so short or disrupted nights lower levels measurably. Add the fatigue, irritability and low mood that come with poor sleep, and it is easy to see why libido suffers. For many men with low desire, improving sleep produces a bigger improvement than anything else they try.
Why does testosterone depend on sleep?
Testosterone production follows a daily rhythm, rising through the night and peaking in the early morning. Most of the rise happens during deep and REM sleep. Interrupting sleep, or simply not getting enough of it, cuts this production short.
Research has shown that restricting healthy young men to around five hours of sleep a night for a week reduced their daytime testosterone levels significantly, by an amount roughly equivalent to ageing ten to fifteen years. Levels recover when normal sleep resumes.
How else does poor sleep affect desire?
Tiredness reduces motivation for almost everything, including sex. Poor sleep worsens mood, increases irritability and reduces patience, which affects relationships. It also raises stress hormones and makes it harder to manage everyday pressure.
Sleep loss affects the erections that occur naturally during REM sleep, which is why some men notice fewer morning erections during periods of poor sleep.
What is obstructive sleep apnoea?
Obstructive sleep apnoea is a condition where the airway repeatedly closes during sleep, interrupting breathing and fragmenting sleep. It is common in men, particularly those who are overweight or have a larger neck size, and it is often undiagnosed.
Signs include loud snoring, gasping or choking during sleep, pauses in breathing noticed by a partner, waking unrefreshed, and daytime sleepiness. It is strongly linked to low testosterone, erectile dysfunction and reduced libido, as well as high blood pressure and heart problems.
Treatment, usually with a CPAP machine that keeps the airway open, often improves energy, mood and sexual function considerably.
What about shift work?
Working nights or rotating shifts disrupts the body clock and reduces sleep quality. Studies have linked shift work to lower testosterone and higher rates of sexual difficulties. If you work shifts, protecting sleep during the day with blackout blinds, earplugs and a consistent routine helps.
How much sleep do you need?
Most adults need seven to nine hours a night. Individual needs vary, but regularly getting less than seven hours is associated with poorer health outcomes. Quality matters as well as quantity: broken sleep is less restorative even if the total hours look adequate.
How can you improve sleep?
Keep regular sleep and wake times, including at weekends. Avoid caffeine after early afternoon and limit alcohol, which may help you fall asleep but fragments sleep later in the night and lowers testosterone.
Keep the bedroom cool, dark and quiet. Reduce screen use in the hour before bed. Get daylight exposure in the morning, which helps set the body clock. Regular exercise improves sleep quality, though very intense exercise late at night can delay sleep for some people.
If you cannot sleep, get up and do something quiet rather than lying awake for long periods.
How quickly does it improve?
Testosterone levels recover within days of returning to normal sleep, and most men notice improved energy and mood within a week or two. Where sleep apnoea is treated, improvements in libido and erections often appear over the following months rather than immediately.
When should you see a GP?
See a GP if you snore loudly and wake unrefreshed, if a partner has noticed you stop breathing during sleep, if you feel sleepy during the day, or if insomnia has lasted more than a few weeks. Sleep apnoea is diagnosed with a sleep study, often done at home.
Insomnia lasting more than three months is usually treated with cognitive behavioural therapy for insomnia rather than sleeping tablets, which can worsen daytime tiredness.
Tell your GP and the DVLA if you fall asleep or feel very sleepy while driving.
Other guides on the same theme are gathered in our sexual health section.
This page is general information rather than medical advice.