Most people know that sleep is good for them, but the benefits go beyond feeling rested. Research suggests that sleep may influence hormone levels, including testosterone,¹ and that sleep problems may be linked to sexual health concerns such as low libido and erectile dysfunction (ED).²
Getting enough sleep is easier said than done. Stress and late-night screen time can make it harder to fall asleep, and poor sleep can leave you feeling tired and irritable.³ A few changes to your evening routine and daily habits may make it easier to get the rest you need.
How Sleep, Hormones, and Sex Interact
The hypothalamus, a part of the brain, helps regulate the sleep-wake cycle. It also controls the pituitary gland, which in turn controls the testes and ovaries.⁴
Sleep loss may lower testosterone in men. In a small study of young, healthy men published in JAMA, daytime testosterone levels were 10 percent to 15 percent lower after one week of sleeping five hours a night.¹ Low testosterone can lead to lower libido and ED,² so sleep loss may affect sexual health in men.
Poor sleep can also cause fatigue and irritability,³ which can make anyone less interested in sex.
Sleep and Erectile Dysfunction
Sleep disorders such as obstructive sleep apnea and insomnia are associated with ED.² A 2022 review also described a possible link between short sleep duration and ED. The authors noted that the mechanisms are largely unknown and that ED can be either a cause or a consequence of short sleep.⁵
Get a Good Night’s Rest
People spend roughly one-third of their lives asleep.⁶ Adults are advised to get at least seven hours of sleep a night, though the amount you need can vary with age and other factors.⁷ Regularly getting less than that has been linked with poor health.⁷
Habits That Support Better Sleep
Light from phones, tablets, and other screens can suppress the body’s production of melatonin, a hormone that promotes sleep. Putting devices away 30 to 60 minutes before bed may help.³ Daylight, on the other hand, helps keep your internal clock in sync.³
Blue light filters may help limit the effect of screen light on melatonin, and melatonin supplements may help some people with occasional insomnia fall asleep slightly faster.⁸ Caffeine, alcohol, and large meals close to bedtime can interfere with sleep.³ Some people also turn to sedatives or other sleep medications, which may disrupt natural sleep patterns.⁹
Diet and exercise also play a role. Regular exercise can improve sleep quality, though working out too close to bedtime may make it harder to fall asleep. Limiting caffeine to earlier in the day can help as well.¹⁰
If you have trouble falling asleep, build relaxation into your bedtime routine. Light stretching can help you wind down.³ Try to use your bed only for sleep and sex, which helps your mind link bed with sleep.³ Try to limit the number of screens in your bedroom, and keep your phone out of bed.¹¹
Getting enough sleep supports overall health, and poor sleep can cause fatigue and irritability.³ It may also affect testosterone¹ and sexual health.² Small habits, such as limiting screen use at night and setting aside time to wind down, may make it easier to sleep well.
References
¹ Leproult R, Van Cauter E. Effect of 1 week of sleep restriction on testosterone levels in young healthy men. JAMA. 2011;305(21):2173–2174. doi:10.1001/jama.2011.710
² Cho JW, Duffy JF. Sleep, sleep disorders, and sexual dysfunction. World J Mens Health. 2019;37(3):261–275. doi:10.5534/wjmh.180045
³ Suni E. How to sleep better. Sleep Foundation. Updated October 31, 2025. Accessed November 11, 2026. https://www.sleepfoundation.org/sleep-hygiene/healthy-sleep-tips
⁴ MedlinePlus. Hypothalamic dysfunction. National Library of Medicine. Updated April 24, 2025. Accessed November 11, 2026. https://medlineplus.gov/ency/article/001202.htm
⁵ Zhang F, Xiong Y, Qin F, Yuan J. Short sleep duration and erectile dysfunction: a review of the literature. Nat Sci Sleep. 2022;14:1945–1961. doi:10.2147/NSS.S375571
⁶ Mukherjee S, Patel SR, Kales SN, et al. An official American Thoracic Society statement: the importance of healthy sleep. Recommendations and future priorities. Am J Respir Crit Care Med. 2015;191(12):1450–1458. doi:10.1164/rccm.201504-0767ST
⁷ Olson EJ. How many hours of sleep are enough for good health? Mayo Clinic. Updated February 1, 2025. Accessed November 11, 2026. https://www.mayoclinic.org/healthy-lifestyle/adult-health/expert-answers/how-many-hours-of-sleep-are-enough/faq-20057898
⁸ Johns Hopkins Medicine. Melatonin for sleep: does it work? Updated April 11, 2022. Accessed November 11, 2026. https://www.hopkinsmedicine.org/health/wellness-and-prevention/melatonin-for-sleep-does-it-work
⁹ Farah T. The side effects of sleeping pills and how they affect our sleep cycle. Discover Magazine. Published August 20, 2019. Updated November 8, 2023. Accessed November 11, 2026. https://www.discovermagazine.com/what-science-says-about-using-sleep-medications-40268
¹⁰ Newsom R. Diet, exercise, and sleep. Sleep Foundation. Updated October 5, 2026. Accessed November 11, 2026. https://www.sleepfoundation.org/physical-health/diet-exercise-sleep
¹¹ National Sleep Foundation. Screen use disrupts precious sleep time. Published March 13, 2022. Accessed November 11, 2026. https://www.thensf.org/screen-use-disrupts-precious-sleep-time/
