Key takeaways:
Erectile dysfunction (ED) is a condition where you’re unable to reach or continue an erection during sexual intercourse.
The causes of ED can be physical, psychological, or related to lifestyle habits. And more than one factor is often involved.
ED can be an early sign of an underlying medical problem — such as diabetes, heart disease, or low testosterone. So it’s important to seek care if you start to have symptoms of ED.
One of the most common questions people ask when they experience erectile dysfunction (ED) is: “Why is this happening to me?” And the next question is usually: “How can I fix it?”
ED can be caused by physical health conditions, psychological factors, or lifestyle habits. These categories often overlap and influence one another. While the causes don’t always fit neatly into a single box, thinking about them this way can make it easier to understand what may be contributing to your symptoms.
The good news is that most causes are treatable. And identifying the underlying cause is the first step toward getting the right treatment and seeing improvement.
What is erectile dysfunction?
Erectile dysfunction, commonly referred to as ED, is when you have difficulty getting an erection or maintaining enough of an erection for a satisfying sexual experience. ED exists on a spectrum — from complete inability to have an erection to trouble keeping an erection firm enough for satisfying sex.
If it has ever happened to you, you’re not alone: Up to 50 million men have ED in the U.S.
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.
Physical causes of erectile dysfunction
ED can be the first sign of a medical issue. That’s why it’s important to let your healthcare team know if you start to experience ED. Common physical reasons for ED are explained below.
1. Diabetes
Diabetes is a common cause of ED. Men with diabetes are about three times as likely as men without diabetes to develop ED. That’s because diabetes can damage the blood vessels in the body, which may lead to decreased blood flow for erections. The longer you have diabetes, the more likely you are to experience ED.
When a person with diabetes develops ED, it may be a sign that other long-term complications of diabetes are developing. The changes in blood flow that lead to ED can also lead to problems with your:
Vision
Heart
Kidneys
So it’s important to share with your healthcare team if you’re having new symptoms of ED.
2. High body fat
Carrying extra weight, especially around the waist, increases the chances of having ED. Men with a higher body mass index (BMI) are more likely to experience moderate-to-severe ED. Researchers believe excess body fat can disrupt hormone levels and blood flow, both of which are important for erections.
If high body fat may be causing your ED, you may be able to reverse your symptoms by focusing on weight-management strategies like exercise, diet changes, and medications.
3. Heart disease
Experts are now understanding more about how ED and heart health are linked.
The American Heart Association notes that ED may even be the first sign of heart disease. That’s because heart disease is often caused by a buildup of atherosclerosis in the arteries, which leads to poor blood flow. Atherosclerosis can also reduce blood flow in other areas, including the penis. Research has shown that people with ED are often diagnosed with heart disease within 5 years.
Conditions like high blood pressure and high cholesterol are also linked to ED because they increase the chances of developing atherosclerosis and heart disease. So evaluation of new ED often includes an evaluation of your heart health.
4. Medication side effects
Medication side effects cause at least 1 in 4 cases of ED. Many different medications can contribute to ED, including:
Antidepressants, especially selective serotonin reuptake inhibitors (SSRIs) and serotonin and norepinephrine reuptake inhibitors (SNRIs)
Blood pressure medications, especially thiazide diuretics, beta blockers, loop diuretics, and spironolactone
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.
5. Prostate inflammation or 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, can also cause ED. The larger the prostate, the higher the chances are of developing ED.
6. Low testosterone
About 40% of men over age 45 have lower-than-normal levels of testosterone, also known as “low T.” In addition to ED, low T can cause many different types of health conditions in men including:
The lower the level of testosterone, the more symptoms you may experience. This can be diagnosed 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.
7. Nerve problems
Conditions that affect your nerves or blood vessels can interfere with the communication between your penis and brain. These include:
Injuries to the spinal cord or brain
ED is often permanent when the cause is neurological.
Psychological causes of erectile dysfunction
ED is also influenced by mental health factors. Psychological causes can occur on their own or alongside underlying medical conditions.
8. Stress
Your brain plays a big role in your ability to achieve and sustain an erection. Stress, anxiety, or relationship difficulties can interfere with the signals between your brain and body that make erections possible. In one small study, an 8 week stress-management program improved ED symptoms as much as medication did.
There’s support available to help manage these issues. When it comes to managing ED symptoms, your options can include:
Counseling
Psychotherapy
9. Mental health conditions
While stress can contribute to ED, ongoing mental health conditions can also play a significant role. Depression, anxiety, and other disorders can affect sexual desire, arousal, and performance. In some cases, the medications used to treat these conditions may also contribute to ED.
Examples include:
Lifestyle factors that may cause erectile dysfunction
10. 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.
11. Alcohol
Alcohol can also make it harder to get or maintain an erection. While a small amount may lower inhibitions, larger amounts can interfere with arousal and the brain-body signals needed for an erection.
Over time, heavy or frequent drinking can increase the risk of ED. In general, the more alcohol someone consumes, the higher their risk of developing ED.
In one study of people with alcohol use disorder and ED, a month of not drinking led to big improvements in symptoms. If you drink regularly and experience ED, cutting back may help.
Does porn cause erectile dysfunction?
Some people worry about “porn-induced ED,” which means ED that might be linked to pornography use. So does porn cause ED? For most people, the answer is no. Research shows that regular pornography use usually doesn’t cause erection problems.
However, problematic or compulsive porn use can be linked to ED. Problematic use means:
Feeling like you can’t control your viewing
Continuing even when it causes problems
Feeling upset about your habits
This kind of use may lead to:
Lower sexual satisfaction
Trouble becoming aroused with a partner
Performance anxiety
Higher chances of depression or anxiety
All of these things can make ED worse.
If you think porn use may be affecting your erections, a healthcare professional can help you look at possible causes and discuss ways to improve symptoms.
Quiz: Is it erectile dysfunction?
Medication treatments for erectile dysfunction
Phosphodiesterase-5 (PDE5) inhibitors are safe and effective medications used to treat many ED causes. Common options include:
Avanafil (Stendra)
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.
Natural remedies to treat erectile dysfunction
There are also some natural remedies or lifestyle habits that may prevent your ED from worsening and support your ED treatment. Here are some natural remedies for managing ED:
Eat a balanced diet with plenty of fresh produce, lean protein, and minimally processed foods.
Be physically active. Do your best to do moderate exercise, 3 to 5 days a week.
Aim to get consistent and quality sleep.
Practice relaxation and mindfulness techniques.
Avoid or limit alcohol and tobacco.
Alternative remedies to treat erectile dysfunction
There’s a big market for “sexual-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 supplements for ED, noting that they may be contaminated with dangerous hidden ingredients.
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 or counseling)
Frequently asked questions
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
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.
ED affects up to 50 million men in the U.S. And as you get older, ED is more common. At age 40, about 40% of men are affected. And by age 70, 70% report having ED.
Yes, e-cigarettes may lead to ED. In one study, men who used e-cigarettes were more than twice as likely to report ED as men who’d never vaped.
Yes. Stress can interfere with the brain-body signals needed to get or maintain an erection. Stress is usually a temporary and reversible cause of ED. However, chronic stress can lead to low sex drive, relationships issues, and performance anxiety that further worsen ED.
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
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.
ED affects up to 50 million men in the U.S. And as you get older, ED is more common. At age 40, about 40% of men are affected. And by age 70, 70% report having ED.
Yes, e-cigarettes may lead to ED. In one study, men who used e-cigarettes were more than twice as likely to report ED as men who’d never vaped.
Yes. Stress can interfere with the brain-body signals needed to get or maintain an erection. Stress is usually a temporary and reversible cause of ED. However, chronic stress can lead to low sex drive, relationships issues, and performance anxiety that further worsen ED.
The bottom line
Erectile dysfunction (ED) is a common condition. And there are many ED causes, 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 experts?



