When a guy “gets hard,” it means his penis is becoming erect. Blood rushes into the spongy tissue inside the penis, fills it up, and makes it rigid. This is a normal, automatic body response that can happen for sexual reasons, but also for reasons that have nothing to do with sex at all.
How an Erection Actually Works
The penis contains two cylinders of spongy tissue called the corpora cavernosa. When an erection starts, the nervous system triggers the release of a chemical called nitric oxide inside the blood vessels of the penis. This chemical causes the smooth muscles lining those blood vessels and spongy chambers to relax and widen. Blood flows in rapidly, filling the expanding chambers. As they swell, they compress the veins that would normally drain blood away, trapping the blood inside. The result is a firm, erect penis.
The branch of the nervous system responsible for triggering this process is the parasympathetic nervous system, which handles “rest and relax” functions. That’s why erections are easier when you’re calm and relaxed. The opposing branch, the sympathetic nervous system (your “fight or flight” system), causes blood vessels to constrict and is what ends an erection. Stress, anxiety, or fear activate this system, which is why nervousness can make it difficult to get or keep an erection.
Three Types of Erections
Not all erections start the same way. The body produces three distinct types, and only one of them requires conscious sexual thought.
Psychogenic erections come from mental stimulation: seeing someone attractive, hearing something arousing, or having a sexual fantasy. The brain sends signals down the spinal cord to the nerves that control blood flow to the penis.
Reflexogenic erections come from direct physical touch to the genitals or surrounding area. These don’t require any sexual thought at all. The signal travels to the lower spinal cord and triggers an erection through a reflex arc, similar to how your leg kicks when a doctor taps your knee. This reflex is so independent from the brain that men with complete upper spinal cord injuries, who have no sensation below the injury, still get reflexogenic erections 95% of the time from minimal touch.
Nocturnal erections happen during sleep, primarily during REM (dreaming) sleep. Healthy men typically experience three to six erections per night, each lasting 15 to 40 minutes. These have nothing to do with sexual dreams. They appear to be the body’s way of keeping penile tissue oxygenated and healthy. The “morning wood” many guys wake up with is simply the last nocturnal erection of the night, often coinciding with waking up during or just after a REM cycle.
It Doesn’t Always Mean He’s Turned On
One of the biggest misconceptions is that an erection always signals sexual desire. It often does, but the body can produce erections for completely non-sexual reasons. A full bladder is one of the most common triggers. The nerves controlling bladder function and the nerves controlling erections share the same region of the lower spinal cord. When the bladder stretches from being full, those nearby nerve pathways can be stimulated enough to produce an erection. This is a major contributor to morning erections, on top of the REM sleep cycle.
Vibrations (like riding in a car or bus), friction from clothing, changes in body temperature, and even shifts in hormone levels throughout the day can all cause erections without any sexual arousal. This is especially common during puberty, when testosterone levels are surging and the body is more reactive to any kind of stimulation. Teenage boys frequently get erections at random, inconvenient moments, and it’s entirely normal.
The reverse is also true. A guy can feel genuinely aroused mentally without getting an erection, particularly if he’s stressed, tired, or anxious. Physical response and mental desire don’t always line up perfectly.
What Erections Can Tell You About Health
Because erections depend on healthy blood vessels, good nerve function, and proper hormone levels, they can act as an early signal of broader health problems. Difficulty getting or maintaining erections, especially in men under 50, is sometimes the first visible sign of cardiovascular disease. The small arteries in the penis are narrower than the ones in the heart, so they tend to show the effects of plaque buildup or blood vessel damage earlier.
A large umbrella review of multiple studies found that men with erectile difficulties are 45% more likely to develop cardiovascular disease, 50% more likely to develop coronary heart disease, and 55% more likely to have a heart attack compared to men without erectile issues. They also face a 36% higher risk of stroke. These aren’t small numbers, and they highlight how closely vascular health and erectile function are connected.
On the other end, an erection that won’t go away is also a medical concern. An erection lasting more than four hours, a condition called priapism, is a medical emergency. The blood trapped in the penis becomes deprived of oxygen, and after several hours this can begin to permanently damage the tissue. This is rare, but it requires immediate treatment.
Why Erections Come and Go
Erections are not an on/off switch. They naturally fluctuate in firmness during sexual activity, and losing some rigidity doesn’t mean something is wrong. Blood flow increases and decreases in response to changing levels of stimulation, distraction, and comfort. It’s also completely normal for erections to soften and return multiple times during a longer sexual encounter.
Factors that commonly affect erectile quality include alcohol (which depresses nervous system signaling), fatigue, stress, certain medications like antidepressants and blood pressure drugs, and overall cardiovascular fitness. Regular exercise, adequate sleep, and managing stress all support healthy erectile function because they support the underlying systems that make erections possible: blood flow, nerve signaling, and hormone balance.

