provider image
Welcome! You’re in GoodRx for healthcare professionals. Now, you’ll enjoy a streamlined experience created specifically for healthcare professionals.
Skip to main content

The Top 11 Causes of Erectile Dysfunction (ED)

Christina Aungst, PharmDFarzon A. Nahvi, MD
Updated on April 8, 2025

Key takeaways:

  • Erectile dysfunction (ED) is a condition where you’re unable to reach or continue an erection during sexual intercourse.

  • ED can be caused by a variety of things including aging and chronic medical conditions like diabetes and high blood pressure.

  • There are many ways to treat ED. Treatment options can include prescription medication, supplements, or procedures to help create or sustain an erection.

03:09
Reviewed by Mera Goodman, MD, FAAP | September 30, 2024

One of the most frequent questions people have when they experience any form of erectile dysfunction (ED) is: “Why is this happening to me?” And the next question is: “How can I fix it?” 

There are many reasons why ED happens. And the good news is there are treatments that can help with your symptoms.

What is erectile dysfunction?

Erectile dysfunction, commonly referred to as ED, is the inability to reach or maintain an erection needed for satisfying sexual performance. If it has ever happened to you, you’re not alone: Up to 50 million men have ED in the U.S. 

Although ED can affect anyone after puberty, it’s most common in people over 40 years old. And it becomes even more likely each decade after that.

11 erectile dysfunction causes

Here, we’ll go over the top causes of ED. Read on to learn more.

1. Age

Just like with many health conditions, ED becomes more common as you age. If you’re in your 40s, you have a 40% chance of experiencing some form of ED. This risk goes up about 10% with every decade of life.

GoodRx icon

2. High body fat

Carrying extra weight, especially around the waist, can cause ED. It does this by raising your risk for high cholesterol, high blood pressure, and Type 2 diabetes. Having high body fat also lowers your testosterone level. And this can impact your sex drive and ability to maintain an erection. 

If you think high body fat may be causing your ED, connect with your healthcare team. They can help you understand how body fat may be playing a role in your ED and recommend treatment options. They may suggest changes to your physical activity and diet as well as medications

3. Diabetes

ED is one of the complications that you may have with diabetes. Because diabetes can damage the blood vessels in the body, this can lead to decreased blood flow for erections too. The longer you have diabetes, the more likely you are to experience ED.

ED caused by diabetes isn’t always a reversible problem. But by keeping your blood sugar levels in the normal range, you can decrease your risk for ED. 

4. Heart disease, high blood pressure, and high cholesterol

Experts are now understanding more about how ED and heart health are linked. Conditions like high blood pressure and high cholesterol can cause ED. Research has shown that some people with ED are often diagnosed with heart disease less than 5 years later. 

If you’re experiencing ED and have had no other health issues, you may want a healthcare professional to take a look at your heart. You might be able to prevent the development of heart disease by catching the warning signs early.

5. Smoking

Smoking and other tobacco use is connected to many health problems, including ED. The use of tobacco decreases blood flow throughout your entire body. This includes the blood vessels in the penis. If the blood supply is decreased there, it becomes much more difficult for you to achieve and maintain an erection. 

The effects of smoking may be reversible though. If you stop smoking, you’ll likely notice that your erections improve. Quitting smoking can be hard, but it’s never too late to try. Even if you’ve tried quitting before, help is always on hand. 

6. Medication side effects

Medication side effects cause at least 1 in 4 cases of ED. Many different medications can contribute to ED, including: 

This isn’t a complete list. If you’re having difficulty with erections and recently started a new medication, ask your pharmacist or primary care provider if the two could be connected.

7. Mental health conditions and performance anxiety

Your brain plays a big role in your ability to achieve and sustain an erection. If you’re under stress or experiencing difficulties with your mental health, your brain can have trouble releasing the hormones responsible for causing an erection. 

Examples of these stressors include things like:

Often, there are both mental and physical health issues at play with ED. There’s support available to help manage these issues. A healthcare professional can help you figure out the best approach. When it comes to managing ED symptoms, your options can include:

  • Counseling

  • Psychotherapy

  • Treatments for stress, anxiety, and depression

8. Prostate inflammation and prostate cancer

Prostate issues can lead to ED. The prostate is responsible for creating one of the components of semen. Long-term inflammation of the prostate or prostate cancer can cause painful ejaculation and difficulty achieving an erection. 

Benign prostatic hyperplasia (BPH), or an enlarged prostate, doesn’t cause ED. But the medicines used to treat it can. Be sure to talk with a healthcare professional if you have known prostate issues and are experiencing ED.

9. Sexually transmitted infections

Sexually transmitted infections (STIs) can lead to ED. Certain STIs can cause infections in the prostate gland, which can lead to symptoms of ED. These infections include:

Most of the time, if you treat both the prostate infection and take steps to manage STIs, any issues with ED will resolve as well. If a prostate infection is left untreated, though, it can cause permanent damage. So it’s best to see a healthcare professional about it sooner rather than later.

10. Low testosterone

About 40% of men over 45 years old have lower-than-normal levels of testosterone, also known as “low T.” In addition to ED, low T can cause many different types of men’s health conditions including: 

  • Hair loss

  • Insomnia

  • Low libido (sex drive)

  • Depressed mood

The lower the level of testosterone, the more symptoms you may experience. This is very easy to identify with a simple blood test. And it can be managed with medications. Once testosterone levels are brought back to normal, most people will notice their ED symptoms get better or go away altogether.

11. Nerve problems

Conditions that affect your nerves or blood vessels can interfere with the communication between your penis and brain. These include:

ED is often permanent when the cause is neurological.

