Erectile dysfunction, often called ED, is the consistent inability to get or keep an erection firm enough for satisfying sex. It’s not about a single off night. The key word is “consistent,” meaning the problem happens repeatedly over weeks or months rather than as an occasional occurrence. ED is remarkably common: about 22% of men experience moderate to complete erectile dysfunction by age 40, and that rises to 49% by age 70. Even among men under 40, somewhere between 5% and 10% are affected.
How an Erection Works
Understanding what goes wrong starts with understanding what normally goes right. When you become sexually aroused, your brain sends signals through nerves to the penis. Those nerve signals trigger the release of a chemical called nitric oxide inside the penile tissue. Nitric oxide relaxes the smooth muscle lining the blood vessels of the penis, allowing them to widen and fill with blood. That rush of blood is what creates firmness. A second chemical messenger keeps those blood vessels relaxed for as long as arousal continues. When any step in this chain gets disrupted, whether the nerve signals, the blood flow, or the chemical messaging, an erection either doesn’t happen or doesn’t last.
Physical Causes
Most cases of ED have a physical root cause, and blood vessel problems top the list. The arteries in the penis are significantly smaller than arteries elsewhere in the body, which means they’re often the first place where narrowed or blocked blood vessels show up. In nearly 70% of cases, ED appears before coronary artery disease is ever diagnosed. That makes ED not just a sexual health issue but a potential early warning sign that something is happening in your cardiovascular system.
Diabetes is the second most common cause. High blood sugar damages both the nerves that trigger arousal and the blood vessels that deliver blood to the penis. About half of men with diabetes develop ED within ten years of their diagnosis.
Several other physical conditions can contribute:
- Neurological disorders like multiple sclerosis, Parkinson’s disease, spinal cord injuries, and stroke can interrupt the nerve signals needed for erection.
- Pelvic surgery, particularly prostate cancer surgery, can injure the nerves that run very close to the prostate.
- Medications including certain antidepressants, blood pressure drugs, and hormone-blocking medications are known to interfere with erectile function.
Psychological Causes
ED doesn’t always start with a physical problem. Performance anxiety is one of the most recognized psychological triggers. It creates a self-reinforcing cycle: you worry about losing your erection, which makes you hyper-focused on monitoring yourself during sex (sometimes called the “spectator role”), which pulls you out of arousal, which causes the very problem you feared. That failure then increases anxiety the next time.
Depression has a particularly strong link. In the Massachusetts Male Aging Study, men who reported depressive symptoms were nearly three times more likely to have ED. Emotional stress carried a similar risk, with a 3.5 times higher likelihood of erectile problems. A history of sexual trauma, relationship conflict, and a generally pessimistic outlook all independently increase risk as well. Importantly, depressed mood predicted ED even after researchers accounted for other health factors, suggesting the connection isn’t just about being less physically healthy.
In practice, psychological and physical causes frequently overlap. A man with mildly reduced blood flow might function fine until stress or anxiety tips the balance. That’s why clinicians ask whether erections still happen during sleep or in the morning, and whether the difficulty occurs in every situation or only with a partner. These details help distinguish what’s driving the problem.
The Role of Testosterone
Low testosterone can contribute to ED, though it’s less common as a sole cause than many people assume. The American Urological Association considers a total testosterone level below 300 ng/dL to be low, but only when that number is confirmed on two separate morning blood draws and the man also has symptoms. Low testosterone more often reduces sex drive than directly prevents erections, but the two problems frequently appear together. Testosterone testing is recommended for any man being evaluated for ED.
ED as a Cardiovascular Warning Sign
One of the most important things to understand about ED is that it can signal heart disease years before chest pain or other obvious symptoms appear. In one study of 50 men aged 40 to 60 who had ED but no heart symptoms, 56% had abnormal results on cardiac stress testing. Eighty percent had multiple cardiovascular risk factors. When 20 of those men went on to have imaging of their coronary arteries, 17 had significant blockages.
This connection is especially strong in younger men. A large Canadian study found that men in their 40s with ED had a 65% higher relative risk of cardiovascular disease compared to men without ED. The explanation is straightforward: the same process that narrows heart arteries, atherosclerosis, hits the smaller penile arteries first. Early erectile difficulty caused by blood vessel dysfunction likely appears before structural blockages fully develop, making it one of the body’s earliest detectable signs of systemic vascular trouble.
Lifestyle Changes That Help
Because so much ED traces back to blood vessel health, lifestyle changes can produce real, measurable improvements. In a controlled study of over 200 men with ED, those who followed an intensive program of weight loss, better diet, and increased physical activity saw significantly better results than men who didn’t. After two years, 56% of men in the lifestyle group had normal erectile function, compared to 38% in the control group. About one in three men in the intervention group fully recovered their erectile function through lifestyle changes alone.
Weight is a major factor. Men with a BMI above 28.7 carry roughly a 30% higher risk of ED compared to men at a normal weight. In the study, the intervention group lost an average of about 20 pounds in the first year. The combination of less body fat, better blood sugar control, and improved cardiovascular fitness works on multiple causes of ED simultaneously.
How ED Is Treated
The most widely used medications for ED are a class of drugs called PDE-5 inhibitors. They work by blocking an enzyme that breaks down the chemical messenger responsible for keeping penile blood vessels relaxed during arousal. In simple terms, they don’t create an erection on their own. They make it easier for the natural arousal process to work by helping blood vessels stay open longer. These medications are considered first-line treatment and are effective for the majority of men, including many with diabetes or cardiovascular causes.
For men whose ED is primarily psychological, therapy focused on reducing performance anxiety and addressing relationship dynamics can be effective on its own or alongside medication. When low testosterone is confirmed as a contributing factor, hormone therapy may help restore sex drive and improve erectile response. For cases that don’t respond to medication, options include vacuum devices, penile injections, and surgical implants, though most men find a solution before reaching that point.
The most productive approach treats ED not as an isolated problem but as a signal worth investigating. Addressing the underlying cause, whether it’s cardiovascular risk, unmanaged diabetes, depression, or medication side effects, often improves both sexual function and overall health.

