Sleep and Erectile Dysfunction
If you snore loudly, wake unrefreshed and have noticed fewer morning erections or worsening ED, sleep – especially obstructive sleep apnoea (OSA) – deserves attention. Poor sleep can worsen blood pressure, glucose control, weight, mood and hormonal regulation, all of which affect erections. OSA is particularly associated with ED, and a 2026 systematic review found worse erectile-function scores as sleep apnoea became more severe. Treating confirmed OSA can improve erections in some men, but sleep is rarely the only possible explanation for persistent ED. Vascular, metabolic, hormonal and psychological causes should still be assessed.
How are sleep and erections connected?
An erection depends on the brain, autonomic nerves, hormones and blood vessels. Chronic sleep restriction pushes several of these systems in the wrong direction: sympathetic stress rises, insulin resistance and blood pressure can worsen, appetite and weight gain become harder to control, and mood and sexual interest can fall.
Sleep also contains repeated REM phases during which spontaneous nocturnal erections normally occur.
What do morning erections mean?
Morning erections are partly a reflection of normal sleep-related erectile cycles, not simply a “testosterone test.” Their presence can suggest that the basic neurovascular erection pathway is functioning, but they are not a perfect way to distinguish psychological from physical ED.
A man can have organic ED and still occasionally have morning erections, while poor sleep can reduce morning erections even without severe penile vascular disease.
Obstructive sleep apnoea and ED
OSA causes repeated upper-airway obstruction during sleep, intermittent oxygen drops and sleep fragmentation. It is linked with obesity, hypertension, diabetes and cardiovascular disease – the same conditions strongly associated with ED.
The 2026 systematic review found a moderate relationship between greater OSA severity and poorer erectile-function scores. Lower overnight oxygen levels also tracked with worse erectile function. For a patient, the message is practical: severe snoring, witnessed apnoeas and daytime sleepiness are not just sleep complaints when ED is also present.
Signs that ED may coexist with sleep apnoea
- Loud habitual snoring.
- Witnessed pauses in breathing, choking or gasping during sleep.
- Unrefreshing sleep despite enough time in bed.
- Morning headaches or dry mouth.
- Excessive daytime sleepiness or poor concentration.
- Obesity or large neck circumference.
- High blood pressure that is difficult to control.
- ED together with reduced morning erections.
Can CPAP improve erections?
Continuous positive airway pressure (CPAP) keeps the airway open during sleep and treats the sleep-breathing disorder itself. Erectile-function scores improve in some men after CPAP, but the response is variable. A man with severe diabetes, vascular disease or low testosterone may still need direct ED treatment even when his OSA is well treated.
CPAP should be used because it treats a clinically important sleep-breathing disorder. Any improvement in erections is a possible additional benefit, not the only reason to use it.
Is sildenafil or tadalafil still needed if OSA is treated?
Sometimes yes. Older meta-analysis data suggest PDE5 inhibitors often improve erectile function more than CPAP alone, while combination treatment can be useful. The choice depends on ED severity, cardiovascular safety and how much erection function returns after OSA treatment.
Treating OSA and using an ED medicine are not competing strategies.
Does poor sleep automatically mean low testosterone?
Severe or chronic sleep disruption can affect testosterone physiology, but one poor night is not enough to diagnose testosterone deficiency. Obesity and OSA can also influence hormone levels.
If low libido, fatigue and reduced morning erections persist, testosterone should be measured with proper morning testing and interpreted alongside symptoms rather than assumed from sleep quality alone.
What about night shifts and irregular sleep?
Irregular schedules, chronic sleep debt and circadian disruption can worsen metabolic health and mood, which may contribute to ED. The relationship is complex because shift workers may also have stress, different diet patterns and reduced exercise.
The practical goal is consistent adequate sleep and treatment of any sleep disorder rather than a rigid bedtime rule for every patient.
What to do if sleep may be contributing to ED
- Keep a reasonably consistent sleep-wake schedule.
- Aim for enough sleep opportunity rather than trying to function chronically sleep-deprived.
- Reduce late heavy alcohol, which fragments sleep and can worsen erections.
- Treat nasal obstruction or other sleep problems when relevant.
- Lose excess weight if OSA risk is high.
- Seek assessment for loud snoring, witnessed apnoeas or major daytime sleepiness.
- Continue direct ED evaluation if erections remain poor despite better sleep.
Who should see both a urologist and a sleep physician?
- ED persists for weeks to months.
- There is diabetes, high BP, high cholesterol or heart disease.
- Libido is low or testosterone deficiency is suspected.
- There is penile pain, curvature or deformity.
- ED is severe despite treating OSA.
- You need sildenafil/tadalafil but also take heart or BP medicines.
What to bring for consultation
- Sleep study and CPAP report if available.
- List of medicines and supplements.
- BP, HbA1c/glucose and lipid reports.
- Morning testosterone report if already tested.
- Description of snoring/daytime sleepiness.
- Approximate sleep duration and shift-work pattern.
- Pattern of morning erections and ED severity.
FAQs
Can lack of sleep cause ED?
Chronic poor sleep can contribute to ED, especially through vascular, metabolic and psychological pathways. It is rarely the only possible cause in persistent ED.
Does sleep apnoea cause erectile dysfunction?
OSA is strongly associated with ED. The relationship is partly direct and partly through shared risks such as obesity, hypertension and diabetes.
Will CPAP cure ED?
It may improve erections in some men with OSA, but complete recovery is not guaranteed and direct ED treatment may still be needed.
Are morning erections proof that ED is psychological?
No. They are useful clinical information but are not a perfect diagnostic test.
Should I test testosterone because I sleep badly?
Only if symptoms and clinical context support it. Testosterone testing should be performed and interpreted correctly rather than used as a routine explanation for every sleep-related complaint.
Related reading
- Can Erectile Dysfunction Be Reversed Naturally?
- Exercise and Erectile Function
- Weight Loss and Erectile Dysfunction
- Morning Erection and Erectile Dysfunction
- Testosterone Test for Erectile Dysfunction
- Erectile Dysfunction and Obesity
- Does Masturbation Cause Erectile Dysfunction?
- Urologist in Latur
References
- European Association of Urology. EAU Guidelines on Sexual and Reproductive Health – Management of Erectile Dysfunction (2026) https://uroweb.org/guidelines/sexual-and-reproductive-health/chapter/management-of-erectile-dysfunction
- Pang KH, et al. The association between obstructive sleep apnoea and erectile dysfunction: a systematic review and meta-analysis. Int J Impot Res. 2026 https://pubmed.ncbi.nlm.nih.gov/42410062/
- Li Z, et al. The effect of CPAP and PDE5 inhibitors on erectile function in men with obstructive sleep apnea and erectile dysfunction: a systematic review and meta-analysis. Sleep Med Rev. 2019;48:101217 https://pubmed.ncbi.nlm.nih.gov/31715462/