Gesr El Suez: Sat & Wed 6–9 PM · Mohandessin: Sun, Tue & Thu 3–7 PMGesr El Suez · Mohandessin — Cairo
Lack of Sleep and Erectile Dysfunction: Is Bedtime to Blame?

Lack of Sleep and Erectile Dysfunction: Is Bedtime to Blame?

Prof. Dr. Yasser BadranMedically reviewed by: Prof. Dr. Yasser BadranProfessor of Urology & Andrology — Al-Azhar UniversityLast updated: 23 November 2026Reading time: 8 min

Yes, lack of sleep can cause erectile dysfunction or make it worse. Most of the day’s release of the male hormone testosterone happens during sleep, and a small study found that cutting sleep to 5 hours a night for one week lowered testosterone in healthy young men by about 10 to 15%. Sleep apnea, which often shows up as loud snoring, is also linked to erectile dysfunction, and treating it may improve erections.

Many men never connect late nights with what happens in the bedroom. One might ask: could the problem really be how many hours I sleep? Or could the snoring my wife complains about have something to do with it? Prof. Dr. Yasser Badran, Professor of Urology & Andrology at the Faculty of Medicine, Al-Azhar University, explains that sleep is one of the most underestimated factors when assessing erectile dysfunction, even though improving it can be an important part of treatment. In this article we explain how sleep affects erections, when snoring is a sign that needs a check-up, and a practical sleep routine you can start tonight.

How does lack of sleep affect erections?

Sleep is not just rest. It is the time when the body resets its hormones, blood vessels and nervous system. That is why short or broken sleep can affect erections from several directions:

  • Lower testosterone, and with it lower desire and energy.
  • Fatigue and daytime sleepiness, so interest in intimacy drops.
  • More stress, irritability and mood swings, all of which dampen arousal.
  • Higher blood pressure, weight gain and insulin resistance with chronic sleep loss, which are among the main causes of physical (organic) erectile dysfunction.

So erectile dysfunction linked to poor sleep may be a mix of psychological and physical causes, and treating only one side of it is not enough.

How is sleep linked to the male hormone?

Testosterone rises during sleep and reaches its highest level in the early morning, then falls gradually through the day. When sleep is short or broken, the body does not get enough time for this rise.

In a small study published in a well-known American medical journal, 10 healthy young men slept less than 5 hours a night for a week. Their daytime testosterone fell by about 10 to 15%, and they also felt a drop in vigor and mood. Although the study was small and short, it gives a clear idea of how quickly hormones respond to late nights. If you notice low desire together with constant tiredness, you may need a hormone test, which we explain in our article on low testosterone.

Morning erections and sleep:

A healthy man has erections several times a night without any arousal, usually during the dreaming stage of sleep, and the erection you wake up with is the last of these. That is why having morning erections is a reassuring sign that the arteries and nerves are healthy.

But short sleep, or sleep broken by snoring or frequent waking, can reduce these episodes or mean you do not notice them. So the absence of morning erections in a man who sleeps only 4 or 5 hours does not necessarily mean a physical problem. It is better to judge it after several weeks of regular sleep.

Is snoring linked to erectile dysfunction?

Snoring alone may be harmless, but when it comes with pauses in breathing for a few seconds followed by a gasp or choking, it may be a sign of obstructive sleep apnea. In this condition the blood oxygen level drops many times every night and sleep is fragmented without the man realizing it. This is linked to high blood pressure, heart disease and low testosterone.

Many studies have noted that sexual performance problems are more common among people with sleep apnea, and a recent review suggested that treatment with a continuous positive airway pressure (CPAP) machine during sleep may improve erections in these patients, although the studies are of moderate size and need confirmation.

Signs that deserve attention include:

  • Loud, constant snoring that your wife notices.
  • Pauses in breathing during sleep, or waking up with a choking feeling.
  • Severe daytime sleepiness, especially while driving.
  • Headache and a dry mouth on waking.
  • Getting up more than once at night to urinate.
  • Excess weight with a large neck size, or high blood pressure that is hard to control.

Because excess weight is one of the main causes of sleep apnea, losing it helps both sleep and erections. You can read more in our article on obesity and erections.

If you have erectile dysfunction along with loud snoring or constant sleepiness, do not ignore it. Consult Dr. Yasser Badran to find the cause and start the right treatment.

Late nights and night-shift work:

Staying up late is a common social habit in many places, from sitting at a cafe until dawn to TV series and football matches. The problem is not one night, but late nights becoming a way of life, so bedtime gets later, sleep gets shorter and the body’s night and day get mixed up.

