Morning erections happen because your brain cycles through several stages of sleep each night, and during the dreaming stage, the part of your nervous system that normally keeps erections in check essentially switches off. The result: three to five erections per night, each lasting 10 to 25 minutes. The one you notice is simply the last one, the one you wake up during.
What Happens in Your Brain During Sleep
Your body has two competing systems that control erections. One promotes them (the parasympathetic nervous system), and the other suppresses them (the sympathetic nervous system). During your waking hours, both systems are active, and the suppressive side keeps spontaneous erections mostly in check. But during REM sleep, the dreaming phase, your brain shuts down the suppressive signals coming from a specific region in the brainstem. With that brake released, the pro-erection pathways take over and blood flows in.
This is why morning erections aren’t really about sexual arousal or sexy dreams. They’re a side effect of your nervous system cycling through REM sleep. You typically enter REM multiple times per night, with the longest REM periods happening in the final hours before you wake up. That’s why you’re more likely to catch one in progress when your alarm goes off.
The Role of a Full Bladder
There’s a second factor at play. Your bladder sits close to a bundle of nerves at the base of your spine called the sacral nerve, which is one of the pathways your body uses to trigger erections. After a full night of urine production, a stretched bladder can press against this nerve and send signals that promote an erection. This reflexive response works independently of what’s happening in your brain during REM, so it can add to the effect or sometimes cause a morning erection on its own.
How Testosterone Fits In
Testosterone levels follow a daily rhythm, peaking in the early morning hours and dropping throughout the day. While testosterone doesn’t directly cause each individual erection during sleep, it sets the baseline. Men with healthy testosterone levels have more frequent and firmer nocturnal erections than men with low levels. The morning peak in testosterone creates a hormonal environment that makes it easier for those REM-triggered erections to happen and to be noticeable when you wake up.
How This Changes With Age
Morning erections start much earlier than most people realize. They occur in infancy and continue through old age, though their frequency and firmness change significantly over a lifetime. During puberty, sleep-related erections are at their peak, taking up about 30% of total sleep time in boys aged 13 to 15. By the time men reach their 60s, that figure drops to around 20%. The average across adulthood is three to four episodes per night, but both the duration and the rigidity of each episode gradually decline.
This decline is normal and reflects changes in vascular health, hormone levels, and nervous system function that come with aging. A gradual decrease in morning erections over decades isn’t a cause for concern. A sudden disappearance, on the other hand, can be a useful signal, since the presence or absence of nocturnal erections is one of the ways clinicians distinguish between physical and psychological causes of erectile difficulties.
Why It Matters for Your Health
Morning erections are one of the simplest indicators that the blood vessels, nerves, and hormones involved in erectile function are all working properly. The process requires healthy blood flow into the tissue, functioning nerve signals from the brain and spinal cord, and adequate hormone levels. Because these erections happen without any conscious input, they bypass the psychological factors (stress, performance anxiety, relationship issues) that can interfere during sex.
If you’re regularly waking up with erections, it generally means the physical machinery is intact. If they’ve stopped entirely and you’re also having trouble with erections during sex, that pattern points more toward a physical cause, whether that’s cardiovascular changes, nerve issues, hormonal shifts, or medication side effects. Noticing what’s happening in the morning can give you useful information about what’s going on under the hood.