Key takeaways
Antibiotics don’t directly cause ED, but they can cause other side effects that indirectly affect your sexual health.
Many medications are known to cause or worsen ED, but antibiotics aren't a known cause.
If you’re experiencing ED, talk to your healthcare provider. They can discuss ways to manage your symptoms, such as prescription medications, lifestyle changes, mental health care, surgery, or medical devices.
Here's what we'll cover
Here's what we'll cover
Here's what we'll cover
Key takeaways
Antibiotics don’t directly cause ED, but they can cause other side effects that indirectly affect your sexual health.
Many medications are known to cause or worsen ED, but antibiotics aren't a known cause.
If you’re experiencing ED, talk to your healthcare provider. They can discuss ways to manage your symptoms, such as prescription medications, lifestyle changes, mental health care, surgery, or medical devices.
Erectile dysfunction (ED) is a common yet frustrating concern that may leave you searching for an explanation. In some cases, medications can be the culprit if you’re having erection problems, but can antibiotics cause erectile dysfunction?
The short answer is no, at least not directly. There isn’t evidence that links antibiotics to ED, and antibiotics aren’t known to cause ED as a side effect. However, antibiotics can cause a variety of side effects, some of which can indirectly affect sexual health.
In this article, we’ll cover how antibiotics affect your body, if they can cause ED, and ways you can treat ED.
How antibiotics can affect your body
Antibiotics are medications used to fight bacteria that are causing an infection in your body. They can help treat various types of bacterial infections, such as those in the ear, throat, prostate, urinary tract, and genitals.
Each antibiotic works differently; some kill bacteria, while others only stop them from growing. All antibiotics have potential side effects. The most commonly reported side effects of antibiotics are gastrointestinal, since they can disrupt the balance of bacteria in the gut. Think: nausea, vomiting, abdominal pain, and diarrhea.
While rare, antibiotics may cause more serious side effects. For example:
Fluoroquinolone antibiotics, like Levaquin (levofloxacin) or Cipro (ciprofloxacin), can cause ruptured tendons, nerve damage, and depression.
Macrolide antibiotics, such as Zithromax (azithromycin) and erythromycin, can cause arrhythmias (abnormal heart rhythms), liver damage, and severe rashes.
Can antibiotics cause erectile dysfunction?
With this information in mind, you’re probably asking: Can antibiotics cause erectile dysfunction? No, not directly. Antibiotics haven’t been linked to ED, but some can cause side effects that may indirectly affect your sexual health.
First, it’s helpful to understand why ED occurs. ED means not being able to get or keep an erection firm enough for sex. Common reasons for losing an erection during sex include:
Psychological factors, like stress, anxiety, and depression
Physical factors, like poor blood flow to the penis, hormonal imbalances
Lifestyle factors, like smoking or heavy alcohol use
Medications, such as blood pressure medications, diuretics, antidepressants, and others
Certain antibiotics, like Cipro (ciprofloxacin), Vancocin (vancomycin), and Sporanox (itraconazole), can sometimes cause fatigue as a side effect. Tiredness is a potential cause of ED, as your energy levels may influence your libido and sexual performance.
Repeated courses of antibiotics, such as fluoroquinolones and penicillins, have been linked to mood changes, such as depression and anxiety. Researchers believe this can occur because antibiotics kill bacteria, including the “good” bacteria that line your gut.
Gut and brain function are closely connected through what’s called the gut–brain axis. So, this disruption may contribute to depression, which is a known psychological risk factor for ED.
On the other hand, antibiotics can actually improve sexual health issues when infections are the cause. In a study published in The Journal of Sexual Medicine, antibiotics helped treat premature ejaculation (PE) in men who had long-term prostate infections.
Also, certain bacterial sexually transmitted infections (STIs), including chlamydia and gonorrhea, can infect the prostate and contribute to sexual dysfunction. These STIs are curable with antibiotics, which may restore sexual function and prevent long-term complications like testicular damage and infertility.
How to treat erectile dysfunction
If you’ve been experiencing erectile dysfunction, you may be losing hope of having a healthy sex life. But don’t wave the white flag just yet! There are several ways to manage ED so you can have more consistent erections.
Prescription medications
Erectile dysfunction pills are drugs that help make erections firmer and last longer. They consist of a family of medications called phosphodiesterase type-5 (PDE5) inhibitors. There are four PDE5 inhibitors that are approved by the US Food and Drug Administration (FDA) for ED:
Stendra (avanafil)
PDE5 inhibitors work by blocking the PDE5 enzyme, which is responsible for breaking down an erection. This helps relax the smooth muscle around the penis, allowing blood vessels around the penis to widen and fill with blood to produce an erection. This results in a harder and longer-lasting erection.
Lifestyle changes
There are also lifestyle changes that can help manage ED, such as engaging in regular exercise, eating a healthy diet, getting enough sleep, and minimizing alcohol use.
Increased physical activity: Research has shown that increased physical activity can benefit ED by improving heart and endothelial function, increasing testosterone levels, decreasing stress and anxiety, and improving body image. In fact, there is even evidence that regular exercise can enhance the effects of ED medication to make it more effective.
Eating a healthy diet: A 2020 study found that having healthy dietary patterns is linked to a lower risk of developing ED and can improve ED symptoms. Certain diets, such as the Mediterranean diet, can also help prevent the development of ED. Healthy food choices include vegetables, fruits, legumes, unsaturated fats, and whole-grain foods.
Getting adequate sleep: Getting less than 6 hours of sleep per night has been linked to the development of ED. If you’ve been experiencing erection problems, try to get at least 6 hours of sleep at night by practicing good sleep hygiene.
Minimizing alcohol consumption: In a 2021 meta-analysis, researchers evaluated the link between alcohol consumption and the risk of ED and found that there was a significant link between regular alcohol consumption and ED. Therefore, limiting alcohol may be helpful if you’ve been having trouble keeping an erection.
Mental health care
As mentioned earlier, psychological factors, such as depression, stress, and anxiety, can contribute to erectile dysfunction. Therefore, taking care of your mental health is key in the management of ED.
Talk with a healthcare provider if you’re struggling with your mental health. You can also try techniques like meditation, deep breathing exercises, and mindfulness, as these can help you cope with stress and other mental health challenges.
Other treatments
If medications, lifestyle changes, and mental health care aren’t doing the trick, your healthcare provider can work with you to identify underlying causes and find the right ED treatment for you. Additional options include:
Surgery to place a penile implant: Penile implants are devices that are surgically placed under the skin of the penis to treat ED or for penis enlargement.
Vacuum constriction device (VCD): When used with a constriction ring, VCDs, or penis pumps, can help treat ED by pulling blood into the penis and keeping it there.
Bottom line
While some medications can cause the condition, antibiotics don’t directly cause ED. Here are some key points to keep in mind if you’re questioning whether your antibiotic is causing your ED:
Antibiotics don’t directly cause ED, but they may cause side effects that indirectly affect your sexual health. For example, antibiotics that cause fatigue or mood changes might affect your sexual performance.
ED occurs due to psychological factors, physical factors, lifestyle factors, medications, and more. Untreated bacterial infections, such as those affecting the prostate, can harm both sexual and overall health, so it’s important to take antibiotics as prescribed.
Fortunately, there are many ways to manage ED, including prescription medications, lifestyle changes, mental health care, surgery, medical devices, and more. As always, it's important to consult your healthcare provider to figure out what’s causing your symptoms and the best treatment for you.
DISCLAIMER
If you have any medical questions or concerns, please talk to your healthcare provider. The articles on Health Guide are underpinned by peer-reviewed research and information drawn from medical societies and governmental agencies. However, they are not a substitute for professional medical advice, diagnosis, or treatment.
Viagra Important Safety Information: Read more about serious warnings and safety info.
Cialis Important Safety Information: Read more about serious warnings and safety info.
Allen, M. (2019). Physical activity as an adjunct treatment for erectile dysfunction. Nature Reviews Urology, 16(9), 553–562. doi: 10.1038/s41585-019-0210-6. Retrieved from https://www.nature.com/articles/s41585-019-0210-6
Allen, M. S., Wood, A. M., & Sheffield, D. (2023). The Psychology of Erectile Dysfunction. Current Directions in Psychological Science, 32(6), 487–493. doi: 10.1177/09637214231192269. Retrieved from https://journals.sagepub.com/doi/10.1177/09637214231192269
Atlantis, E. & Sullivan, T. (2012). Bidirectional association between depression and sexual dysfunction: a systematic review and meta-analysis. Journal of Sexual Medicine, 9(6), 1497-507. doi: 10.1111/j.1743-6109.2012.02709.x. Retrieved from https://pubmed.ncbi.nlm.nih.gov/22462756/
Bauer, S. R., Breyer, B. N., Stampfer, M. J., et al. (2020). Association of Diet With Erectile Dysfunction Among Men in the Health Professionals Follow-up Study. JAMA Network Open, 3(11), e2021701. Retrieved from https://pubmed.ncbi.nlm.nih.gov/33185675/
De Leonardis, F., Colalillo, G., Finazzi Agrò, E., et al. (2022). Endothelial Dysfunction, Erectile Deficit and Cardiovascular Disease: An Overview of the Pathogenetic Links. Biomedicines, 10(8), 1848. doi: 10.3390/biomedicines10081848. Retrieved from https://pubmed.ncbi.nlm.nih.gov/36009395/
Dhaliwal, A. & Gupta, M. (2023). PDE5 Inhibitors. StatPearls. Retrieved from https://www.ncbi.nlm.nih.gov/books/NBK549843/
Dinan, K. & Dinan, T. (2022). Antibiotics and mental health: The good, the bad and the ugly. Journal of Internal Medicine, 292(6), 858–869. doi: 10.1111/joim.13543. Retrieved from https://pmc.ncbi.nlm.nih.gov/articles/PMC9796968/
Duca, Y., Calogero, A. E., Cannarella, R., Giacone, F., et al. (2019). Erectile dysfunction, physical activity and physical exercise: Recommendations for clinical practice. Andrologica, 51(5), e13264. doi: 10.1111/and.13264. Retrieved from https://pubmed.ncbi.nlm.nih.gov/30873650/ .
El-Nashaar, A. & Shamloul, R. (2007). Antibiotic treatment can delay ejaculation in patients with premature ejaculation and chronic bacterial prostatitis. The Journal of Sexual Medicine, 4(2), 491–496. doi: 10.1111/j.1743-6109.2006.00243.x. Retrieved from https://pubmed.ncbi.nlm.nih.gov/17367444/
Fujita, N., Okamoto, T., Yamamoto, H., et al. (2024). Association between sex hormones and erectile dysfunction in men without hypoandrogenism. Scientific Reports, 14(1), 13433. doi: 10.1038/s41598-024-64339-3. Retrieved from https://pubmed.ncbi.nlm.nih.gov/38862562/
Hao, W. Z., Li, X. J., Zhang, P. W., et al. (2020). A review of antibiotics, depression, and the gut microbiome. Psychiatry Research, 284, 112691. doi: 10.1016/j.psychres.2019.112691. Retrieved from https://pubmed.ncbi.nlm.nih.gov/31791704/
Henkel, R. (2021). Long-term consequences of sexually transmitted infections on men's sexual function: A systematic review. Arab Journal of Urology, 19(3), 411–418. doi:10.1080/2090598X.2021.1942414. Retrieved from https://pmc.ncbi.nlm.nih.gov/articles/PMC8451632/
Kaplan-Marans, E., Sandozi, A., Martinez, M., et al. (2022). Medications Most Commonly Associated With Erectile Dysfunction: Evaluation of the Food and Drug Administration National Pharmacovigilance Database. Sexual Medicine, 10(5), 100543. doi: 10.1016/j.esxm.2022.100543. Retrieved from https://pmc.ncbi.nlm.nih.gov/articles/PMC9537247/
Li, S., Song, J. M., Zhang, K., et al. (2021). A Meta-Analysis of Erectile Dysfunction and Alcohol Consumption. Urologia Internationalis, 105(11-12), 969–985. doi: 10.1159/000508171. Retrieved from https://pubmed.ncbi.nlm.nih.gov/34521090/
Lurie, I., Yang, Y. X., Haynes, K., et al. (2015). Antibiotic exposure and the risk for depression, anxiety, or psychosis: a nested case-control study. The Journal of Clinical Psychiatry, 76(11), 1522–1528. doi: 10.4088/JCP.15m09961. Retrieved from https://pubmed.ncbi.nlm.nih.gov/26580313/
MedlinePlus. (2025). Drugs that may cause erection problems. Retrieved from https://medlineplus.gov/ency/article/004024.htm
Mohsen, S., Dickinson, J. A., & Somayaji, R. (2020). Update on the adverse effects of antimicrobial therapies in community practice. Canadian Family Physician Medecin de Famille Canadien, 66(9), 651–659. Retrieved from https://pmc.ncbi.nlm.nih.gov/articles/PMC7491661/
National Health Services. (2023). Erectile dysfunction (impotence). Retrieved from https://www.nhs.uk/conditions/erection-problems-erectile-dysfunction/
National Institute of Diabetes and Digestive and Kidney Diseases. (2024). Eating, Diet, & Nutrition for Erectile Dysfunction. Retrieved from https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/eating-diet-nutrition
Patel, P. H. & Hashmi, M. F. (2023). Macrolides. StatPearls. Retrieved from https://www.ncbi.nlm.nih.gov/books/NBK551495/
Patel, P., Wermuth, H. R., Calhoun, C., et al. (2023). Antibiotics. StatPearls. Retrieved on Sep. 21, 2025 from https://www.ncbi.nlm.nih.gov/books/NBK535443/
Rastrelli, G., Corona, G., & Maggi, M. (2018). Testosterone and sexual function in men. Maturitas, 112, 46–52. doi: 10.1016/j.maturitas.2018.04.004. Retrieved from https://pubmed.ncbi.nlm.nih.gov/29704917/
Shahtri, G. & Tadi, P. (2023). Polymyxin. StatPearls. Retrieved from https://www.ncbi.nlm.nih.gov/books/NBK557540/
Tang, L., Yang, X., Zhou, M., et al. (2024). Inhibition of inosine metabolism of the gut microbiota decreases testosterone secretion in the testis. mSystems, 9(4), e0013824. doi: 10.1128/msystems.00138-24.Retrieved from https://pubmed.ncbi.nlm.nih.gov/38470251/
Widmer, R. J., Flammer, A. J., Lerman, L. O., et al. (2015). The Mediterranean diet, its components, and cardiovascular disease. The American Journal of Medicine, 128(3), 229–238. doi: 10.1016/j.amjmed.2014.10.014. Retrieved from https://pubmed.ncbi.nlm.nih.gov/25447615/
Xiong, Y., Zhang, F., Zhang, Y., et al. (2024). Insights into modifiable risk factors of erectile dysfunction, a wide-angled Mendelian Randomization study. Journal of Advanced Research, 58, 149–161. doi: 10.1016/j.jare.2023.05.008. Retrieved from https://pubmed.ncbi.nlm.nih.gov/37236543/
Yan, A., Bryant, E. E.. (2023). Quinolones. StatPearls. Retrieved from https://www.ncbi.nlm.nih.gov/books/NBK557777/
Zhang, F., Xiong, Y., Qin, F., & Yuan, J. (2022). Short Sleep Duration and Erectile Dysfunction: A Review of the Literature. Nature and Science of Sleep, 14, 1945–1961. doi: 10.2147/NSS.S375571. Retrieved from https://pmc.ncbi.nlm.nih.gov/articles/PMC9621223/