At a glance

  • ED has four main groups of causes: diseases and conditions, medicines, mental or emotional issues and lifestyle – often more than one at once.
  • The most common medical causes involve blood vessels, nerves or hormones – diabetes, heart and blood vessel disease, low testosterone, nerve damage.
  • ED may be a symptom of another health problem, which is the main reason to have it checked.
  • Many everyday medicines can cause ED – but never stop one on your own.
  • Lifestyle causes – smoking, alcohol, inactivity, drugs – are the ones you can change directly.

Symptoms of ED

ED means regularly being unable to get or keep an erection firm enough for sex. A self-check and an explanation of how doctors diagnose it are in do I have ED?.

Diseases and conditions

Most common diseases and conditions that can lead to ED (NIDDK)
GroupExamples
DiabetesType 1 and type 2 diabetes
Heart and blood vessel diseasesAtherosclerosis, high blood pressure, stroke
Chronic conditionsChronic kidney disease, obesity and overweight, COPD
Hormone issuesLow testosterone, thyroid imbalance
Nerve damage or disordersMultiple sclerosis, spinal cord injury, damage from pelvic surgery
Male reproductive systemEnlarged prostate, penile curvature (Peyronie’s disease)

NIDDK groups these as conditions that affect blood vessels, nerves or hormones. The cause also influences how well treatment works: in Viagra’s trials, 57% of men with diabetes and 43% after radical prostate surgery improved, compared with 74–82% at the usual doses in the general ED population.[1][3]

Medicines that can cause ED

Common prescription and over-the-counter medicines linked to ED (NIDDK)
Medicine groupExamples or use
AntidepressantsUsed for depression and anxiety
Appetite suppressantsMedicines that reduce hunger
AntihistaminesFor allergies or heartburn
Blood-pressure medicines and diureticsIncluding water pills
Chemotherapy and hormone medicinesCancer and hormone treatments
Some pain relieversNSAIDs, codeine, oxycodone
SedativesMedicines that calm or make you sleepy
Ulcer medicinesFor stomach or duodenal ulcers

All examples from NIDDK. If you suspect a medicine, talk to your clinician – they may change the dose or switch to another medicine. Do not stop taking a medicine on your own.[1][2]

Mental and emotional causes

Anxiety, depression or stress; feeling isolated or lonely; and low self-esteem, lack of confidence or negative body image can either cause ED or make it worse. Counseling – sometimes together with a partner – can help lower anxiety and stress about sex. See supporting a partner with ED.[1][2]

Lifestyle

Lifestyle behaviors that may contribute to ED and what helps (NIDDK)
BehaviorWhat helps
Not enough physical activityAt least 150 minutes of moderate activity a week
Drinking too much alcoholLimit or stop alcohol
SmokingQuit – smoking is linked to heart and blood vessel disease
Recreational and illicit drugsStop – they can prevent arousal and mask other causes

Causes from NIDDK’s symptoms page; recommendations from its prevention guidance.[1][2]

Why ED can be a warning sign

Because many causes are conditions such as diabetes, high blood pressure or atherosclerosis, NIDDK notes that ED may be a symptom of another health problem.[1] Having ED checked can therefore lead to finding and treating a condition that matters well beyond sex.

What to do next

Questions people ask

What is the most common cause of ED?

Conditions affecting blood vessels, nerves or hormones – NIDDK lists diabetes, heart and blood vessel disease and chronic conditions among the most common.

Can ED be caused by stress alone?

Yes, it can. Anxiety, depression or stress can cause ED or make it worse.

Can my medicines cause ED?

Many common medicines can, including antidepressants, blood-pressure medicines and some pain relievers – but talk to your clinician before changing anything.

Is ED a sign of heart disease?

It can be. Heart and blood vessel diseases are among the most common causes, and ED may be a symptom of another health problem.

Does alcohol cause ED?

Drinking too much can, and limiting alcohol is recommended to prevent or improve ED.

Can young men get ED?

Yes. Causes such as stress, anxiety, alcohol, drugs, smoking, nerve injuries or medicines are not limited to older men.

Does ED get better if the cause is treated?

It can. Clinicians treat the underlying cause when possible; when it is unknown, they focus on improving sexual function.

Conclusion: what we know, what we don’t, and what follows

What we know today

Established

  • ED has well-documented causes in four groups – diseases and conditions affecting blood vessels, nerves or hormones; many common medicines; mental and emotional issues; and lifestyle behaviors.[1]
  • ED may be a symptom of another health problem, such as diabetes or heart and blood vessel disease.[1]
  • The underlying cause affects how well treatment works – for example, response to sildenafil is lower in men with diabetes or after prostate surgery.[3]

What we don’t know yet

  • In an individual man, how much each factor contributes is often impossible to separate; several causes frequently act together.
  • Sometimes the exact cause of ED is not known, and treatment then focuses on improving sexual function.[2]

Bottom line

Erectile dysfunction is rarely just about erections. Its most common causes are conditions of the blood vessels, nerves and hormones, everyday medicines, emotional strain and habits – and the same problem that limits sex may be affecting the heart or metabolism. That is why the most useful first step is not a pill but a check-up: finding the cause tells you what can be changed, what can be treated, and which treatment is most likely to work.

Sources

  1. NIDDK: Symptoms & Causes of Erectile Dysfunction (last reviewed October 2024)
  2. NIDDK: Treatment for Erectile Dysfunction (last reviewed October 2024)
  3. FDA: VIAGRA (sildenafil citrate) prescribing information, 2017 (PDF)

Sources checked October 11, 2026.