DisclosureWe earn commission on partner links; ranking is set by our evidence-based methodology — not advertisers. Read policy
Reviewed by the HealthVetted Editorial
Erectile dysfunction (ED) is the consistent inability to get or keep an erection firm enough for satisfying sex. Occasional difficulty is normal and not a diagnosis; ED is when the problem becomes persistent — and it is one of the most common, most treatable conditions in men's health (Erectile Dysfunction, StatPearls, NIH/NCBI Bookshelf NBK562253).
An erection is a vascular event. Sexual arousal signals nerves in the penis to release nitric oxide, which raises levels of cyclic guanosine monophosphate (cGMP). cGMP relaxes the smooth muscle of the two cylinders inside the penis (the corpora cavernosa), letting blood rush in and stay trapped under pressure. ED occurs when any link in that chain — nerves, arteries, hormones, smooth muscle, or psychological arousal — fails to do its part.
Clinically, erectile dysfunction (formerly called impotence) is defined as the inability to attain or maintain a penile erection sufficient for satisfactory sexual performance (StatPearls, NBK562253). The key word is *consistent*. A single off night after alcohol, stress, or exhaustion is not ED. Most clinicians consider the difficulty meaningful when it has been present for several months and is causing distress.
ED is grouped by underlying cause:
In medical records, ED is coded under ICD-10 N52 (male erectile dysfunction), with subtypes such as N52.01 (arterial insufficiency), N52.1 (due to diseases classified elsewhere), and N52.9 (unspecified). The psychiatric counterpart, male erectile disorder, is F52.21.
ED almost always has more than one cause, and physical and psychological factors frequently overlap. The leading drivers are:
Vascular and metabolic disease. Because erections depend on healthy arteries, conditions that damage blood vessels are the dominant cause in men over 40: atherosclerosis, high blood pressure, high cholesterol, obesity, and especially diabetes. ED is strongly linked to diabetes — pooled global data put the prevalence of ED among men with diabetes around two-thirds (PMC11472474). Longer diabetes duration, higher BMI, and peripheral vascular disease all raise the risk further.
Neurological conditions. Diabetes-related nerve damage, multiple sclerosis, Parkinson's disease, stroke, spinal cord injury, and pelvic or prostate surgery can interrupt the nerve signals an erection requires.
Hormonal problems. Low testosterone (hypogonadism), thyroid disease, and elevated prolactin can reduce desire and erectile capacity.
Medications and substances. Many common drugs contribute, including certain antidepressants (especially SSRIs), some blood-pressure medicines (notably older beta-blockers and thiazide diuretics), antipsychotics, and antiandrogens. Tobacco, heavy alcohol use, and recreational drugs are also major contributors.
Psychological factors. Performance anxiety, depression, chronic stress, and relationship conflict can cause ED outright or worsen a physical problem. Psychogenic ED is more typical in younger men and often features sudden onset, situational symptoms, and preserved spontaneous (morning) erections.
Who is most at risk? ED becomes more common with age, but it is not an inevitable part of aging. Prevalence rises sharply across the decades — one large U.S. analysis estimated roughly 18% of men aged 20 and older were affected, while studies of men aged 40–80 report much higher rates, climbing well past half of men in their 60s and 70s (PMID 17275456; PMC11769807). Beyond age, the strongest risk factors are diabetes, cardiovascular disease and its risk factors, smoking, obesity, sedentary lifestyle, and depression.
The symptoms are straightforward, but the *pattern* helps point to the cause:
Two pattern clues matter to clinicians. Gradual onset with the loss of nighttime and early-morning erections suggests a physical (often vascular or neurologic) cause. Sudden onset that is situational — fine alone or with masturbation but not with a partner — and that spares morning erections points toward a psychological cause.
ED frequently travels with related concerns such as premature or delayed ejaculation and low libido, and these should be mentioned to a clinician because they affect both the diagnosis and the treatment plan.
ED is diagnosed primarily through a careful history and physical exam; high-tech testing is the exception, not the rule.
Medical and sexual history. The clinician asks how long the problem has lasted, whether onset was gradual or sudden, whether morning erections persist, and about libido, ejaculation, medications, smoking, alcohol, mood, and relationship factors. Validated questionnaires — most commonly the International Index of Erectile Function (IIEF) or its short form, the Sexual Health Inventory for Men (SHIM/IIEF-5) — help grade severity (mild, moderate, severe) and track response to treatment.
Physical examination. This focuses on signs of vascular disease, body habitus, secondary sexual characteristics that hint at hormone problems, and a genital exam (including assessment for penile plaques of Peyronie's disease).
Laboratory tests. Because ED and cardiometabolic disease are tightly linked, guideline-directed bloodwork commonly includes fasting glucose or HbA1c, a lipid panel, and a morning total testosterone level; thyroid function and prolactin may be added when indicated (Erectile Dysfunction: AUA Guideline, 2018).
Specialized testing (selected cases only). Most men never need these. They are reserved for younger men, complex cases, suspected trauma, or when surgery is being considered. They include nocturnal penile tumescence (NPT) testing to distinguish psychogenic from organic ED, and penile duplex Doppler ultrasound (often after an injection of a vasoactive drug) to assess penile blood flow.
A critical diagnostic principle: ED is frequently an early warning sign of cardiovascular disease. Vascular ED can precede a heart attack or stroke by several years, and it is recognized as an independent predictor of future cardiovascular events (Uddin et al, *Circulation*, 2018, PMID 29891569). A new ED diagnosis is therefore an opportunity to screen heart health, not just to write a prescription.
Treatment follows a stepped approach, starting with the least invasive options. Importantly, treating an underlying cause (controlling diabetes, switching a medication, addressing depression) can resolve ED on its own.
Lifestyle modification is recommended for essentially all men with ED because it targets the vascular roots of the problem and benefits overall health. Useful steps include:
Evidence supports that better cardiovascular health can improve erectile function, though the strength of evidence for any single intervention varies (AUA Guideline, 2018).
There is no FDA-approved oral ED pill sold over the counter. Caution is warranted with "male enhancement" supplements: the FDA has repeatedly found such products spiked with undeclared prescription PDE5 inhibitors, which is dangerous for men taking nitrates or other interacting drugs. For men whose ED has a psychological component, counseling or sex therapy is a legitimate, low-risk first step. Vacuum erection devices (below) are also available without a prescription.
Oral PDE5 inhibitors (first-line). The American Urological Association recommends FDA-approved oral PDE5 inhibitors as first-line therapy unless contraindicated (AUA Guideline, 2018). These drugs block the PDE5 enzyme that breaks down cGMP, allowing more blood flow and firmer erections — but only with sexual arousal; they are not aphrodisiacs. Four are FDA-approved in the U.S.:
The AUA notes the four have broadly similar efficacy, with no single agent proven superior; choice is driven by timing, side effects, and cost. They work for a majority of men — commonly cited as roughly two-thirds to three-quarters. The most important safety rule: PDE5 inhibitors must never be combined with nitrates (such as nitroglycerin for chest pain), because the combination can cause a dangerous drop in blood pressure. Caution also applies with alpha-blockers.
Testosterone therapy. When ED is accompanied by clinically and biochemically confirmed low testosterone, testosterone replacement may help, sometimes alongside a PDE5 inhibitor. It is not appropriate for men with normal testosterone levels.
Second-line therapies (when pills fail or aren't tolerated):
Third-line therapy:
Shockwave therapy and platelet-rich plasma (PRP) injections are heavily marketed but remain investigational; guidelines do not endorse them outside research settings.
Largely, yes — because the same habits that protect the heart protect erections. Prevention and long-term management overlap:
Because ED can recur or progress as underlying conditions change, treatment is often an ongoing partnership with a clinician rather than a one-time fix. Adjusting doses, switching agents, or stepping up to second-line therapy is normal over time.
See a clinician if erection difficulties last more than a few weeks or are causing distress — ED is common and treatable, and self-diagnosis with internet-bought pills is risky. Seek medical attention promptly in these situations, which can signal a serious underlying problem:
A urological emergency that is *not* ED but is often confused with it: priapism — an erection lasting more than four hours, often painful. This requires immediate emergency care to prevent permanent damage, and it can be a side effect of injection therapy or, less often, oral drugs.
The outlook for ED is generally very good. It is one of the most treatable conditions in medicine: with the stepped approach above, the large majority of men can achieve erections satisfactory for sex. Many cases improve substantially with lifestyle changes and oral medication alone, and for those who don't respond, second- and third-line options have high success rates.
The most important prognostic point is broader than sex itself. Because ED so often reflects underlying vascular or metabolic disease, addressing it can be a gateway to catching and treating heart disease, diabetes, or depression earlier — improving both quality of life and long-term health.
Is erectile dysfunction a normal part of getting older? ED becomes more common with age, but it is not an unavoidable consequence of aging. It is usually driven by treatable conditions — vascular disease, diabetes, medications, hormones, or psychological factors — and many older men have no ED at all. Age alone is not a reason to accept it untreated.
Does erectile dysfunction mean I have heart problems? Not necessarily, but it can be an early warning. Because erections depend on healthy blood vessels, vascular ED can precede coronary artery disease by several years and is an independent predictor of future cardiovascular events (*Circulation*, 2018, PMID 29891569). A new ED diagnosis is a good reason to have blood pressure, blood sugar, and cholesterol checked.
Can erectile dysfunction be cured, or only managed? Both are possible. When ED stems from a reversible cause — a medication, weight gain, smoking, untreated depression, or low testosterone — fixing that cause can resolve it. When it stems from established vascular or nerve damage, it is usually managed effectively with treatment rather than permanently cured. Either way, the symptom is highly controllable.
Are over-the-counter "male enhancement" supplements safe? They carry real risk. The FDA has repeatedly found such products tainted with undeclared prescription drugs, which can be dangerous — especially for men taking nitrates or with heart disease. There is no FDA-approved oral ED medication available without a prescription. A clinician-prescribed generic is safer and proven.
Will ED medication work the first time I take it? Often, but not always. PDE5 inhibitors require sexual arousal to work and may need dose adjustment or a few attempts to find the right fit. If a properly dosed medication taken correctly several times doesn't help, that is a reason to follow up rather than give up — alternatives exist.
---
*This article is for general educational purposes and is not medical advice. It does not replace evaluation by a licensed clinician. Talk to your healthcare provider about diagnosis and treatment that is right for you.*
The FDA has approved four oral phosphodiesterase type 5 (PDE5) inhibitors for erectile dysfunction: sildenafil (Viagra), tadalafil (Cialis), vardenafil (Levitra), and avanafil (Stendra). These prescription tablets improve blood flow to the penis when combined with sexual stimulation and are first-line therapy for most men. Other evidence-based, professionally supervised options include penile injection therapy (such as alprostadil), intraurethral alprostadil suppositories, vacuum erection devices, testosterone therapy when low testosterone is confirmed by blood testing, and surgically placed penile implants for men who do not respond to other treatments. CRITICAL SAFETY POINT: PDE5 inhibitors are contraindicated with nitrate medications (used for chest pain/heart disease) because the combination can cause a dangerous, potentially life-threatening drop in blood pressure; they also require caution with alpha-blockers. Only use ED medication prescribed by a licensed clinician, and avoid products sold online without a prescription, which may be counterfeit or contain undisclosed ingredients. This is general information, not medical advice.
Erectile dysfunction is the persistent inability to get or keep an erection firm enough for satisfying sexual activity. Occasional difficulty is common and not usually a concern, but clinicians generally consider it ED when the problem is consistent and lasts about three months or longer. Because it can signal an underlying health issue, it is worth discussing with a doctor rather than ignoring.
Most cases stem from physical problems with blood flow to the penis, often linked to vascular disease, diabetes, high blood pressure, high cholesterol, obesity, smoking, or low testosterone. Psychological factors such as stress, anxiety, depression, and relationship problems can also cause or worsen ED, and certain medications may contribute. Many men have a mix of physical and emotional causes, so a clinician's evaluation is the best way to identify the specific drivers.
It depends on the cause, but ED can often be treated successfully and, in some cases, reversed. ED driven by lifestyle factors, medications, or psychological issues is the most likely to improve or resolve with changes like quitting smoking, exercising, losing weight, treating depression, or adjusting medications. When it results from longstanding nerve or blood-vessel damage it is harder to reverse, but treatments can still restore satisfying erections, so a doctor's assessment is important to set realistic expectations.
Diagnosis usually starts with a medical and sexual history, a review of medications, and a physical exam. Doctors often use a symptom questionnaire and order blood tests to check for diabetes, cholesterol, and low testosterone; in some cases they add a penile ultrasound or other specialized tests. There is no single universal cutoff, but symptoms that persist for roughly three months are commonly used as a clinical threshold for diagnosing ED.
First-line treatment is usually oral PDE5-inhibitor pills such as sildenafil, tadalafil, vardenafil, or avanafil, alongside lifestyle changes and, when appropriate, counseling. If pills do not work or are not suitable, options include penile injections, urethral suppositories, vacuum erection devices, testosterone therapy for men with low levels, and penile implants for more severe cases. The right choice depends on the underlying cause and your overall health, so treatment should be guided by a clinician.
It can be. ED and cardiovascular disease share the same root cause of damaged, narrowed blood vessels, and because penile arteries are small they often show problems first. Research suggests ED can appear two to several years before a heart attack or other cardiovascular event, so new ED, especially in younger or middle-aged men, is a reason to have your heart health and risk factors evaluated.
ED is very common and becomes more frequent with age. Studies estimate it affects over half of men between 40 and 70, with rates rising further after 70, though it also affects a meaningful share of younger men. Aging alone does not make ED inevitable, and the increase is largely tied to age-related conditions like vascular disease and diabetes, many of which are treatable.
Yes. Regular cardiovascular exercise, a healthy weight, quitting smoking, limiting alcohol, controlling blood pressure, cholesterol, and blood sugar, and managing stress can all improve erectile function and may reverse milder cases. These changes also protect heart and vascular health, which underlies erections. Lifestyle steps work well alongside medical treatments, but you should still see a clinician to rule out underlying conditions.
Independent, evidence-based reviews — not paid placements. See our full analysis:
This page is for general information and is not medical advice. Always consult a qualified clinician about diagnosis and treatment. Individual results vary.