Better sex, whenever you want.

Start here

Can Lack of Sleep Cause Erectile Dysfunction?

Katelyn Hagerty FNP

Reviewed by Katelyn Hagerty, FNP

Written by Rachel Sacks

Updated 11/22/2022

If you struggle with erectile dysfunction (ED), you’re not alone — data suggests this medical condition affects around 30 million men in the U.S. While you’re not alone in dealing with erectile dysfunction, there are many causes of erectile dysfunction. One of them may indeed be sleep. Can lack of sleep cause erectile dysfunction? 

We know sleep is crucial to health and overall well-being, and being deprived of enough sleep can cause plenty of issues in your day-to-day life.

But can it really affect your erectile function?

Choose your chew

Add a boost to your sex life with our new chewable formats

Erectile dysfunction is an inability to get an erection or being unable to sustain an erection sufficient for penetrative sex.

Erectile dysfunction can also include:

  • Being able to get a normal erection but having trouble maintaining it during sex

  • Not being able to get an erection every time you want to have sex

  • Not getting an erection at all, even with sexual stimulation

This condition can either be a short-term problem that comes up now and again or a long-term issue that develops over years.

Not only can ED affect sexual intercourse, but it can also hurt your self-confidence and negatively affect your sex life. So it’s understandable to want to find out the cause.

As we mentioned above, there can be many causes of ED. Can lack of sleep cause erectile dysfunction?

Choose your chew

Add a boost to your sex life with our new chewable formats

As we mentioned earlier, a lack of sleep can certainly impact your mental and physical health, including sexual health. So can sleep deprivation cause erectile dysfunction or other sexual dysfunction?

Sexual dysfunction can include a lack of sexual arousal or interest in sex, not being able to climax and, in some cases, can even include sex that’s downright painful (painful erection).

Lack of sleep could be a possible cause of erectile dysfunction. Chronic sleep disorders like insomnia or sleep apnea can be a risk factor and accompany ED.

If you struggle to fall asleep or stay asleep or if you don’t get quality sleep, you may be dealing with insomnia. Other insomnia symptoms include laying awake for a long time, only sleeping for short amounts of time or waking up too early in the morning.

A lack of sleep and disrupted sleep — common insomnia symptoms — have been linked to a higher risk of erectile dysfunction.

Sleep apnea is a condition in which your breathing stops and restarts multiple times while you’re asleep. There are two types of sleep apnea:

  • Obstructive sleep apnea. The most common type of sleep apnea, obstructive sleep apnea occurs when your upper airway becomes blocked and airflow completely stops or significantly decreases.

  • Central sleep apnea. This type of sleep apnea happens when your brain doesn’t send signals to breathe and may be caused by health conditions that affect how your brain controls chest muscles and the airway.

Symptoms of severe sleep apnea can include loud snoring, feeling sleepy in the daytime, headaches and sexual dysfunction or decreased libido. 

A 2016 study also found that obstructive sleep apnea is associated with a significantly higher risk of erectile dysfunction.

Disrupted sleep, whether from sleep apnea or another sleep disorder, can also affect testosterone levels. Testosterone levels are generally at their highest during REM sleep, a stage of sleep associated with rapid eye movement (REM) and dreaming.

This disruption to levels of testosterone production could lead to hypogonadal symptoms, a condition where the body’s sex glands don’t produce hormones, and can potentially cause erectile dysfunction.

Sleep deprivation can also affect your sex life by exacerbating mental health concerns like depression and anxiety

Mental health concerns can often influence sexual desire in men and there can be a strong connection between erectile dysfunction and mental health concerns, as a 2015 study found.

Poor sleep or a lack of sleep can also lead to relationship issues, which can then affect sexual health and sexual activities with your partner. A lack of sleep can heighten stress and cause conflict with a partner.

Another way a lack of sleep and ED are connected? Work schedule. 

Working non-standard hours or night shifts can throw your circadian rhythm — the body’s internal clock that carries out essential functions — out of alignment and interferes with bodily functions, like sexual function and erectile dysfunction.

