Morning erections happen because you cycle through periods of REM sleep throughout the night, and each REM phase triggers an erection. Healthy men typically have 3 to 5 erections per night, each lasting 10 to 25 minutes. The one you notice when you wake up is simply the last one in the series, caught in progress because your alarm went off during or just after a REM cycle.
The REM Sleep Connection
Your brain cycles through several stages of sleep each night, and the deepest, most dream-heavy stage is REM (rapid eye movement) sleep. During REM, certain parts of your nervous system become more active while others quiet down. One key shift: the brain releases less norepinephrine, a chemical that normally keeps erections in check during waking hours. With that brake removed, blood flows freely into the penis and an erection occurs without any sexual stimulation or arousal.
Because REM periods get longer and more frequent toward the end of the night, you’re more likely to be in the middle of one right when you wake up. That’s why it feels like a “morning” phenomenon. It’s really a “sleeping” phenomenon that you only catch at the tail end.
Testosterone Plays a Supporting Role
Testosterone follows a daily rhythm tied to your sleep cycle. Levels are at their highest after a full night of rest, typically peaking between 7 and 10 a.m. This morning surge doesn’t directly cause an erection the way REM sleep does, but higher testosterone makes the body more responsive to the signals that trigger one. It’s part of the reason morning erections tend to be firm and reliable in younger men whose testosterone levels are naturally higher.
How Frequency Changes With Age
Morning erections are not exclusive to adult men. Boys experience them well before puberty, since the REM-driven mechanism works independently of sexual development. The frequency ramps up significantly during the teenage years and peaks somewhere between the late teens and late 30s, when testosterone levels are highest. Young adult men may wake up with an erection nearly every morning and have several more overnight without realizing it.
Starting in the 40s and 50s, most men notice a gradual decline. Erections still happen during sleep, just less often and sometimes less rigid. This is a normal part of aging and reflects the slow, steady drop in testosterone that occurs over decades. A sudden disappearance is different from a gradual decrease, and that distinction matters (more on that below).
They May Help Keep Penile Tissue Healthy
One theory is that nighttime erections serve a maintenance function. When the penis is erect, oxygen-rich blood floods into the spongy tissue that makes an erection possible. Researchers at the University of Newcastle have noted that this increased oxygenation may help keep the smooth muscle tissue of the penis in working condition, similar to how regular exercise preserves muscle elsewhere in the body. The science isn’t fully settled on this point, but it’s the most widely cited explanation for why the body would produce erections during sleep with no connection to sexual thoughts or stimulation.
What Morning Erections Tell You About Your Health
If you regularly wake up with an erection, it’s a good sign that the physical machinery involved in getting and maintaining one is working properly. Blood vessels, nerves, and hormones are all doing their jobs. Doctors have long used this as a simple diagnostic clue when evaluating erectile problems. If a man has difficulty with erections during sex but still gets them in the morning, the issue is more likely psychological (stress, anxiety, relationship tension) rather than a physical problem with blood flow or nerve function.
On the other hand, a gradual loss of morning erections, especially combined with other signs like reduced sex drive or fatigue, can point toward a physical cause. Risk factors include diabetes, cardiovascular disease, smoking, heavy alcohol use, certain prescription medications, and low testosterone. The pattern matters: a sudden change that lines up with a stressful life event suggests a different cause than a slow decline that’s been happening for months or years alongside other health changes.
Why a Full Bladder Isn’t the Real Cause
A common belief is that a full bladder pressing on nerves triggers morning erections. While a full bladder can contribute mild stimulation to nearby nerves, it doesn’t explain why erections occur multiple times throughout the night, including early in the sleep cycle before the bladder has filled significantly. REM sleep is the primary driver. The bladder may make a morning erection slightly more noticeable or persistent, but it’s not the reason it happens.