Erectile Dysfunction

The link between sleep and erectile dysfunction

If you’ve ever felt too tired for sex, you’re not alone. Many people, including those in relationships, report feeling too tired for sex on a regular basis. [1]  Let’s get into the link between sleep and erectile dysfunction.

Poor sleep can do more than just lower your energy throughout the day. Sleep also has an important relationship with your sexual health and your erections. Many studies suggest a strong connection between sleep patterns and erectile dysfunction (ED), making sleep not just a lifestyle factor, but a crucial part of men’s sexual health. [2][3] 

Thankfully, if you’re struggling with sleep and sexual health, there are plenty of options for intervention. The first port of call is to understand how sleep and sexual health work together, and what may be causing your erectile dysfunction.

Understanding erectile dysfunction (ED)

Erectile dysfunction refers to the ongoing difficulty in achieving or maintaining an erection firm enough for sex. It’s more common than you might think — affecting an estimated 1 in 10 men in the UK at some point in their lives. [4] While it’s often associated with ageing, ED can happen at any age and is influenced by a variety of physical, psychological, and lifestyle factors.

Causes range from cardiovascular issues to anxiety and low testosterone levels. Sleep, as it turns out, plays a role in almost all of these factors — yet it’s often overlooked in conversations about sexual health and erectile dysfunction.

Why sleep matters for men’s sexual health

Sleep is more than rest. It’s a time when your body does critical repair work, restoring hormone balance, and recalibrating your brain. For men, one of the key hormones affected by sleep is testosterone. That’s where things start to link closely to sexual performance.

Men produce the majority of their daily testosterone during sleep, with levels peaking around the first REM phase. [5] This stage of your sleep is characterised by vivid dreaming, rapid eye movements, and increased brain activity, similar to when you’re awake. This stage is important to sexual health as men produce the majority of their daily testosterone while they’re asleep. When sleep is disrupted or shortened, so is testosterone production. And lower testosterone has been linked to a decrease in libido and erectile function.[6]

How sleep affects erections

Erections aren’t just about arousal. They’re a complex process involving blood flow, nerve function, and hormonal signals. All of these systems are influenced by sleep. Here’s a breakdown of how this works: 

  • The brain’s command centre: A part of the human brain, your hypothalamus regulates both the sleep-wake cycle (known as your circadian rhythm) and sexual function via your pituitary gland, which controls testosterone release. [7] A bad night’s sleep, or ongoing poor sleep health, can interfere with this system affecting both your circadian rhythm and your testosterone production. [8]

  • Autonomic nervous system: This system helps regulate erections and it’s also sensitive to sleep disruption. Inadequate rest can increase sympathetic (stress-related) activity, which can reduce blood flow to the penis. [9]

  • Testosterone dips: One study found that even one week of restricted sleep (fewer than 5 hours per night) can reduce testosterone levels by 10–15%. That’s enough to cause noticeable changes in libido and performance. [10]

Sleep disorders that may contribute to ED

If you have pre-existing health issues with sleep, this could be contributing to ED. Some men have chronic issues with sleep that go beyond just staying up too late. Certain sleep disorders are strongly associated with erectile dysfunction, including:

  • Sleep Apnoea: Obstructive sleep apnoea (OSA) is a condition where breathing repeatedly stops and starts during sleep. It’s been linked to low oxygen levels, reduced testosterone, and inflammation — all of which can impact erectile function. Several studies suggest that up to 70% of men with OSA also experience ED. [11]

  • Insomnia: Trouble falling or staying asleep doesn’t just make you feel tired — it can increase cortisol (stress hormone) and reduce testosterone, leading to reduced sexual desire and performance. [12]

  • Restless Leg Syndrome (RLS): This condition causes unpleasant leg sensations that disturb sleep. Some research suggests men with RLS are more likely to experience ED likely due to poor sleep quality. [13]

Inflammation, hormones, and brain chemistry

It’s not just sleep duration that matters. The quality of sleep is equally important to erectile function and overall sleep health. Disrupted or fragmented sleep has been shown to increase inflammation in the body, which can damage blood vessels including those needed for healthy erections. [14]

