Why Are Men Hard in the Morning? Sleep, Hormones & Age

Morning erections are driven primarily by the cycling of sleep stages, not by sexual dreams, a full bladder, or a spike in testosterone at dawn. During a normal night, your body passes through several rounds of REM (rapid eye movement) sleep, and erections tend to occur during each one. Because the longest REM period falls in the last stretch of sleep, right before you wake up, you’re most likely to notice the erection that happens to coincide with your alarm going off. The phenomenon has a clinical name, nocturnal penile tumescence (NPT), and it starts in infancy, peaks in your twenties, and gradually declines with age. What it reflects about your vascular health, hormones, and sleep quality is more interesting than most people realize.

REM Sleep Is the Real Trigger

Erections during sleep are tightly linked to REM phases. A typical night includes four or five REM cycles, and the penis tends to become erect during most of them. Each cycle lasts longer than the one before, so the final REM period, often occurring between 5 and 7 a.m., can run 30 minutes or more. That is the one you wake up with. A prospective study using wearable sleep trackers alongside penile rigidity monitors found that longer REM sleep duration was positively correlated with both the rigidity and total duration of nocturnal erections, while more time spent awake after initially falling asleep was negatively correlated with those same measures.1PubMed Central. Association between sleep quality and nocturnal erection monitor by RigiScan in erectile dysfunction patients: a prospective study using fitbit charge 2 In plain terms, the better and deeper you sleep, and the more REM you get, the firmer and longer-lasting morning erections tend to be.

This is why anything that disrupts REM sleep can reduce or eliminate morning erections. Alcohol, for instance, is well known to suppress REM during the first half of the night. Sleep disorders have an even more direct effect. In men with obstructive sleep apnea (OSA), the repeated interruptions to breathing fragment REM sleep, and a corresponding reduction in the frequency and duration of sleep-related erections has been documented.2PubMed Central. Erectile Dysfunction and Obstructive Sleep Apnea: A Review When REM is fragmented, the penile tissue also misses out on the periodic oxygenation that nocturnal erections provide, which over time can contribute to endothelial dysfunction, elevated oxidative stress, and reduced nitric oxide availability in the erectile tissue.3International Journal of Impotence Research. The role of sleep stages in the regulation of erectile function: impacts of REM sleep fragmentation

How an Erection Actually Works During Sleep

To understand why morning erections happen so reliably, it helps to know the basic plumbing. Erections are a vascular event. Nerve signals trigger the release of nitric oxide (NO) from nerve and endothelial cells inside the erectile tissue. That nitric oxide sets off a chemical cascade that relaxes smooth muscle in the spongy tissue of the penis, allowing blood to rush in and fill it under pressure.4PubMed Central. The role of nitric oxide in erectile dysfunction: implications for medical therapy Research in the New England Journal of Medicine confirmed that this relaxation response depends on the same nitric oxide pathway whether the erection is triggered by physical stimulation or by nerve signals during sleep.5PubMed. Nitric oxide as a mediator of relaxation of the corpus cavernosum in response to nonadrenergic, noncholinergic neurotransmission

During waking hours, your sympathetic nervous system (the “fight or flight” side) keeps the smooth muscle in a state of mild contraction, which keeps the penis soft. REM sleep shifts the balance. The brain becomes more active, but certain neurotransmitters that normally maintain sympathetic tone drop. With the brakes partially released, parasympathetic signals and local nitric oxide release can produce an erection without any conscious sexual thought. That is why morning erections are not evidence of an erotic dream, though they can coincide with one.

Where Testosterone Fits In

Testosterone gets a lot of credit for morning erections, and while it is involved, the relationship is less straightforward than most people assume. The hormone’s role is more like a minimum threshold than a dial you can turn up for stronger erections. A study that measured testosterone levels and nocturnal erections in men across a range of hormone levels found that men with very low testosterone, below roughly 200 ng/dL, showed consistently weaker erections during sleep. But once testosterone was above that threshold, the differences between groups largely disappeared.6PubMed. Relationship between sleep-related erections and testosterone levels in men In other words, you need enough testosterone for the system to work, but having more of it beyond that point does not produce noticeably stronger morning erections.

Testosterone does follow a daily rhythm, with levels peaking in the early morning hours and falling through the afternoon. This has contributed to the popular belief that the morning testosterone peak causes the morning erection. The timing does overlap, but the evidence points to REM sleep as the more direct trigger. A man with normal testosterone but severely disrupted REM sleep will have diminished morning erections, whereas a man with borderline-low testosterone but excellent sleep may still wake up erect. The two systems overlap more than one drives the other.

The Full Bladder Myth

