Managing Cancer Care

How Cancer Can Affect Erections

Certain kinds of cancer and cancer treatment can affect your ability to have an erection. This is called erectile dysfunction (ED). It can include problems getting an erection or keeping one long enough to have sex with penetration.

Learn more about how cancer and its treatment can affect erections, and the different options for managing erectile dysfunction.  

Why does cancer treatment sometimes cause erectile dysfunction?

There are two main ways cancer treatment can affect your ability to have an erection.

  • Damage to nerves and blood vessels: Certain nerves and blood vessels that go to your sexual organs must work correctly for you to have an erection. These nerves and blood vessels are most likely to be damaged during surgery or radiation treatment to organs in your pelvis, such as your prostate, penis, bladder, colon, or rectum.
  • Decreased testosterone: Other types of cancer treatment can decrease your testosterone levels. This includes hormone therapy, certain types of chemotherapy, targeted therapy, immunotherapy, and stem cell transplant. You need enough testosterone to get and keep an erection.

The information below describes common sexual problems faced by adult men (or people with male reproductive organs*) after certain types of cancer treatment. You might have problems or needs that aren’t addressed here. Your cancer care team can help you manage your specific situation.

*To learn more about the gender terms used here, and how to start the conversation with your cancer care team about gender identity and sexual orientation, see Gender Identity, Sexual Orientation, and Cancer Treatment.

Cancer surgery and erections

Some types of cancer surgery can change your ability to have erections.

  • Radical prostatectomy: Removal of the prostate and some surrounding tissue, including the seminal vesicles. Sometimes nearby lymph nodes are also removed. (For prostate cancer.)
  • Radical cystectomy: Removal of the bladder, prostate, seminal vesicles and nearby lymph nodes. Because the bladder is removed, a new way of collecting urine is needed, either into a bag through an opening on the belly (urostomy) or by building a new “bladder” inside the body. (For bladder cancer.)
  • Abdominoperineal (AP) resection: Removal of the lower colon, rectum and anus. This surgery may require a colostomy, an opening in the belly (abdomen) where stool can leave the body. (For colorectal cancer.)
  • Total mesorectal excision (TME): Removal of the rectum and nearby lymph nodes. The colon is then connected to the anus so stool (poop) can pass in the usual way. (For rectal cancer.)
  • Total pelvic exenteration: Removal of the rectum and nearby organs that the cancer has reached. This might include the bladder, prostate, and seminal vesicles. After this surgery, new openings may be needed for both urine and solid waste to leave the body. (For a large tumor of the colon.)

Most men who have these types of surgeries might have some trouble with erections.

This is because these operations can damage the nerves needed for an erection. Some men will be able to have erections firm enough for penetration, but probably not as firm as they were before surgery. Others may not be able to get erections at all.

If any of these surgeries are part of your treatment plan, talk to your cancer care team before the procedure. Ask how surgery might affect your erections and how to manage any problems.

Nerve damage from surgery

The most common reason people have erection problems after cancer surgery is because the nerves needed for an erection were removed or damaged. These nerves are next to the rectum and surround the back and sides of the prostate gland. That makes it easy for them to get damaged during an operation.

Nerve-sparing surgery

If the size and location of a tumor allow for it, surgeons try to avoid the nerves needed for erection. When possible, surgeons use “nerve-sparing” methods in radical prostatectomy, radical cystectomy, AP resection, and TME operations.

More men recover erections after nerve-sparing surgery than men who have surgery in which nerve sparing isn’t possible.

Regaining erections after surgery

Even with nerve-sparing surgery, it can take some time to regain erections. Nerves can be injured during the operation and need time to heal before erections return. This healing can take up to 2 years.

It’s not known why some men regain full erections after surgery and others do not. But when nerves on both the left and right sides of the prostate are spared, men are more likely to regain erections.

Other things that affect erections after surgery

There are other factors that can affect whether you are able to get erections after cancer surgery, such as:

  • Age: The younger you are, the more likely you are to regain full erections after surgery. Men under 60, and especially those under 50, are more likely to recover their erections than older men.
  • Strength of erections before surgery: If you had strong erections before cancer surgery, you are far more likely to recover your erections than if you had erection problems.
  • Other health problems: If you have other health conditions that can affect erections, you may have more trouble regaining erections after surgery. This includes diabetes, hypertension, heart disease, obesity, low testosterone levels, or depression, or if you smoke or take certain medicines.

Pelvic radiation therapy and erections

Radiation therapy to the pelvis is used to treat some kinds of prostate, bladder, colon, and rectal cancer. Because the male sex organs are in the pelvis, radiation to this area might cause problems with erections.

Radiation is done in one of two ways: external beam radiation (aimed from outside the body) or brachytherapy (placed inside the body). Either type of radiation can cause damage to the nerves and blood vessels your body needs to have erections.

