There’s no single reason erectile dysfunction happens. Erectile dysfunction causes can range from health conditions you may already know about to medications, stress, or other factors you might not immediately connect with your sexual health.
And that distinction matters. If ED is connected to poor blood flow, for example, the way you approach it may be different from ED linked to a medication or performance anxiety.
So, what can actually cause ED? Let’s look at seven of the most common reasons and what research tells us about each one.
Key Takeaways
- Several factors can cause erectile dysfunction, and more than one may affect erectile function at the same time.
- Heart and blood vessel problems can reduce blood flow to the penis, making it harder to get or maintain an erection.
- Diabetes, hormonal conditions, nerve damage, and certain medications can disrupt the processes your body relies on for an erection.
- Stress, anxiety, and other mental health factors can interfere with sexual arousal and erectile function.
- Finding what’s causing ED can help you and your provider choose a treatment that addresses the right problem.
7 Common Erectile Dysfunction Causes

1. Heart and Blood Vessel Problems
An erection needs strong, steady blood flow to the penis. When something damages or narrows your blood vessels, that flow can become harder to achieve and maintain.
Conditions that can contribute include:
- High blood pressure
- High cholesterol
- Atherosclerosis, or plaque buildup inside the arteries
- Coronary artery disease
- Other forms of cardiovascular disease
There’s also an important connection between ED and heart health. A systematic review and meta-analysis of 25 studies involving 154,794 people found that men with ED had a 43% higher risk of cardiovascular disease and a 59% higher risk of coronary heart disease than men without ED.
That doesn’t mean ED automatically signals heart disease. But because erections rely so heavily on healthy blood vessels, changes in erectile function can sometimes give you an early reason to take a closer look at your cardiovascular health.
2. Diabetes and Hormonal Conditions
Diabetes and hormonal problems are also common erectile dysfunction causes. High blood sugar can damage the nerves and blood vessels involved in erections, while hormonal changes such as low testosterone can affect sexual function.
The connection with diabetes is especially strong. A meta-analysis of 145 studies involving 88,577 men found that ED affected more than half of men with diabetes, with substantially higher odds than in men without diabetes.
So, when ED occurs alongside diabetes or hormonal symptoms, the underlying condition may be part of the problem.
3. Medications
Sometimes, the medication treating one health problem can affect sexual function. Certain antidepressants, blood pressure medications, and hormone-related drugs can contribute to erectile dysfunction.
For example, a U.S. study examining medical conditions and medication use found higher odds of complete ED among men taking selected antidepressants and antihypertensive medications. However, the effect varies by medication, and not every drug within these categories affects erections the same way.
If erection problems begin after starting or changing a prescription, talk with your provider before making any changes to your medication.
4. Nerve Damage and Neurological Conditions
An erection starts with a message. When you become sexually aroused, your brain sends signals through the spinal cord and nerves to the penis, triggering changes that allow more blood to flow in.
If disease or injury damages that communication pathway, the message may not travel normally. This can happen with multiple sclerosis, Parkinson’s disease, stroke, spinal cord injuries, and peripheral nerve damage.
A review of erectile dysfunction in neurological disorders explains that neurological conditions can affect erections at several points—from sexual signals in the brain to the nerves controlling blood flow in the penis.
This is what makes nerve damage different from many other erectile dysfunction causes: the blood vessels may be capable of supporting an erection, but the nerve signals telling them what to do can be disrupted.
5. Pelvic Surgery or Injury
Pelvic surgery can be one of the more direct erectile dysfunction causes. The reason comes down to anatomy: the nerves that help you get an erection run very close to the prostate and other structures in the pelvis. Surgery or an injury in this area can damage those nerves or affect blood flow to the penis.
This is especially relevant after prostate surgery. Researchers have also documented ED after other major pelvic procedures, including bladder and rectal surgery. A systematic review of sexual function after major pelvic surgery looked across hundreds of studies involving these procedures and found that erectile problems can remain an important issue after surgery.
Recovery isn’t the same for everyone. Some men regain erectile function as their body heals, while others continue to have difficulty and may benefit from ED treatment.
6. Stress, Anxiety, and Mental Health
Your brain plays just as much of a role in an erection as your body does. Stress, anxiety, depression, and even worrying about sexual performance can make it harder to become aroused or stay aroused.
Performance anxiety can be particularly frustrating. If you start worrying about whether you’ll get or keep an erection, that anxiety can interfere with arousal—which can create a cycle that makes the same worry more likely the next time.
Research on anxiety disorders and erectile dysfunction supports this connection, finding ED was common among men with anxiety disorders.
And it doesn’t have to be one or the other. Psychological and physical factors can contribute to ED at the same time.
7. Lifestyle Factors
Some erectile dysfunction causes come back to everyday habits that affect your circulation and overall health. Smoking, heavy alcohol use, physical inactivity, obesity, and poor sleep can all make healthy erectile function more difficult over time.
The connection makes sense when you consider how erections work. Smoking can damage blood vessels, while inactivity and excess weight can contribute to cardiovascular and metabolic problems that restrict healthy blood flow.
Research involving more than 22,000 men found that obesity and smoking were associated with a higher risk of ED, while regular physical activity was associated with a lower risk.
The encouraging part is that some lifestyle-related risk factors can change. Improving your activity level, quitting smoking, moderating alcohol, and taking care of your cardiovascular health can support both your overall health and sexual function.
When Should You Talk to a Provider About Erectile Dysfunction Causes?
An occasional problem getting or maintaining an erection can happen. But if it keeps happening, starts suddenly, or begins affecting your sex life, it’s worth talking with a healthcare provider.
That conversation can also help uncover something beyond ED itself. As we’ve seen, erection problems can sometimes connect to cardiovascular disease, diabetes, hormonal changes, medications, or other health conditions.
You should consider talking with a provider if:
- ED happens regularly or continues over time
- Your erectile function changes suddenly
- You have other symptoms, such as low sex drive or unusual fatigue
- You have diabetes, heart disease, high blood pressure, or other cardiovascular risk factors
- ED started after you began or changed a medication
The goal isn’t simply to treat the erection problem. Finding out what may be contributing to it can help you choose a treatment that actually fits your needs.
How Can beyondMD Help With ED?
Erectile dysfunction can have more than one cause, so treatment shouldn’t start with guesswork. At beyondMD, you can connect with a licensed provider online to discuss your symptoms, health history, medications, and what may be contributing to your ED.
If treatment is appropriate, your provider can help determine which option makes sense for you. Depending on your needs, beyondMD offers access to ED and sexual wellness treatments that may support blood flow, erectile function, sexual arousal, or desire.
The important part is finding an option that matches what’s actually affecting your sexual health—not simply choosing an ED treatment because it’s available.


