What Causes Erectile Dysfunction? The Complete Medical Explanation

Updated March 202614 min readMedical Education
In This Article
  1. How Erections Actually Work
  2. Vascular Causes (Most Common)
  3. Neurological Causes
  4. Hormonal Causes
  5. Psychological Causes
  6. Medication-Induced ED
  7. Lifestyle Factors
  8. Most ED Is Mixed-Cause
  9. When to Seek Treatment
  10. FAQ

Erectile dysfunction isn't a single disease — it's a symptom with dozens of possible causes. Understanding why erections fail is the first step toward fixing the problem, and in many cases, ED is actually an early warning sign of something more serious happening in your body.

This article breaks down every major cause of ED using straightforward medical explanations. No vague hand-waving, no filler — just the biology of what's actually going wrong and what it means for your health.

Key Takeaway: About 80% of ED has a physical cause — most commonly vascular disease (impaired blood flow). Psychological causes account for the remaining 20%, but many men have a combination of both. ED can also be an early warning sign of cardiovascular disease, appearing 2–5 years before a heart attack or stroke.

How Erections Actually Work

An erection is fundamentally a hydraulic event. When you become sexually aroused, your brain sends signals through your spinal cord and pelvic nerves to the arteries in your penis. These signals trigger the release of nitric oxide (NO), a molecule that relaxes the smooth muscle lining the penile arteries. The arteries dilate, blood rushes in, and the expanding tissue compresses the veins that normally drain blood away — trapping the blood inside and creating rigidity.

This process requires four systems working in coordination: the nervous system (to transmit arousal signals), the vascular system (to deliver blood), the endocrine system (to produce adequate testosterone and other hormones), and the psychological state (to initiate and maintain arousal). A problem in any one of these systems can cause ED.

Vascular Causes — The Most Common Culprit

Vascular disease accounts for the majority of ED cases, particularly in men over 40. The same process that narrows the arteries in your heart (atherosclerosis) also narrows the arteries in your penis. In fact, because penile arteries are smaller than coronary arteries, they clog earlier — which is why ED often appears years before a heart attack.

Atherosclerosis

Plaque buildup in the arteries restricts blood flow throughout the body. The penile arteries (1–2mm diameter) are among the smallest in the body, so they show symptoms of reduced flow before larger arteries do. Risk factors include high cholesterol, high blood pressure, smoking, diabetes, and obesity.

Endothelial Dysfunction

The endothelium is the inner lining of blood vessels. When it's damaged (by smoking, high blood sugar, inflammation), it produces less nitric oxide — the molecule that triggers arterial relaxation and blood flow. Less nitric oxide means weaker erections, even if the arteries themselves aren't yet physically blocked.

Venous Leak

Sometimes blood flows into the penis adequately but leaks out too quickly through veins that don't compress properly. This results in erections that are achievable but difficult to maintain. Venous leak can result from aging, injury, or structural changes in the penile tissue.

Important: If you're developing ED with no obvious psychological cause, particularly if you're over 40, consider it a potential cardiovascular warning sign. Talk to your doctor about a cardiac evaluation — not just an ED prescription. Read more about ED as a heart disease warning →

Neurological Causes

The nerve pathways from brain to penis are complex, and damage at any point can disrupt erections.

Diabetes (diabetic neuropathy) — Chronically elevated blood sugar damages the small nerve fibers that control penile blood flow. Up to 75% of diabetic men experience ED at some point. The damage is progressive and often irreversible, making early blood sugar control critical.

Spinal cord injury — Depending on the location and completeness of the injury, spinal cord damage can partially or completely prevent the nerve signals required for erection. Some men with incomplete injuries retain reflex erections but lose psychogenic (mentally-initiated) erections, or vice versa.

Prostate surgery — Radical prostatectomy (prostate removal for cancer) can damage the cavernous nerves that run alongside the prostate. Nerve-sparing surgical techniques have improved outcomes significantly, but many men experience temporary or permanent ED after the procedure.

Multiple sclerosis (MS) — MS damages the myelin sheath surrounding nerves, disrupting signal transmission. ED affects 50–75% of men with MS.

Parkinson's disease — Both the disease itself (which affects dopamine pathways) and the medications used to treat it can contribute to ED.

Hormonal Causes

Low testosterone (hypogonadism) — Testosterone plays a supporting role in erectile function. It maintains libido (sexual desire) and helps regulate nitric oxide production. Testosterone levels naturally decline with age — about 1–2% per year after age 30. When levels drop below 300 ng/dL, ED becomes significantly more likely.

However, testosterone alone rarely causes ED. Most men with low testosterone experience reduced desire first, with erectile function declining later. If your erections are normal during sleep or masturbation but fail during sex, low testosterone is unlikely to be the primary cause.

Thyroid disorders — Both hypothyroidism (underactive thyroid) and hyperthyroidism (overactive thyroid) are associated with ED. Thyroid hormones affect smooth muscle relaxation, nitric oxide synthesis, and overall metabolic function.

Hyperprolactinemia — Elevated prolactin levels (sometimes caused by pituitary tumors) suppress testosterone and directly inhibit sexual function. This is relatively rare but treatable.

Psychological Causes

Psychological ED is more common in younger men (under 40) but can affect anyone. The key distinction: men with purely psychological ED typically have normal erections during sleep, upon waking, or during masturbation — the erectile mechanism works, but anxiety or other psychological factors interfere during partnered sex.

Performance anxiety — The most common psychological cause. Worrying about whether you'll get or maintain an erection creates a self-fulfilling cycle: anxiety triggers adrenaline release, adrenaline constricts blood vessels, constricted blood vessels prevent erection, failed erection increases anxiety. Learn how to distinguish performance anxiety from medical ED →