As the treated area heals after radiation, scar tissue may form and keep the blood vessels from stretching like they should. This can cause trouble in having a firm erection. Radiation can also cause hardening (arteriosclerosis), narrowing, or even blockage of the pelvic arteries.

How soon after radiation do erection problems start? Are they permanent?

Trouble with erections comes on more slowly with radiation therapy than with surgery.

  • If erection problems happen, they usually start between 6 months to 2 years after radiation ends.
  • Some men will still have full erections but lose them before reaching orgasm.
  • Other men will no longer get firm erections at all.

Erection problems are not always permanent. They might get better after 2-3 years.

Does radiation therapy always cause erection problems?

Not all men have erection problems after radiation therapy. The higher the total dose of radiation and the larger the section of the pelvis treated, the greater the chance of erection problems later.

If radiation therapy to your pelvis is part of your treatment plan, talk to your radiation therapy team before it starts. Ask how your arteries and nerves might be affected by radiation therapy, so you know what to expect.

Other things that affect erections after radiation

  • Age: The older you are, the more likely you are to have problems with erections after radiation therapy. This is because as you age, your blood vessels can lose some of their ability to stretch and allow blood to flow into them.
  • Damaged blood vessels: If your blood vessels have been damaged by heart or blood vessel disease, diabetes, or heavy smoking, you are also at greater risk for erection problems.

Doctors are looking at whether early penile rehabilitation could help after radiation therapy, too.

Erection problems after radiation therapy or surgery for prostate cancer

If you have early-stage prostate cancer, you may have a choice between radiation and surgery to treat your cancer. You may wonder which treatment is more likely to cause erection problems. Studies don’t show much long-term difference between surgery and radiation.

  • Radiation for prostate cancer: Men who had radiation may see a general decrease in the firmness of their erections over time (up to several years after radiation).
  • Surgery for prostate cancer: After surgery, most men have erection problems right away and then have a chance to recover erections in the first 2 years following surgery.

About 4 years after either treatment, the percentage of men reporting erectile dysfunction is about the same. Treatments can often help men get their erections back after prostate cancer treatment, regardless of whether they had surgery or radiation.

Hormone therapy and erections

Some prostate cancer treatments are designed to lower the amount of the male hormone testosterone that your body makes. This is called androgen deprivation therapy (ADT).

ADT can cause low sex drive, problems with erections, and problems with having an orgasm.

Your erections may or may not recover when you stop ADT. If you are younger, you are more likely to regain erections because your body already makes more of its own testosterone. But you may still need to take medicines for a full erection. Erectile dysfunction medicines may not work though, if you have lost your desire for sex.  

Chemo, targeted therapy, immunotherapy, and erections

Some chemotherapy, targeted therapy, and immunotherapy medicines can reduce the amount of testosterone your body releases. This can cause decreased sexual desire and problems with erections.

Testosterone levels usually return to normal after treatment ends. You might lose the ability to get an erection, but this usually comes back with time. Ask your cancer care team about the possible sexual side effects of any medicine that is part of your cancer treatment.

Some types of chemo can also cause short-term or long-term infertility. For more information, see How Cancer and Cancer Treatment Can Affect Fertility in Men.

Stem cell transplant and erections

Before you get a stem cell transplant (also called bone marrow transplant), you will be given high doses of chemotherapy and radiation therapy in preparation. Both treatments can lower the amount of testosterone your body makes, which can lead to problems with erections.

Graft-versus-host disease is another side effect of stem cell transplant. Men who get graft-versus-host disease are more likely to have a long-lasting loss of testosterone. If this happens, you may need testosterone replacement to regain sexual desire and erections.

How emotions can affect erections

Cancer and cancer treatment can affect your emotions, energy level, and how you feel about yourself. Your ability to have and keep erections could be affected by feelings like:

  • Fatigue (low energy)
  • Distress from pain
  • Not feeling good about your body
  • Fear that you might not be able to get and keep an erection
  • Depression
  • Anxiety

These symptoms can make it harder for you to relax and feel excited about intimacy.

Many men report feeling disappointed when they have trouble with erections. You may feel that something important is missing. These feelings are a natural part of coping with erection problems.

For most men, finding effective treatments for erections or figuring out other ways of being intimate with a partner can help them feel better.

If you have erection problems caused by these emotions, a therapist or other mental health professional can often help. There are mental health professionals who specialize in helping people with cancer who are having sexual issues.

Managing erection problems

You’ll have a number of options for dealing with erectile dysfunction and will likely need to use more than one. How well each works can vary greatly. You may have to try a few to find the ones that works best for you.

Many of these treatments are used during penile rehabilitation.

Learn more

Written by
References

Developed by the American Cancer Society medical and editorial content team with medical review and contribution by the American Society of Clinical Oncology (ASCO).

