Poor sleep can affect your erections in more ways than one, especially when fatigue, lower arousal, disrupted morning wood, or sleep apnea become part of the pattern.
By Nick Brennan · Last revised:
September 2026
If you haven't been sleeping well and your erections have gotten a little less dependable, the two may be more connected than they seem.
One bad night probably isn't going to suddenly give you erectile dysfunction.
But when short, broken, or low-quality sleep becomes the norm, it can start showing up in your sex life too.
You may be less interested in sex. It might take longer to get fully hard. Or maybe you simply can't focus even though you're interested.
Sleep probably isn't the only thing worth looking at.
It's just an easy one to overlook because you can get surprisingly used to running on fumes.
Being Tired Can Change Sex in Some Pretty Obvious Ways
You don't need a complicated explanation for every connection between sleep and erections.
Sometimes you're just exhausted.
If you've had four or five hours of sleep, getting turned on may take more effort than it does when you're rested. Your attention may wander more easily. You might want sex in theory but feel like your body isn't on the same page.
That matters because erections don't happen separately from the rest of the experience.
You still have to get turned on.
And if you're tired enough that sex feels like something you're trying to rally for instead of something your body is naturally leaning into, your erection may feel different too.
Over time, poor sleep can also affect things that matter for erections more broadly, including cardiovascular and metabolic health.
A bad night probably won't wreck your erections, but a string of them can become part of why they feel less reliable.
Research consistently finds a connection between poor sleep and sexual problems, including erectile dysfunction.
That doesn't mean poor sleep is always the cause, but it gives you a reason to pay attention when the two seem to change together.
Sleep Can Affect Testosterone, but Don't Blame Everything on Low T
Sleep and testosterone are connected.
But this is one of those areas where the simple internet version gets ahead of the evidence.
Testosterone follows a daily rhythm that's closely tied to sleep, and some studies have found lower testosterone after men were severely sleep deprived.
Other research hasn't found an effect nearly as dramatic
So sleeping five hours for a few nights doesn't mean you've suddenly tanked your testosterone.
But if you've been sleeping badly for a long time and you've also noticed a drop in sex drive, fewer spontaneous erections, or other changes that make you wonder about your hormones, the combination may be worth paying attention to.
Poor Sleep Can Change Your Morning Wood Too
You normally get several erections while you're asleep, especially during REM sleep.
You just don't notice most of them.
Morning wood is usually one of those sleep erections that happens to still be there when you wake up.
That means changes in your sleep can change what you notice in the morning.
If you're sleeping fewer hours, waking up repeatedly, or getting less consistent REM sleep, you may stop waking up hard as often even though nothing is necessarily wrong with your ability to get an erection.
That's why one soft morning isn't especially interesting.
But if your morning erections have become noticeably less frequent around the same time your sleep got worse and erections during sex became less dependable, now you have a pattern worth noticing.
The change doesn't tell you exactly why your erections are different.
It just gives you another piece of useful information about when the change started and what was happening around it.
Sleep Apnea Is a Bigger Deal
There's an important difference between occasionally getting too little sleep and having a sleep disorder that's disrupting your breathing every night.
Obstructive sleep apnea repeatedly interrupts your breathing while you're asleep.
That can fragment your sleep and cause your oxygen levels to drop again and again throughout the night.
Sleep apnea has a particularly strong association with erectile dysfunction, and the more severe the sleep apnea is, the worse erectile function tends to be.
That doesn't mean every guy with sleep apnea will have erection problems.
But if your erections have changed and you also snore loudly, wake up gasping or choking, feel exhausted despite spending plenty of time in bed, or someone has noticed that you stop breathing while you're asleep, that's worth taking seriously.
Sleep apnea can affect erections along with your heart health, blood pressure, energy, and plenty of other things.
Treating it doesn't guarantee your erections will suddenly become perfect. But studies have found that erectile function improves for some men after their sleep apnea is treated.
Sometimes the "Sleep Problem" Is Also Something Else
It's also worth looking at why you're sleeping badly.
If most of your terrible nights happen after you've been drinking, sleep may only be part of the story.
Alcohol can disrupt sleep and make your erections less reliable on its own.
Stress can do something similar. You sleep badly because you're stressed, then carry that same stress and exhaustion into sex the next day.
Or maybe a medication is affecting both your sleep and your sexual function.
That's why it can be difficult to point at poor sleep and say, "That's definitely the cause."
Often several things are changing at once and sleep is what stands out to you.
What's more useful is noticing whether your erections tend to be better when you're well rested and worse during stretches when your sleep falls apart.
What Happens If You Start Sleeping Better?
Don't expect one great night of sleep to produce some dramatic erection the next morning.
If sleep has been part of the problem, improvement will probably be less exciting than that.
You may notice that you're more interested in sex.
Getting turned on may feel easier.
Morning erections might show up more consistently.
And during sex, you may simply find that staying hard takes a little less effort than it did when you were exhausted all the time.
The change may be subtle.
That's pretty similar to what happens with exercise. Improving the underlying conditions your erections depend on usually doesn't feel like flipping a switch.
Things just start working a little more reliably.
What to Take Away
Poor sleep can be part of why your erections feel less dependable.
That doesn't mean a few bad nights have damaged anything, and it doesn't mean every erection problem can be fixed by getting eight hours of sleep.
What matters more is the pattern.
If your sleep has gotten worse and your erections, sex drive, or morning wood changed around the same time, sleep deserves a place on the list of things you're looking at.
And if you're regularly exhausted despite spending enough time in bed, snore heavily, or have other signs of sleep apnea, that's especially worth discussing with your doctor.
You don't need perfect sleep to have good erections.
But if your body has been running on too little of it for months, your sex life may be one of the places you notice.
What Actually Affects Testosterone Levels?
Testosterone can change with sleep, weight, exercise, illness, medications, age, and more, so one low result or a few symptoms don’t necessarily mean low T.
Premature Ejaculation Isn’t Just Finishing Too Fast
Premature ejaculation is more about a recurring pattern of finishing sooner than you want and feeling unable to slow things down than one or two fast finishes.
Why It Takes Longer to Get Turned On Than It Used To
Taking longer to get turned on can be a normal change, especially with age, even when desire and sexual function are still intact.
Why Libido and Erections Aren’t the Same Thing
You can want sex and struggle with erections, or still get hard while your desire feels lower, because libido and erections are related but different.
What Low Libido Actually Means
“Low libido” can mean different things. Getting specific about whether you actually want sex less can make the change easier to understand.
What Morning Wood Can Tell You
Morning wood can give you useful context about your erections, especially when the pattern changes or erections feel different during sex.
