Erectile dysfunction is the persistent inability to get or keep an erection firm enough for sex. It’s not the occasional off night, which happens to most men at some point. A formal diagnosis requires that the problem occurs at least 75% of the time, lasts for six months or more, and causes significant personal distress. By those criteria, it affects roughly 13% of men in their late 20s and early 30s, rises to about 25% of men in their late 40s and early 50s, and reaches nearly half of men over 65.
How an Erection Works
An erection is a hydraulic event. When you become sexually aroused, nerve signals from the brain and local nerve endings trigger the release of a chemical messenger (nitric oxide) inside the penis. This causes the smooth muscle lining the two spongy chambers of the penis to relax, allowing the small arteries to widen and blood flow to surge in. The expanding tissue compresses the veins that normally drain blood away, trapping it inside. Internal pressure climbs to roughly 100 mmHg, and the penis becomes rigid.
Every step in that chain matters: the nerve signal, the chemical messenger, the muscle relaxation, the arterial blood flow, and the vein compression. A problem at any point can result in erectile dysfunction, which is why it has so many possible causes.
Physical vs. Psychological Causes
Doctors broadly divide ED into two categories. Organic (physical) ED develops gradually over months to years. A man might notice partial erections first, then erections that fade during sex, and eventually a complete inability to get hard. The pattern is consistent: it doesn’t improve with a different partner or different type of stimulation.
Psychogenic ED behaves differently. It tends to appear suddenly, often linked to stress, anxiety, depression, or relationship conflict. A man with psychogenic ED might be unable to perform with a partner but have no trouble with self-stimulation, or he might fail with one partner but not another. Morning erections are a useful clue here. The body produces erections during REM sleep every night from birth onward. If you still wake up with morning erections, the physical plumbing is likely intact and the cause is more likely psychological. When those sleep-related erections are absent or weak, a physical cause is more probable.
In practice, many men have a combination of both. A mild physical change can trigger performance anxiety, which makes the problem worse, creating a cycle that feeds on itself.
The Vascular Connection
The most common physical cause of ED is reduced blood flow, and the mechanism is the same one that narrows coronary arteries. Damage to the inner lining of blood vessels (from high blood pressure, high cholesterol, smoking, or high blood sugar) reduces the ability to produce nitric oxide, which means less smooth muscle relaxation and less blood flow. The penile arteries are smaller in diameter than coronary arteries, so they tend to show damage earlier. This is why ED frequently appears years before a heart attack or stroke. Large reviews of the evidence consistently find that ED precedes symptomatic cardiovascular disease, giving doctors a window to screen for heart risk and intervene before something worse happens.
If you develop ED in your 40s or 50s with no obvious psychological trigger, it’s worth thinking of it not just as a sexual problem but as a signal about your circulatory health.
Diabetes and Nerve Damage
Diabetes is one of the strongest risk factors. Roughly two-thirds of diabetic men will experience ED over the course of their disease, with rates even higher in those with type 2 diabetes and earlier onset in those with type 1. The reasons are layered: chronic high blood sugar damages both the small blood vessels and the nerves that initiate erections. It also reduces nitric oxide availability directly, so even when nerve signals arrive, the smooth muscle doesn’t relax properly. Diabetic neuropathy, the nerve damage that causes tingling or numbness in the feet, affects the same autonomic nerve pathways responsible for triggering erections. Men with diabetic neuropathy have a significantly higher risk of ED than diabetic men without it.
Other Common Risk Factors
Beyond cardiovascular disease and diabetes, several factors raise the risk:
- Smoking. Tobacco damages blood vessel linings and restricts blood flow to the penis. One small study found that within 24 to 36 hours of quitting, penile blood flow measurements improved significantly. Heavy smokers (a pack or more per day) showed better venous function almost immediately after stopping, suggesting the vascular harm from smoking is at least partly reversible.
- Obesity. Excess weight contributes to ED through multiple pathways: it worsens blood vessel function, lowers testosterone, and increases the likelihood of diabetes and high blood pressure.
- Low testosterone. While testosterone alone rarely causes ED (desire usually drops first), low levels can blunt arousal signals and reduce the responsiveness of penile tissue.
- Medications. Certain blood pressure drugs, antidepressants, and anti-anxiety medications can impair erection as a side effect.
- Pelvic surgery or radiation. Prostate cancer treatment, in particular, can damage the nerves and blood vessels critical to erections.
How It’s Evaluated
The initial workup is straightforward. A detailed conversation about when the problem started, how it progressed, whether morning erections still happen, and what medications you take often points toward a likely cause. Blood tests typically include fasting blood sugar or HbA1c (to check for undiagnosed diabetes), a lipid panel (to assess cholesterol), and blood pressure measurement. Testosterone testing is added when low desire or other hormonal symptoms are present, but it isn’t automatic for every man with ED.
In most cases, that’s enough to start treatment. More specialized testing, like overnight monitoring of sleep erections or penile ultrasound, is reserved for cases where the cause remains unclear or surgery is being considered.
How Prevalent It Really Is
A 2021 national survey of sexual wellbeing found that ED is more common in younger men than many people assume. About 18% of men aged 18 to 24 met diagnostic criteria, compared to 13% of men aged 25 to 34. The rate climbed steadily from the mid-40s onward: 25% of men aged 45 to 54, 34% of men aged 55 to 64, 48% of men aged 65 to 74, and 52% of men 75 and older. The relatively high rate in the youngest group likely reflects the significant role of psychological factors, performance anxiety, and possibly pornography-related expectations in that age range.
Treatment Options
First-line treatment for most men is an oral medication that enhances the nitric oxide pathway. These drugs (you’ve likely heard of them by brand name) work by blocking the enzyme that breaks down the chemical signal responsible for smooth muscle relaxation. They don’t create an erection on their own; sexual stimulation is still required. They amplify the body’s natural response. For men with straightforward ED, success rates are high, though they work less reliably in men with severe nerve damage from diabetes or surgery.
When oral medications don’t work, options include penile injections that directly relax smooth muscle tissue, vacuum erection devices that mechanically draw blood into the penis, and penile implants (a surgical option that provides the most reliable results but is typically reserved for men who haven’t responded to other approaches).
Low-intensity shockwave therapy is a newer, non-invasive approach that works by creating microscopic tissue disruption to stimulate new blood vessel growth. In clinical trials, men with mild to moderate ED showed meaningful improvement in erectile function scores that held for about two years before declining, with a peak effect at one year. No adverse events were reported. It’s a promising option for men who want to address the underlying vascular problem rather than relying on medication, though long-term data is still limited.
The Role of Lifestyle Changes
Because ED so often shares its root causes with heart disease, the same lifestyle shifts that protect your heart tend to improve erections. Regular aerobic exercise improves blood vessel function and nitric oxide production. Weight loss in overweight men can meaningfully improve erectile function, especially when it reverses metabolic problems like insulin resistance. Quitting smoking produces measurable improvements in penile blood flow within days. Reducing alcohol intake matters too: while a drink may ease anxiety, chronic heavy drinking damages nerves and lowers testosterone.
For younger men whose ED is primarily psychological, cognitive behavioral therapy and structured sex therapy have strong track records. Addressing performance anxiety, relationship stress, or depression often resolves the problem without medication.

