Erectile Dysfunction: Causes, Risk Factors & Treatment Options
A plain-English, evidence-based explainer on what causes ED, why it is often a warning sign for heart and metabolic health, when to see a doctor, and the full treatment spectrum — from lifestyle changes to FDA-approved prescription medications.
By The ED Samples Desk · 13 min read · 2026-06-14
Find your match.
Answer two quick questions — we'll point you to the ED telehealth provider that fits and what it costs.
Erectile dysfunction (ED) is the consistent or recurring inability to get or keep an erection firm enough for satisfying sex. It is one of the most common health concerns men face, and it becomes more common with age: data published by the long-running Massachusetts Male Aging Study reported some degree of ED in roughly 52% of men aged 40 to 70. An occasional off night is normal and is not ED; the term describes a persistent pattern, not a single episode.
The most important thing to understand about ED is that it is rarely 'just' a sexual problem. An erection depends on healthy blood vessels, nerves, hormones, and mental state all working together, so trouble in any of those systems can show up in the bedroom first. That is why clinicians increasingly treat new-onset ED as a potential early signal of cardiovascular disease, diabetes, or depression — not as an isolated complaint to be quietly medicated away.
This guide explains the physical and psychological causes of ED, its well-documented links to heart health and diabetes, when symptoms warrant a medical visit, and the realistic treatment options that exist today. It is educational and is not medical advice. ED can have serious underlying causes, and the prescription treatments discussed here require a consultation with a licensed healthcare provider — they cannot and should not be obtained without one. This content is intended for adults 18 and older.
The short version
- ED is usually a symptom, not a standalone disease. Because erections depend on blood flow, nerves, hormones, and mood, ED commonly reflects an underlying physical or psychological condition — which is why it is worth investigating rather than just masking.
- It can be an early warning of heart disease. ED shares the same root causes as cardiovascular disease (such as atherosclerosis), and research suggests it can precede a cardiac event by years. New ED in a man with no obvious cause is a reason to have heart and metabolic health checked.
- Diabetes is a major driver. High blood sugar damages the small blood vessels and nerves needed for erections; studies estimate ED affects a large share of men with diabetes, often earlier and more severely than in men without it.
- The cause shapes the treatment. Lifestyle change, treating an underlying condition (like high blood pressure or low testosterone), psychological care, and FDA-approved medications such as PDE5 inhibitors all have roles — and they are often combined.
- Prescription treatment requires a licensed provider. PDE5 inhibitors interact dangerously with nitrate medications and aren't safe for everyone, so a consultation is a genuine safety step, not a formality. Never source ED medication from grey-market or 'research chemical' sellers.
| Treatment approach | What it involves | Key considerations |
|---|---|---|
| Lifestyle changes | Exercise, weight management, quitting smoking, reducing alcohol, improving sleep and diet | Addresses root causes (vascular health); no prescription needed; benefits build over time and support every other treatment |
| Treating the underlying condition | Managing diabetes, high blood pressure, high cholesterol; reviewing medications that can cause ED | Can improve or resolve ED when a specific cause is found; requires medical evaluation |
| Psychological care | Counseling, sex therapy, treating anxiety or depression | Important when stress, relationship issues, or performance anxiety are involved; often combined with other approaches |
| Oral PDE5 inhibitors | FDA-approved pills: sildenafil, tadalafil, vardenafil, avanafil | First-line drug therapy for most men; prescription only; must not be combined with nitrates; require sexual stimulation to work |
| Hormone therapy | Testosterone treatment when blood tests confirm low testosterone | Only appropriate for documented low testosterone; not a general ED cure; prescription and monitoring required |
| Other prescription/device options | Vacuum erection devices, injectable or urethral medications, penile implants | Considered when pills aren't suitable or effective; require clinician guidance and, for some, a procedure |
The main treatment categories for erectile dysfunction, at a glance. This is an educational overview of options that exist, not a recommendation; appropriateness, dosing, and safety are determined by a licensed clinician based on the underlying cause and your health history.
Find your match
30-sec finder
Question 1 of 4
What are you looking for?
The short answer
Erectile dysfunction is the persistent difficulty getting or keeping an erection firm enough for sex. It has both physical causes (mostly problems with blood flow, nerves, or hormones) and psychological causes (stress, anxiety, depression, relationship strain), and the two often overlap. Crucially, new ED can be an early warning sign of heart disease or diabetes, so it deserves a medical look rather than a quiet workaround. Treatment depends on the cause: lifestyle change and treating the underlying condition come first, psychological care helps when emotions are involved, and FDA-approved medications — most commonly PDE5 inhibitor pills like sildenafil and tadalafil — are the standard first-line drug therapy. All of those medications require a consultation with a licensed provider.
How an erection actually works
Understanding the plumbing makes the causes obvious. Sexual arousal — physical or mental — triggers nerves to release a signaling chemical (nitric oxide) in the penis. That sets off a cascade that produces cGMP, a molecule that relaxes the smooth muscle in the penile arteries. Relaxed arteries let blood rush in, the spongy erectile tissue fills, and that swelling compresses the veins so blood stays put. The result is a firm erection that holds until arousal ends and an enzyme called PDE5 breaks the cGMP back down.
That sequence needs four systems working at once: a healthy vascular system to deliver blood, intact nerves to carry the signal, adequate hormones (notably testosterone) to support desire and the machinery, and a mental state that allows arousal rather than blocking it. ED happens when any link in that chain is weak. This is also why PDE5 inhibitor medications work — and why they don't work without arousal: they slow the breakdown of cGMP, prolonging the natural relaxation signal, but they cannot create that signal from nothing.
Physical causes
The majority of persistent ED has a physical basis, and most of it is vascular — a problem with blood flow. The same process that clogs arteries to the heart (atherosclerosis, the buildup of fatty plaque) also narrows the arteries that supply the penis. Because the penile arteries are small, they tend to show damage earlier than the larger coronary arteries, which is the basis for ED's reputation as an early warning sign.
Common physical contributors include:
- Cardiovascular disease and high blood pressure — anything that damages or stiffens blood vessels.
- Diabetes — high blood sugar damages both blood vessels and nerves (covered in its own section below).
- High cholesterol and obesity — both accelerate vascular damage.
- Low testosterone and other hormonal issues — including thyroid problems.
- Nerve damage — from diabetes, spinal cord injury, multiple sclerosis, or some prostate surgeries.
- Medications — certain blood pressure drugs, antidepressants, and others can contribute; never stop a prescribed medication on your own, but do tell your clinician.
- Smoking, heavy alcohol use, and some recreational drugs — which harm blood vessels and circulation.
Because the list is long and some causes are serious, a clinician's evaluation matters: the goal is to find why, not just to suppress the symptom.
Psychological causes
The brain is where arousal begins, so mental and emotional factors can cause ED outright or worsen a physical cause. Common psychological contributors include stress, anxiety (including performance anxiety, where worry about ED becomes self-fulfilling), depression, low self-esteem, relationship conflict, and the after-effects of past trauma. Depression in particular has a two-way relationship with ED: it can cause sexual difficulty, and ED can deepen depression, creating a loop.
A useful clue clinicians look for: men whose ED is primarily psychological often still have normal nighttime or early-morning erections, which suggests the physical machinery works and the block is situational. That distinction isn't something to self-diagnose, but it illustrates why a thorough history matters. When emotions are a significant factor, counseling, sex therapy, or treatment for an underlying mood disorder can be as important as any pill — and the two approaches are frequently combined.
The link to heart health
This is the single most important reason not to ignore ED. Because erections depend on healthy arteries, and because the penile arteries are narrower than the coronary arteries, vascular ED can appear before a man has any chest symptoms. Research in this area is substantial: studies have reported that ED can precede a major cardiac event by a span of years, leading some cardiologists to describe ED as a potential 'sentinel event' for cardiovascular disease. A frequently cited review in the medical literature has framed erectile function as a useful window onto overall vascular health.
The practical takeaway is not to panic, but to investigate. If you develop ED — especially without an obvious cause, and especially if you also have risk factors like high blood pressure, high cholesterol, diabetes, smoking, or a family history of heart disease — it is a sensible prompt to have your cardiovascular and metabolic health assessed. ED can be the symptom that gets a man into the clinic in time to catch a treatable problem. That is a reason to take it seriously, not a reason to fear the worst.
This is general health education, not a diagnosis. Only a licensed clinician can evaluate your individual risk; if you ever have chest pain, shortness of breath, or other cardiac symptoms, seek medical care promptly.
The link to diabetes
Diabetes is one of the strongest risk factors for ED, and it attacks erections from two directions at once: chronically high blood sugar damages the small blood vessels (reducing blood flow) and damages nerves (impairing the arousal signal). The combination is why ED in men with diabetes often appears earlier in life and can be more difficult to treat than ED from a single cause. Published estimates of how common ED is among men with diabetes vary by population and study, but they are consistently high — ED is widely reported to affect a large proportion of men living with diabetes.
The encouraging part is that good diabetes control is also good ED prevention and management: keeping blood sugar, blood pressure, and cholesterol in target ranges protects the very vessels and nerves erections depend on. For some men, improving metabolic health meaningfully improves erectile function. This is another example of the central theme of this guide — treat the cause, and the symptom often follows.
When to see a doctor
An occasional inability to get or keep an erection is normal and usually tied to fatigue, alcohol, or stress. It is worth talking to a clinician when the problem is persistent — happening regularly over a period of weeks or more — or when it is affecting your relationship, mood, or confidence. You should also seek care sooner rather than later if any of the following apply:
- You have diabetes, heart disease, high blood pressure, or other risk factors, since ED can signal that an underlying condition needs attention.
- The ED came on suddenly, or you also notice symptoms like chest discomfort, leg pain when walking, or unusual fatigue.
- You suspect a medication, a hormone problem, or depression or anxiety may be involved.
- You're considering treatment, since the safe and legal options are prescription-based and require evaluation.
A visit doesn't have to be in person for everyone: legitimate telehealth services can connect you with a licensed provider who reviews your history and decides what evaluation or treatment is appropriate. Either way, the consultation is the gateway — it's how a clinician rules out dangerous causes and ensures any medication is safe for you.
Treatment option 1: Lifestyle changes
Because most ED is vascular, the habits that protect your arteries also support erections — and lifestyle change is the foundation that makes every other treatment work better. The evidence-backed levers are familiar: regular physical activity, reaching and maintaining a healthy weight, stopping smoking, moderating alcohol, improving sleep, and eating a heart-healthy diet. Quitting smoking is especially relevant because tobacco directly damages the blood vessels erections rely on.
These changes are not a guaranteed fix, and they are not a substitute for evaluating a serious underlying cause — but they are low-risk, broadly beneficial, and free of the drug interactions that prescription options carry. For many men they are part of the plan rather than the whole plan, working alongside treatment of an underlying condition or alongside medication. They are also the one category of ED treatment you can begin today without a prescription.
Treatment option 2: Treating the underlying cause
When evaluation finds a specific driver, addressing it is often the most effective long-term move. That can mean getting blood pressure, blood sugar, or cholesterol under control; reviewing whether a current medication is contributing (and, with your prescriber, adjusting it — never on your own); or treating a hormonal problem. For men with documented low testosterone confirmed by blood tests, hormone therapy may help — but testosterone is not a general ED cure and is only appropriate when low levels are actually measured, with monitoring by a clinician.
When a mood disorder, anxiety, or relationship strain is a major factor, the 'underlying cause' is psychological, and counseling or sex therapy is the corresponding treatment. The common thread is diagnosis: you can only treat a cause you've identified, which is why a proper evaluation is worth more than guessing at a pill.
Treatment option 3: FDA-approved oral medications
For most men, the standard first-line drug therapy is a class called PDE5 inhibitors. Four are FDA-approved for erectile dysfunction: sildenafil (the active ingredient in Viagra), tadalafil (Cialis), vardenafil (Levitra), and avanafil (Stendra). All four work the same way — by slowing the breakdown of cGMP so the natural relaxation signal lasts longer — and all four require sexual stimulation to work; they do not create desire or produce an erection on their own.
They differ mainly in timing. Per their FDA prescribing information, sildenafil's effect window is generally about 4 to 5 hours, while tadalafil's can persist up to 36 hours and also offers a low daily-dose option. All are now available as lower-cost FDA-approved generics, which is what most men use today. The most important safety fact applies to the entire class: PDE5 inhibitors must not be taken with nitrate medications (often prescribed for chest pain), because the combination can cause a dangerous drop in blood pressure. Certain heart conditions and other drugs also make them unsafe. That is precisely why these are prescription-only and why a consultation with a licensed provider is required before starting one.
A note on compounded medications: some telehealth providers offer compounded versions of ED drugs. Compounded medications are not FDA-approved products. If a provider offers one, ask specifically what you are being prescribed and why, and understand that a compounded drug does not carry the same FDA approval as the brand or an approved generic.
Treatment option 4: Other options when pills aren't right
Not every man can take or responds to oral medication, and there are established alternatives a clinician may discuss. Vacuum erection devices use suction to draw blood into the penis and a constriction ring to maintain it — a drug-free mechanical option. Injectable medications (given into the penis) and urethral suppositories deliver medication locally and can work when pills don't. For ED that doesn't respond to other treatments, a penile implant is a surgical option that some men ultimately choose.
Each of these has its own benefits, drawbacks, and learning curve, and several require a procedure or hands-on instruction. None of them is a do-it-yourself project. The point of listing them is simply that ED is treatable through more than one path: if the first approach doesn't suit you, a licensed clinician has further options to consider.
How to get evaluated safely
Whatever treatment ends up being right, the safe route runs through a licensed clinician. You can be evaluated in person by a primary care doctor or urologist, or through a legitimate telehealth service that connects you with a licensed provider online. Either way, the provider reviews your symptoms, history, and other medications, screens for the serious underlying causes discussed above, and decides what — if anything — to prescribe. The prescribing decision belongs to that clinician, not to a website, an advertisement, or this article.
One firm warning: never try to buy prescription ED medication from grey-market sellers, overseas pill mills, or anything marketed as a 'research chemical.' Those products bypass the safety check that exists for a reason, can be counterfeit or contaminated, and remove the clinical judgment that prevents dangerous interactions. The consultation is not a hoop to jump through — it is the part of the process that protects you.
Educational note, not medical advice. ED Samples does not sell, ship, or prescribe medication. We provide independent, editorial coverage and link to licensed telehealth providers; the prescribing decision is made by a licensed clinician. Prices set by providers vary and should be verified at the source. For adults 18 and older.
Questions, answered
What is the most common cause of erectile dysfunction?
In most men with persistent ED, the underlying cause is physical and vascular — that is, a problem with blood flow, often linked to the same artery-narrowing process (atherosclerosis) that drives heart disease. Diabetes, high blood pressure, high cholesterol, smoking, and obesity are common contributors. Psychological factors like stress, anxiety, and depression can cause ED on their own or worsen a physical cause. Because the causes vary, a clinician's evaluation is the way to know which applies to you.
Is erectile dysfunction a sign of heart problems?
It can be. Because erections depend on healthy arteries, and because the penile arteries are smaller than the coronary arteries, vascular ED can appear before any heart symptoms — which is why clinicians sometimes treat new, unexplained ED as an early warning sign of cardiovascular disease. This is general education, not a diagnosis: if you develop ED, especially alongside risk factors like high blood pressure or diabetes, it's a sensible reason to have your heart and metabolic health checked.
Can erectile dysfunction be cured?
It depends on the cause. When ED stems from a treatable underlying problem — such as a medication side effect, low testosterone, or poorly controlled diabetes — addressing that cause can sometimes resolve it. Lifestyle changes can meaningfully improve vascular ED for some men. For others, ED is managed effectively with FDA-approved medication or other treatments rather than 'cured' outright. A licensed clinician can tell you what's realistic in your situation.
Does diabetes cause erectile dysfunction?
Diabetes is one of the strongest risk factors for ED. Chronically high blood sugar damages both the small blood vessels and the nerves that erections depend on, which is why ED in men with diabetes often appears earlier and can be harder to treat. Good diabetes control — managing blood sugar, blood pressure, and cholesterol — protects those vessels and nerves and is an important part of both preventing and managing ED.
When should I see a doctor about ED?
Talk to a clinician when the problem is persistent — happening regularly over weeks or more — or when it's affecting your mood, confidence, or relationship. See someone sooner if you have diabetes or heart-disease risk factors, if the ED came on suddenly, if you also notice symptoms like chest discomfort or leg pain when walking, or if you suspect a medication or depression is involved. A visit can be in person or through a legitimate telehealth provider; either way, it's how serious causes get ruled out.
What medications treat erectile dysfunction?
The first-line drug therapy for most men is a class called PDE5 inhibitors, and four are FDA-approved for ED: sildenafil (Viagra), tadalafil (Cialis), vardenafil (Levitra), and avanafil (Stendra). They all require sexual stimulation to work and differ mainly in how long they last. They are prescription-only and must not be combined with nitrate medications, which is why a consultation with a licensed provider is required before starting one.
Can lifestyle changes really improve ED?
For many men, yes — at least as part of the picture. Because most ED is vascular, habits that protect your arteries (regular exercise, a healthy weight, quitting smoking, moderating alcohol, better sleep, and a heart-healthy diet) also support erections. Lifestyle change is low-risk and free of drug interactions, and it makes other treatments work better. It isn't a guaranteed fix and shouldn't replace evaluating a serious cause, but it's the one approach you can start without a prescription.
Do I need a prescription to treat ED, and can I do it online?
The effective, evidence-based medications (PDE5 inhibitors) are prescription-only in the U.S., so yes — you need a prescription, which requires a consultation with a licensed provider. That consultation can be done through legitimate telehealth services, which connect you to a licensed clinician online. Never buy ED medication from grey-market or 'research chemical' sellers; doing so bypasses the safety check that prevents dangerous interactions, and the products can be counterfeit.
Is occasional trouble getting an erection the same as ED?
No. An occasional off night — usually from stress, fatigue, or alcohol — is normal and isn't erectile dysfunction. ED describes a consistent or recurring inability to get or keep an erection firm enough for satisfying sex over a period of time. If that pattern persists, it's worth a conversation with a clinician, both to treat it and to rule out an underlying cause.
Filed under Explainer