
Sleep Apnea, Nocturnal Erections, and What They Reveal About Erectile Dysfunction
Stay up to date.
Men being assessed for erectile dysfunction are rarely asked about their sleep. They should be. Erectile dysfunction is present in roughly 59% to 69% of men with obstructive sleep apnea across studied populations, and the severity of the sleep disorder correlates with the severity of the erectile dysfunction.
Sleep is also where the diagnostic information sits. Healthy men have several erections during the night, and whether those continue is one of the clearest indicators of whether an erectile problem is physical or psychological. This article covers both: what sleep apnea does to erectile function, and what nocturnal erections tell you about the cause.
What obstructive sleep apnea is
In obstructive sleep apnea the airway repeatedly closes during sleep. Each closure interrupts breathing until the body partially wakes to reopen the airway. The pattern can repeat dozens or hundreds of times a night, and the number of events per hour β the apnea-hypopnea index β is how severity is graded.
Two consequences follow. The first is intermittent hypoxia: oxygen levels fall and recover repeatedly through the night. The second is sleep fragmentation: deep and REM sleep are curtailed, and it is during REM sleep that most nocturnal erections occur.
Loud snoring, witnessed pauses in breathing, waking unrefreshed, and daytime sleepiness are the usual presenting features. Many men with the condition are unaware of it, and a partner is often the one who notices.
What the evidence shows about the association
A systematic review and meta-analysis published in the International Journal of Impotence Research in 2026 examined the relationship between markers of obstructive sleep apnea and erectile function. Eight studies met the inclusion criteria, and meta-analysis of seven of them, with a pooled population of 594 patients, found a significant moderate negative correlation between the apnea-hypopnea index and International Index of Erectile Function scores. As the sleep disorder worsened, erectile function scores fell.
The same review reported erectile dysfunction prevalence in men with obstructive sleep apnea ranging from 59.0% to 69.0% across the populations studied. An earlier systematic review in the same journal in 2018 included 28 observational studies examining the association.
Xialla's own work has appeared in the International Journal of Impotence Research, which is the principal specialist journal in this field.
The mechanism
Three pathways connect the two conditions, and they compound each other.
Endothelial damage. Repeated cycles of oxygen deprivation and reoxygenation generate oxidative stress and inflammation, which impair the endothelium β the lining of the blood vessels. Endothelial cells produce nitric oxide, the signaling molecule that triggers smooth muscle relaxation in the penis. Impaired nitric oxide production degrades both arterial inflow and the smooth muscle expansion that compresses the draining veins.
Loss of REM sleep. Nocturnal erections occur predominantly during REM sleep and are thought to contribute to penile tissue health by delivering oxygenated blood to the corpora cavernosa several times a night. Fragmented sleep reduces the number and duration of these events. Prolonged reduction in tissue oxygenation is associated with fibrotic change in the erectile tissue, which impairs the compliance that veno-occlusion depends on.
Testosterone suppression. Testosterone is released in a pattern tied to sleep architecture, and fragmented sleep lowers morning levels. This contributes to reduced desire, though as covered in our article on testosterone and erectile dysfunction, it explains desire more reliably than it explains rigidity.
What treating the sleep apnea achieves
Continuous positive airway pressure, or CPAP, holds the airway open with a stream of pressurized air delivered through a mask. It is the standard treatment for moderate to severe obstructive sleep apnea.
Studies of CPAP in men with both conditions have found improvement in International Index of Erectile Function scores, in the number of nocturnal erectile events, and in nocturnal penile rigidity, with significant improvement reported after three months of therapy in men with severe obstructive sleep apnea. Randomized trials have tested CPAP directly in this group, including a 2018 trial comparing CPAP and vardenafil on erectile and arterial function.
The size of the effect should be stated accurately. A systematic review and meta-analysis comparing the two treatments found CPAP inferior to PDE5 inhibitors for improving erectile function scores, intercourse satisfaction, nocturnal penile tumescence and successful intercourse rate. CPAP combined with a PDE5 inhibitor was superior to CPAP alone.
CPAP is therefore worth doing on its own merits β it treats a condition with substantial cardiovascular and metabolic consequences β and it produces a measurable but partial improvement in erectile function. It is not a substitute for addressing the erectile problem directly.
Nocturnal erections as a diagnostic signal
Healthy men typically have three to five erections during a night's sleep, each lasting some tens of minutes, occurring during REM periods. They are involuntary and unrelated to sexual content. Waking with an erection is usually the tail end of the last of these.
Their diagnostic value comes from what they bypass. A nocturnal erection requires intact nerves, adequate arterial inflow and functioning veno-occlusion, but no arousal, no partner and no psychological context. If the machinery works during sleep but not during sex, the machinery is not the problem.
This makes the pattern useful:
- Nocturnal erections continue, daytime erections fail. Points toward a psychological or situational cause, or in some cases a medication effect.
- Nocturnal erections have reduced or stopped alongside daytime difficulty. Points toward an organic cause, most often vascular.
- Nocturnal erections occur but are short-lived or lose rigidity quickly. Consistent with a retention problem β the erection forms, then drains.
This is an indicator rather than a test. Formal assessment uses nocturnal penile tumescence and rigidity monitoring, and vascular assessment uses penile duplex Doppler ultrasound. But the question a man can answer at home β has waking with an erection become rare? β carries real diagnostic weight, and it is worth reporting to a doctor without being asked.
What this means practically
If you snore heavily, wake unrefreshed, or have been told you stop breathing during sleep, ask for a sleep study. The referral is straightforward and home testing is now common. Treating obstructive sleep apnea has consequences well beyond erectile function.
Report your nocturnal erection pattern when you are assessed for erectile dysfunction. If waking erections have become infrequent, say so, and say when the change happened.
If erections form and then fade β during the night or during sex β the deficit is on the retention side. External devices designed to limit venous outflow act on that mechanism directly, and pelvic floor training acts on the same side. Where a device is used, observe the wear-time limits and warning signs in our guide to using a constriction device safely. The underlying mechanism is described in Venous Leak and Erectile Dysfunction Explained.
Key takeaways
- Erectile dysfunction is present in approximately 59% to 69% of men with obstructive sleep apnea.
- Meta-analysis of seven studies covering 594 patients found a significant moderate negative correlation between apnea-hypopnea index and erectile function scores.
- The mechanisms are endothelial damage from intermittent hypoxia, loss of REM sleep and the nocturnal erections that occur within it, and suppression of testosterone.
- CPAP improves erectile function scores and nocturnal erectile events, but has been found inferior to PDE5 inhibitors for erectile outcomes; the combination outperforms CPAP alone.
- Continuing nocturnal erections alongside daytime failure suggests a psychological or medication-related cause; their loss suggests an organic one.
- Erections that form and then fade, at night or during sex, indicate a retention problem.
References
- The association between obstructive sleep apnoea and erectile dysfunction: a systematic review and meta-analysis. International Journal of Impotence Research. 2026.
- Kellesarian SV, Malignaggi VR, Feng C, Javed F. Association between obstructive sleep apnea and erectile dysfunction: a systematic review and meta-analysis. International Journal of Impotence Research. 2018;30(3):129β140.
- Melehan KL, Hoyos CM, Hamilton GS, et al. Randomized trial of CPAP and vardenafil on erectile and arterial function in men with obstructive sleep apnea and erectile dysfunction. The Journal of Clinical Endocrinology & Metabolism. 2018;103(4):1601β1611.
- Pastore AL, Palleschi G, Ripoli A, et al. Severe obstructive sleep apnea syndrome and erectile dysfunction: a prospective randomized study to compare sildenafil vs. nasal continuous positive airway pressure. International Journal of Clinical Practice. 2014;68(8):995β1000.
- Yang Z, Zhang Y, Wang Y, et al. The effect of CPAP and PDE5i on erectile function in men with obstructive sleep apnea and erectile dysfunction: a systematic review and meta-analysis. Sleep Medicine Reviews. 2020;49:101216.
If you have questions about anything in this article, write to us at hello@xialla.com. We read and answer every message.
This article is for general education and is not medical advice. Consult a qualified healthcare provider about your individual situation.