Choose your chew

Now that we’ve determined that sleep, or lack thereof, can affect erectile function, let’s talk about the ways to right the ship.

Treating Sleep Deprivation

Since a lack of sleep and ED are connected, improving both can help your sexual health and overall well-being.

Improving your sleep can start with talking to your healthcare provider. Diagnosing and properly treating sleep disorders like sleep apnea can help improve sleep and therefore, may improve your sex life. 

We mention sleep apnea specifically because in one randomized trial, using a consistent treatment plan for sleep apnea reduced erectile dysfunction in men. But that’s just one of many examples.

Sleep hygiene — or good sleep habits — is also important for getting quality sleep. Going to sleep and waking up at the same time every day, making sure the room is dark and quiet, getting exercise during the day and removing screens from the room can all help improve sleep.

For long-term insomnia, your healthcare provider may recommend cognitive-behavioral therapy for insomnia (CBT-I). CBT-I can help you overcome the underlying cause of your sleep problems by identifying thoughts and behaviors that worsen sleep problems and replacing them with habits that promote sound sleep.

Treating Erectile Dysfunction

If sleep deprivation isn’t the cause of your erectile dysfunction, there are other treatment options.

Medications are a common option, with several drugs FDA-approved for use including sildenafil (Viagra®), tadalafil (Cialis®) and avanafil (Stendra®).

Therapy is another treatment option for ED and can also be beneficial if you struggle with a sleep disorder or mental health condition like depression or anxiety.

Certain lifestyle changes like increased physical activity, eating a healthy diet and quitting smoking have all been found to help with erectile dysfunction prevention.

Sildenafil citrate

Get hard for 95% cheaper than Viagra

Can lack of sleep cause erectile dysfunction? Yes.

There are many links between lack of sleep and ED. From worsening mental health issues to impacting testosterone levels and more, a lack of sleep can affect your sex life and sexual performance.

There are also many ways you can manage sleep deprivation and treat erectile dysfunction. From getting better rest and sticking to a better bedtime routine, to seeing a healthcare provider and learning more about erectile dysfunction medications, this is a problem that has plenty of possible solutions.

You can get started with online therapy from the comfort and convenience of your own home. Or you can consult with a licensed psychiatry provider to see if other treatments for ED are right for you.