American Society of Clinical Oncology. Sexual Health and Cancer Treatment: Men. Cancer.net. Content is no longer available.

Calabrò RS, Cacciola A, Bruschetta D, et al. Neuroanatomy and function of human sexual behavior: A neglected or unknown issue?. Brain Behav. 2019;9(12):e01389. doi:10.1002/brb3.1389

Carter et al. Interventions to address sexual problems in people with cancer: American Society of Clinical Oncology clinical practice guideline adaptation of Cancer Care Ontario guideline. Journal of Clinical Oncology. 2018;36(5):492-513.

Clavell-Hernández J, Wang R. The controversy surrounding penile rehabilitation after radical prostatectomy. Transl Androl Urol. 2017;6(1):2-11. doi:10.21037/tau.2016.08.14

Dizon DS, Katz A. Overview of sexual dysfunction in male cancer survivors. In, UpToDate, Post TW (Ed). Accessed at uptodate.com on November 4, 2024.

Emery J, Butow P, Lai-Kwon J, Nekhlyudov L, Rynderman M, Jefford M. Management of common clinical problems experienced by survivors of cancer. Lancet. 2022;399(10334):1537-1550. doi:10.1016/S0140-6736(22)00242-2

Feng D, Liu S, Yang Y, et al. Generating comprehensive comparative evidence on various interventions for penile rehabilitation in patients with erectile dysfunction after radical prostatectomy: a systematic review and network meta-analysis. Transl Androl Urol. 2021;10(1):109-124. doi:10.21037/tau-20-892

Hansen SB, Fonnes S, Oggesen BT, Rosenberg J. High prevalence of erectile dysfunction within the first year after surgery for rectal cancer: A systematic review and meta-analysis. Eur J Surg Oncol. 2024;50(12):108662. doi:10.1016/j.ejso.2024.108662

Katz A. Breaking the Silence on Cancer and Sexuality: A Handbook for Healthcare Providers. 2nd ed. Pittsburgh, PA: Oncology Nursing Society.; 2018.

Khera M. Treatment of male sexual dysfunction. In, UpToDate, Post TW (Ed). Accessed at uptodate.com on November 4, 2024.

Liu C, Lopez DS, Chen M, Wang R. Penile Rehabilitation Therapy Following Radical Prostatectomy: A Meta-Analysis. J Sex Med. 2017;14(12):1496-1503. doi:10.1016/j.jsxm.2017.09.020

Milios JE, Ackland TR, Green DJ. Pelvic Floor Muscle Training and Erectile Dysfunction in Radical Prostatectomy: A Randomized Controlled Trial Investigating a Non-Invasive Addition to Penile Rehabilitation. Sex Med. 2020;8(3):414-421. doi:10.1016/j.esxm.2020.03.005

National Comprehensive Cancer Network (NCCN). Clinical practice guidelines in oncology: Survivorship. Version1.2024. Accessed at https://www.nccn.org/professionals/physician_gls/pdf/survivorship.pdf on November 4, 2024.

Nicolai M, Urkmez A, Sarikaya S, et al. Penile Rehabilitation and Treatment Options for Erectile Dysfunction Following Radical Prostatectomy and Radiotherapy: A Systematic Review. Front Surg. 2021;8:636974. Published 2021 Mar 2. doi:10.3389/fsurg.2021.636974

Peters M, Pearlman A, Terry W, Mott SL, Monga V. Testosterone deficiency in men receiving immunotherapy for malignant melanoma. Oncotarget. 2021;12(3):199-208. Published 2021 Feb 2. doi:10.18632/oncotarget.27876

Richie JP. Radical prostatectomy for localized prostate cancer. In, UpToDate, Post TW (Ed). Accessed at uptodate.com on November 11, 2024.

Rosen RC, Khera M. Epidemiology and etiologies of male sexual dysfunction. In, UpToDate, Post TW (Ed). Accessed at uptodate.com on November 11, 2024.

Shen C, Jain K, Shah T, et al. Relationships between erectile dysfunction, prostate cancer treatment type and inflatable penile prosthesis implantation. Investig Clin Urol. 2022;63(3):316-324. doi:10.4111/icu.20210445

Thakur PS, Gharde P, Prasad R, Wanjari MB, Sharma R. Restoring Quality of Life: A Comprehensive Review of Penile Rehabilitation Techniques Following Prostate Surgery. Cureus. 2023;15(4):e38186. Published 2023 Apr 27. doi:10.7759/cureus.38186

Zavattaro M, Felicetti F, Faraci D, et al. Impact of Allogeneic Stem Cell Transplantation on Testicular and Sexual Function. Transplant Cell Ther. 2021;27(2):182.e1-182.e8. doi:10.1016/j.jtct.2020.10.020

Last Revised: April 15, 2025

American Cancer Society Emails

Sign up to stay up-to-date with news, valuable information, and ways to get involved with the American Cancer Society.