WebDoctor Encyclopedia

Symptom

Erectile Dysfunction: Causes, Cancer Warning Signs and When to Worry

What is erectile dysfunction?

Erectile dysfunction (ED), sometimes called impotence, means having trouble getting an erection or keeping it long enough for sex. Some men can still have erections at other times, such as on waking, and some also notice a lower sex drive.

ED is very common, especially after the age of 40. Almost every man has the odd occasion when an erection does not happen, often because of tiredness, stress or alcohol. The NHS advises seeing a GP or a sexual health clinic only if the problem keeps happening (NHS, 2026a).

ED matters because it can be an early sign of other health problems. A review in The Lancet describes ED as a strong predictor of coronary artery disease and recommends a heart health check in men who report it (Shamloul and Ghanem, 2013). ED is rarely caused by cancer itself, but it is one of the most common long-term effects of treatment for prostate, bladder and bowel cancer.

Types and patterns of ED

Pattern What it suggests
Sudden onset, with normal morning erections Often stress, anxiety or relationship factors
Gradual worsening over months or years Usually blood vessel causes such as diabetes, high blood pressure or smoking
ED with low sex drive and tiredness Possible low testosterone or other hormone problems
ED starting after a new medicine A side effect, for example of some blood pressure tablets or antidepressants
ED after pelvic surgery or radiotherapy Nerve and blood vessel damage from cancer treatment
ED with a curved or painful penis Peyronie’s disease or, rarely, a growth in the penis

Common non-cancer causes

Blood vessel and heart causes

An erection depends on healthy blood flow into the penis. Anything that narrows or stiffens arteries can cause ED, including high blood pressure, high cholesterol, smoking and diabetes. Because the arteries of the penis are small, ED may appear years before symptoms of heart disease such as chest pain.

Lifestyle factors

Obesity, lack of exercise and heavy drinking are all linked with ED (Shamloul and Ghanem, 2013). Recreational drugs, including cannabis and cocaine, can also contribute. The NHS also suggests that men who cycle for more than about 3 hours a week may benefit from a break (NHS, 2026a).

Psychological causes

  • stress at work or home
  • anxiety about sexual performance
  • depression
  • relationship difficulties
  • tiredness and poor sleep

Other medical causes

  • Hormone problems: low testosterone, a high prolactin level or thyroid disease
  • Nerve problems: multiple sclerosis, spinal cord injury, Parkinson’s disease, nerve damage from diabetes
  • Prostate problems: lower urinary problems from an enlarged prostate are linked with ED
  • Medicines: some blood pressure tablets, antidepressants, hormone treatments and opioid painkillers
  • Peyronie’s disease: scar tissue causing a bend in the penis

Cancers that can cause erectile dysfunction

Cancer itself rarely causes ED. More often, ED follows treatment for a cancer in the pelvis, because the nerves and blood vessels that control erections run close to the prostate, bladder and rectum. Hormone changes, tiredness and the emotional impact of a diagnosis also play a part.

Cancer or tumour How it can affect erections
Prostate adenocarcinoma Early prostate cancer rarely causes ED, but surgery, radiotherapy and hormone therapy commonly do
Rectal cancer Surgery and radiotherapy can damage the pelvic nerves
Urothelial carcinoma of the bladder Removal of the bladder in men usually includes the prostate, which affects nerves and erections
Penile squamous cell carcinoma A growth or sore on the penis, and its treatment, can affect erections and sensation
Testicular germ cell tumours Treatment can lower testosterone, and surgery to lymph nodes can affect ejaculation
Leydig cell tumour of the testis Can make hormones that lower sex drive and cause breast swelling
Pituitary adenoma A prolactin-making tumour lowers testosterone, causing ED and low sex drive
Colorectal adenocarcinoma Pelvic surgery for low bowel cancers can affect the nerves

Prostate cancer treatment and ED

