Erectile dysfunction happens when one or more steps in a surprisingly complex chain of events breaks down. Getting an erection requires coordination between your brain, nerves, hormones, blood vessels, and smooth muscle tissue inside the penis. A problem at any point in that chain, whether physical or psychological, can prevent an erection from starting or make it impossible to maintain. About 52% of men experience some form of ED in their lifetime, and while it becomes more common with age, roughly 26% of men under 40 are affected too.
How an Erection Normally Works
Understanding what goes wrong starts with understanding what’s supposed to happen. When you become sexually aroused, your brain sends signals through the parasympathetic nervous system to the blood vessels in your penis. These nerve signals trigger the release of nitric oxide, a small molecule that acts as the chemical “go” signal for the entire process.
Nitric oxide activates an enzyme that produces a second messenger molecule called cGMP. This molecule tells the smooth muscle cells lining the arteries and spongy tissue of the penis to relax. As those muscles relax, the arteries widen and blood rushes in, filling two columns of spongy tissue called the corpora cavernosa. The expanding tissue compresses the veins that normally drain blood out of the penis, trapping blood inside and producing rigidity. The whole sequence, from brain signal to full erection, depends on each step handing off to the next without interruption.
Blood Vessel Damage: The Most Common Cause
The single most frequent reason erections fail is a problem with blood flow, and it starts with the inner lining of your arteries. This lining, called the endothelium, is responsible for producing nitric oxide and allowing blood vessels to widen on demand. When the endothelium is damaged, it can’t produce enough nitric oxide, and the arteries supplying the penis can’t dilate properly during arousal. Without adequate dilation, the spongy tissue never fills with enough blood to create firmness.
This endothelial damage is the same process behind heart disease. Cholesterol builds up in vessel walls, forming plaques that narrow the arteries and further restrict blood flow. Because the arteries in the penis are significantly smaller than the ones feeding the heart, they tend to show symptoms of this damage earlier. That’s why ED often appears years before a heart attack or stroke, essentially serving as an early warning sign of cardiovascular disease throughout the body.
High blood pressure, high cholesterol, and smoking all accelerate this vascular damage. Each one injures the endothelium in its own way, reducing the penis’s ability to respond to sexual arousal with the robust blood flow an erection requires.
How Diabetes Doubles the Risk
Diabetes damages both of the systems an erection depends on: blood vessels and nerves. Chronically elevated blood sugar injures the small blood vessels supplying the penis, impairing their ability to dilate. At the same time, high blood sugar damages the nerve fibers that carry arousal signals from the brain and spinal cord to the penile tissue. With both the signal and the plumbing compromised, the likelihood of ED rises sharply. Keeping blood sugar well controlled is one of the most effective ways to protect both the nerves and vessels involved.
Nerve Signals That Never Arrive
Even with perfectly healthy blood vessels, an erection can’t happen if the nerve signals never reach the penis. The parasympathetic nervous system provides the main excitatory input, and this pathway runs from the brain through the spinal cord and out to the pelvis through delicate peripheral nerves. Damage anywhere along that route disrupts the process.
Spinal cord injuries can sever the connection entirely. Pelvic surgeries, particularly prostate removal, can injure the cavernous nerves that run alongside the prostate gland. Recovery of erectile function after this kind of nerve injury is slow and incomplete for most men, partly because the peripheral nerves have limited ability to regenerate, and partly because other risk factors like atherosclerosis often coexist. Neurological diseases like Parkinson’s and multiple sclerosis also interfere with the brain and spinal cord sites that coordinate erections.
The Role of Testosterone
Testosterone doesn’t directly trigger erections, but it plays a supporting role that matters. It helps maintain the health of the smooth muscle tissue in the penis, supports the production of nitric oxide, and sustains sexual desire. When testosterone drops below about 300 nanograms per deciliter, the threshold most doctors use to define low levels, men often notice reduced libido alongside worsening erectile function. Low testosterone alone rarely causes severe ED, but when combined with vascular or nerve problems, it makes everything harder to treat.
Why Anxiety Can Prevent Erections
Your nervous system has two competing branches when it comes to erections. The parasympathetic branch promotes erections by triggering nitric oxide release and smooth muscle relaxation. The sympathetic branch does the opposite: it releases norepinephrine, a stress hormone that contracts the blood vessels and smooth muscle in the penis, actively keeping it flaccid. This is the default state. An erection only happens when parasympathetic signals overpower that sympathetic tone.
Performance anxiety, stress, and depression all ramp up sympathetic nervous system activity. When you’re anxious, your body floods with norepinephrine, which tightens the very muscles that need to relax for blood to flow in. This creates a vicious cycle: one failed erection triggers anxiety about the next attempt, which increases sympathetic tone, which makes the next erection even less likely. The biology here is identical to what happens with physical causes. It’s not “in your head” in the dismissive sense. Anxiety produces a measurable chemical change that physically prevents the erection mechanism from working.
Medications That Interfere
Several common prescription drugs can cause or worsen ED as a side effect. Among blood pressure medications, thiazide diuretics (water pills) are the most frequent culprits, followed by beta-blockers like metoprolol and propranolol. These drugs lower blood pressure throughout the body, including in the small arteries that feed the penis, and some also interfere with nerve signaling.
Antidepressants, particularly SSRIs like fluoxetine and sertraline, are another well-known cause. These medications alter brain chemistry in ways that can dampen sexual arousal signals and delay or block the nerve impulses needed for erection. The effect is dose-dependent for most men, meaning higher doses cause more problems. If you notice ED after starting a new medication, that timing is worth noting, because switching to a different drug in the same class can sometimes resolve the issue.
Obesity and Chronic Inflammation
Carrying excess weight, particularly around the midsection, contributes to ED through a mechanism that ties together several risk factors at once. Central obesity promotes a state of low-grade chronic inflammation throughout the body. This persistent inflammation damages the endothelium lining your blood vessels, impairing its ability to produce nitric oxide and relax on demand. It also accelerates the buildup of arterial plaques.
Obesity frequently comes packaged with high blood pressure, abnormal cholesterol levels, and insulin resistance, a combination known as metabolic syndrome. Each of these conditions independently threatens the penile endothelium and smooth muscle tissue, causing both functional and structural changes in the arteries supplying the penis. The severity of ED correlates with the level of inflammatory markers circulating in the blood, meaning the more inflamed the body, the worse erectile function tends to be. Weight loss, even modest amounts, can reduce this inflammation and improve vascular function.
How Multiple Causes Stack Up
In practice, ED rarely has a single cause. A 55-year-old man with mild high blood pressure, 20 extra pounds, a stressful job, and a beta-blocker prescription has four overlapping factors all pulling in the same direction. Each one slightly reduces nitric oxide availability, slightly increases sympathetic tone, or slightly impairs blood flow. Individually, none might be enough to cause noticeable problems. Together, they cross the threshold.
This is also why ED gets more common with age. It’s not that aging itself shuts down erectile function, but rather that the conditions which damage blood vessels, nerves, and hormonal balance accumulate over decades. The rate of complete ED rises from about 5% at age 40 to 15% at age 70, with many more men experiencing partial difficulties. Addressing even one contributing factor, whether that’s improving blood sugar, losing weight, managing anxiety, or reviewing medications, can sometimes be enough to tip the balance back.