20 Sources

  1. CITED SOURCESAraujo, A. B., Travison, T. G., Ganz, P., Chiu, G. R., Kupelian, V., Rosen, R. C., Hall, S. A., & McKinlay, J. B. (2009). Erectile dysfunction and mortality. The journal of sexual medicine, 6(9), 2445–2454. Retrieved from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3524836/
  2. How Sleep Works - Why Is Sleep Important? (2022, March 24). NHLBI. Retrieved from https://www.nhlbi.nih.gov/health/sleep/why-sleep-important
  3. Sexual Dysfunction & Disorders: Treatment, Symptoms & Diagnosis. (2020, October 27). Cleveland Clinic. Retrieved from https://my.clevelandclinic.org/health/diseases/9121-sexual-dysfunction
  4. Erectile Dysfunction. (n.d.). Johns Hopkins Medicine. Retrieved from https://www.hopkinsmedicine.org/health/conditions-and-diseases/erectile-dysfunction
  5. Insomnia - What Is Insomnia? (2022, March 24). NHLBI. Retrieved from https://www.nhlbi.nih.gov/health/insomnia
  6. Insomnia - Symptoms. (2022, March 24). NHLBI. Retrieved from https://www.nhlbi.nih.gov/health/insomnia/symptoms
  7. Kohn, T. P., Kohn, J. R., Haney, N. M., Pastuszak, A. W., & Lipshultz, L. I. (2020). The effect of sleep on men's health. Translational andrology and urology, 9(Suppl 2), S178–S185. Retrieved from https://pubmed.ncbi.nlm.nih.gov/32257858/
  8. Sleep Apnea - What Is Sleep Apnea? (2022, March 24). NHLBI. Retrieved from https://www.nhlbi.nih.gov/health/sleep-apnea
  9. Sleep Apnea - Symptoms. (2022, March 24). NHLBI. Retrieved from https://www.nhlbi.nih.gov/health/sleep-apnea/symptoms
  10. Chen, K. F., Liang, S. J., Lin, C. L., Liao, W. C., & Kao, C. H. (2016). Sleep disorders increase risk of subsequent erectile dysfunction in individuals without sleep apnea: a nationwide population-base cohort study. Sleep medicine, 17, 64–68. Retrieved from https://pubmed.ncbi.nlm.nih.gov/26847976/
  11. Luboshitzky, R., Herer, P., Levi, M., Shen-Orr, Z., & Lavie, P. (1999). Relationship between rapid eye movement sleep and testosterone secretion in normal men. Journal of andrology, 20(6), 731–737. Retrieved from https://pubmed.ncbi.nlm.nih.gov/10591612/
  12. Hypogonadism. (2020, August 29). MedlinePlus. Retrieved from https://medlineplus.gov/ency/article/001195.htm
  13. Rajkumar, R. P., & Kumaran, A. K. (2015). Depression and anxiety in men with sexual dysfunction: a retrospective study. Comprehensive psychiatry, 60, 114–118. Retrieved from https://pubmed.ncbi.nlm.nih.gov/25818906/
  14. Wilson, S. J., Jaremka, L. M., Fagundes, C. P., Andridge, R., Peng, J., Malarkey, W. B., Habash, D., Belury, M. A., & Kiecolt-Glaser, J. K. (2017). Shortened sleep fuels inflammatory responses to marital conflict: Emotion regulation matters. Psychoneuroendocrinology, 79, 74–83. Retrieved from https://pubmed.ncbi.nlm.nih.gov/28262602/
  15. Rodriguez, K. M., Kohn, T. P., Kohn, J. R., Sigalos, J. T., Kirby, E. W., Pickett, S. M., Pastuszak, A. W., & Lipshultz, L. I. (2020). Shift Work Sleep Disorder and Night Shift Work Significantly Impair Erectile Function. The journal of sexual medicine, 17(9), 1687–1693. Retrieved from https://pubmed.ncbi.nlm.nih.gov/32736945/
  16. Melehan, K. L., Hoyos, C. M., Hamilton, G. S., Wong, K. K., Yee, B. J., McLachlan, R. I., O'Meagher, S., Celermajer, D., Ng, M. K., Grunstein, R. R., & Liu, P. Y. (2018). 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 and metabolism, 103(4), 1601–1611. Retrieved from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6457007/
  17. Tips for Better Sleep CDC. (2022, September 13). Centers for Disease Control and Prevention. Retrieved from https://www.cdc.gov/sleep/about_sleep/sleep_hygiene.html
  18. Insomnia: Causes, Risks & Treatments. (2020, October 15). Cleveland Clinic. Retrieved from https://my.clevelandclinic.org/health/diseases/12119-insomnia
  19. Maiorino, M. I., Bellastella, G., & Esposito, K. (2015). Lifestyle modifications and erectile dysfunction: what can be expected?. Asian journal of andrology, 17(1), 5–10. Retrieved from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4291878/
  20. Definition & Facts for Erectile Dysfunction NIDDK. (n.d.). National Institute of Diabetes and Digestive and Kidney Diseases. https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/definition-facts
Editorial Standards

Hims & Hers has strict sourcing guidelines to ensure our content is accurate and current. We rely on peer-reviewed studies, academic research institutions, and medical associations. We strive to use primary sources and refrain from using tertiary references. See a mistake? Let us know at [email protected]!

This article is for informational purposes only and does not constitute medical advice. The information contained herein is not a substitute for and should never be relied upon for professional medical advice. Always talk to your doctor about the risks and benefits of any treatment. Learn more about our editorial standards here.