There’s also evidence that sleep deprivation affects chemicals like adenosine and neuropeptide Y, which are involved in regulating blood flow and stress response. Both are linked to sexual performance in scientific studies. Simply put, your brain and body aren’t getting the reset they need without enough rest. [15]

ED isn’t always physical and neither is poor sleep. Anxiety, depression, and stress are all known to disrupt sleep, and they’re also common contributors to sexual dysfunction, including erectile dysfunction or unreliable erections.[ 16] 

Unfortunately, the relationship is circular. Sleep problems can cause mental health symptoms, which can worsen both sleep and sexual function. Men with untreated insomnia, for example, are more likely to report ED. Men experiencing ED also often develop performance anxiety, which can further disturb sleep. [17]

Rest assured, there are plenty of solutions you can explore to combat this cycle. Experiencing sleep and erectile issues ongoingly make it especially important to address the root causes as well as treating the symptoms.

What you can do: treatments and lifestyle tips

If you’re dealing with ED and also noticing sleep issues, it’s worth speaking to a healthcare professional. In many cases, treating sleep disorders (like starting a medication plan or using a CPAP machine for sleep apnoea) has been shown to significantly improve erectile function. [18] It’s always important to speak to your general practitioner about your sleep health if you have concerns about it, especially if it’s affecting your sexual health and especially before starting any treatments. 

For others, a few lifestyle changes can make a big difference:

  • Set a consistent sleep schedule: Aim for 7–9 hours of sleep per night, and try to fall sleep and wake up at the same time each day.

  • Create a wind-down routine: Avoid screens before bed and reduce caffeine late in the day.

  • Exercise regularly: Physical activity improves both sleep quality and sexual function.

  • Manage stress: Try mindfulness, breathing exercises or cognitive behavioural therapy (CBT).

Sleep is often seen as something we can cut back on to make time for everything else. But when it comes to sexual health, and especially erectile function, consistent, high-quality sleep is essential.

If you’ve noticed changes in your erections, libido, or sexual performance, take a moment to assess your sleep habits. Getting a better night’s rest could be a key piece of the puzzle.

Other interventions for sleep health and erectile function

If lifestyle adjustments and sleep improvements aren’t fully addressing your erectile dysfunction (ED), MedExpress offers a range of clinically approved treatments that can help. 

Oral ED medications are designed to enhance blood flow to the penis, improving your ability to achieve and maintain an erection when sexually aroused. [19]

Sildenafil (Generic Viagra)

Sildenafil is the active ingredient in Viagra, and is available in its generic form as a treatment for ED. It typically takes effect within 30–60 minutes and lasts for up to six hours. Generic sildenafil may offer a cost-effective option, but as with all prescription treatments, it’s important to consult a healthcare professional to determine if sildenafil is suitable for you and to discuss any potential side effects. [20]

Viagra (Sildenafil)

As the original branded version of sildenafil, Viagra® offers the same efficacy with the assurance of a well-known name. It also takes 30–60 minutes to work and provides support for up to 6 hours. This option may appeal to those who prefer brand-name medications. [21]

Tadalafil (Generic Cialis)

Tadalafil is the active ingredient in Cialis® and is available in both branded and generic forms. It is known for its long duration of action, lasting up to 36 hours. This medication can be taken either on demand or daily, offering flexibility depending on individual preferences and lifestyle. The daily option may be suitable for those with more frequent sexual activity. [22]

Cialis® (Tadalafil)

Cialis® is the branded version of tadalafil and shares the same long-lasting effects. It can be taken either on demand or daily, depending on your lifestyle and preferences. 

Spedra® (Avanafil)

Spedra® contains avanafil, a fast-acting PDE5 inhibitor that can take effect in as little as 15 minutes. It provides support for up to 6 hours and can be taken with or without food, offering flexibility depending on individual preferences. [23]

Vardenafil (Generic Levitra®)

Vardenafil is another effective PDE5 inhibitor, particularly noted for its suitability in men with diabetes. It takes about 25–60 minutes to take effect and lasts for up to five hours. This medication can be taken with or without food. [24]


As with all prescription medications, it’s important to consult a healthcare provider to determine whether tadalafil, either in its generic or branded form, is the right option for you. A healthcare provider can also discuss potential side effects, risks and interactions based on your medical history

