An erection happens when blood fills two spongy chambers inside the penis and gets trapped there under pressure. The process involves your brain, nerves, blood vessels, and hormones all working together in a specific sequence. It starts with a signal, either from a thought or from physical touch, and ends with the penis becoming rigid enough for penetration. Here’s how each step works.
Two Types of Signals Start the Process
Erections can be triggered two different ways, and they use separate nerve pathways. A psychogenic erection starts in the brain from something you see, hear, imagine, or remember. The signals travel down through the spinal cord at the level of the lower back (T11 through L2) before reaching the penis. A reflexogenic erection comes from direct physical touch to the genitals, and those signals route through a lower section of the spinal cord (S2 through S4). This is why erections can happen during sleep or from physical stimulation even without any sexual thoughts, and why visual arousal alone can produce one without any touch at all.
Both pathways converge on the same destination: the nerves and blood vessels inside the penis. Once either signal arrives, the same chemical chain reaction kicks off.
The Chemical Chain Reaction
When arousal signals reach the penis, nerve endings and blood vessel walls release a gas called nitric oxide. This is the key molecule that makes erections possible. Nitric oxide triggers an enzyme that produces a second chemical messenger called cyclic GMP (cGMP). Cyclic GMP is what actually does the heavy lifting: it tells the smooth muscle cells lining the blood vessels and spongy tissue inside the penis to relax.
When those muscles relax, the small arteries feeding the penis open wide, and blood rushes in. The spongy tissue expands like a sponge soaking up water. This whole sequence, from nerve signal to muscle relaxation, takes only seconds.
Testosterone plays a supporting role in this process. It helps maintain the enzymes that produce nitric oxide in the first place. Men with low testosterone often produce less nitric oxide, which is one reason hormone levels affect erection quality even though testosterone doesn’t directly cause erections on its own.
How Blood Gets Trapped Inside
The penis contains two cylindrical chambers called the corpora cavernosa, running side by side along its length. These are the main structures responsible for rigidity. Each one is wrapped in a tough, elastic sheath made of collagen and elastic fibers. Think of it like a balloon with a strong outer wall: as blood fills the chamber, the tissue expands, but the outer sheath limits how far it can stretch.
Here’s the critical part. As the spongy tissue swells with blood, it presses outward against that tough outer sheath. Small veins that normally drain blood away from the penis run between the expanding tissue and the outer wall. As the tissue swells, those veins get pinched and compressed, like stepping on a garden hose. This traps blood inside.
This trapping mechanism, sometimes called the veno-occlusive mechanism, is what maintains the erection. It’s a purely mechanical process: the expanding tissue creates enough pressure to partially collapse the veins, which prevents blood from leaving as fast as it enters. The result is a buildup of pressure inside the chambers.
Why It Feels Rigid
The pressure inside the penis during a full erection is surprisingly high. At baseline rigidity, the internal pressure roughly matches your systemic blood pressure. But during active use, when the muscles at the base of the penis contract (like during thrusting or manual compression), pressure spikes can reach several times higher than normal blood pressure. Researchers have recorded peaks exceeding 450 mmHg, which is more than three times a typical systolic reading. These brief pressure spikes are what produce full rigidity rather than just engorgement.
This is also why cardiovascular health matters so much for erection quality. The entire process depends on healthy blood flow and blood vessels that can dilate properly. Anything that impairs blood vessel function, from high blood pressure to diabetes to smoking, directly undermines this hydraulic system.
How an Erection Ends
An erection doesn’t just fade passively. Your body actively reverses the process using an enzyme called PDE5, which breaks down cyclic GMP. As cyclic GMP levels drop, the smooth muscle in the penis contracts again, the arteries narrow, blood flow slows, and the pressure inside the chambers falls. Once the spongy tissue shrinks, it stops compressing the veins, blood drains out normally, and the penis returns to its soft state.
This is exactly the mechanism that erectile dysfunction medications target. They block PDE5, which slows down the breakdown of cyclic GMP and keeps the relaxation signal active longer. They don’t create arousal or force an erection on their own. They only work when the nitric oxide signal is already present from genuine arousal, making it easier for the natural process to produce and maintain an erection.
Why Erections Change With Age
Erection difficulties are far more common than most people assume, and they increase steadily with age. About 5% to 10% of men under 40 experience some degree of erectile difficulty. By their 40s, roughly 22% of men deal with moderate to complete problems. By age 70, that figure rises to about 49%. The Baltimore Longitudinal Study of Aging found that 75% of men over 80 reported some degree of erectile impairment.
The reasons are cumulative. Blood vessels stiffen and become less responsive over time. Testosterone levels gradually decline, reducing the production of nitric oxide. Chronic conditions like high blood pressure, diabetes, and heart disease damage the delicate vascular system the erection depends on. About 80% of men with vascular erectile dysfunction show evidence of “venous leakage,” meaning the trapping mechanism isn’t working properly and blood escapes the chambers before full rigidity is reached.
Lifestyle factors that protect cardiovascular health, like regular exercise, maintaining a healthy weight, and not smoking, directly protect erection function for the same reasons. The penis is essentially a hydraulic system, and its performance reflects the health of the blood vessels supplying it.

