Erectile dysfunction means regularly being unable to get or keep an erection firm enough for sex. It becomes more common with age — affecting roughly half of men over 50 to some degree — and usually has a physical basis: reduced blood flow from vascular disease, diabetes, low testosterone, medication side effects or nerve problems, often amplified by stress and anxiety. New ED is a recognized early warning of cardiovascular disease and warrants a check of blood pressure, glucose and cholesterol. PDE5 inhibitors (sildenafil, tadalafil) work for most men; treating the underlying causes matters just as much.
What erectile dysfunction is
Erectile dysfunction (ED) is the consistent inability to get an erection firm enough for satisfactory sex, or to keep it long enough. "Consistent" matters: the diagnosis describes a pattern over weeks to months, not an evening.
It is common and rises with age: roughly 30 million men in the United States are affected. Mild difficulty touches perhaps a quarter of men in their forties and half or more over 50 in some degree, though severity varies widely — and it is never something to simply accept, because both the symptom and what it signals are treatable.
How an erection works
An erection is a vascular event steered by nerves and hormones.
Sexual stimulation — physical or mental — sends signals along the pelvic nerves to the arteries of the penis, releasing nitric oxide. Nitric oxide relaxes the smooth muscle of those arteries and of the two spongy chambers (corpora cavernosa) that run the length of the penis. Blood rushes in, the chambers expand, and their expansion squeezes shut the veins that would drain the blood out. Pressure builds and the penis becomes rigid. After orgasm — or when stimulation ends — an enzyme called PDE5 breaks down the signal, the arteries narrow, the veins reopen and the erection subsides.
Every category of ED cause maps onto a step in that chain: nerves that don't carry the signal, arteries that can't dilate or are too narrowed, veins that leak, hormones that lower the drive that starts the process, or a mind whose stress hormones actively oppose it (adrenaline is a natural erection killer — useful when fleeing, unhelpful in bed).
Causes
Most ED in men over 40 is wholly or partly physical; most has a psychological component layered on top, because failure breeds anxiety about failure.
Vascular — the most common
- Atherosclerosis — plaque narrowing the small penile arteries, driven by the familiar factors: smoking, high blood pressure, high cholesterol, diabetes, inactivity.
- Endothelial dysfunction — vessels that produce too little nitric oxide, an earlier stage of the same disease.
- Venous leak — chambers that cannot hold blood, more common with age and after injury.
Metabolic and hormonal
- Diabetes — damages both the vessels and the nerves involved; ED affects around half of men with diabetes and tends to arrive earlier.
- Low testosterone — lowers desire and contributes to weaker erections; usually a partial rather than sole cause.
- Obesity and metabolic syndrome, thyroid disease, high prolactin.
Neurological
Nerve damage from diabetes, pelvic surgery (prostate removal especially), spinal injury, multiple sclerosis, Parkinson's disease.
Medication and substances
Common culprits: some blood pressure drugs (thiazides, beta-blockers), antidepressants (SSRIs particularly), antipsychotics, finasteride in a minority, opioids, and heavy alcohol, smoking or recreational drugs. Never stop a prescribed medicine over ED without talking to the prescriber — alternatives usually exist.
Psychological
Performance anxiety, depression, chronic stress, relationship difficulty, past trauma. A classic clue: erections during sleep or on waking are preserved when the cause is psychological, because the machinery works when the mind is off duty.
How doctors assess it
Expect questions about onset (gradual suggests vascular; sudden suggests psychological or medication), morning erections, libido, relationships, medications, smoking, alcohol and mood; an examination; and blood tests — glucose or A1C, lipids, and a morning testosterone, sometimes thyroid and prolactin. Blood pressure is checked. Specialist tests (ultrasound of penile blood flow, nocturnal erection monitoring) are reserved for unclear or younger-onset cases.
Because ED predicts cardiovascular disease, a new diagnosis should trigger a cardiovascular risk assessment, not just a prescription.
Treatment
Treat the causes
- Exercise and weight loss improve erectile scores measurably in trials — aerobic exercise is among the best-evidenced non-drug treatments.
- Stop smoking; moderate alcohol.
- Control glucose, blood pressure and cholesterol, for the vessels' sake.
- Review medications with the prescriber.
- Treat low testosterone if confirmed on proper testing — see low testosterone.
- Address the psychological layer: sex therapy, couples work or treating depression helps even when the origin is physical.
PDE5 inhibitors
Sildenafil (Viagra), tadalafil (Cialis), vardenafil and avanafil block the enzyme that ends erections, amplifying the natural signal. They work in roughly 70% of men, need sexual stimulation to work, and differ mainly in timing — sildenafil lasts hours, tadalafil up to 36, and low-dose daily tadalafil suits men who prefer spontaneity (and helps urinary symptoms from an enlarged prostate).
They must not be combined with nitrate heart medications (dangerous blood pressure drops) and need care with alpha-blockers. Side effects: flushing, headache, congestion, indigestion. Counterfeit online pills are a genuine hazard — use a pharmacy.
Beyond tablets
Vacuum erection devices, alprostadil injections or urethral pellets, and — for ED resistant to everything else — surgical implants, which have high satisfaction rates. Low-intensity shockwave therapy shows promise in trials but remains semi-experimental.
When to see a doctor
For any consistent change in erections lasting more than a couple of months — and promptly if ED is new and you have cardiovascular risk factors, if it arrived with chest pain or breathlessness on exertion (urgent), or if it followed a new medication. An erection lasting more than four hours (priapism) is an emergency.
Can supplements play a supportive role?
The "male enhancement" market is large, aggressive and thin on evidence; worse, regulators regularly find such products adulterated with undeclared prescription drugs. A few ingredients have legitimate small trials — L-citrulline for mild ED most notably — reviewed honestly in Can supplements help erectile dysfunction?. None approaches the effectiveness of the measures above, and none is appropriate in place of a medical assessment that ED should trigger.
Frequently asked questions
Is occasional failure to get an erection ED?
No. Almost every man occasionally cannot perform because of tiredness, alcohol, stress or distraction. ED is a consistent pattern over weeks to months. One-off failures that provoke anxiety can, however, snowball into a psychological pattern, which is why worrying about it makes it worse.
Why do doctors say ED is a heart warning?
The penile arteries are 1–2 mm wide; the coronary arteries 3–4 mm. Plaque narrows the smallest vessels first, so erectile difficulty commonly appears three to five years before heart symptoms. Studies consistently find men with new vascular ED have a substantially higher risk of heart attack and stroke over the following years — which makes it an opportunity for prevention.
Does watching pornography cause ED?
Direct evidence is limited. Heavy use paired with masturbation patterns very different from partnered sex is associated with difficulty in some younger men, and it can raise arousal thresholds. Where it plays a role, the problem usually improves with a period of change; a physical work-up is still sensible.
Can ED be reversed?
It depends on the cause. ED from medication changes, low testosterone, psychological factors, alcohol, or early vascular disease improves substantially — sometimes fully — when the cause is addressed. Weight loss and exercise measurably improve erectile function in trials. Long-standing diabetes- or surgery-related ED is harder to undo, though almost always treatable.
References
- NIDDK. Erectile Dysfunction (ED) (2024). https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction
- National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). Type 2 Diabetes (2023). https://www.niddk.nih.gov/health-information/diabetes/overview/what-is-diabetes/type-2-diabetes
- NIDDK. Diabetic Neuropathy (2023). https://www.niddk.nih.gov/health-information/diabetes/overview/preventing-problems/nerve-damage-diabetic-neuropathies
This page contains no product recommendations or affiliate links. It is general health information, not personal medical advice. Read our editorial policy and medical review policy.