Erectile dysfunction has a wide range of causes, from blood vessel damage and hormonal shifts to medication side effects and psychological stress. Most cases involve more than one contributing factor. A 2021 national survey found that about 13% of men ages 25 to 44 meet diagnostic criteria for ED, rising to roughly 34% by ages 55 to 64 and nearly half of men over 65. But age alone doesn’t cause the problem. What changes with age is the accumulation of the underlying conditions described below.
Blood Vessel Damage
An erection is a vascular event. It depends on arteries in the penis relaxing and filling with blood. Anything that damages the inner lining of blood vessels, called the endothelium, restricts that blood flow. When the endothelium stops functioning properly, it produces less of the signaling molecule that tells smooth muscle in the penis to relax. Over time, this dysfunction can also lead to plaque buildup in arteries, the same process behind heart disease.
Because the arteries in the penis are significantly smaller than those supplying the heart, ED often shows up years before chest pain or other cardiac symptoms. This is why many cardiologists consider erectile difficulty an early warning sign of cardiovascular disease. High blood pressure, high cholesterol, and diabetes all accelerate this kind of vascular damage, which is why they appear so frequently alongside ED.
Diabetes and High Blood Sugar
Diabetes deserves its own discussion because it attacks erectile function from multiple angles. Chronically elevated blood sugar damages both blood vessels and nerves. In the nervous system, diabetes reduces the production of nitric oxide, the key chemical signal that triggers an erection. Research in animal models has shown that diabetes directly lowers the amount of the enzyme responsible for producing nitric oxide in the brain regions that initiate erections. At the same time, a hormone that rises in diabetes actively suppresses that enzyme further.
The nerve damage (neuropathy) that diabetes causes can also reduce sensation in the genitals, making it harder to become aroused physically even when blood flow is adequate. Men with poorly controlled diabetes are substantially more likely to develop ED, and they tend to develop it at younger ages than men without diabetes.
Low Testosterone
Testosterone plays a supporting role in erectile function by maintaining libido, sustaining the health of penile tissue, and helping regulate nitric oxide production. The American Urological Association defines low testosterone as a total level below 300 ng/dL. Below that threshold, the odds of experiencing ED climb measurably. Men with levels under 231 ng/dL face roughly twice the risk compared to men with normal levels.
Low testosterone alone rarely causes ED in isolation. More often it works alongside vascular or neurological problems. But if sex drive has dropped noticeably or erections during sleep have disappeared, testosterone is worth checking. Levels naturally decline with age, but obesity, sleep disorders, certain medications, and chronic illness can push them lower faster.
Medications That Interfere With Erections
A surprisingly long list of common prescriptions can contribute to ED. The most frequent culprits fall into two categories: blood pressure medications and drugs that affect brain chemistry.
- Blood pressure drugs: Thiazide diuretics (water pills) are the most common blood pressure medications linked to ED. Beta-blockers are the next most likely class to cause problems. Alpha-blockers tend to be less likely to interfere.
- Antidepressants and anti-anxiety medications: SSRIs, older tricyclic antidepressants, MAO inhibitors, and benzodiazepines can all blunt arousal and make erections harder to achieve or maintain.
- Other medications: Anti-seizure drugs, antipsychotics, and some anti-ulcer medications have also been associated with ED.
If you notice erectile changes after starting a new medication, the drug is a likely contributor. Switching to a different medication in the same class often resolves the issue, since not every drug in a category carries the same risk.
Smoking and Nicotine
Nicotine damages the endothelial lining of blood vessels in a direct, dose-dependent way: the more you use, the worse the damage. Cigarette smoke reduces the availability of nitric oxide, generates free radicals that attack the cells lining penile arteries, triggers inflammation in vascular tissue, and can lower testosterone levels. Even in healthy nonsmoking men, nicotine exposure has been shown to dampen sexual arousal.
The erectile tissue of the penis is essentially a network of small arteries, sinuses, and smooth muscle lined with endothelial cells. It is particularly vulnerable to the kind of vascular injury smoking causes. E-cigarettes and vaping, while delivering fewer combustion byproducts, still deliver nicotine, which is the primary driver of endothelial damage.
Psychological and Stress-Related Causes
Erections start in the brain. The parasympathetic nervous system, the branch responsible for “rest and digest” functions, sends the signals that relax penile arteries and allow blood to flow in. Anxiety and stress activate the opposing system, the sympathetic “fight or flight” response. When sympathetic signals reach the spinal cord, they actively inhibit the parasympathetic nerves that would otherwise produce an erection.
Performance anxiety is the most common psychological cause, but relationship conflict, depression, a history of sexual trauma, and fear of sexually transmitted infections can all trigger the same inhibitory pattern. Psychological ED tends to come on suddenly, often works in specific situations (for example, with a partner but not alone), and is more common in younger men. Vascular ED, by contrast, develops gradually and affects all situations equally.
Neurological Conditions
Any disease that disrupts nerve signaling between the brain, spinal cord, and penis can cause ED. Multiple sclerosis is a well-documented example. Lesions in the brain and spinal cord can cause numbness or abnormal sensations in the genitals, reduce libido, and make it difficult to initiate or maintain an erection. Parkinson’s disease, spinal cord injuries, and stroke can produce similar effects through different mechanisms, but the common thread is interrupted communication along the nerve pathways that coordinate arousal.
Prostate Surgery and Pelvic Injury
Radical prostatectomy for prostate cancer is one of the most studied surgical causes of ED. The nerves that control erections run along both sides of the prostate, and even with nerve-sparing surgical techniques, early recovery of natural erectile function is uncommon. Within one year of surgery, about 40 to 50% of men return to their pre-treatment function. By two years, that range widens to 30 to 60%, depending heavily on the surgeon’s skill and how much nerve tissue could be preserved. About 75% of men who undergo nerve-sparing surgery can achieve erections with the help of oral medications.
Pelvic radiation therapy, surgery for bladder or rectal cancer, and traumatic injuries to the pelvis or perineum (the area between the scrotum and anus) can all damage the same nerve bundles or blood supply.
Sleep Apnea
Obstructive sleep apnea, a condition where breathing repeatedly stops during sleep, has a strong association with ED. During normal sleep, erections occur naturally during REM phases, with most REM sleep concentrated in the early morning hours, which is why morning erections are common. In men with sleep apnea, repeated drops in oxygen levels and frequent nighttime awakenings reduce REM sleep and may damage the peripheral nerves that serve the genitals.
Interestingly, research suggests that the link between sleep apnea and ED is not driven by changes in sex hormones. Studies comparing men with sleep apnea who had ED to those who did not found no significant differences in testosterone or other hormone levels. The mechanism appears to be nerve damage from low oxygen, compounded by the obesity that often accompanies sleep apnea. Treating the apnea, whether through a breathing device or surgery, can improve erectile function by restoring normal oxygen levels during sleep.
Alcohol, Obesity, and Inactivity
Heavy alcohol use suppresses the central nervous system and, over time, can cause nerve damage and liver dysfunction that lowers testosterone. Even moderate drinking can temporarily impair erections by dulling nerve responsiveness.
Obesity contributes through several pathways at once. Excess body fat increases inflammation, promotes insulin resistance, converts testosterone to estrogen, and is strongly associated with both sleep apnea and cardiovascular disease. Sedentary behavior compounds these effects. Regular physical activity improves endothelial function, supports healthy testosterone levels, and reduces the risk of ED independent of weight loss.
Why Most Cases Have Multiple Causes
In practice, ED rarely has a single explanation. A man in his 50s with high blood pressure might be taking a beta-blocker that contributes to the problem, while also developing early atherosclerosis and experiencing stress at work. A younger man with no vascular risk factors might have performance anxiety that started after one episode of alcohol-related difficulty and then became self-reinforcing. Identifying all the contributing factors, rather than looking for a single cause, is what makes treatment more effective. The combination of physical, chemical, and psychological contributors is different for every person, which is why the same treatment doesn’t work for everyone.

