Sleep, Erections and Testosterone: What the Research Says

Short answer: poor or short sleep is linked to lower testosterone and to more erection problems, and untreated obstructive sleep apnea is strongly associated with erectile dysfunction (ED). Research shows association rather than proof that sleep loss alone causes ED, but improving sleep is a low-risk step that supports hormones, blood vessels, mood and energy. If you snore loudly, stop breathing at night or feel exhausted by day, ask a doctor about a sleep assessment.

Why sleep matters for sexual health

Sleep is when the body repairs tissue, regulates stress hormones and produces much of its testosterone. It is also when most men have involuntary erections, which are thought to help keep penile tissue oxygenated and healthy. When sleep is cut short or repeatedly broken, several systems that support erections can be affected at once: hormones, blood vessel function, nerve signalling, mood and energy.

Sleep and testosterone

In healthy men, testosterone follows a daily rhythm. Levels rise during sleep and are typically highest in the early morning. One well-known experiment found that restricting healthy young men to five hours of sleep a night for a week lowered their daytime testosterone by roughly 10 to 15 percent. Other studies suggest that short sleep, fragmented sleep and shift work are associated with lower testosterone, although results vary and not every man with poor sleep has low levels.

It helps to be precise here. Low testosterone can reduce desire and, in some men, contribute to erection problems, but it is not the most common cause of ED. Many men with ED have normal testosterone. Our articles on erectile dysfunction vs low testosterone and whether testosterone affects erectile dysfunction explain the difference. A blood test, usually taken in the morning, is the only reliable way to check levels. Do not start testosterone treatment or supplements based on symptoms alone.

Sleep apnea and erections

Obstructive sleep apnea (OSA) is a condition in which the airway repeatedly narrows or closes during sleep, causing pauses in breathing, drops in oxygen and frequent micro-awakenings. It is common, especially in men who are overweight, and many people have it without knowing.

Studies consistently find that ED is more common in men with OSA than in those without it, and some report very high rates. Proposed reasons include:

  • Low oxygen at night, which can strain blood vessel lining and reduce nitric oxide, the chemical signal that triggers erections.
  • Fragmented sleep, which disrupts the normal pattern of night-time erections and hormone release.
  • Raised stress hormones and blood pressure, which are both linked to erectile problems. See how blood pressure affects erections.
  • Lower testosterone, which has been seen in some men with severe OSA.
  • Daytime fatigue, low mood and relationship strain, which reduce interest in sex.

Treating OSA, most often with continuous positive airway pressure (CPAP), has improved erectile function in some studies, although not every man sees a change. Weight loss, positional therapy and other treatments can also help depending on the cause.

Warning signs of sleep apnea

  • Loud, frequent snoring
  • Pauses in breathing noticed by a partner, or waking up gasping or choking
  • Excessive daytime sleepiness or falling asleep at inappropriate moments
  • Morning headaches or a dry mouth
  • Difficulty concentrating, irritability or low mood
  • High blood pressure that is hard to control

If several of these apply, ask your doctor about a sleep study. Sleep apnea also raises the risk of heart disease and stroke, so it is worth treating for reasons beyond sexual health.

Night-time erections: a useful clue

Healthy men usually have several erections during the night, mostly during REM sleep, and often wake with one. If you rarely or never have a morning erection and you are also struggling when awake, that can suggest a physical factor is involved. If morning erections are normal but problems occur only during sex, performance anxiety or stress may play a larger role. This is only a rough guide and not a diagnosis. Our article on erectile dysfunction vs performance anxiety describes the distinction in more detail.

Other ways poor sleep can affect erections

  • Stress and anxiety. Short sleep raises cortisol and heightens worry, which can make arousal harder. Our guide to psychological causes of erectile dysfunction goes deeper.
  • Weight gain and metabolic changes. Chronic short sleep is linked to weight gain and insulin resistance, both risk factors for ED.
  • Alcohol and late-night habits. Alcohol may help you fall asleep but disrupts later sleep stages and can itself affect erections. See how smoking and alcohol affect erectile dysfunction.
  • Medicines. Some sleep aids, antidepressants and blood pressure medicines can affect sexual function, so ask a doctor before changing anything.

How to improve your sleep

  1. Aim for seven to nine hours in bed for most adults, and keep a consistent bedtime and wake time, including weekends.
  2. Create a wind-down routine, such as dimming lights and avoiding intense work or arguments in the hour before bed.
  3. Limit screens close to bedtime, and keep the bedroom cool, dark and quiet.
  4. Watch caffeine; avoid it in the afternoon and evening, since its effects can last many hours.
  5. Be careful with alcohol; even moderate amounts can fragment sleep.
  6. Be active during the day, but avoid very intense exercise right before bed.
  7. Manage weight; losing excess weight can reduce snoring and sleep apnea, and also helps erections.
  8. Avoid sleeping pills as a long-term fix; discuss persistent insomnia with a doctor, since cognitive behavioural therapy for insomnia has good evidence.

These habits overlap with other changes that help erections. Our guide to lifestyle changes to improve erectile dysfunction brings them together, and foods that support men’s health can help with energy and weight.

When to see a doctor

Book an appointment if erection problems last more than a few weeks, if you suspect sleep apnea, if you have symptoms of low testosterone such as persistent low desire, fatigue and low mood, or if you have diabetes, heart disease or high blood pressure. A doctor may check blood pressure, blood sugar, cholesterol and testosterone, review medicines, and arrange a sleep study if appropriate. Read when to see a doctor for erectile dysfunction to prepare for that visit.

If a clinician prescribes an ED medicine alongside lifestyle changes, make sure you understand the dose and safety points. Our articles on how long sildenafil takes to work and daily vs on-demand tadalafil explain common options. See our drug policy and FAQs for how we handle medicine information.

Frequently asked questions

Can lack of sleep cause erectile dysfunction?

Poor sleep is associated with ED and with factors that contribute to it, such as low testosterone, stress and obesity, but it is rarely the only cause. Improving sleep is likely to help alongside other measures.

How much sleep do I need for healthy testosterone?

Most adults do best with seven to nine hours. Studies of sleep restriction suggest that regularly getting about five hours can lower testosterone within days.

Does CPAP improve erections?

Some studies show improvement in men who use CPAP for sleep apnea, but results vary and other treatments may still be needed.

Should I take testosterone supplements to fix my sleep or erections?

No. Supplements and treatments should be considered only after proper testing and medical advice. Unnecessary testosterone can cause side effects and may reduce fertility.

Are morning erections important?

Regular morning erections are a reassuring sign that the physical mechanism is working, but their absence on a given day is not unusual.

Conclusion

Sleep, testosterone and erections are closely connected. Short or broken sleep can lower testosterone and add stress, while untreated sleep apnea is linked with ED and heart risk. Building a regular sleep routine, reviewing alcohol and weight, and asking about a sleep assessment when warning signs appear are practical steps that benefit your whole health, not just your sex life.

References

  • Leproult R, Van Cauter E. Effect of one week of sleep restriction on testosterone levels in young healthy men. JAMA, 2011.
  • Reviews on obstructive sleep apnea and erectile dysfunction in the sexual medicine literature.
  • NHS and American Academy of Sleep Medicine guidance on sleep apnea and healthy sleep.

This article is general education, not individual medical advice. It has not been written as a substitute for a consultation with a licensed healthcare professional.

October 24, 2026 admin