Night-shift workers, such as doctors, nurses, security staff, drivers and factory workers, have a disrupted body clock, and some studies have linked sleep disruption from night work to lower testosterone and more erection problems. If your work requires it, try to:

  • Keep your sleep time after a shift as fixed as possible, even on days off.
  • Sleep in a completely dark, quiet room with blackout curtains.
  • Wear sunglasses on the way home in the morning if the light is strong.
  • Avoid tea and coffee in the last hours of your shift.

Does using your phone before bed affect erections?

Your phone does not weaken erections directly, but using it in bed delays sleep in two ways: the light from the screen reduces melatonin, the hormone that makes you feel sleepy, and the content itself, news, videos and work messages, keeps the brain alert and tense. The result is fewer hours of sleep and poorer quality, which shows up in your energy and hormones.

A practical sleep routine to start tonight:

Most adults need 7 hours of sleep or more a day, according to sleep medicine societies’ recommendations. These simple steps help you get there:

  1. Wake up at the same time every day, even on weekends. This matters more than your bedtime itself.
  2. Stop tea, coffee and energy drinks at least six hours before bed.
  3. Avoid smoking and shisha in the evening, because nicotine is a stimulant.
  4. Keep dinner light and two to three hours before bed.
  5. Put your phone away half an hour to an hour before sleep, out of arm’s reach.
  6. Keep the room dark, quiet and fairly cool.
  7. Do not nap for more than 20 to 30 minutes, and do not nap late in the afternoon.
  8. Exercise regularly, but not in the last hours before bed.
  9. If you cannot fall asleep within about 20 minutes, get out of bed, do something calm, and go back when you feel sleepy.

Do not turn to over-the-counter sleeping pills without medical advice: some can be habit-forming, and some can make sleep apnea worse. Here is a quick summary of common sleep problems:

Sleep problem Possible effect What to do
Late nights and short sleep Lower testosterone and energy 7 hours or more at a fixed time
Snoring with pauses in breathing Low oxygen and high blood pressure Medical assessment and a sleep study
Night shifts Disrupted body clock Dark room and fixed sleep time
Insomnia and worry Stress and performance anxiety Sleep routine and treating the anxiety

When do you need a sleep study?

A sleep study is a test that measures breathing, oxygen level, heart rate and sleep stages through the night. It is done in a sleep lab, or with a home device in some cases. It is usually advised when loud snoring comes with pauses in breathing or severe daytime sleepiness, with high blood pressure that is hard to control, or with marked obesity, especially if the man also has erectile dysfunction. Severe sleep apnea is not just a sexual problem: it is linked to heart disease, strokes and road accidents, so diagnosing it matters for your general health.

Dr. Yasser Badran stresses that improving sleep is a useful step for every man with erectile dysfunction, but it does not replace looking for other causes such as diabetes, high blood pressure and hormones, because the problem often has more than one cause at the same time.

Sleeping well and the problem is still there?

Then you need to look for the real cause. Read about the causes of erectile dysfunction in men, and learn about the options available in erectile dysfunction treatment.

Frequently Asked Questions

Do late nights cause erectile dysfunction?

Constant late nights and short sleep can lower testosterone and increase fatigue and stress, all of which can weaken erections. Many men notice improvement once their sleep becomes regular, but if the problem persists, other causes must be looked for.

How many hours of sleep does a man need to protect his sexual health?

Most adults need 7 hours or more a day, with good-quality sleep at a fixed time. Sleep broken by snoring may not be enough even if the hours are long.

Does lack of sleep cause premature ejaculation?

There is no strong evidence that lack of sleep alone causes premature ejaculation, but the fatigue, stress and anxiety that come with it may make the problem worse in some men. If premature ejaculation persists, it is better to have it assessed by a doctor.

Does a breathing machine during sleep improve erections?

In people with sleep apnea, studies suggest that using a CPAP machine regularly may improve erections, in addition to its benefits for the heart, blood pressure and concentration. But it is used only after a confirmed diagnosis by a sleep study.

Can a nap make up for night sleep?

A short nap may ease fatigue, but it does not make up for enough night sleep, and a long or late nap can make it harder to sleep at night.

In Conclusion

The link between lack of sleep and erectile dysfunction is real. Constant late nights lower the male hormone and increase fatigue and stress, and snoring with pauses in breathing may be a sign of a problem that affects both the heart and erections. Improving your sleep is in your hands, and it starts with a fixed schedule and avoiding stimulants and your phone at night. If erectile dysfunction continues despite regular sleep, or you have loud snoring and daytime sleepiness, a medical assessment is the right step. You can Book an appointment with Prof. Dr. Yasser Badran to find the cause and get a suitable treatment plan.

Learn More About

Share this article:FacebookX
Prof. Dr. Yasser Badran

Prof. Dr. Yasser Badran

Professor of Urology and Andrology Surgery at Al-Azhar University Faculty of Medicine, specializing in malleable and inflatable penile implants and erectile dysfunction treatment, with more than 20 years of experience.


Marian Marian