The NHS lists problems getting or keeping an erection among the main side effects of radical prostatectomy (NHS, 2026b). A review of prostate cancer survivorship notes that ED is similarly common after surgery and radiotherapy, although after radiotherapy it often develops later (Chung and Gillman, 2014). Hormone therapy reduces testosterone and commonly lowers both sex drive and erections.

Other cancer treatments

The National Cancer Institute explains that pelvic radiotherapy, brachytherapy, hormone therapy and surgery for pelvic cancers can all make erections harder to achieve, while nerve-sparing operations may reduce the risk (NCI, 2026). It notes that chemotherapy does not usually stop erections directly, although it can lower testosterone and desire while treatment continues. Tiredness, nausea, pain and changes in body image can all reduce desire. Some men also lose confidence after a stoma or the removal of a testicle.

Orgasm and ejaculation changes

Treatment for pelvic cancers can change orgasm as well as erections. After prostate removal or some radiotherapy, many men have a dry orgasm, with little or no semen. Surgery to lymph nodes at the back of the abdomen for testicular cancer can stop semen coming out normally. These changes are not harmful, but they affect fertility, so sperm banking should be discussed before treatment.

Chemotherapy and condoms

Men are often advised to use condoms during chemotherapy and for a short time afterwards, because traces of the drugs can be present in semen (NCI, 2026). Ask your team how long this applies to your treatment.

When ED may hide another problem

ED with a new lump in a testicle, a sore or growth on the penis, or blood in semen should be checked. ED with headaches, vision problems and a low sex drive can rarely point to a pituitary tumour.

Red flags and when to see a doctor

Most ED is not urgent, but it is worth discussing with a doctor because it can be treated and may point to a health problem.

Situation What to do
An erection that lasts more than 4 hours, or is painful without arousal Go to A&E: this is priapism and needs urgent treatment
ED with chest pain or breathlessness on exertion See a GP promptly; call 999 for chest pain at rest
Erection problems that keep happening See a GP or sexual health clinic (NHS, 2026a)
A lump, sore, rash or discharge on the penis that does not heal See a GP soon
A testicular lump or swelling See a GP soon
ED with low sex drive, tiredness and breast swelling See a GP for hormone tests
ED with headaches or changes in vision See a GP promptly
ED with new numbness in the saddle area, leg weakness or bladder problems Emergency: 999 or A&E
ED after cancer treatment Ask your cancer team about rehabilitation

Why ED is worth reporting

  • it can be the first sign of diabetes or heart disease
  • most men find a treatment that works
  • it can affect mood, confidence and relationships
  • early treatment after prostate surgery may give a better recovery (Chung and Gillman, 2014)

Tests doctors use

The doctor or nurse will usually ask about your general health, medicines, lifestyle and relationships. Most men do not need complicated tests.

Test What it involves What it shows
Questions and questionnaire Questions about erections, desire and stress The likely type of ED and its severity
Blood pressure and weight Simple checks in the clinic Heart and blood vessel risk
Physical examination Checking the penis and testicles Peyronie’s disease, small testicles, lumps
Rectal examination Feeling the prostate through the back passage Prostate enlargement or a lump, if you have urinary symptoms
Blood sugar and cholesterol A blood test Diabetes and heart risk
Testosterone A morning blood test Low testosterone
Prolactin and thyroid tests Blood tests if hormones are suspected Pituitary or thyroid problems
PSA test A blood test, after a discussion of pros and cons Prostate problems, including cancer
Penile Doppler ultrasound A scan after an injection to cause an erection Blood flow, if surgery is being considered

Looking at your heart

Because ED and heart disease share risk factors, your doctor may calculate your heart risk and suggest treatment for blood pressure or cholesterol. This can protect your heart as well as improve erections.

Treatment depends on the cause

Lifestyle changes

  • lose weight if you are overweight
  • stop smoking
  • be active every day
  • drink within recommended limits
  • manage stress and get enough sleep

Medicines and devices