References
Arackal, B. S., et al. (2007). Prevalence of sexual dysfunction in male subjects with alcohol dependence. Indian Journal of Psychiatry.
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.
Biernikiewicz, M., et al. (2024). Erectile dysfunction as an obesity-related condition in elderly men with coronary artery disease. Journal of Clinical Medicine.
Calabrò, R. S., et al. (2016). Erectile dysfunction in individuals with neurologic disability: A hospital-based cross-sectional study. Innovations in Clinical Neuroscience.
Cao, Z, et al. (2025). The relationship between perceived stress and erectile function in patients with psychogenic erectile dysfunction: The mediating role of fatigue. The Journal of Sexual Medicine.
Cavdar, V. C., et al. (2025). Sexual dysfunction in male patients with obesity: Is it still being overlooked?. Hormones (Athens, Greece).
Cohen, J., et al. (2020). Low testosterone in adolescents & young adults updated. Frontiers in Endocrinology.
Defeudis, G., et al. (2021). Erectile dysfunction and diabetes: A melting pot of circumstances and treatments. Diabetes Metabolism Research and Reviews.
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.
Grubbs, J. B., et al. (2019). Is pornography use related to erectile functioning? Results from cross-sectional and latent growth curve analyses. The Journal of Sexual Medicine.
Kalaitzidou, I., et al. (2014). Stress management and erectile dysfunction: A pilot comparative study. Andrologia.
Karunakaran, A., et al. (2024). Erectile dysfunction in alcohol use disorder and the change in erectile function after one month of abstinence. Journal of Addictive Diseases.
Kim, S. W. (2011). Prostatic disease and sexual dysfunction. Korean Journal of Urology.
Li, S., et al. (2021). A meta-analysis of erectile dysfunction and alcohol consumption. Urologia Internationalis.
Liu, Y., et al. (2023). Association of BMI with erectile dysfunction: A cross-sectional study of men from an andrology clinic. Frontiers in Endocrinology.
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.
Montejo, A. L., et al. (2018). The impact of severe mental disorders and psychotropic medications on sexual health and its implications for clinical management. World Psychiatry.
National Institute of Diabetes and Digestive and Kidney Diseases. (2024). Definition & facts for erectile dysfunction. National Institutes of Health.
Obiatuegwu, K., et al. (2021). Correlation between the severity of erectile dysfunction and prostate size in patients with benign prostatic enlargement. African Journal of Urology.
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.
Schwartz, B. G., et al. (2011). Cardiovascular implications of erectile dysfunction. Circulation.
Terentes-Printzios, D., et al. (2021). Interactions between erectile dysfunction, cardiovascular disease and cardiovascular drugs. Nature Reviews Cardiology.
U.S. Food and Drug Administration. (2026). Sexual enhancement and energy product notifications.
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.










