How to Get Rid of Erectile Dysfunction: Treatments That Work

Erectile dysfunction is treatable in the majority of cases, and the right approach depends on what’s causing it. For most men, a combination of lifestyle changes, medication, or therapy resolves the problem. About 65% to 75% of men who try oral medications achieve successful intercourse, and options only expand from there if those don’t work.

The first step is figuring out whether the cause is physical, psychological, or both, because that determines which treatments will actually help.

Finding the Underlying Cause

ED is rarely a standalone problem. It’s usually a signal that something else is going on, whether that’s poor blood flow, hormonal imbalance, nerve damage, medication side effects, or anxiety. A doctor will typically run blood tests checking hormone levels (especially testosterone and thyroid function), blood sugar, and cholesterol. These help identify conditions like diabetes, heart disease, or low testosterone that frequently drive ED.

If you’re under 40 and otherwise healthy, the cause is more likely psychological. Performance anxiety creates a vicious cycle: one bad experience leads to worry, which makes the next experience worse. If you’re over 40 or have risk factors like high blood pressure, smoking, or obesity, the cause is more likely vascular, meaning your blood vessels aren’t delivering enough blood flow when you need it. Many men have both physical and psychological factors at play simultaneously.

Lifestyle Changes That Make a Real Difference

Exercise is one of the most effective non-drug treatments. Men who do aerobic exercise like walking, running, or cycling for 30 to 60 minutes, three to five times per week, see measurable improvement in erectile function. Harvard Health has reported that regular aerobic activity may work about as well as medication for some men. The mechanism is straightforward: exercise improves cardiovascular health, lowers blood pressure, and restores the flexibility of blood vessels, all of which directly affect erections.

Diet matters too. A Mediterranean-style eating pattern, heavy on vegetables, whole grains, olive oil, fish, and nuts, helps preserve erectile function over time compared to standard low-fat diets. This was demonstrated in men with type 2 diabetes, a group especially vulnerable to ED. The benefit likely comes from reduced inflammation and better blood vessel health.

If you smoke, quitting may be the single most impactful change you can make. Blood vessels begin repairing themselves within weeks of stopping, and after three to six months without cigarettes, many men experience significant improvement in erectile function. The cells lining your blood vessels regenerate during that window, restoring blood flow and reducing the chronic inflammation that smoking causes. Heavy alcohol use and poor sleep also contribute to ED and are worth addressing.

How Oral Medications Work

The most commonly prescribed ED medications all work by the same basic mechanism: they relax smooth muscle in the penis and increase blood flow when you’re sexually aroused. They don’t create arousal on their own. In clinical trials, these drugs produce successful intercourse in roughly 61% to 75% of attempts, compared to about 20% to 32% with a placebo. That’s a meaningful improvement for most men, though it also means they don’t work every single time.

The key practical difference between the available options is how long they last. Two of the most widely used medications have a half-life of about four hours, meaning they’re best taken shortly before sex. A third option lasts significantly longer, with a half-life of roughly 17 to 21 hours, which gives a wider window and allows for more spontaneity. Some men take the longer-acting version daily at a low dose rather than on demand.

Effects can begin as early as 11 to 14 minutes after taking the pill, though fewer than 40% of men see results that quickly. Most men should plan for 30 to 60 minutes. Common side effects include headache, flushing, nasal congestion, and sometimes temporary visual changes. These medications aren’t safe to combine with certain heart drugs, so your doctor needs a full picture of what you’re taking.

When the Cause Is Psychological

Performance anxiety, depression, relationship conflict, stress, and past trauma can all cause or worsen ED. If you get erections during sleep or in the morning but struggle during sex, that’s a strong clue the issue is at least partly psychological. The physical hardware works, but your brain is getting in the way.

Cognitive behavioral therapy, often delivered within a sex therapy framework, targets the thought patterns that fuel the problem. The core skills involve recognizing catastrophic thinking (“it’s going to happen again”), interrupting the habit of monitoring your own performance in real time, and shifting your mental focus from outcome to sensation and connection. Therapists also work on communication between partners, including how to talk about fear and vulnerability around sex.

Combining therapy with medication often produces the best results for psychogenic ED. A multicenter trial found that men who received weekly cognitive behavioral therapy alongside medication achieved 58% overall remission after just four weeks. The idea is that the medication provides reliable erections in the short term, which breaks the anxiety cycle, while therapy builds the mental skills to eventually reduce or stop the medication. Think of it like physical rehab: medication is the brace that supports you while therapy builds the strength to stand on your own.

Options When Pills Don’t Work

About 30% to 35% of men don’t respond well to oral medications. For them, second-line treatments exist and are more effective than many people expect.

Injectable Therapy

Self-injection into the base or side of the penis sounds intimidating, but it’s a well-established treatment that works by directly relaxing blood vessel walls. Clinical trials show it’s as effective as, or better than, oral medications. The needle is very small, and most men report the process is less painful than they feared. That said, 20% to 40% of users do experience some discomfort at the injection site. Rare but serious risks include prolonged erections lasting more than four hours (about 4% of cases) and scar tissue formation over time (about 8%). Your doctor will start you at a low dose and adjust upward to find what works.

Vacuum Devices

A vacuum erection device is a plastic cylinder that fits over the penis and uses a hand pump to draw blood in, creating an erection. A constriction ring at the base holds the blood in place during sex. It’s non-invasive and doesn’t require medication, which makes it a good option for men who can’t take other treatments. The erection feels different from a natural one, and the ring should be removed after about 30 minutes. Many couples find it works well once they get past the initial awkwardness.

Penile Implants

For men who haven’t found success with other approaches, a surgically implanted device is the most definitive solution. The most common type is an inflatable three-piece implant: a pump placed in the scrotum, a fluid reservoir, and two inflatable cylinders in the penis. You squeeze the pump when you want an erection and press a release valve when you’re done.

Satisfaction rates are remarkably high. Studies of nearly 900 patients report 92% to 96% satisfaction among couples with inflatable implants. The three-piece inflatable design is preferred over simpler semi-rigid models. Only 0.2% of men with three-piece implants switched to a different type, compared to 7.7% of men with simpler implants who upgraded. The main risk factor for dissatisfaction is surgical complications, which is why choosing an experienced surgeon matters. Recovery typically takes four to six weeks before sexual activity can resume.

Treating the Conditions Behind ED

Because ED is so often linked to cardiovascular disease, diabetes, or hormonal problems, treating those underlying conditions frequently improves erections on its own. Getting blood sugar under control, managing high blood pressure, losing weight, and optimizing testosterone levels (when they’re genuinely low) can all reduce or eliminate ED without any ED-specific treatment.

Some medications, particularly certain antidepressants, blood pressure drugs, and anti-anxiety medications, cause ED as a side effect. If your erectile problems started shortly after beginning a new medication, that’s worth discussing with your prescriber. Switching to an alternative in the same class sometimes resolves the issue completely.