Understanding Erectile Dysfunction
ED is common and treatable. It is often the first sign your heart and blood vessels need care. This guide covers the options, from daily habits to a one-time surgery.
Welcome
If you are reading this, you or someone close to you has trouble getting or keeping an erection. By age 60, roughly 1 in 3 men has some ED. By age 70, roughly 2 in 3. ED is one of the most common reasons men under 70 book a urology visit.
This guide walks you up the ladder of options, from lifestyle to a pill to a vacuum or injection to a small surgery with a high satisfaction rate. It also covers your heart. In men in their 40s, 50s, and 60s, new ED shows up on average 3 to 5 years before a heart attack or stroke. Chapter 2 explains why.
How to use this guide. Read the first three chapters before your visit. They cover what ED is, why your urologist will ask about your heart, and how the workup goes. Then read the chapters that match where you are on the ladder. Bring a partner if you have one. The questions in Chapter 11 are made for your visit.
What ED is, and what it isn't
Erectile dysfunction is trouble getting or keeping an erection firm enough for the sex you want. See a urologist if it becomes a pattern that bothers you.
The everyday version
An erection takes three things in working order: nerves that send the signal, arteries that bring blood in, and veins that hold the blood in place. ED can come from any one of these, and often from more than one at once. Stress, sleep, alcohol, and medications all play a role.
ED becomes more common with age. By age 60, roughly 1 in 3 men has some. By age 70, roughly 2 in 3. Most of those men have several treatment options that work for them.
Three different things
Doctors split sex into three parts, because each one has its own causes and its own treatments.
- Erection is the hard part. Pills, shots, pumps, and implants work here.
- Libido is the wish for sex. Low testosterone, low mood, stress, and some pills work here.
- Orgasm is the climax. Some pills and nerve issues can change it on its own.
A pill that fixes mechanics will not fix desire. A man with great desire and a soft erection has a different problem than a man with a firm erection and no interest.
ED and your heart
For many middle-aged men, new ED is an early sign that the same problem will show up in the heart a few years later. Treating the risk factors now lowers your odds of a heart attack or stroke.
Why your urologist asks about your blood pressure
An erection is a blood-flow event. The arteries that feed the penis are small, about 1 to 2 millimeters across. The arteries that feed the heart are bigger, about 3 to 4 millimeters. When the same disease that narrows arteries (high blood pressure, high cholesterol, high blood sugar, smoking) sets in, the smaller ones complain first.
In men in their 40s, 50s, and 60s, new ED shows up about 3 to 5 years before a heart attack or stroke, on average. Those years are a chance to find and treat the risk early.
The penis is an early warning system for the heart. If you are a middle-aged man with new ED, your visit should look at your blood pressure, your cholesterol, your blood sugar, and your smoking. It should also lead to a talk with your primary care doctor.
What this means for your visit
A good ED visit, in a man age 40 to 70, has a few simple steps that have nothing to do with the pill.
- Blood pressure checked in clinic.
- Blood tests for your cholesterol (a lipid panel) and your blood sugar (fasting glucose or HbA1c).
- A talk about smoking, weight, sleep, and alcohol.
- Your family history. It matters most if a parent or sibling had an early heart attack or stroke.
- If something looks off, a hand-off to your primary care doctor or a heart doctor.
If you have had a recent heart event, or chest pain with effort, your urologist may pause before giving you a pill. They may ask a heart doctor to weigh in. The pill is safe for most men. The pause is to check whether your heart is ready for the physical exertion of sex.
Never mix a phosphodiesterase-5 inhibitor (PDE5; a class of ED pill: sildenafil, tadalafil, vardenafil, avanafil) with any nitrate. That means nitroglycerin pills or patches, isosorbide, and "poppers." The mix can drop your blood pressure to a risky low. Tell every doctor that you take an ED pill. If you ever have chest pain, tell the ER too.
What's going on: causes and clues
Most adult ED is a mix of vessels, nerves, hormones, head, and habits. A few clues from your own experience help sort it out.
The usual contributors
- Blood vessels. High blood pressure, high cholesterol, smoking, diabetes, and extra weight all narrow arteries. This is the top cause after age 50.
- Diabetes. ED tends to come 10 to 15 years sooner in men with diabetes, and pills work less well. The path to shots or an implant is often shorter.
- Sleep apnea. Untreated apnea is linked to ED. Treating it can help.
- Pelvic surgery and radiation. Prostate surgery, bladder surgery, and pelvic radiation can hurt the nerves and vessels next to the prostate. See Chapter 8.
- Pills. Some blood pressure pills (above all beta blockers and thiazide water pills), some mood pills (above all paroxetine and sertraline), finasteride, and opioids can play a role. Do not stop any pill on your own. Bring the list to your visit.
- Mood. Low mood, worry, and life stress drive ED, and ED in turn worsens low mood and worry.
- Alcohol and recreational drugs. A regular pattern matters more than any one night.
Clues from your own pattern
- Morning erections. If you still wake with an erection sometimes, your plumbing works. That points more toward a head, hormonal, or partner-specific cause.
- One partner only. Trouble with a new partner but not your usual one, or the other way around, often points toward a head or relationship cause.
- Sudden onset after surgery or an injury. Points to nerves or vessels in the pelvis.
- Slow drop over years. Often from blood vessels, often paired with cholesterol or blood pressure issues.
- A bend or pain with erection. Raises Peyronie's disease, a separate but related condition.
Many men with ED arrive at the urology visit convinced it means they have lost interest in their partner, or that they have failed in some personal way. The biology is usually plainer than that: small arteries, healing nerves, a medication on the list, or untreated sleep apnea.
How ED is worked up
A good ED visit is mostly a thoughtful talk, a short exam, and a few basic labs. Fancy tests are saved for unusual cases.
What your visit should include
- A full history. When did it start? Is it every time, or some times? Do you still wake up with erections? How is your desire? How is your orgasm? What medications do you take? How much do you drink, smoke, and sleep? Any surgery or pelvic injury? Any change in shape or curvature?
- A short symptom score. A five-question form called the SHIM (or IIEF-5) helps grade where you are now and track change over time.
- A focused exam. Heart, pulses, body habitus. A genital exam looks at the testicles, the penis (for plaques or scars), and the prostate when age-appropriate.
- Basic labs. Fasting glucose or HbA1c, lipid panel, and morning total testosterone. Some men also get a PSA, a TSH, or a prolactin, based on their story.
Specialty tests, only when needed
- Nighttime erection testing with a small home device. Used when the question of head versus body matters for the plan.
- Penile ultrasound with a small in-office shot. Used for younger men with a possible artery injury, or before a planned big surgery.
- More advanced vascular tests are rare and live in specialty centers.
The workup points you toward the right next step and catches the heart and blood-sugar problems from Chapter 2 while you are in the room.
Low testosterone is its own condition, and most men with ED do not have it. Testosterone helps with desire and energy more than with the mechanics of erection. If your morning level comes back low and your story fits, your urologist may treat it. Pills for ED are still the first stop for the erection itself.
Lifestyle and pills
Most men start on these first two rungs, and many stay there.
Rung 1: lifestyle
This is the only rung that also lowers your odds of a heart attack or stroke. Pick two changes you can keep going for a year.
- Move most days. Aerobic exercise improves erections in many men, often as much as a pill in milder cases.
- Lose weight if you carry extra. Even modest weight loss helps.
- Stop smoking. Erections often improve over the 1 to 2 years after quitting.
- Cut alcohol back. A regular pattern matters more than any one night.
- Treat sleep apnea if you have it.
- Look over your pill list with your doctor. A swap from one blood pressure pill or mood pill to another in the same group can help. Do not stop a pill on your own.
- Treat low mood and worry for their own sake. A mood pill that is kinder to sex (such as bupropion) is sometimes a good fit.
Rung 2: pills (PDE5 inhibitors)
Four medications make up the standard first-line treatment for ED. All four are generic in 2026. They work by helping the penis hold blood when arousal arrives. They do not create desire. You still need to be in the mood and have some stimulation.
| Pill | Onset & duration | Notes |
|---|---|---|
| Sildenafil | 30 to 60 minutes; lasts about 4 hours | The molecule in Viagra. A fatty meal can slow it down. |
| Tadalafil | 30 to 60 minutes; lasts up to 36 hours; or daily low dose | The molecule in Cialis. Many couples prefer the long window. Also treats benign prostatic hyperplasia (BPH) symptoms. |
| Vardenafil | 30 to 60 minutes; lasts about 4 hours | Works much like sildenafil. |
| Avanafil | 15 to 30 minutes; lasts about 6 hours | Faster onset than the others. |
Daily low-dose tadalafil versus on-demand dosing is a preference call. Some men like the ready-to-go feel of daily. Others prefer to take a pill only when they want one.
For most men, pills work 6 to 8 times out of 10. They work less well for men with diabetes or after non-nerve-sparing prostate surgery. Common side effects are headache, flushing, stuffy nose, and indigestion. Rare side effects include a sudden change in vision or hearing; if either happens, stop the pill and call your doctor.
Generic sildenafil and tadalafil from a chain pharmacy are the same molecules as the brand names, and prices at CVS, Walgreens, and Costco have dropped to a few dollars a pill. The medication you get from Hims, Roman, or Bluechew is fine. What you give up is the heart check from Chapter 2, the in-person exam, and a place to call when the first pill at the first dose does not work. If you go that route, at least get your blood pressure, cholesterol, and fasting glucose checked by your primary care doctor in the same year.
The most common reason is that they were not given a fair trial. A fair trial is four to eight attempts at the highest dose you can tolerate, taken the right way (well before sex, on a light or empty stomach for sildenafil, with arousal and stimulation). If you have done that and it still is not working, injections or a vacuum device are the next step, and they work for most of the men who got nothing from pills.
Injections and the vacuum device
When pills are not enough, two well-studied options work for most men.
Rung 3: penile injection (ICI)
A tiny shot goes into the side of the penis 5 to 15 minutes before sex. The needle is small (similar to an insulin needle) and the discomfort is brief. Most men learn the technique in one visit. Two common options are alprostadil (a single-drug medication) and trimix (a custom three-drug mix made at a compounding pharmacy).
Injections work in 7 to 9 men out of 10, including many men who did not respond to pills. The erection is reliable and the timing is predictable. The trade-offs are a brief pinch, a chance of a small bruise, and a small risk of scarring with long-term use.
If an injection produces an erection that does not go down after about 4 hours, call your urologist's office right away. If you cannot reach urology, go to the emergency room and tell them you have priapism after an ED injection. Waiting can damage the tissue that produces normal erections. This is rare, and it is treatable when caught early.
Rung 3a: urethral pellet (MUSE)
A small pellet of medication is placed inside the tip of the urethra. It is less invasive than a shot, and it works less often. Some men prefer it.
Rung 4: vacuum erection device (VED)
A clear plastic tube fits over the penis and a pump (manual or battery) pulls blood in. A soft rubber ring slides from the base of the tube onto the base of the penis, holding the blood in place for sex. The erection lasts about 30 minutes, then the ring comes off.
The vacuum device is mechanical, reusable, and cleared by the FDA. It works for most motivated couples, especially when paired with a pill. The erection can feel cool to the touch, the device takes a few sessions of practice, and bringing it into the bedroom takes a conversation with your partner. Couples who stick with it past the first month or two usually keep using it. It is also a key tool during recovery after prostate surgery (see Chapter 8).
Shockwave therapy and PRP
You may see cash-pay clinics offering low-intensity shockwave or platelet-rich plasma (PRP) injections for ED. The current evidence is limited. Some shockwave studies show a modest improvement in mild cases. Many short, small studies make it hard to know how durable the effect is. PRP for ED has even thinner evidence. Neither is covered by insurance and neither is standard of care. If you are considering it, set expectations carefully and avoid paying out of pocket outside of a research trial.
The penile implant
Doctors suggest the penile implant less often than the other options, and satisfaction rates are the highest of any ED treatment. For the right man, it ends years of work-arounds.
What it is
The inflatable penile prosthesis is a small device placed inside the body. The surgery is done as a same-day or one-night stay. Two soft tubes sit inside the penis, where the spongy tissue used to fill with blood. A small pump goes in the scrotum, next to one testicle. A pouch of salt water sits behind the belly muscle.
To get an erection, you press the pump in the scrotum a few times. Saline moves from the reservoir into the cylinders, and the penis becomes firm. To go back to flaccid, you press a small release valve at the base of the pump. From the outside, no one can tell.
Who it is for
Men who have tried first-line and second-line options and still do not have a working erection. Men who want an always-available erection and accept a one-time surgery to get it. Men with diabetes whose pills never worked well. Men with persistent severe ED after prostate surgery.
What surgery looks like
Outpatient or one-night stay. A single small cut at the base of the penis or in the lower abdomen. Most men go home the same day or the next morning. Recovery takes about 4 to 6 weeks before the device is used for sex. Pain control and a short course of antibiotics are standard.
The trade-offs
- It is a one-way door. Placing the device removes the spongy tissue that produced natural erections. Natural erections do not come back. Men who have spent years on pills or injections without success usually accept that.
- Infection is the worst case. If it happens, the device usually has to come out and be replaced later. Modern coatings, careful surgical technique, and good diabetes control have lowered the rate.
- It does not change sensation, orgasm, or ejaculation. The implant fills the role of the spongy tissue. The nerves that carry pleasure and the pathways for orgasm are untouched.
- Surgeon experience matters. Many urologists place implants. Surgeons who do a higher volume tend to have lower complication rates. Ask your surgeon how often they do this procedure.
Many implant patients describe long stretches on pills that half-worked and injections that worked but felt like a chore. If you have given pills and injections a fair trial without success, ask about an implant at your next visit.
After prostate surgery
Erections after radical prostatectomy (full prostate removal for cancer) recover on their own timeline, which runs 1 to 2 years. Knowing that before surgery sets the right expectations.
What the recovery looks like
The nerves that control erection run right next to the prostate. Even with careful nerve-sparing surgery, those nerves are bruised. The recovery window is long, about 1 to 2 years, and erections often do not return to baseline. How well you do depends on your age, how good your erections were before surgery, whether one or both nerve bundles were spared, and your surgeon's hands.
- Best case: a younger man with normal baseline erections who has both nerve bundles spared. Many of these men recover useful natural erections.
- Middle case: good baseline, one nerve spared. Many of these men need help from pills, injections, or a vacuum, and many do well.
- Hardest case: older age, lower baseline function, non-nerve-sparing surgery. The implant is often a strong fit.
Recovery after prostate surgery runs on a 1 to 2 year clock.
Penile rehab
The idea behind rehab is to keep the spongy tissue in the penis healthy through the long nerve healing window. With no blood flow, the tissue can shrink. That makes healing harder later. A common plan is a low dose pill (often daily tadalafil or sildenafil a few times a week). You can add a vacuum erection device (VED, a pump and ring) or move to intracavernous injection (ICI, a small shot into the side of the penis) if your own erections have not come back by a few months out.
The trials on penile rehab are mixed, and whether it changes the long-term result is still debated. Most surgeons still recommend some version of it, because the medications are cheap, the side effects are minor, and doing nothing for a year lets the tissue shrink. Talk through the plan with your surgeon before surgery, when there is time to ask questions and fill prescriptions in advance.
If natural erections do not come back
By 18 to 24 months out, what you have is more or less what you will have without further treatment. Men who do not have useful erections by then often pick the penile implant (a small device placed in the penis to give an erection on demand). In clinic, the men who do this typically say it let them move on from cancer treatment with their sex life working again.
If you have a radical prostatectomy on the calendar and nobody has talked to you about what sex looks like in the year or two after, book that conversation before your surgery date. Ask about the timeline, the rehab plan, and the options if your erections do not come back.
Living with ED, together
ED affects both partners, even when only one has the trouble. Treatment works best when both people understand the plan, including which pill or device is being used, how long it takes to work, and what to expect from each step.
Why partners belong in the room
The pattern shows up at almost every urology visit. A man notices erections are not what they were, feels embarrassed, finds reasons to skip sex, and never says why. His partner reads the avoidance as rejection. Six or twelve months go by before anyone says the word ED out loud, and by then the bedroom problem has grown a relationship problem on top of it.
If you have a partner, bring them to the visit. Or talk openly before and after. Partners almost always tell me the same thing in clinic: they had been worried something was wrong with them, and they would rather know what is actually going on.
The three different things, in the bedroom
From Chapter 1: erection, desire, and orgasm are separate. On a night when the erection part is not cooperating, the other two still work. Some couples agree to take "had to finish with intercourse" off the table for a few months. They talk instead about what each of them enjoys. That often takes the pressure off the erection itself.
Mental health belongs in the plan
Depression and anxiety drive ED, and ED drives them right back. Treating one side usually helps the other. If you are struggling, tell your urologist and your primary care doctor. Six to eight sessions of therapy, swapping or adding a medication, or both, often help. Some antidepressants (bupropion, mirtazapine) are gentler on sexual function than the SSRIs. Ask your prescriber if a swap is reasonable.
What success looks like at each rung
- Lifestyle alone: erections improve as your weight, blood pressure, sleep, and habits improve. The change is gradual.
- Pills: erections that work 6 to 8 times out of 10 for most men. Many couples stay here for years.
- Shots or vacuum: erections that work for nearly all men, with a small learning curve up front.
- Implant: an erection on demand. About 9 in 10 men and partners say they are happy with it long term.
For most men, ED becomes something to manage rather than something to cure. Picking a rung on the ladder depends on what matters most to you, how much hassle you can tolerate, and what your partner thinks. Men shift between rungs over the years as their health and their preferences change.
Frequently asked questions
Is ED just part of getting older?
More common with age, yes, but men in their 50s and 60s almost always get back to a working solution. In middle-aged men, new ED is also a useful signal to check the heart, cholesterol, and blood sugar.
Is my ED really a heart problem?
For many middle-aged men, yes, at least in part. The small arteries in the penis show vascular trouble earlier than the larger arteries in the heart. A new ED visit is a good reason to check blood pressure, cholesterol, blood sugar, and family history.
Do I need testosterone shots?
Most men with ED do not. Low testosterone is a different condition with its own workup. Testosterone helps with desire and energy, not directly with the mechanics of erection.
Are the cheap online pills safe?
Generic sildenafil and tadalafil from a licensed pharmacy are the same molecules as the brand names. The bigger caution with telehealth-only ED services is what gets skipped: the heart check, the in-person look at risk factors, and a plan for what to do if the first pill does not work. A one-time questionnaire can flag the symptom, but it does not replace a medical evaluation.
Will a pill interact with my heart drugs?
Hard rule: never mix a PDE5 inhibitor with any nitrate. That means nitroglycerin, isosorbide, and "poppers." The mix can drop your blood pressure to a risky low. Tell every doctor that you take a pill for ED.
Should my partner come to the visit?
If you have a partner, bring them. Treatment works best when both of you know which pill, injection, or device is being used and what to expect.
What if pills do not work?
The ladder continues. Injections and vacuum devices work for nearly all men, including many whose pills had stopped helping. The implant has long-term satisfaction around 90 percent.
Will an implant end natural erections?
Yes. The device replaces the spongy tissue that fills with blood, and natural erections do not come back. Around 90 percent of men with an implant say in follow-up surveys they would do it again.
Does shockwave therapy work?
Evidence is limited and the cost is high. Some studies show modest improvement in mild cases. It is not covered by insurance and not standard of care.
My erection bends. Is that ED?
Curvature with or without ED is Peyronie's disease, a separate but related condition. Many men have both. Ask your urologist about it.
Questions to ask your urologist
Bring this page to your visit.
About my situation
- What do you think is driving my ED? Vessels, nerves, hormones, head, medications, or a mix?
- Should I have my heart, cholesterol, and blood sugar checked, and who should follow up on the results?
- Do you want a testosterone level on me, and why or why not?
- Any medications on my list that could be contributing?
About pills
- Should I start with on-demand sildenafil or daily low-dose tadalafil?
- How do I know if I have given a pill a fair trial?
- What should I avoid combining it with? (Nitrates, in particular.)
- If I take an alpha blocker for BPH, what should I know about timing?
About next steps
- If pills are not enough, when should I think about injections or a vacuum device?
- If I am thinking about an implant, how many do you place each year?
- What is your infection rate, and how do you minimize it for me?
- How should my partner be part of this conversation?
About my prostate surgery (if relevant)
- Were both nerve bundles spared? If not, what does that mean for my recovery?
- What does penile rehabilitation look like for me, and when do we start?
- At what point do we stop waiting and start treating?
Words to know
A short glossary for the terms that come up in this guide and at your visit.
- Erectile dysfunction (ED)
- Persistent trouble getting or keeping an erection good enough for sex.
- PDE5 inhibitor
- Pill class for ED. Includes sildenafil, tadalafil, vardenafil, and avanafil.
- Vasculogenic ED
- ED caused mostly by blood-vessel narrowing. The most common type after age 50.
- Neurogenic ED
- ED caused mostly by nerve problems, often after prostate or pelvic surgery, or in diabetes.
- Psychogenic ED
- ED driven mostly by stress, mood, or relationship factors. Often coexists with other causes.
- Libido
- Sex drive. Separate from erection. Affected by testosterone, mood, and medications.
- Orgasm
- The climax response. Separate from both erection and ejaculation.
- Hypogonadism (low testosterone)
- Low blood testosterone. Affects desire more than the mechanics of erection.
- Morning erections
- Normal erections on waking. Their loss can suggest a more medical cause.
- SHIM / IIEF-5
- A short five-question score used to grade ED and track change over time.
- Intracavernous injection (ICI)
- A small shot into the side of the penis that produces an erection in 5 to 15 minutes.
- Trimix
- A three-drug mix used for ICI. Made at a compounding pharmacy.
- MUSE
- A small medicated pellet placed inside the urethra.
- Vacuum erection device (VED)
- A pump and ring used to draw and hold blood in the penis.
- Priapism
- An erection that does not go down after about 4 hours. A urologic emergency.
- Inflatable penile prosthesis (IPP)
- An implanted device that allows an erection on demand.
- Penile rehabilitation
- A planned program after prostate surgery to keep penile tissue healthy during nerve recovery.
- Nerve-sparing
- A surgical approach during prostate surgery that tries to preserve the nerves controlling erection.
- Nitrates
- A heart-medication class (nitroglycerin, isosorbide) that cannot be combined with PDE5 inhibitors.
- Endothelial dysfunction
- Poor function of the lining of blood vessels. The shared mechanism between ED and heart disease.
Sources and further reading
This guide is based on standard urologic sources and recent reviews, up to date through 2026.
- EAU 2024 Sexual and Reproductive Health Guidelines. European Association of Urology. The Tier 1 reference for this guide. uroweb.org
- Princeton IV Consensus on Sexual Activity and Cardiovascular Risk (Kloner et al., J Sex Med 2018). The basis for the cardiovascular sentinel framing in Chapter 2.
- Vlachopoulos et al., Circ Cardiovasc Qual Outcomes 2013. Meta-analysis on ED as a predictor of cardiovascular events.
- Inman et al., Mayo Clin Proc 2009. Population data showing new ED precedes clinical CV events by a median of 3 to 5 years.
- Eardley et al., Eur Urol 2010. Review of PDE5-inhibitor efficacy and tolerability.
- Esposito et al., JAMA 2004. Randomized trial of lifestyle and weight loss in obese men with ED.
- Gerbild et al., Sex Med 2018. Meta-analysis of aerobic exercise as treatment for ED.
- Antonini et al., Eur Urol Focus 2020; Yafi et al., Sex Med Rev 2016. Long-term patient and partner satisfaction with the inflatable penile prosthesis.
- Montorsi et al., Eur Urol 2014 (REACTT). Trial of penile rehabilitation after radical prostatectomy.
- Endocrine Society 2018 Clinical Practice Guideline on Testosterone Therapy. The framing for the testosterone note in Chapter 4.
About this guide. Written by the WellPrept Clinical Team. Reviewed by board-certified urologists. Designed to be read alongside your urologist's instructions, not as a replacement for them.