By the Medsmingle Team · Updated 16 November 2026
Many common medicines can cause erection problems, including some blood pressure pills, antidepressants, antihistamines, prostate medicines and opioid painkillers. A medicine that affects one man may not affect another. If you think a medicine is causing erectile dysfunction (ED), talk to your doctor, and never stop taking it on your own.
Medicines that may cause ED
MedlinePlus, from the US National Library of Medicine, lists these types. The examples aren’t a complete list:
- Blood pressure medicines and diuretics (water pills): thiazide diuretics are the most common cause, followed by beta blockers. Alpha blockers are less likely to cause ED.
- Antidepressants and other mental health medicines, including benzodiazepine tranquilizers such as diazepam and lorazepam, and some antipsychotics.
- Antihistamines, including some used for allergies, nausea or sleep, such as diphenhydramine, and some heartburn medicines, such as cimetidine.
- Prostate medicines: finasteride and dutasteride.
- Opioid painkillers, such as codeine, morphine and oxycodone.
- Parkinson’s disease medicines, such as levodopa and benztropine.
- Cancer and hormone treatments, such as antiandrogens, LHRH agonists and estrogen.
- Muscle relaxants, such as cyclobenzaprine.
- Seizure medicines, such as phenytoin.
- Heart rhythm medicines, such as disopyramide and digoxin.
- Others, including NSAID painkillers, pseudoephedrine, metoclopramide and some cholesterol-lowering medicines.
For more on specific medicines, see our guides to hydrochlorothiazide, metoprolol and cyclobenzaprine.
Alcohol, nicotine and recreational drugs
Alcohol, nicotine, cannabis, cocaine, amphetamines and opioids such as heroin can also cause erection problems. Read more about alcohol and ED and smoking and ED.
Is it the medicine or the condition?
The condition a medicine treats can cause ED too. NIDDK lists high blood pressure, diabetes and depression among the causes of erection problems. That’s why it’s best to ask your doctor rather than guess. Read more about high blood pressure and ED.
What your doctor may do
Your doctor can review everything you take to see whether a medicine could be the cause. They may lower the dose or switch you to a different medicine. For example, some antidepressants are less likely than others to cause sexual side effects. See our guide to antidepressants and sexual side effects.
Bring a list of everything you take, including over-the-counter medicines and supplements. Our guide to talking to your doctor about ED can help you prepare.
Never stop a medicine on your own
Some medicines can cause life-threatening reactions if they’re stopped or changed the wrong way. Keep taking your medicine as prescribed until you’ve spoken to your doctor.
Frequently asked questions
Which blood pressure medicines are most likely to cause ED?
According to MedlinePlus, thiazide diuretics are the most common cause, followed by beta blockers. Alpha blockers are less likely to cause ED.
Can ED caused by a medicine be fixed?
Your doctor may be able to lower the dose or switch you to another medicine. Don’t make changes yourself.
Can antihistamines cause erection problems?
Some can, including diphenhydramine, according to MedlinePlus.
Can finasteride cause ED?
MedlinePlus lists finasteride and dutasteride among the prostate medicines that may cause erection problems. Read more about enlarged prostate treatment.
Sources
- Drugs that may cause erection problems, MedlinePlus Medical Encyclopedia
- Symptoms & Causes of Erectile Dysfunction, National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK)
- Treatment for Erectile Dysfunction, NIDDK
About Medsmingle
Medsmingle (medsmingle.com) shares clear, plain-English information on medicines and everyday health. Explore more health guides and the latest articles, read about us, or contact our team with a question.
This article is for general information only and isn’t a substitute for advice from a doctor or pharmacist. Don’t start, stop or change a medicine without talking to a qualified healthcare professional.