What causes erectile dysfunction?
An erection needs open arteries, working nerves, some hormone, and a brain that is not in alarm. ED is a failure somewhere on that list.
Erectile dysfunction most often comes from reduced blood flow tied to diabetes, high blood pressure, smoking or artery disease. Nerve damage, low testosterone, thyroid problems, Peyronie's disease, pelvic surgery, medicines and anxiety are other causes. Several usually act together, so new ED deserves a medical check before a pill.
What has to work
Arousal signals from the brain and touch signals from the genitals travel through spinal and pelvic nerves. They release nitric oxide in the penis, smooth muscle relaxes, arteries widen, and pressure traps the blood. Any weak link shows up as the same symptom. That is why two people with identical erections can need completely different workups.
How age and disease change the odds
In the Massachusetts Male Aging Study, men aged 40 to 69 developed new erectile dysfunction at a rate of 25.9 cases per 1,000 man-years over an average 8.8 years. The yearly rate climbed from 12.4 per 1,000 in the forties to 46.4 per 1,000 in the sixties. Diabetes, heart disease, high blood pressure and lower education each raised the age-adjusted risk. This was a random population sample, mostly white men from one state, so treat the figures as a shape and not a forecast for you.
| Cause | Typical clue | Usual check |
|---|---|---|
| Blood vessels | Gradual onset, also weak on waking, high blood pressure, smoking | Blood pressure, lipids, glucose, heart risk |
| Diabetes | Vascular and nerve effects together | Fasting glucose or HbA1c |
| Nerves | After prostate, bladder or bowel surgery, spinal injury, multiple sclerosis | Neurological history and exam |
| Hormones | Low desire as well as weak erections | Morning testosterone, sometimes thyroid or prolactin |
| Structure | New curve, lump or painful erection | Examination for Peyronie's disease |
| Medicines and substances | Started soon after a new drug | Full list, including over-the-counter products |
| Mind and relationship | Sudden or situational, normal erections at other times | Mood, stress, performance worry |
Which medicines can cause ED?
MedlinePlus lists many. Among blood pressure drugs, it names thiazide diuretics as the most common offender, then beta blockers, with alpha blockers less likely to be responsible. Antidepressants such as sertraline and fluoxetine, antipsychotics, sedatives, some antihistamines, finasteride and dutasteride, prostate cancer hormone treatment and opioids are on the list too.
The opioid signal has been measured. A 2017 meta-analysis of 10 studies with 8,829 men found ED was about twice as likely among opioid users (relative risk 1.96). Most of those studies were cross-sectional, so pain itself or the illness behind it could explain part of the gap. Being on a list means possible, not proven, for you.
Never stop a blood pressure or psychiatric drug to test the theory. Ask for a substitution and a follow-up date.
Is it psychological?
Anxiety and depression can cause ED alone, and they reliably make a physical cause worse. One bad night sets up watching for the next one, and alarm chemistry works directly against an erection. Normal erections on waking or during masturbation suggest the plumbing works. Their absence does not prove disease, since sleep quality and age matter as well. Counselling and medical treatment are not rivals here.
What about porn, cycling, and testosterone?
These get more attention than evidence. Low testosterone is more strongly linked to low desire than to weak erections alone. In the Testosterone Trials of men 65 and older with low levels, gains in sexual activity and desire tracked the rise in testosterone, while erectile function did not. Blanket claims about the other two go beyond what we could verify, so they are left out.
What you can change
Aerobic exercise has randomized trial support. A 2023 meta-analysis found an average gain of 2.8 points on the erectile function score against controls, with larger gains in men who started worse: 4.9 points in severe ED. A 2026 review of diet and exercise trials in men with ED reached a similar verdict, calling the effect modest and the certainty moderate. Smoking, heavy drinking and recreational drugs are on the federal list of causes as well.
When is it urgent?
ED on its own is not an emergency. Three things are: an erection that will not go down for more than 4 hours, chest pain or fainting during sex, and new numbness around the genitals with loss of bladder or bowel control, which can mean pressure on the spinal nerves. New ED in someone with other heart risks deserves an early appointment, for reasons set out on ED and heart disease. Approved pills are covered on PDE5 inhibitors explained.
Questions people ask
Can ED happen in your twenties or thirties?
Yes. Anxiety, medicines and alcohol are frequent contributors at that age, but early diabetes and high blood pressure occur too. Persistent trouble over several weeks is a fair reason to ask for a basic medical check at any age.
Does losing morning erections mean something is wrong?
It is a clue, not a diagnosis. Erections during sleep depend on good sleep, hormone rhythm and blood flow. If they have vanished for weeks and daytime erections are also weaker, mention both to a clinician.
What tests are done for ED?
Usually a history, blood pressure, a genital exam and blood tests for sugar, lipids and morning testosterone. Penile ultrasound and nerve tests are reserved for unclear or complicated cases.
Sources
- Symptoms and Causes of Erectile Dysfunction, NIDDK
- Incidence of erectile dysfunction in men 40 to 69 years old: longitudinal results from the Massachusetts male aging study., PubMed
- Drugs that may cause erection problems, MedlinePlus
- Association Between Opioid Use and Risk of Erectile Dysfunction: A Systematic Review and Meta-Analysis., PubMed
- Effect of aerobic exercise on erectile function: systematic review and meta-analysis of randomized controlled trials., PubMed
- Efficacy of lifestyle interventions in treating erectile dysfunction: a systematic review and meta-analysis of randomized controlled trials., PubMed
- Testosterone Treatment and Sexual Function in Older Men With Low Testosterone Levels., PubMed
