Why Do Guys Get Boners in the Morning?

Morning erections are triggered by REM sleep, the phase of sleep when you dream. They’re not caused by sexual arousal or needing to urinate. During a typical night, you cycle through four or five REM periods, and about 80% of erections happen during those windows. The last REM cycle tends to occur right before waking up, which is why you notice the erection when your alarm goes off.

What Happens During REM Sleep

Throughout the night, your sleep cycles between lighter stages and REM (rapid eye movement) sleep roughly every 80 minutes. Each REM period lasts about 20 to 25 minutes, and during each one, the nervous system shifts in ways that make erections almost automatic.

The key change is in your brain’s chemical balance. During waking hours and non-REM sleep, certain brain signals actively keep the blood vessels in your penis partially constricted. When REM sleep kicks in, that constricting signal drops off. Your parasympathetic nervous system, the branch responsible for “rest and digest” functions, takes over. Nerve endings in the pelvic region release a chemical messenger that triggers cells lining the blood vessels to produce nitric oxide. Nitric oxide causes the smooth muscle in the penis to relax, arteries widen, blood flows in, and the tissue fills and stiffens. This entire chain reaction happens without any input from conscious thought or sexual stimulation.

Because REM periods get longer and more frequent toward the end of the night, the final erection of the sleep cycle is often the strongest and longest lasting. That’s the one you wake up with.

The Role of Testosterone

Testosterone follows its own daily rhythm that reinforces the timing. Levels peak between 5 and 8 a.m., then gradually decline by 10 to 25% over the course of the day, hitting their lowest point in the late evening. This morning surge doesn’t directly cause the erection (REM sleep does that), but testosterone is essential for maintaining the nerve and blood vessel health that makes erections possible. Men with significantly low testosterone often notice their morning erections becoming weaker or disappearing.

Does a Full Bladder Play a Role?

You’ve probably heard that a full bladder causes morning erections. This idea has been around for decades, but there’s no strong evidence behind it. The bladder and the nerves controlling erections do share some of the same spinal cord pathways in the lower back, so it’s not an unreasonable theory. But erections occur during every REM cycle throughout the night, not just when the bladder is fullest. The timing tracks with sleep stages, not with how much fluid has collected. A full bladder might make you more aware of the erection because it wakes you up, but it isn’t the cause.

Changes With Age

Morning erections start in early life, well before puberty. Ultrasound studies have even detected them in fetuses during the third trimester. They’re most frequent and firm during the teens and twenties, when REM sleep is robust and testosterone levels are at their lifetime peak. From there, they gradually become less frequent and less rigid, though they don’t disappear entirely in healthy men. The decline tracks with two things: older adults spend less total time in REM sleep, and blood vessel function naturally decreases with age.

Why Their Absence Can Matter

Morning erections are one of the simplest indicators that the vascular and nervous systems involved in sexual function are working properly. That’s why doctors have long used them as a diagnostic clue. If a man has difficulty getting erections during sex but still wakes up with them regularly, the plumbing is intact, and the issue is more likely psychological: performance anxiety, stress, depression, or relationship problems. A sudden onset of erectile difficulty alongside normal morning erections points in this direction.

The reverse is more concerning. A gradual disappearance of morning erections, especially alongside difficulty getting erections in any context, suggests something physical. The blood vessels in the penis are significantly smaller than coronary arteries and lack the ability to form detour routes when flow is restricted. That means reduced blood flow shows up in the penis before it becomes detectable in the heart. Impaired nitric oxide production, the same mechanism behind morning erections, is also the earliest stage in the development of arterial plaque buildup. Research has established that erectile dysfunction and cardiovascular disease share the same underlying process: damaged blood vessel linings, inflammation, and progressive narrowing of arteries. For men under 50 with no other obvious risk factors, the loss of morning erections can be an early warning sign of vascular problems that haven’t yet produced symptoms elsewhere in the body.

Other physical causes include low testosterone, nerve damage from diabetes or surgery, certain medications (particularly antidepressants and blood pressure drugs), heavy alcohol use, and sleep disorders that disrupt REM cycles. Sleep apnea is a common and underrecognized culprit, since it fragments sleep and reduces the amount of time spent in REM.

What’s Considered Normal

Most healthy men experience three to five erections per night, each lasting roughly 20 to 25 minutes, for a combined total of about 90 minutes to two hours. You won’t be aware of most of them. Waking up with an erection on most mornings is typical, though skipping a day here and there is completely unremarkable. Factors like poor sleep, alcohol the night before, stress, or even sleeping in an unusual position can suppress a single night’s erections without signaling any underlying problem. A persistent pattern of absent morning erections over weeks or months is what warrants attention.