One of the most persistent folk explanations is that a full bladder presses on nearby nerves and triggers the erection. There is a kernel of anatomy behind this: the nerves controlling reflex erections originate in the same region of the spinal cord that receives signals from the bladder. A full bladder can mildly stimulate these nerves, and this type of reflex erection has been documented. But the timing and consistency of nocturnal erections line up far too closely with REM cycles to be explained by bladder pressure alone. Men who wake at various points during the night, some with full bladders and some without, still have erections that track with REM phases. The bladder may contribute a mild boost in some cases, but it is not the primary driver.

How Morning Erections Change With Age

Morning erections begin long before puberty. They have been recorded in male infants and continue through childhood, though they become more noticeable with the surge in testosterone during puberty. Research tracking nocturnal erections across the male lifespan found that the total time spent erect during sleep begins to decrease significantly after about age 30, which tracks with gradual declines in androgen levels. After age 55, the maximum rigidity and the rate at which the penis becomes erect during sleep were significantly lower than in men in their twenties.7PubMed. Study on nocturnal penile tumescence (NPT) in healthy males study on age-related changes of NPT The researchers attributed this decline to both falling androgen levels and age-related changes in the blood vessels and smooth muscle of the erectile tissue itself.

This means a gradual reduction in how often and how firmly you notice morning erections is entirely normal as you age. It does not necessarily signal erectile dysfunction, though the two can overlap. The distinction matters because many men in their forties and fifties become anxious when they notice the change, assuming something is wrong. In most cases, the erections are still happening; they are just less rigid or shorter in duration, and you may be less likely to wake during one.

When Absent Morning Erections Are a Warning Sign

Clinicians have used nocturnal erections as a diagnostic tool for decades. The logic is simple: if a man can get erections during sleep but not during waking sexual activity, the problem is more likely psychological. If nocturnal erections are also absent or weak, something physical is usually going on. Monitoring devices called RigiScan have been used in sleep labs to measure this, and the approach can distinguish between psychological and physical causes of erectile dysfunction with roughly 80 percent accuracy.8PubMed. Role of RigiScan in the etiologic differential diagnosis of erectile dysfunction

One quirk of this testing is that the first night in a sleep lab often produces artificially poor results. Being wired up in an unfamiliar room disrupts sleep, which disrupts erections. A study found that about 20 percent of patients had no effective erection on the first night but showed at least one on the second night, and the ability of the first night’s recording to correctly rule out a problem was much lower than that of the second night.9PubMed Central. Consecutive nightly measurements are needed for accurate evaluation of nocturnal erectile capacity when the first-night laboratory recording is abnormal This “first-night effect” is well known in sleep research more generally, but it is worth knowing about if you ever undergo this kind of testing.

Beyond the diagnostic setting, consistently absent morning erections in a younger man can be an early signal of cardiovascular trouble. Erectile dysfunction and cardiovascular disease share the same underlying mechanism: damage to the endothelium, the lining of blood vessels. Because the arteries supplying the penis are smaller than those supplying the heart, they tend to show the effects of endothelial damage earlier. Data suggest that in men aged 40 to 49, the incidence of ischemic heart disease in those with erectile dysfunction was dramatically higher than in men without it, though this predictive power diminishes with age, essentially leveling off by the seventies.10PubMed Central. Erectile Dysfunction Is a Hallmark of Cardiovascular Disease: Unavoidable Matter of Fact or Opportunity to Improve Men’s Health? For younger men in particular, the absence of reliable morning erections is worth mentioning to a doctor, not just for sexual health but as a possible window into circulatory health more broadly.

Stress, Cortisol, and the Sympathetic Override

Chronic stress is one of the more underappreciated reasons morning erections fade. The mechanism ties back to the sympathetic nervous system. When you are stressed, your body produces more cortisol and norepinephrine, both of which promote the sympathetic tone that keeps erectile tissue contracted. Research found that men with higher cortisol levels, whether measured in blood or saliva, scored worse on standardized measures of erectile function, and the researchers linked this to the way stress hormones keep the sympathetic nervous system dominant.11International Journal of Impotence Research. The relationship of serum and salivary cortisol levels to male sexual dysfunction as measured by the International Index of Erectile Function

There is also a local effect. When researchers measured cortisol in both systemic blood and blood drawn directly from the erectile tissue, they found that cortisol dropped significantly in the penile blood during a rigid erection and stayed low even after the erection ended.12PubMed Central. Is cortisol an endogenous mediator of erectile dysfunction in the adult male? This suggests that erections themselves involve a local suppression of cortisol, and that chronically elevated stress hormones can interfere with this process. If you have been going through a particularly anxious or stressful period and notice your morning erections have thinned out, the connection may be more direct than “it’s all in your head.” The stress hormones are physically acting on the tissue.

