Morning erections happen because your body cycles through several erections every single night during sleep. The one you notice when you wake up is simply the last one in the series. A healthy man typically has three to five erections per night, each lasting anywhere from 10 to 25 minutes, and they’re tightly linked to the dreaming phase of sleep. They’re not caused by sexual arousal or a full bladder, though both of those can play a small role. The real driver is your nervous system doing routine maintenance while you’re unconscious.
What Happens During Sleep
Your sleep cycles through several stages each night, and one of those stages is REM sleep, the phase where most dreaming occurs. Every time you enter REM, your brain shifts into a different neurological gear. Your voluntary muscles relax, your breathing changes, and your parasympathetic nervous system (the “rest and digest” side) becomes more active. One consequence of this shift is that nerves in the pelvic region release a chemical messenger that relaxes smooth muscle tissue in the penis, allowing blood to flow in and produce an erection.
This isn’t a sexual response. It’s a reflexive one. Your brain during REM sleep suppresses the signals that normally keep erections in check during waking hours, particularly the “fight or flight” nervous system. With that brake released, erections happen automatically. Because you cycle through REM sleep multiple times a night (roughly every 90 minutes, with longer REM periods toward morning), erections stack up throughout the night. The final REM period tends to be the longest, which is why you’re most likely to wake up during or right after one.
The Role of Testosterone
Testosterone follows a predictable daily rhythm. Levels climb during the night and hit their peak between 7:00 and 10:00 in the morning, then gradually drop to a low point in the evening before rising again overnight. That morning peak coincides with the tail end of your last REM cycle, which likely amplifies the final erection of the night.
The connection between testosterone and nighttime erections is well established. In studies of men with erectile dysfunction, those found to have abnormally low testosterone levels consistently showed diminished nighttime erections. Testosterone doesn’t trigger each individual erection directly, but it appears to be necessary for the whole system to function normally. Think of it less like a switch and more like the power supply: without adequate levels, the machinery doesn’t run properly.
It Starts Earlier Than You’d Think
Sleep-related erections aren’t something that begins at puberty. They’ve been documented in newborns. Researchers in the 1930s observed erections during sleep in infants as young as three weeks old. Newborns spend roughly 16 hours a day sleeping, and about half of that time is in REM sleep, which means they experience a surprisingly high amount of this reflex activity. Infants also go through a brief hormonal surge in the first few months of life (sometimes called “mini puberty”) that involves a temporary rise in testosterone, further contributing to the phenomenon.
The peak comes during adolescence. In boys aged 13 to 15, sleep-related erections account for just over 30% of total sleep time. From there, the numbers gradually decline. By the time men reach their 60s, that figure drops to around 20%. The erections also become fewer per night, shorter in duration, and tend to start later in the sleep cycle as men age. This is a normal part of aging, not a sign of dysfunction on its own.
Why It Matters for Health
Doctors have used nighttime erections as a diagnostic tool for decades. The logic is straightforward: if a man is having trouble getting erections while awake but still gets them during sleep, the plumbing works fine, and the issue is more likely psychological (stress, anxiety, relationship problems). If nighttime erections are also absent or weak, that points toward a physical cause like nerve damage, blood vessel problems, or hormonal deficiency.
Sleep quality itself plays a direct role. Obstructive sleep apnea, a condition where breathing repeatedly stops during the night, frequently coexists with erectile dysfunction. Apnea disrupts the normal sleep cycle, reducing the time spent in REM and fragmenting the conditions that nighttime erections depend on. Treating the sleep disorder with a breathing device has been shown to improve erectile function, including the rigidity of nighttime erections.
If you’ve noticed that morning erections have become less frequent or have stopped entirely, that’s worth paying attention to. It can be an early signal of cardiovascular issues, since the blood vessels in the penis are smaller than those in the heart and tend to show problems first. Low testosterone, poorly managed diabetes, and certain medications (especially antidepressants and blood pressure drugs) can also reduce or eliminate them.
Common Misconceptions
A full bladder doesn’t cause morning erections, though it can contribute. A distended bladder can stimulate nearby nerves that overlap with the erection reflex, but the erection would be happening regardless because of the REM cycle. Sexual dreams don’t cause them either. The erections occur during REM sleep whether or not the dream content is sexual. Studies have recorded full erections during dreams about completely mundane topics.
The frequency of morning erections also isn’t a perfect measure of sexual health on any given day. Stress, alcohol, poor sleep, and even sleeping in an unfamiliar environment can suppress them temporarily. A pattern of absence over weeks or months is more meaningful than one or two missed mornings.