Quiz: Is it erectile dysfunction?

Medication treatments for erectile dysfunction

Phosphodiesterase-5 (PDE5) inhibitors are safe and effective medications used to treat many causes of ED. Common options include: 

Good to know: While these medications are in the same medication class, they work slightly differently. So it may take some time to find the best option for you. Connect with your healthcare team to find the right approach for you. 

Other remedies to treat erectile dysfunction

There’s a big market for “male-enhancement” products that claim to improve your sex life and erections. Despite the eye-catching claims, the FDA doesn’t regulate nonprescription treatments. That’s why the FDA issued a warning about many of them.

Depending on what’s causing your ED, some options are available. These can be alternatives to medication, or used alongside it. These options include:

  • A vacuum erection device

  • A penile prosthetic implant

  • Repair of damaged penile blood vessels (revascularization surgery)

  • Therapy (sex therapy, counseling)

There are also some lifestyle habits that may prevent your ED from worsening and support your ED treatment. Here are some natural remedies for managing ED:

Frequently asked questions

Can a urinary tract infection cause erectile dysfunction?

ED isn’t a common symptom of a urinary tract infection (UTI). While symptoms vary from person to person, UTIs often lead to:

  • Dysuria (pain when peeing)

  • Cloudy or bloody urine

  • A feeling like you need to pee suddenly and more often

  • Pain or discomfort in your lower abdomen

What foods cause erectile dysfunction?

No single food directly causes ED. But foods with lots of salt and saturated fat — like fried foods and red meats — can increase your risk for health conditions that can cause or worsen ED. Eating these foods frequently can lead to heart disease, high cholesterol, and increased body fat, all of which can cause ED.

The bottom line

ED is a common condition. And there are many causes of ED, so you’ll want to connect with your primary care provider to help you figure out the cause of your ED symptoms. 

One of the hardest parts of getting treatment for ED is starting the conversation. But getting advice for your ED symptoms can help give you back that piece of your life again. Together, you can find the treatment plan that works best for you.

why trust our exports reliability shield

Why trust our experts?

Christina Aungst, PharmD
Christina Aungst, PharmD, is a pharmacy editor for GoodRx. She began writing for GoodRx Health in 2019, transitioning from freelance writer to editor in 2021.
Alex Eastman, PhD, RN
Alex Eastman, PhD, RN, is a California-based registered nurse and staff medical editor at GoodRx, where he focuses on clinical updates and Latino health.
Farzon A. Nahvi, MD
Dr. Nahvi is an emergency medicine physician and author of “Code Gray: Death, Life, and Uncertainty in the ER.” He works clinically at Concord Hospital in Concord, New Hampshire, and is a clinical assistant professor of emergency medicine at the Geisel School of Medicine at Dartmouth. Prior to this, he worked as an ER physician and clinical assistant professor of emergency medicine at the Mount Sinai Health System, NYU Langone Health, NYC Health + Hospitals/Bellevue, and the Manhattan VA. He is a graduate of Cornell University and NYU School of Medicine.

References

Bacon, C. G., et al. (2003). Sexual function in men older than 50 years of age: Results from the health professionals follow-up study. Annals of Internal Medicine.

Baldwin, D. S., et al. (2018). Antidepressant drugs and sexual dysfunction. British Journal of Psychiatry.

View All References (12)

Cohen, J., et al. (2020). Low testosterone in adolescents & young adults updated. Frontiers in Endocrinology.

Ferrini, M. G., et al. (2017). Aging related erectile dysfunction—potential mechanism to halt or delay its onset. Translational Andrology and Urology.

Grimm, R. H., et al. (1997). Long-term effects on sexual function of five antihypertensive drugs and nutritional hygienic treatment in hypertensive men and women: Treatment of mild hypertension study (TOMHS). Hypertension.

Hawton, K., et al. (1992). Sex therapy for erectile dysfunction: Characteristics of couples, treatment outcome, and prognostic factors. Archives of Sexual Behavior.

McVary, K., et al. (2001). Smoking and erectile dysfunction: Evidence based analysis. The Journal of Urology.

Melnik, T., et al. (2007). Psychosocial interventions for erectile dysfunction. Cochrane Database of Systematic Reviews.

Montague, D. K., et al. (2002). Nonpharmacologic treatment of erectile dysfunction. Reviews in Urology.

National Institute of Diabetes and Digestive and Kidney Diseases. (2024). Definition & facts for erectile dysfunction. National Institute of Health. 

Perry, T. W., et al. (2021). Abrupt-onset, profound erectile dysfunction in a healthy young man after initiating over-the-counter omeprazole: A case report. Journal of Medical Case Reports.

Terentes-Printzios, D., et al. (2021). Interactions between erectile dysfunction, cardiovascular disease and cardiovascular drugs. Nature Reviews Cardiology.

U.S. Food and Drug Administration. (2021). FDA warns consumers to avoid certain male enhancement and weight loss products sold through Amazon, eBay and other retailers due to hidden, potentially dangerous drug ingredients.

Zhao, S., et al. (2017). Association between opioid use and risk of erectile dysfunction: A systematic review and meta-analysis. The Journal of Sexual Medicine.

GoodRx Health has strict sourcing policies and relies on primary sources such as medical organizations, governmental agencies, academic institutions, and peer-reviewed scientific journals. Learn more about how we ensure our content is accurate, thorough, and unbiased by reading our editorial guidelines.

Was this page helpful?

Get the facts on men's health.

Stay informed, and get prescription saving tips and more from GoodRx Health.

By signing up, I agree to GoodRx's Terms and Privacy Policy, and to receive marketing messages from GoodRx.