Sleep Apnea and the Double Hit

Obstructive sleep apnea deserves its own mention because it attacks morning erections from multiple directions simultaneously. As noted earlier, OSA fragments REM sleep, which directly reduces the opportunity for sleep-related erections. But men with untreated OSA also tend to have lower testosterone levels, higher markers of oxidative stress, and reduced nitric oxide availability in their blood vessels.3International Journal of Impotence Research. The role of sleep stages in the regulation of erectile function: impacts of REM sleep fragmentation Each of these individually would impair erections; together they form a feedback loop in which poor sleep worsens vascular health, which worsens erectile function, which can worsen sleep quality through anxiety and discomfort.

This is relevant because OSA is extremely common and frequently undiagnosed. If you snore heavily, wake up feeling unrefreshed, or feel sleepy during the day, and you have also noticed a decline in morning erections, it is worth getting screened. Treating OSA with continuous positive airway pressure (CPAP) has been shown to improve both sleep architecture and erectile function in many patients, though the evidence is strongest for men who use CPAP consistently.

Exercise, Weight, and What You Can Actually Control

Of the lifestyle factors that influence morning erections, physical activity has the most evidence behind it. A systematic review of intervention studies found that supervised aerobic exercise, roughly 40 minutes at moderate to vigorous intensity four times a week, reduced erectile problems in men whose dysfunction was linked to physical inactivity, obesity, high blood pressure, or cardiovascular disease. The review’s recommendation was that about 160 minutes per week of aerobic exercise, maintained for at least six months, contributed to meaningful improvement.13PubMed Central. Physical Activity to Improve Erectile Function: A Systematic Review of Intervention Studies

The reason exercise helps goes back to the nitric oxide pathway. Regular aerobic activity improves endothelial function, meaning the blood vessel lining becomes better at producing nitric oxide. Since the entire erection mechanism depends on nitric oxide signaling, anything that improves vascular health tends to improve erections, both waking and during sleep. Weight loss in men who are overweight produces a similar benefit, partly through improved endothelial function and partly because excess body fat converts testosterone into estrogen, which can push testosterone levels below the threshold needed for reliable nocturnal erections.

Sleep hygiene matters too. Keeping a consistent sleep schedule, limiting alcohol close to bedtime, and sleeping long enough to get adequate REM all give the body the conditions it needs for normal nocturnal erections. There is no supplement or hack that reliably replaces good sleep and cardiovascular fitness for this purpose.

Medications That Interfere

Several common medications can reduce or eliminate morning erections. Selective serotonin reuptake inhibitors (SSRIs), the most widely prescribed class of antidepressants, are well known for causing sexual side effects including reduced nocturnal erections. The mechanism involves serotonin’s inhibitory effect on the nerve pathways that trigger erections. Beta-blockers, used for high blood pressure and anxiety, can have a similar effect by enhancing sympathetic tone. Some antihistamines, opioid pain medications, and drugs that lower testosterone (such as certain prostate cancer treatments) also blunt the response.

If you have recently started a new medication and noticed a change in morning erections, that is worth discussing with your prescriber. In many cases, switching to a different drug in the same class can resolve the issue. The key point is not to assume that a medication-related change means something is permanently wrong with your body. The effect is usually reversible once the medication is adjusted or discontinued.

What Morning Erections Are Actually For

Researchers have debated the biological purpose of nocturnal erections for decades, and the honest answer is that no single theory has been conclusively proven. The leading hypothesis is that they serve a maintenance function: by periodically filling the erectile tissue with oxygenated blood, nocturnal erections prevent the smooth muscle from becoming fibrotic (stiff and scarred). Smooth muscle cells deprived of oxygen for prolonged periods tend to be replaced by collagen, which does not relax the way healthy tissue does. Regular blood flow during sleep may keep the tissue elastic and functional.

This theory aligns with what happens in men with conditions that eliminate nocturnal erections. Men who have had their pelvic nerves severed during prostate surgery, for example, often develop penile fibrosis in the months after surgery, and early intervention to restore blood flow to the erectile tissue is a standard part of rehabilitation protocols. It also aligns with the finding that fragmented REM sleep in OSA leads to measurable endothelial damage in the penile vasculature. The tissue appears to genuinely need these nightly “workouts” to stay healthy, much the way other muscles and blood vessels benefit from regular use.

A secondary theory involves the role of REM sleep in regulating autonomic nervous system balance. During REM, the body cycles through bursts of parasympathetic and sympathetic activity. Erections may simply be a side effect of this cycling rather than serving their own independent purpose. Both ideas may be partially correct. The maintenance function and the autonomic cycling are not mutually exclusive, and neither fully explains why the phenomenon is present from infancy, long before reproductive maturity.