Guide for patients & caregivers

What Causes Erectile Dysfunction and How Is It Treated?

Erectile dysfunction explained: physical, psychological and medicine causes, why it can be an early heart-health signal, treatment options and when to see a GP.

By SameCase EditorialUpdated 7 min read

Prepared with AI assistance and checked against the cited sources. No independent clinician review has been completed. How we prepare articles

What is erectile dysfunction?

Erectile dysfunction (ED), also called impotence, means being unable to get an erection or keep one long enough for sex. It is very common, particularly in men over 40. Occasional problems are usually caused by stress, tiredness or alcohol, but if it keeps happening it is worth seeing a GP or a sexual health clinic.

Symptoms can include getting an erection only some of the time, getting one that does not last, or not being able to get one at all. Depending on the cause, erections may still happen at other times, such as on waking. ED is about erections; Healthdirect notes it does not include problems with ejaculation, fertility or sex drive, although low sex drive can happen alongside it.

This guide gives an overview of the condition. If your main question is which blood tests are used and what the results mean, see our separate guide on blood tests for erectile dysfunction.

Symptoms that need urgent care

Most erection problems are not an emergency. A few situations need help straight away:

  • An erection that lasts more than 3 to 4 hours: the NHS advises calling 999 or going to A&E (or your local emergency number), because this condition, called priapism, can permanently damage the penis if not treated quickly.
  • A painful erection lasting more than 1 hour if you have sickle cell disease: the NHS also treats this as an emergency.
  • Vision or hearing loss after taking a tablet for ED, or an erection lasting longer than 4 hours after any ED medicine: NIDDK advises contacting a health professional right away.

What causes erectile dysfunction?

ED can have physical causes, psychological causes or a mix of both. Sometimes it happens only in certain situations, and sometimes the cause is not clear.

Physical causes are often linked to blood flow, nerves or hormones. NIDDK and Healthdirect list conditions such as:

  • Heart and blood vessel problems, including atherosclerosis (narrowed, clogged arteries), high blood pressure, high cholesterol and stroke.
  • Diabetes, obesity or metabolic syndrome, chronic kidney disease and chronic obstructive pulmonary disease (COPD).
  • Hormone problems, such as low testosterone and thyroid imbalance.
  • Nerve conditions, such as multiple sclerosis, Parkinson's disease, spinal cord injury and damage from pelvic surgery.
  • Problems of the reproductive system, such as an enlarged prostate, Peyronie's disease (a curved penis caused by scar tissue) and some prostate cancer treatments.
  • Lifestyle factors, including smoking, drinking too much alcohol, recreational drug use and too little physical activity.

Can stress, anxiety, relationships or medicines cause ED?

Yes. Stress, anxiety and depression can cause ED or make it worse. Healthdirect notes that anxiety about sexual performance is most common at the start of a new relationship, especially after earlier problems. Unresolved relationship conflict, feeling isolated, low self-esteem and negative body image can also play a part.

ED and mood can affect each other. Having ED can lead to low confidence, frustration, anxiety or depression, which can then make erections harder. Talking about this with a GP is a normal part of the assessment, not a sign that the problem is all in the mind.

ED can be a side effect of many common prescription and over-the-counter medicines. NIDDK lists examples including some antidepressants, blood pressure medicines and diuretics (water tablets), antihistamines, some pain relievers, sedatives, chemotherapy and hormone medicines, appetite suppressants and some ulcer medicines.

If you think a medicine is affecting your erections, do not stop taking it or change how you take it on your own. Talk with the prescriber first. NIDDK says a clinician may review your medicines and may suggest a different dose or switching to another medicine; the NHS also says a doctor may switch you to a different medicine if it is causing ED. Bring a full list of what you take, including supplements.

Is erectile dysfunction linked to heart disease?

It can be. Healthdirect says ED is often the first sign of conditions such as cardiovascular disease, diabetes, high blood pressure and high cholesterol, and Cleveland Clinic notes that in many cases ED can be the first symptom of another underlying problem, including heart disease. This is because the same narrowing of blood vessels that affects the heart can reduce blood flow to the penis.

This does not mean someone with ED has heart disease. It means ED is a good reason for a general health check. Healthdirect notes that diagnosing these conditions early can help treat ED and lower the chance of complications from the conditions themselves. Our guides on blood sugar and cholesterol results explain those tests in more detail.

What happens at a GP appointment for ED?

The NHS says a doctor or nurse may ask about your lifestyle, relationships and any problems you are having, do basic health checks such as blood pressure, and examine your genitals to look for an obvious physical cause. If you have urinary symptoms, such as needing to pee more often, a prostate examination may also be offered. Blood tests or a scan may be arranged, and some people are referred to a specialist such as a urologist.

Sexual health clinics in the UK can offer the same treatment as a GP surgery, and many have walk-in services.

How is erectile dysfunction treated?

Treatment can usually help. Clinicians treat any underlying cause where possible, and choosing a treatment is a personal decision that a partner may want to be part of. Options described by the NHS, NIDDK and Healthdirect include:

  • Lifestyle changes: stopping smoking, keeping alcohol within recommended limits, being more active, eating a healthy diet, reaching a healthy weight and reducing stress. The NHS also suggests a break from cycling for people who cycle more than 3 hours a week.
  • Treating linked conditions, such as high blood pressure, high cholesterol or hormone problems.
  • Medicines called PDE-5 inhibitors, which increase blood flow to the penis. They do not increase sex drive and do not work for everyone. They can interact with other medicines and must not be taken with nitrate medicines used for chest pain, so check with a GP or pharmacist first.
  • Testosterone treatment, considered for people who have ED together with confirmed low testosterone.
  • Injections into the penis or a medicine inserted into the urethra, taught by a health professional.
  • Vacuum pumps, penile rings, and in some cases an implant fitted by surgery when other options have not worked.
  • Counselling, sex therapy or cognitive behavioural therapy (CBT), sometimes with a partner, when emotional or relationship factors are involved.

Questions to ask your clinician

Writing questions down can make a sensitive appointment easier. You could ask:

  • What do you think is the most likely cause in my case: physical, psychological or both?
  • Should my heart health, blood pressure, blood sugar or cholesterol be checked?
  • Could any of my current medicines be playing a part, and what are the options if so?
  • Which treatments are suitable for me, and are there any I should avoid with my other medicines or conditions?
  • Would counselling or sex therapy help, and how can I access it?
  • When should we review how treatment is working?

How SameCase can help you prepare

On SameCase, patients and verified doctors share de-identified cases. Reading how others with similar circumstances described their symptoms, tests and conversations with clinicians can help you work out what to ask and what information to bring. Other people's cases cannot tell you your cause or the right treatment for you; that decision belongs with your own clinician.

A final note on safety: the NHS and NIDDK warn that ED medicines bought online without a prescription may be fake or unsuitable, so talk to a doctor or pharmacist before buying any.

Sources and further reading

For patients & caregivers

Share your case and learn from others

Learn from doctors and other people's cases to find a way forward with your health problem. New cases are public immediately. Don't add names or identifying details.

Keep learning