If low testosterone is a concern, your doctor may recommend blood tests to check your testosterone levels. This is a standard first step before considering  hormone replacement therapy. If you have any concerns at all about starting erectile dysfunction treatment, or if you suspect low testosterone, you should speak to your general practitioner. They can assess your symptoms, arrange appropriate tests, discuss treatment options and refer you to a specialist if necessary.

If you’re struggling with sleep and it’s having an impact on your erectile health, it’s not the be all or end all. You are not alone and there are plenty of methods from lifestyle changes to treatment options at your disposal. 

Concerned about ED? It’s important to consult with a healthcare provider who can assess your condition and discuss appropriate treatment options. MedExpress offers confidential online consultations with qualified healthcare professionals, ensuring that you receive personalised advice. A prescription will only be issued after a medical consultation, based on your individual health needs.


References

  1. CBS News. Many too tired for sex, study says. 2009 Jul 29 [cited 2025 May 2]. Available from: https://www.cbsnews.com/news/many-too-tired-for-sex-study-says/

  2. Zhang X, Zhang Y, Wu X, et al. Short sleep duration and erectile dysfunction: systematic review and meta-analysis. J Sex Med. 2022;19(12):1387–1396. Available from: https://pubmed.ncbi.nlm.nih.gov/36325277/PubMed

  3. Zhang Y, Zhang W, Wu X, et al. Short sleep duration and erectile dysfunction: systematic review and meta-analysis. J Sex Med. 2022;19(12):1387–1396. Available from: https://pmc.ncbi.nlm.nih.gov/articles/PMC9621223/

  4. Zhang Y, Zhang W, Wu X, et al. Short sleep duration and erectile dysfunction: a systematic review and meta-analysis. J Sex Med. 2022;19(12):1387–1396. Available from: https://pmc.ncbi.nlm.nih.gov/articles/PMC9159135/PubMed

  5. Andersen ML, Tufik S. The effects of sleep deprivation on sexual hormones and sexual behavior. J Sex Med. 2005;2(5):743–752. Available from: https://pubmed.ncbi.nlm.nih.gov/10591612/

  6. Kraus T, Haack M, Schuld A, et al. Sleep disorders and sexual dysfunction. Neuropsychobiology. 2000;42(3):113–118. Available from: https://pmc.ncbi.nlm.nih.gov/articles/PMC5649360/

  7. National Institute of Neurological Disorders and Stroke. Restless Legs Syndrome Fact Sheet. 2019 [cited 2025 May 2]. Available from: https://www.ncbi.nlm.nih.gov/books/NBK279126/

  8. Gamaldo CE, Earley CJ. Restless legs syndrome: clinical update. Chest. 2006;130(5):1596–1604. Available from: https://pmc.ncbi.nlm.nih.gov/articles/PMC4377487/

  9. UCSF Health. Erectile Dysfunction. 2023 [cited 2025 May 2]. Available from: https://www.ucsfhealth.org/conditions/erectile-dysfunction

  10. University of Chicago Medicine. Sleep loss lowers testosterone in healthy young men. 2011 Jul 1 [cited 2025 May 2]. Available from: https://www.uchicagomedicine.org/forefront/news/sleep-loss-lowers-testosterone-in-healthy-young-men

  11. Zhang Y, Zhang W, Wu X, et al. Short sleep duration and erectile dysfunction: systematic review and meta-analysis. J Sex Med. 2022;19(12):1387–1396. Available from: https://pmc.ncbi.nlm.nih.gov/articles/PMC8896119/PubMed

  12. Obsidian Men’s Health. Sleep and Sexual Health: How Rest Affects Testosterone and Performance. 2023 [cited 2025 May 2]. Available from: https://obsidianmenshealth.com/sleep-and-sexual-health-how-rest-affects-testosterone-and-performance/

  13. Ohayon MM, Roth T. Prevalence of restless legs syndrome and periodic limb movement disorder in the general population. J Psychosom Res. 2002;53(1):547–554. Available from: https://pmc.ncbi.nlm.nih.gov/articles/PMC3649636/

  14. Wu X, Zhang Y, Zhang W, et al. The Association Between Erectile Dysfunction and Sleep Parameters: Data from Prospective, Controlled Cohort. J Sex Med. 2022;19(12):1387–1396. Available from: https://academic.oup.com/jsm/article-abstract/21/12/1098/7760242PubMed

  15. Gonzalez MM, Aston-Jones G. Circadian regulation of arousal: role of the noradrenergic locus coeruleus system and light exposure. Neuroscience. 2006;137(3):1087–1097. Available from: https://www.aimspress.com/article/doi/10.3934/Neuroscience.2016.1.67

  16. Zhang Y, Zhang W, Wu X, et al. Short sleep duration and erectile dysfunction: systematic review and meta-analysis. J Sex Med. 2022;19(12):1387–1396. Available from: https://onlinelibrary.wiley.com/doi/10.1111/andr.13574

  17. Zhang Y, Zhang W, Wu X, et al. Short sleep duration and erectile dysfunction: a systematic review and meta-analysis. J Sex Med. 2022;19(12):1387–1396. Available from: https://onlinelibrary.wiley.com/doi/10.1111/andr.13574

  18. Zhang Y, Zhang W, Wu X, et al. Short sleep duration and erectile dysfunction: systematic review and meta-analysis. J Sex Med. 2022;19(12):1387–1396. Available from: https://pubmed.ncbi.nlm.nih.gov/29773460/

  19. The Cardiology Advisor. Erectile Dysfunction Drugs and Nitrates. 2019 [cited 2025 May 2]. Available from: https://www.thecardiologyadvisor.com/features/erectile-dysfunction-drugs-and-nitrates/

  20. Padma-Nathan H, Steers WD, Wicker PA, et al. Efficacy and safety of oral sildenafil in the treatment of erectile dysfunction: double-blind, placebo-controlled study of 329 patients. Int J Clin Pract. 1998;52(6):375–380. Available from: https://pubmed.ncbi.nlm.nih.gov/11879261/Nature

  21. Padma-Nathan H, Steers WD, Wicker PA, et al. Efficacy and safety of oral sildenafil in the treatment of erectile dysfunction: double-blind, placebo-controlled study of 329 patients. Int J Clin Pract. 1998;52(6):375–380. Available from: https://pubmed.ncbi.nlm.nih.gov/11879261/

  22. Porst H, Padma-Nathan H, Giuliano F, et al. Efficacy of sildenafil citrate at 12 hours after dosing: a randomized, double-blind, placebo-controlled study. J Androl. 2004;25(6):937–943. Available from: https://onlinelibrary.wiley.com/doi/full/10.2164/jandrol.04126European Urology

  23. Eardley I, Cartledge J, Dean J, et al. A randomized, double-blind, placebo-controlled, parallel-group study to assess the efficacy and safety of tadalafil taken once daily in men with erectile dysfunction. J Urol. 2005;174(1):229–233. Available from: https://www.sciencedirect.com/science/article/abs/pii/S0022534715000191

  24. Goldstein I, Lue TF, Padma-Nathan H, et al. Oral sildenafil in the treatment of erectile dysfunction. N Engl J Med. 1998;338(20):1397–1404. Available from: https://pubmed.ncbi.nlm.nih.gov/16422971/
MedExpress

Share
Published by
MedExpress

Recent Posts

How to Last Longer in Bed: Tips and Techniques For Men

How to last longer in bed  Many of us have worries about how long we…

4 days ago

Tadalafil Side Effects: Comprehensive Guide And What To Expect

Tadalafil, known by the brand name Cialis, is a widely used prescription medication that treats…

2 months ago

The Role of Food in Sexual Health

When it comes to sexual health, there’s no single food that guarantees a stronger libido…

2 months ago

Glucomannan Powder: How To Use It For Weight Loss

You can't substitute a balanced diet, regular activity or prescription treatments like Mounjaro and Wegovy…

2 months ago

Chewable Viagra: How Does It Work, And Is It Right For You?

Erectile dysfunction (ED) affects millions of men worldwide, [1] and for decades, oral medications have…

2 months ago

Psyllium Husk: A Natural Aid In Supporting Your Weight Loss Goals

When it comes to weight management or losing weight, finding effective natural solutions that boost…

2 months ago