Erectile dysfunction (ED) is the persistent inability to get or keep an erection firm enough for satisfactory sex. It affects about half of men over 40 to some degree. It is common, treatable and often embarrassing to raise, so ask about it. Importantly, ED is often an early warning sign of cardiovascular disease: it can appear 2–5 years before angina or a heart attack.
Causes
- Vascular (the most common): atherosclerosis, hypertension, diabetes, smoking, dyslipidaemia and obesity.
- Neurological: diabetic neuropathy, spinal cord injury, multiple sclerosis, and pelvic surgery or radiotherapy (prostate, rectum).
- Hormonal: low testosterone (hypogonadism), high prolactin and thyroid disease.
- Drugs:
- thiazides and beta-blockers
- SSRIs and antipsychotics
- 5-alpha-reductase inhibitors and anti-androgens
- opioids, alcohol and recreational drugs
- Psychological: performance anxiety, depression and relationship problems.
- clues: sudden onset, a specific situation, and normal morning erections
- Structural: Peyronie disease (a curved, painful erection from a fibrous plaque).
Assessment
- History: onset, morning erections, libido, drugs and alcohol, smoking, and mood. A questionnaire such as the IIEF-5 helps.
- Examination: blood pressure, BMI, genitals (testis size, penile plaques), pulses, and signs of low testosterone.
- Investigations:
- HbA1c or fasting glucose and lipids (assess cardiovascular risk)
- morning testosterone (taken between 7 and 11 am; repeat if low, with LH and prolactin)
- thyroid function if suggested by symptoms
- Calculate cardiovascular risk. If the man has symptoms of angina, he needs a cardiac assessment before sexual activity is advised.
Treatment
Lifestyle and risk factors (for all patients)
- Stop smoking, lose weight, exercise regularly and reduce alcohol.
- Control diabetes, blood pressure and lipids.
- Review the drug list, and switch drugs where possible.
- Psychosexual or couples therapy when psychological factors play a part.
First line: PDE5 inhibitors
- How they work: they block the breakdown of cGMP, so nitric oxide relaxes the penile smooth muscle. Sexual stimulation is still needed.
- Sildenafil 50 mg (25–100 mg) about 1 hour before sex. A heavy, fatty meal delays its effect.
- Tadalafil 10–20 mg on demand (lasts up to 36 hours), or 5 mg daily. Daily tadalafil also helps urinary symptoms of an enlarged prostate.
- Vardenafil and avanafil (faster onset) are alternatives.
- Before calling it a failure: try at least 6 doses at the right dose, taken correctly.
- Side effects:
- headache, flushing, nasal congestion and indigestion
- blue-tinged vision (sildenafil)
- back pain (tadalafil)
- Absolute contraindication: nitrates (glyceryl trinitrate, isosorbide, or "poppers") and riociguat, because the combination causes severe hypotension.
- Use with caution with alpha-blockers, after a recent heart attack or stroke, and in severe aortic stenosis.
Second line
- Vacuum erection device with a constriction ring.
- Alprostadil: injected into the penis (intracavernosal), or given as a urethral pellet or cream.
- Testosterone replacement, only for confirmed hypogonadism. It can also improve the response to PDE5 inhibitors.
Third line
- Penile prosthesis (inflatable implant). Satisfaction rates are high.
Emergency: priapism
An erection lasting more than 4 hours (for example after an injection) is an emergency. The blood in the penis must be aspirated, with or without phenylephrine, to save erectile tissue.
Exam pearls
- ED is a marker of cardiovascular disease. Check glucose, lipids and blood pressure.
- Normal morning erections suggest a psychological cause.
- PDE5 inhibitors plus nitrates are absolutely contraindicated.
- Measure testosterone in the morning.
- An erection lasting more than 4 hours is a urological emergency.
See also Type 2 Diabetes, Hypertension and Prostate Cancer.
Test yourself
5 exam-style single-best-answer questions. Choose your answer, then tap “Show answer”.
Which drug is absolutely contraindicated with sildenafil?
- Metformin
- Isosorbide mononitrate
- Amlodipine
- Atorvastatin
- Paracetamol
Show answer
Answer: B. Isosorbide mononitrate
Nitrates with PDE5 inhibitors cause severe, potentially fatal hypotension.A 52-year-old man presents with gradual-onset erectile dysfunction. Which tests are most important?
- Stool culture
- Chest X-ray and spirometry
- Serum amylase
- Brain MRI
- HbA1c or glucose, lipids, and a morning testosterone
Show answer
Answer: E. HbA1c or glucose, lipids, and a morning testosterone
ED is a marker of vascular disease; check cardiometabolic risk and testosterone (taken 7–11 am).Normal early-morning erections with sudden-onset, situational ED suggest:
- A psychological cause
- Diabetic neuropathy
- Vascular disease
- Peyronie disease
- Hypogonadism
Show answer
Answer: A. A psychological cause
Preserved nocturnal and morning erections indicate intact vascular and neural function.An erection lasting more than 4 hours after an alprostadil injection needs:
- Oral sildenafil
- Reassurance and review next week
- Emergency aspiration with or without phenylephrine
- Testosterone injection
- Ice and discharge
Show answer
Answer: C. Emergency aspiration with or without phenylephrine
Ischaemic priapism is an emergency; delay risks permanent erectile tissue damage.Which PDE5 inhibitor can be taken daily at 5 mg and also helps urinary symptoms of benign prostatic enlargement?
- Sildenafil
- Finasteride
- Avanafil
- Tadalafil
- Alprostadil
Show answer
Answer: D. Tadalafil
Daily low-dose tadalafil is licensed for ED and for lower urinary tract symptoms of BPH.
References and further reading
- European Association of Urology. Guidelines on Sexual and Reproductive Health (2025). uroweb.org
- American Urological Association. Erectile Dysfunction Guideline (2018). auanet.org
- NICE Clinical Knowledge Summaries. Erectile dysfunction. cks.nice.org.uk
Always check the latest version of each guideline; recommendations are updated regularly.
More articles in Nephrology & Urology
- Acute Kidney Injury (AKI): KDIGO Criteria and ManagementAKI definition and staging, pre-renal, renal and post-renal causes, assessment, stopping nephrotoxins, hyperkalaemia and dialysis indications.
- Chronic Kidney Disease (CKD): Stages, Complications and TreatmentCKD G and A staging, causes, complications such as anaemia and bone disease, ACE inhibitors, SGLT2 inhibitors and planning for kidney failure.
- Kidney Stones and Renal Colic: Diagnosis and TreatmentTypes of stones, risk factors, renal colic, CT KUB, pain relief, which stones pass, ESWL, ureteroscopy, emergency drainage and prevention.
- Hyperkalaemia: ECG Changes and Emergency ManagementCauses of high potassium, ECG changes, pseudohyperkalaemia, and step-by-step emergency treatment with calcium, insulin-glucose, salbutamol and dialysis.
Disclaimer
For education and exam preparation only. This is not medical advice and must not be used to diagnose or treat patients. Always follow current clinical guidelines and the advice of qualified senior colleagues.
Spotted a mistake? Help us keep this page accurate.
Al HaYaT Medicos