Can poor sleep affect erectile function?
Quick answer
Yes, poor sleep is a genuine, evidence-backed contributor to erectile dysfunction. Sleep is when most testosterone production happens, and both short-term sleep deprivation and chronic conditions like obstructive sleep apnoea are linked with higher rates of ED. Improving sleep will not resolve every case, but it is a factor worth addressing alongside other causes.
The sleep–hormone link
Testosterone, the hormone most closely linked with erectile function and libido, is produced predominantly during sleep, with levels rising through the night and peaking around waking. Consistently poor, short or fragmented sleep disrupts that pattern and is associated with measurably lower testosterone over time, one well-known study found that even a week of restricting healthy young men to five hours of sleep a night reduced testosterone levels significantly.
Erections depend on more than hormones alone, blood flow and nerve signalling matter just as much, but testosterone plays a genuine supporting role, particularly for desire and the frequency of spontaneous erections. Our guide to testosterone replacement therapy covers the hormonal side in more depth.
Obstructive sleep apnoea: the strongest specific link
Beyond general sleep loss, one condition stands out for its clear association with erectile dysfunction: obstructive sleep apnoea (OSA), where breathing repeatedly stops and starts during sleep, often alongside loud snoring and unrefreshing sleep despite a full night in bed. Research consistently finds ED significantly more common in men with OSA than in men without it, and the more severe the sleep apnoea, the stronger the association tends to be.
The mechanism is thought to be a combination of factors: repeated drops in blood oxygen affecting blood vessel function, disrupted testosterone production from fragmented sleep, and the knock-on effects of chronic fatigue and poor sleep quality on desire and confidence. OSA is also linked with high blood pressure and cardiovascular risk, both established causes of ED in their own right, which likely compounds the effect.
Why blood vessels matter here too
An erection is fundamentally a blood-flow event, healthy blood vessels need to dilate properly to allow the blood flow an erection depends on. Poor sleep, particularly untreated sleep apnoea, is linked with the same kind of blood vessel dysfunction seen in high blood pressure and early cardiovascular disease. This is part of why ED is sometimes described as an early warning sign of broader cardiovascular risk, the blood vessels affecting erections are often smaller and show problems before those supplying the heart do.
That connection is worth taking seriously rather than dismissing sleep-related ED as "just tiredness", it can be a genuine signal about vascular health worth discussing with a clinician.
What improving sleep can realistically change
For general poor sleep, irregular hours, too little sleep, high stress disrupting rest, improving sleep habits can help testosterone levels and overall energy, which may modestly improve desire and erectile function alongside other measures. It is rarely a complete fix on its own, particularly when ED has multiple contributing causes, but it removes one genuine factor working against you.
For sleep apnoea specifically, treating the underlying condition, most commonly with a CPAP device that keeps the airway open overnight, has been shown in research to improve erectile function for a meaningful proportion of men, alongside the wider health benefits of properly treating OSA. It does not work for everyone, and it is not a fast fix; benefits typically build up over weeks to months of consistent use.
Sleep is one factor among several
Sleep rarely acts alone. ED commonly has more than one contributing cause at once, blood vessel health, hormone levels, mental health, certain medicines, alcohol, smoking and relationship factors can all play a part alongside sleep. That is exactly why a clinical assessment looks at the whole picture rather than treating sleep in isolation, and why improving sleep is best thought of as one useful lever among several rather than a guaranteed solution on its own.
If you snore loudly, wake unrefreshed, feel excessively sleepy in the day, or a partner has noticed pauses in your breathing at night, that combination is worth raising specifically, sleep apnoea is under-diagnosed, and treating it addresses far more than erectile function alone.
Signs it could be more than just tiredness
Because sleep apnoea is so under-diagnosed, many people who have it have never been told, and some do not realise their sleep is disrupted at all, it is worth knowing the signs specifically rather than assuming ordinary tiredness explains everything. Loud, habitual snoring is the most recognisable sign, especially when a partner reports pauses in breathing, gasping, or choking sounds during sleep. Waking unrefreshed despite a full night in bed, morning headaches, and excessive daytime sleepiness, struggling to stay awake during quiet daytime activities like reading or watching television, are also characteristic.
Risk is higher with excess weight, particularly around the neck, with increasing age, and in men generally, though it affects women too and is often under-recognised in that group. If several of these apply to you alongside erectile difficulties, that combination is worth raising directly with a clinician rather than assuming the two are unrelated, a sleep study, sometimes done at home, can confirm the diagnosis.
Practical steps worth trying alongside treatment
Whether or not sleep apnoea is involved, a handful of well-evidenced sleep habits are worth putting in place regardless, they support hormone health generally and cost nothing to try. A consistent sleep and wake time, even at weekends, helps regulate the hormonal rhythms that testosterone production depends on. Reducing alcohol, particularly in the hours before bed, matters specifically here: alcohol fragments sleep quality even when it helps you fall asleep faster, and it independently affects erectile function through its impact on the nervous system and blood vessels.
Limiting screens and bright light in the hour before bed, keeping the bedroom cool and dark, and cutting caffeine in the afternoon are all standard, well-supported sleep hygiene measures. None of these alone will resolve significant ED, but as a foundation alongside proper investigation and treatment, they remove one more factor working against you, and they tend to improve energy, mood and general wellbeing regardless of the outcome for erectile function specifically.
Getting help
If you are dealing with both poor sleep and erectile difficulties, it is worth discussing both together rather than treating them as unrelated. A clinician can assess whether sleep apnoea or another sleep disorder might be a factor, alongside the other established causes of ED, and advise on treatment options, including immediate on-demand treatment where appropriate, and addressing the underlying causes for a more lasting improvement. Our guide to erectile dysfunction treatment options covers what is available, and our guide to insomnia covers when sleep problems themselves need clinical attention.
Our clinical team can talk through both sides of this with you, discreetly, without judgement, and with a plan tailored to what is actually driving things for you, subject to suitability.
Frequently asked questions
Can lack of sleep really cause erectile dysfunction?
Yes. Poor or insufficient sleep is linked with lower testosterone and reduced erectile function, and is a genuine contributing factor alongside other causes.
Does sleep apnoea cause ED?
There is a strong, consistently observed link between obstructive sleep apnoea and erectile dysfunction, likely from a combination of oxygen drops, hormone disruption and cardiovascular strain.
Will treating my sleep apnoea fix erectile dysfunction?
For many men it improves things, particularly with consistent CPAP use over weeks to months, though it does not work for everyone and other causes may still need addressing.
How is testosterone linked to sleep?
Most testosterone production happens during sleep, with levels peaking around waking. Poor or short sleep is linked with measurably lower testosterone over time.
Should I see a doctor about snoring and ED together?
Yes, loud snoring, unrefreshing sleep and erectile difficulties together are worth raising as a combination, since they may point towards sleep apnoea, which is under-diagnosed and treatable.

