What Causes Erectile Dysfunction: Physical and Mental

Erectile dysfunction (ED) happens when blood flow to the penis is reduced, nerve signals are disrupted, or hormones fall out of balance. In most cases, it stems from a physical cause, a medication side effect, or a combination of both. While it becomes more common with age, ED is not an inevitable part of aging, and understanding the underlying cause is the first step toward addressing it.

How Erections Work

An erection depends on a precise chain of events. When you’re aroused, nerve endings and blood vessel cells in the penis release a chemical messenger called nitric oxide. This triggers a cascade that relaxes the smooth muscle tissue inside the penis, allowing blood to rush in and fill the two spongy chambers that run its length. Anything that interferes with nerve signaling, blood vessel health, or smooth muscle relaxation can make erections difficult or impossible to maintain.

Blood Vessel Damage and Heart Disease

The most common physical cause of ED is damage to the lining of blood vessels, a condition called endothelial dysfunction. When this lining stops working properly, it reduces blood flow throughout the body. Over time, it can also lead to plaque buildup inside artery walls (atherosclerosis), which narrows the vessels further.

Here’s what makes this especially important: the arteries supplying the penis are significantly smaller than those supplying the heart. That size difference means ED often shows up years before any chest pain or other heart symptoms appear. In many men, erection problems are the earliest warning sign of cardiovascular disease. The same risk factors that damage heart arteries, including high blood pressure, high cholesterol, and high blood sugar, damage penile arteries first.

Diabetes and Nerve Damage

Chronically elevated blood sugar damages both nerves and small blood vessels over time. This dual injury is why diabetes is one of the strongest risk factors for ED. The nerve damage (neuropathy) weakens the signals that trigger nitric oxide release, while the blood vessel damage restricts the flow needed to fill the penis. Men with poorly controlled blood sugar are at significantly higher risk, and better glucose management can help protect the nerves and vessels involved in erectile function.

Lifestyle Factors That Raise Your Risk

Several everyday habits have a measurable effect on erectile function:

  • Smoking: Smokers are 1.5 to 2 times more likely to develop ED than nonsmokers. The risk increases with volume and duration: every additional 10 cigarettes per day raises the risk by about 14%, and every additional 10 years of smoking raises it by about 15%. Smoking accelerates blood vessel damage directly.
  • Obesity: Men with a BMI of 30 or higher are about twice as likely to experience ED as men at a healthy weight. Excess body fat promotes inflammation, disrupts hormone balance, and contributes to the blood vessel damage described above.
  • Sedentary behavior: Men who spend five or more hours a day sitting in front of screens are nearly three times more likely to report ED compared to men who spend less than one hour doing the same. Regular physical activity improves blood vessel function and supports healthy testosterone levels.

Medications That Can Cause ED

A surprising number of common medications list erectile problems as a side effect. If your ED started around the same time you began a new prescription, the medication may be the cause.

Blood pressure drugs are among the most frequent culprits. Thiazide diuretics (water pills) are the most common cause of medication-related ED, followed by beta-blockers. Antidepressants are another major category, particularly SSRIs and older tricyclic antidepressants. Anti-anxiety medications, including several benzodiazepines, can also contribute.

Other classes that may cause problems include opioid painkillers, antihistamines (including some heartburn medications), Parkinson’s disease drugs, chemotherapy agents, and hormonal therapies. Even some over-the-counter medications like certain anti-inflammatory drugs and decongestants have been linked to erectile difficulties. If you suspect a medication is involved, talk with your prescriber about alternatives rather than stopping the drug on your own.

Hormonal Imbalances

Testosterone plays a role in sexual desire and contributes to the biological processes behind erections, but its relationship with ED is more nuanced than most people assume. About 1 in 3 men with ED also has low testosterone, but low testosterone does not necessarily cause ED on its own. The two conditions frequently coexist, often because they share the same underlying drivers: obesity, aging, diabetes, and chronic illness.

Testosterone levels naturally decline with age, but a clinical diagnosis of low testosterone requires both low levels on blood tests and symptoms like reduced sex drive, fatigue, or loss of muscle mass. Other endocrine problems, including thyroid disorders or pituitary gland injuries, can also disrupt the hormonal environment enough to affect erectile function.

Neurological Conditions

Because erections depend on nerve signals traveling from the brain and spinal cord to the penis, conditions that damage the nervous system can directly cause ED. Multiple sclerosis (MS) is a well-known example. Lesions in the brain and spinal cord caused by MS can produce numbness in the genitals, reduce sex drive, and make it difficult to initiate or maintain an erection. Parkinson’s disease, spinal cord injuries, and stroke can all interfere with these pathways in similar ways.

Surgery and Injury to the Pelvic Area

Surgical procedures in the pelvic region, particularly prostate cancer surgery, can damage the delicate nerves and blood vessels responsible for erections. Even with nerve-sparing surgical techniques, several types of injury can occur: mechanical stretching of nerves during the procedure, heat damage from surgical instruments, bleeding control efforts that affect nearby tissue, and inflammation from the surgery itself. Recovery of erectile function after prostate surgery can take months or even years, and some men experience permanent changes.

Radiation therapy to the pelvis, bladder surgery, and surgery on the lower spine can also cause ED through similar mechanisms.

Psychological and Emotional Causes

The brain is where arousal begins, which means psychological factors can be powerful enough to cause ED even when the physical machinery is perfectly healthy. Performance anxiety is one of the most common triggers, especially in younger men. Stress, depression, and relationship conflict can all suppress the brain’s arousal signals. In many cases, a single episode of difficulty leads to anxiety about the next encounter, creating a self-reinforcing cycle.

Psychological ED tends to come on suddenly, often works fine in some situations but not others (for example, erections during sleep or masturbation remain normal), and frequently has an identifiable emotional trigger. Physical ED, by contrast, tends to develop gradually and affects all situations equally. Many men experience a combination of both, where an underlying physical issue creates anxiety that makes the problem worse.