Can Viagra be effective after prostate surgery or biopsy for cancer?

Viagra can work after prostate surgery, especially if nerves were spared and treatment starts early; biopsy effects are temporary.

Yes, Viagra (sildenafil) can be effective after prostate surgery, especially when the nerves were spared and treatment starts early — though it does not work for every man. After a prostate biopsy, any erectile problems are usually temporary. Sildenafil is the first-line option and often part of "penile rehabilitation". This article explains what to expect, without false promises.

It is a reference article in our erectile dysfunction and men's health section.

Why prostate surgery affects erections

The prostate is surrounded by the nerves responsible for erections. Even with nerve-sparing surgery, these nerves can be bruised or need time to recover, so erectile dysfunction is common after a radical prostatectomy, at least at first. Recovery can take months, sometimes more than a year.

How Viagra helps

PDE-5 inhibitors like sildenafil improve blood flow and help an erection. After surgery they serve two purposes: helping achieve erections, and as part of penile rehabilitation, keeping the penile tissue oxygenated while the nerves recover. Starting early tends to give better results.

Factor Effect on response
Nerves spared better response
Early start aids recovery
Age and prior function shape the outlook

What determines success

The response to tablets depends heavily on whether the nerves were spared, the man's age, his erectile function before surgery, and how soon rehabilitation begins. When the nerves were preserved, the chances of success are considerably higher.

After a biopsy

A prostate biopsy is far less invasive than surgery. Any erectile difficulty afterward is usually short-lived, often related to soreness, anxiety or temporary inflammation, and typically resolves. Sildenafil can help in the meantime if needed, and the outlook is generally good.

If tablets are not enough

When tablets do not suffice, other effective options exist: penile injections, vacuum devices and, in resistant cases, a penile implant. "Not responding to pills" does not mean being out of options. A urologist guides the choice.

Talk to your urologist

The key is to plan recovery with the urologist, ideally before surgery, and to be patient, as improvement can be gradual. Solutions exist for almost every case. For the broader picture of nerve-related ED, see treatment options.

Treatments: treatment options. Long-term: long-term effects. Testosterone: Viagra and testosterone.

The role of penile rehabilitation

Many urologists recommend 'penile rehabilitation' after nerve-sparing surgery: starting a PDE-5 inhibitor early, sometimes as a low daily dose, to keep the penile tissue oxygenated while the nerves recover. The idea is to preserve the tissue's health so that, as nerve function returns, erections are more likely to recover. Starting promptly and sticking with the plan tends to improve the long-term outcome.

Patience and emotional support

Recovery of erectile function after prostate surgery can take many months, even over a year, and it is normal for tablets to work poorly at first and improve with time. The emotional burden, on top of a cancer diagnosis, is real, so support from a partner and, if needed, a professional matters. Approaching recovery as a shared, gradual process — not a one-off test — improves both wellbeing and results.

A whole-picture approach

Restoring erections after prostate treatment rarely depends on a single measure: it usually combines tablets, early rehabilitation, healthy habits and, if needed, second-line options like injections or an implant. Guided by a urologist, this whole-picture approach offers the best results. The key reassurance is that solutions exist for almost every case, and 'pills not working' is a stage in the process, not the end of the road.

Hope for almost every case

The overall message is hopeful: for almost every man, there is a path back to satisfying sexual function after prostate treatment. Tablets help many, especially with nerve-sparing surgery and early rehabilitation, and where they fall short, injections, devices and implants are highly effective. Combined with patience, partner support and a urologist's guidance, these options mean that erectile dysfunction after prostate surgery is a challenge to work through, not a permanent loss.

Planning before surgery helps

Where possible, the best time to start thinking about erectile recovery is before the surgery itself. Discussing nerve-sparing options, what to expect and a rehabilitation plan with the urologist in advance sets realistic expectations and can improve outcomes. After surgery, keeping that dialogue going allows the plan to be adjusted as recovery progresses. This forward planning turns an anxious unknown into a managed process, which helps both the practical results and the emotional side of recovery. The earlier this conversation begins, the smoother and more confident the whole recovery tends to be for both partners.

Frequently asked questions

Can Viagra work after prostate surgery?
Often yes, especially if the nerves were spared and treatment starts early; it does not work for everyone.
What about after a biopsy?
Any erectile difficulty is usually temporary and tends to resolve.
What if tablets don't work?
Injections, vacuum devices and, in resistant cases, a penile implant are effective options.