The main treatments are tablets called PDE-5 inhibitors, such as sildenafil and tadalafil, which increase blood flow to the penis when you are aroused (NHS, 2026a). They do not work without sexual stimulation and must not be taken with nitrate medicines for angina. Sildenafil can be bought from a pharmacy after a short consultation.

Other options include vacuum pumps, injections into the penis, a medicine placed in the tip of the penis, and penile implants. Talking therapy or sex therapy can help when anxiety or relationship issues play a part.

After cancer treatment

Many units offer penile rehabilitation after radical prostatectomy, using tablets, vacuum devices or injections to protect the tissue while nerves recover. A review notes there is no agreed best plan but that starting early is widely recommended, and that implants are an option when other treatments fail (Chung and Gillman, 2014).

After radiotherapy, including brachytherapy and IMRT, erections may decline gradually over a few years. Nerve-sparing techniques during radical cystectomy and rectal surgery can reduce the risk in suitable men.

Men on androgen deprivation therapy often lose desire as well as erections. Tablets may help less, and talking openly with a partner about intimacy other than intercourse is important. After radical orchiectomy for testicular cancer, testosterone is usually normal if the other testicle works well, and replacement can be given if it is low.

Living with erectile dysfunction

Talking about it

ED can feel embarrassing, but GPs and nurses discuss it every day. Many men find it helps to involve their partner. Sexual health clinics offer the same treatments as GPs and often have walk-in services (NHS, 2026a).

Keeping intimacy going

Sex is about more than erections. Touch, closeness and other forms of sexual activity can remain satisfying while erections recover or if they do not return. Couples therapy or a psychosexual counsellor can help partners talk about changes and find new ways to be close.

Buying medicines online

Be cautious with online pharmacies, as many sell fake products. Use registered pharmacies and online doctors, and tell a professional about any heart condition or other medicines.

Support after cancer

Many cancer centres have specialist nurses or clinics for sexual problems after treatment. Charities provide helplines and information for men and their partners.

Frequently asked questions

Is erectile dysfunction a sign of cancer?

Rarely. It is much more often linked with blood vessel disease, diabetes, stress or medicines. ED with a lump, a sore on the penis or other symptoms should be checked.

Does prostate cancer cause ED?

Early prostate cancer usually does not. Its treatments often do.

Will erections come back after prostate surgery?

For many men they improve over 1 to 2 years, especially when nerve-sparing surgery was possible. Recovery depends on age and erections before surgery.

Can young men get ED?

Yes. In younger men, stress, anxiety, alcohol and drugs are common causes, but a check is still worthwhile.

Is it safe to take sildenafil with heart disease?

Not with nitrate medicines. Discuss it with a doctor or pharmacist first.

Can low testosterone cause ED?

It can reduce desire and erections. A blood test can check the level.

Does cycling cause ED?

Long hours on a narrow saddle can press on nerves and blood vessels. A break, or a wider saddle, often helps.

Sources & References

  1. Chung, E. and Gillman, M. (2014) ‘Prostate cancer survivorship: a review of erectile dysfunction and penile rehabilitation after prostate cancer therapy’, Medical Journal of Australia, 200(10), pp. 582-585. Available at: https://pubmed.ncbi.nlm.nih.gov/24882489/
  2. National Cancer Institute (NCI) (2026) Sexual health issues in men with cancer. Available at: https://www.cancer.gov/about-cancer/treatment/side-effects/sexuality-men (Accessed: October 2026).
  3. NHS (2026a) Erectile dysfunction (impotence). Available at: https://www.nhs.uk/conditions/erection-problems-erectile-dysfunction/ (Accessed: October 2026).
  4. NHS (2026b) Prostate cancer: treatment. Available at: https://www.nhs.uk/conditions/prostate-cancer/treatment/ (Accessed: October 2026).
  5. Shamloul, R. and Ghanem, H. (2013) ‘Erectile dysfunction’, The Lancet, 381(9861), pp. 153-165. Available at: https://pubmed.ncbi.nlm.nih.gov/23040455/