Most medicines come with a long list of possible side effects, and changes in firmness are often buried near the bottom. Because the change usually comes on slowly, many men never connect it to a pill they started months or even years earlier.
The six types of medicine below are among the most common ones linked to erection problems. Each one affects a different part of the process.
1. Blood Pressure Medicines
Some of the most widely prescribed blood pressure medicines can make it harder for enough blood to reach the penis. According to MedlinePlus from the National Library of Medicine, thiazide diuretics such as hydrochlorothiazide are the most common cause of erection problems among blood pressure drugs, followed by beta-blockers such as metoprolol and propranolol. Diuretics lower pressure partly by reducing fluid in the blood vessels. Beta-blockers quiet the nervous system signals that help start an erection. [1]
2. Antidepressants
Many antidepressants, including sertraline, fluoxetine and citalopram, belong to a group called SSRIs, which work by raising serotonin in the brain. According to a review in The Journal of Clinical Psychiatry, delayed climax is one of the most common side effects of these medicines, and some antidepressants can also lower desire. [2]
3. Antihistamines
Over-the-counter allergy and sleep aids such as diphenhydramine (Benadryl) and hydroxyzine can affect more than a runny nose. WebMD's medically reviewed list of drugs linked to erection problems includes these antihistamines, along with certain heartburn medicines in the same family, such as cimetidine. Because many people take them nightly for sleep or allergies, they're easy to overlook. [3]
4. Prescription Pain Relievers
Opioid pain medicines such as oxycodone, codeine and morphine can affect hormones as well as pain. According to the Sexual Medicine Society of North America, people who use opioids tend to have lower testosterone than people who don't, and in men, the testes appeared to make less of it. Lower testosterone can reduce desire and make erections less reliable. [4]
5. Hair Loss and Prostate Medicines
Finasteride and dutasteride are used to slow hair loss and shrink an enlarged prostate. They work by blocking the conversion of testosterone into a stronger form called DHT. According to a 2022 review in the journal Sexual Medicine, DHT helps activate the enzyme that makes nitric oxide in penile tissue, so lowering it can mean less nitric oxide and less blood flow when it's needed. [5]
6. Everyday Anti-Inflammatory Pain Relievers
Ibuprofen and naproxen are some of the most used medicines in the country, often taken daily for aches and joint pain. In a study of about 80,000 men published in the Journal of Urology, regular users of these anti-inflammatory pain relievers had about a 22% higher risk of erection problems. The researchers pointed to one possible reason: these medicines block prostaglandins, compounds the body also uses during an erection. The study could not prove the medicines were the cause. [6]
Why This Is Worth Knowing
An erection depends on healthy blood vessels, clear nerve signals and balanced hormones working together. Many common medicines touch at least one of those steps, which is why the same symptom can have very different causes from one man to the next. According to MedlinePlus, some medicines can cause serious reactions if they are stopped or changed suddenly, so any change to a prescription is made with the prescribing provider.


