Erectile dysfunction (ED) results from a disruption in blood flow, nerve signaling, hormones, or psychological arousal, and often from a combination of these at once. It affects roughly 30% of men aged 35 to 49, rising to about 45% of men in their 50s and early 60s, and over 60% of men older than 65. Even among younger men aged 18 to 34, about one in four experiences some degree of ED. Understanding the specific mechanisms behind it helps explain why it’s so common and what can be done about it.
How Erections Work
An erection depends on a precise chain of events. When you’re sexually aroused, nerve endings and blood vessel cells in the penis release a chemical messenger called nitric oxide. This triggers the production of a second molecule that acts like a switch, forcing the smooth muscle tissue inside the penis to relax. As that muscle relaxes, blood rushes in and fills the spongy chambers of the penis, creating rigidity. Anything that interrupts this chain, whether it’s damaged blood vessels, faulty nerves, hormonal imbalance, or a mental block on arousal, can cause ED.
Blood Vessel and Heart Disease
The most common physical cause of ED is restricted blood flow, usually from atherosclerosis, the same process that clogs coronary arteries. Fatty deposits narrow the arteries supplying the penis, reducing the volume of blood that can enter. But the problem goes deeper than simple narrowing. Damaged blood vessel walls lose their ability to produce nitric oxide, which means the smooth muscle inside the penis can’t relax properly even when blood is available. At the same time, inflammation in diseased arteries triggers the release of chemicals that actively constrict blood vessels, working against the erection process from both directions.
Because the arteries in the penis are smaller than those feeding the heart, ED often shows up years before a heart attack or stroke. It can be an early warning sign of cardiovascular disease throughout the body. High blood pressure, high cholesterol, and poor circulation all contribute to this vascular damage.
Diabetes and the Double Hit
Diabetes causes ED through two simultaneous pathways. Chronically elevated blood sugar damages the tiny blood vessels that supply the nerves in the penis, starving those nerves of oxygen and nutrients. Over time, this leads to nerve fiber degeneration, meaning the signals that trigger nitric oxide release become weaker or stop entirely. At the same time, high blood sugar directly impairs the blood vessel lining throughout the penis, reducing nitric oxide production and thickening vessel walls so less blood can flow through.
This combination of nerve damage and vascular damage makes diabetes one of the strongest risk factors for ED. The damage tends to be progressive, worsening as blood sugar remains poorly controlled over months and years.
Low Testosterone and Hormonal Imbalances
Testosterone plays a supporting role in erectile function, though its relationship to ED is more nuanced than most people assume. Between 20% and 40% of men with ED have low free testosterone levels. However, research suggests that a threshold level of testosterone is needed for normal erections, and once that threshold is met, additional testosterone doesn’t improve things further. In other words, very low testosterone can contribute to ED, but slightly below-average levels may not be the real culprit.
Thyroid disorders also play a role. An overactive thyroid increases levels of a protein that binds to testosterone, effectively lowering the amount available to tissues. An underactive thyroid can disrupt the hormonal balance in other ways. If a blood test shows low testosterone, it’s worth repeating the test, since a significant number of men with one low reading will have a normal result on a second draw. Truly low testosterone can also signal problems with the pituitary gland that warrant further evaluation.
Neurological Conditions
Any condition affecting the brain, spinal cord, or pelvic nerves can interfere with erections. Multiple sclerosis, Parkinson’s disease, stroke, epilepsy, and spinal cord injuries all carry elevated ED risk. These conditions can disrupt the long nerve pathways that connect the brain’s arousal centers to the pelvic region, preventing the signals that trigger blood vessel relaxation from reaching the penis.
Peripheral nerve damage, whether from surgery (particularly prostate surgery), trauma, or compression injuries, can also block the local nerve signals needed for an erection. The disruption can happen at the level of sensation (the brain doesn’t receive signals that would maintain arousal) or at the level of the autonomic nerves that directly control blood vessel dilation in the penis.
Anxiety, Depression, and Stress
Psychological causes of ED are more than just “being nervous.” When a man enters a sexual situation with anxiety about performance, his attention shifts toward monitoring for signs of failure rather than focusing on arousal. This self-monitoring, sometimes called “spectatoring,” actively distracts the brain from the erotic cues it needs to initiate the erection process. Anxiety also ramps up the body’s fight-or-flight nervous system, which directly opposes the relaxation response that blood flow to the penis requires.
Depression contributes through a different but overlapping mechanism. Low energy, reduced interest, and negative self-image all lower sexual desire. At the biological level, depression disrupts the hormonal stress axis, leading to excess stress hormones and changes in brain chemistry that impair the smooth muscle relaxation needed for an erection. Relationship conflict, work stress, grief, and financial pressure can all feed into this cycle. In many men, psychological and physical causes overlap: a man with mild vascular ED may develop performance anxiety that makes the problem significantly worse.
Medications That Cause ED
A long list of common medications can cause or worsen erectile dysfunction. If your ED started around the time you began a new prescription, the medication is a likely contributor.
- Blood pressure drugs: Thiazide diuretics (water pills) are the most common offenders among blood pressure medications, followed by beta blockers. Alpha blockers are less likely to cause problems.
- Antidepressants: SSRIs like fluoxetine and sertraline are well known for causing sexual side effects, but older antidepressants, anti-anxiety medications like diazepam and lorazepam, and antipsychotics also carry significant risk.
- Antihistamines: Both allergy medications like diphenhydramine and heartburn drugs like cimetidine and ranitidine can contribute.
- Hormonal treatments: Drugs that block or suppress testosterone, including treatments for prostate cancer, directly impair erectile function.
- Hair loss and prostate medications: Finasteride and dutasteride, used for both hair loss and enlarged prostate, are associated with ED in some men.
- Parkinson’s medications, chemotherapy agents, and heart rhythm drugs round out the list of common offenders.
Never stop a prescribed medication without talking to whoever prescribed it. In many cases, switching to a different drug in the same class can resolve the problem.
Smoking, Obesity, and Inactivity
Lifestyle factors have a measurable, dose-dependent effect on erectile function. Smokers are 1.5 to 2 times more likely to develop ED than nonsmokers. The risk climbs by about 14% for every 10 cigarettes smoked per day and about 15% for every 10 years of smoking. Smoking accelerates atherosclerosis and directly damages blood vessel walls, reducing their ability to produce nitric oxide.
Obesity carries a similar burden. Men with a BMI of 30 or above are twice as likely to have ED as men at a healthy weight. Excess body fat increases inflammation, disrupts hormone levels (fat tissue converts testosterone to estrogen), and contributes to insulin resistance, all of which feed into the vascular and hormonal pathways behind ED. A sedentary lifestyle compounds these effects by reducing cardiovascular fitness and blood vessel health. The encouraging flip side is that losing weight, quitting smoking, and increasing physical activity have all been shown to improve erectile function, sometimes substantially.
Alcohol and Recreational Drugs
Heavy alcohol use depresses the central nervous system and, over time, can cause nerve damage and liver dysfunction that disrupts hormone metabolism. Even in the short term, alcohol blunts arousal signals and makes it harder to maintain an erection. Recreational drugs including cocaine, amphetamines, marijuana, and opioids all carry ED risk through various mechanisms, from blood vessel constriction to hormonal disruption to sedation of the nervous system.
Why ED Usually Has Multiple Causes
In practice, ED rarely comes down to a single factor. A man in his 50s with moderately high blood pressure, a prescription beta blocker, 20 extra pounds, and some work-related stress has four overlapping contributors, none of which might cause ED on its own. This is actually good news from a treatment standpoint: addressing even one or two of those factors can tip the balance back toward normal function. The severity of ED exists on a spectrum, with scores on the standard five-question screening tool ranging from mild (17 to 21 out of 25) through moderate (8 to 11) to severe (5 to 7), and many men fall in the mild range where lifestyle changes and targeted treatment make the biggest difference.