Depression — Depression affects neurotransmitter balance (particularly serotonin and dopamine), reduces libido, and can make the brain less responsive to sexual stimuli. Additionally, many antidepressants (SSRIs) cause ED as a side effect — creating a frustrating double bind.

Relationship stress — Unresolved conflict, poor communication, loss of emotional intimacy, or resentment can all manifest as ED. The body is remarkably sensitive to relationship dynamics during sex.

Stress and fatigue — Chronic stress elevates cortisol, which suppresses testosterone and diverts blood flow away from non-essential functions (including erections). Sleep deprivation compounds this by further disrupting hormone production.

Medication-Induced ED

Over 200 medications list ED as a potential side effect. The most common culprits include:

SSRIs and SNRIs (antidepressants like sertraline, fluoxetine, venlafaxine) — These increase serotonin, which can suppress sexual arousal, delay orgasm, and impair erections. ED occurs in 25–73% of users depending on the specific medication.

Beta-blockers (metoprolol, atenolol, propranolol) — Used for high blood pressure and heart conditions, beta-blockers reduce heart rate and blood pressure but can also reduce blood flow to the penis. Not all beta-blockers are equal — nebivolol may actually improve erectile function through nitric oxide enhancement.

Thiazide diuretics (hydrochlorothiazide) — Another blood pressure medication class associated with ED, likely through zinc depletion and vascular effects.

5-alpha reductase inhibitors (finasteride, dutasteride) — Used for hair loss and enlarged prostate. These block conversion of testosterone to DHT and are associated with ED in approximately 5–9% of users. In rare cases, sexual side effects may persist after stopping the medication.

Opioids — Chronic opioid use suppresses testosterone production (opioid-induced hypogonadism) and can cause significant ED. Full list of medications that cause ED →

Lifestyle Factors

Smoking — Damages blood vessel endothelium, reduces nitric oxide production, and accelerates atherosclerosis. Smokers are approximately twice as likely to develop ED as non-smokers. The good news: quitting smoking can improve erectile function, sometimes within weeks.

Obesity — Excess body fat increases estrogen levels (through aromatization of testosterone), promotes inflammation, worsens insulin resistance, and contributes to vascular disease. Men with a BMI over 30 are three times more likely to experience ED. Weight loss of even 5–10% can meaningfully improve erectile function.

Alcohol — Moderate alcohol consumption has minimal long-term effects on erections, but heavy drinking damages the liver (which metabolizes hormones), causes neuropathy, and depresses the central nervous system. Acute intoxication impairs erections through direct CNS depression.

Sedentary lifestyle — Regular aerobic exercise improves cardiovascular function, endothelial health, and nitric oxide production. Studies consistently show that men who exercise regularly have significantly lower rates of ED.

Poor sleep — Sleep deprivation reduces testosterone production (most testosterone is produced during deep sleep) and increases cortisol. Obstructive sleep apnea is independently associated with ED.

Most ED Is Mixed-Cause

Here's what most articles don't tell you: the majority of ED cases involve more than one cause. A man with mild vascular disease might function fine until he adds a beta-blocker for blood pressure, which tips him into noticeable ED. Or a man with performance anxiety might have an underlying hormone issue that makes the anxiety-driven ED worse than it would otherwise be.

This is why a thorough evaluation matters. Treating only the psychological component won't help if there's also a vascular problem. And taking a PDE5 inhibitor won't fully resolve ED if the underlying cause is a medication side effect that should be addressed by switching drugs.

When to Seek Treatment

Consider seeing a doctor or starting telehealth treatment if:

The good news: regardless of the cause, effective treatment options exist. PDE5 inhibitors (sildenafil, tadalafil) work for the vast majority of men with ED, including those with vascular, neurological, or psychological causes. For men who want the convenience of online treatment, several telehealth platforms make it straightforward to get evaluated and prescribed.

Ready to Address Your ED?

BraveRX offers compound ED formulas with 24/7 physician support. Free consultation, 30-day money-back guarantee.

Start Your Free Consultation →

Compare ED Treatment Providers

ProviderBest ForStarting Price
BraveRXCompound formulas, 24/7 support~$119/moVisit Site
MyDrHankLowest cost per pill~$1.67/pillVisit Site
Peter MDFlat-rate pricing$90 flatVisit Site

Frequently Asked Questions

Can ED be cured permanently?
It depends on the cause. ED caused by psychological factors, medication side effects, or reversible lifestyle factors (obesity, smoking, poor sleep) can often be resolved completely. ED caused by vascular disease, nerve damage, or structural changes is typically managed rather than cured — but PDE5 inhibitors are highly effective for long-term management.
How do I know if my ED is physical or psychological?
A key indicator: if you still get erections during sleep, upon waking, or during masturbation but not during partnered sex, the cause is more likely psychological. If erections are weak or absent in all situations, a physical cause is more likely. Many men have a combination of both. A healthcare provider can help distinguish between the two.
At what age does ED typically start?
ED becomes increasingly common with age. About 40% of men are affected at age 40, rising to nearly 70% by age 70. However, ED can occur at any age — approximately 26% of men under 40 report some degree of erectile difficulty, often from psychological causes, lifestyle factors, or medication side effects.
Is ED a normal part of aging?
ED becomes more common with age, but it is not an inevitable or "normal" part of aging. Many men maintain healthy erectile function well into their 70s and 80s. Age-related ED is typically caused by accumulated vascular disease, hormonal changes, and medication use — all of which are treatable.
Can lifestyle changes alone fix ED?
In some cases, yes. Research shows that regular aerobic exercise, weight loss of 5–10%, quitting smoking, reducing alcohol, and improving sleep can meaningfully improve erectile function — sometimes enough to resolve mild ED without medication. For moderate-to-severe ED, lifestyle changes are best combined with medication for optimal results.