An erection happens when blood rapidly fills two spongy chambers inside the penis and gets trapped there under pressure. The process is triggered by signals from the nervous system, driven by a chain of chemical reactions, and depends on healthy blood vessels and adequate hormone levels. It sounds simple, but the coordination involved is surprisingly complex.
What Happens Inside the Penis
The penis contains two cylinders of spongy tissue that run its full length. When a guy isn’t aroused, the smooth muscle lining these chambers stays contracted, allowing only a small amount of blood to flow through for basic maintenance. An erection begins when nerve signals cause that smooth muscle to relax.
The key molecule is nitric oxide, a gas released by both nerve endings and blood vessel walls in the penis. Nitric oxide triggers the production of a second chemical messenger called cyclic GMP, which tells the smooth muscle cells to unclench. As the muscle relaxes, the spongy chambers expand and blood rushes in. The expanding tissue compresses the veins that would normally drain blood out of the penis, trapping blood inside and creating rigidity. The entire process, from nerve signal to full erection, can happen in seconds.
Three Types of Erections
Not all erections start the same way. There are three distinct types, each with a different trigger.
- Psychogenic erections start in the brain. Seeing something arousing, hearing a partner’s voice, or even having a fantasy sends signals down the spinal cord to the penis. These signals travel through nerve pathways in the upper and middle spine (around the T11 to L2 vertebrae). In the strongest sense of the term, a psychogenic erection can be triggered purely by memory or imagination, with no physical contact at all.
- Reflexogenic erections come from direct physical touch to the genitals. Sensory nerves in the skin send signals to the lower spinal cord (S2 through S4), which fires back a response without needing input from the brain. This is why men with complete spinal cord injuries above T11, who can’t get psychogenic erections, can still get erections from physical stimulation.
- Nocturnal erections happen during sleep, typically during REM (dream) phases. A healthy male can have as many as five erections per night, each lasting 20 to 30 minutes. These aren’t necessarily linked to sexual dreams. They appear to be the body’s way of keeping penile tissue oxygenated and healthy. Morning erections are usually just the last nocturnal erection of the night, coinciding with waking up.
The boundaries between these types aren’t always clean. A psychogenic erection from visual stimulation and a reflexogenic erection from touch often overlap during sexual activity, reinforcing each other. And many seemingly “random” erections, especially during puberty, likely have subconscious triggers that never reach awareness.
The Role of Testosterone
Testosterone doesn’t directly cause erections, but it sets the stage for them. It maintains the sensitivity of nerve pathways, supports nitric oxide production, and keeps the smooth muscle tissue in the penis healthy. Think of it as the baseline fuel level that makes the whole system responsive.
The American Urological Association considers total testosterone below 300 ng/dL to be low. Men below that threshold are more likely to experience difficulty getting or maintaining erections, though the relationship isn’t perfectly linear. Some men function fine at levels that cause problems for others. Testosterone levels naturally peak in the late teens and early twenties, then decline gradually, roughly 1 to 2 percent per year after age 30.
Why Blood Vessel Health Matters
Because erections are fundamentally a blood flow event, anything that damages blood vessels can interfere with them. The inner lining of blood vessels, called the endothelium, is responsible for producing nitric oxide and keeping arteries flexible. When that lining gets damaged by high blood pressure, high cholesterol, smoking, or diabetes, it produces less nitric oxide and blood flow decreases everywhere in the body.
Here’s the detail that surprises most people: the arteries supplying the penis are significantly smaller than the ones supplying the heart. That means the same plaque buildup and vessel damage that eventually causes heart disease shows up in erectile function first, often years before any chest pain or cardiac symptoms appear. The Mayo Clinic describes erectile difficulty in younger and middle-aged men as a potential early warning sign of cardiovascular problems. It’s one of the reasons doctors ask about erectile function during routine checkups.
What Makes It Go Away
An erection ends when the chemical signals reverse. Enzymes break down cyclic GMP, smooth muscle contracts again, the spongy chambers shrink, and trapped blood drains out through the veins. After orgasm, the nervous system shifts from its arousal mode (parasympathetic dominance) to a recovery mode (sympathetic dominance), which actively constricts blood vessels and speeds up this process.
The refractory period, the window after ejaculation when another erection isn’t possible, varies enormously. For younger men it can be minutes. By middle age it’s typically hours, and for older men it can stretch to 24 or even 48 hours. This isn’t a malfunction. It reflects changes in neurotransmitter sensitivity and hormone recovery that are a normal part of aging.
Common Reasons Erections Don’t Cooperate
Because erections require coordination between the brain, spinal cord, nerves, blood vessels, hormones, and smooth muscle, a disruption at any point in the chain can cause problems. Physical causes include blood vessel damage (the most common), nerve damage from surgery or diabetes, low testosterone, and side effects from medications like certain antidepressants or blood pressure drugs.
Psychological causes are just as real and just as common, especially in younger men. Performance anxiety, stress, depression, and relationship tension can all interrupt the brain signals that initiate the process. Alcohol suppresses the nervous system’s ability to send those signals, which is why heavy drinking reliably interferes with erections even when arousal is present. In many cases, erectile difficulty involves both physical and psychological factors reinforcing each other.