Erectile dysfunction can feel embarrassing, but it is far more common than many men realize.
It can happen once in a while because of stress, tiredness, alcohol, anxiety, or pressure to perform. But when it keeps happening, happens often, or makes sex difficult, it may be a sign that something deeper is going on.
Erectile dysfunction, often called ED, means a man has ongoing trouble getting or keeping an erection firm enough for sex. It is not always just a “bedroom problem.” In many cases, ED is connected to blood flow, hormones, nerves, mental health, medication side effects, lifestyle habits, or other health conditions.
The NIDDK notes that ED can be a symptom of another health problem, and Mayo Clinic says problems getting or keeping an erection can also be a sign of a condition that needs treatment.
The good news is that ED is treatable, and understanding the cause is the first step. Below are 10 common causes of erectile dysfunction in men, plus signs to watch for and when to talk to a doctor.

Important Note Before You Read
This article is for general education only. It is not a diagnosis and does not replace medical advice.
See a healthcare provider if erection problems happen often, last longer than a few weeks, start suddenly, happen with pain, happen after a new medication, or come with chest pain, shortness of breath, numbness, weakness, severe depression, or other concerning symptoms.
Do not buy unlicensed ED pills online or mix ED medication with heart medication or nitrate drugs. ED medicine can be unsafe for some men, especially those with heart disease, blood pressure problems, or certain prescriptions.
1. Poor Blood Flow
One of the biggest causes of erectile dysfunction is reduced blood flow to the penis.
An erection depends on healthy blood vessels. When a man becomes sexually aroused, blood needs to flow into the penis and stay there long enough to create firmness.
If blood vessels are narrowed, damaged, stiff, or not working properly, erections can become weaker or harder to maintain.
Conditions that can reduce blood flow include:
- Heart disease
- High blood pressure
- High cholesterol
- Atherosclerosis
- Peripheral artery disease
- Diabetes-related blood vessel damage
- Smoking-related blood vessel damage
- Obesity
Mayo Clinic lists heart disease, high cholesterol, high blood pressure, diabetes, obesity, and smoking among physical causes or risk factors for erectile dysfunction.
Cleveland Clinic also explains that conditions affecting the body’s ability to deliver blood to the penis are among the most common causes of ED.
This is why ED can sometimes appear before a man realizes he has heart or circulation problems. The blood vessels in the penis are smaller than many other blood vessels, so circulation problems may show up there earlier.
Signs Blood Flow May Be Involved
You may notice:
- Erections are weaker than before
- Erections fade during sex
- Morning erections become less frequent
- You also have high blood pressure, diabetes, high cholesterol, or heart risk factors
- You smoke or used to smoke
- You get tired easily during physical activity
If ED is related to circulation, improving heart health often becomes part of the treatment plan.
2. Diabetes
Diabetes is a major cause of erectile dysfunction.
High blood sugar over time can damage blood vessels and nerves. Both are important for erections. Even when desire is still present, damaged nerves and poor blood flow can make it harder to get or keep a firm erection.
Diabetes among diseases and conditions linked to ED, and Mayo Clinic also includes diabetes as a physical cause of erectile dysfunction.
Diabetes may also affect testosterone levels, energy, weight, mood, and circulation, which can make erection problems more complicated.
Signs Diabetes May Be Connected
ED may be related to diabetes if you also have:
- Increased thirst
- Frequent urination
- Fatigue
- Blurry vision
- Slow-healing wounds
- Tingling or numbness in feet
- Weight changes
- Known prediabetes or type 2 diabetes
Men with diabetes should not ignore ED. It may be a sign that blood sugar, circulation, nerve health, or cardiovascular risk needs closer attention.
3. High Blood Pressure
High blood pressure can damage blood vessels and reduce healthy blood flow.
That matters because erections depend on strong, flexible blood vessels that can relax and allow blood to enter the penis. Over time, high blood pressure can affect that process.
Some blood pressure medications may also contribute to ED in some men. That does not mean you should stop taking them. Stopping blood pressure medicine suddenly can be dangerous.
Blood pressure among conditions that can cause erection problems, while Mayo Clinic also identifies high blood pressure as a physical factor linked with erectile dysfunction.
What to Do
If your ED started after beginning a new blood pressure medication, talk to your doctor. There may be alternative options, dose adjustments, or other treatments that can help.
Do not stop medication without medical advice.
4. Low Testosterone or Hormone Problems
Testosterone plays a role in sex drive, mood, energy, muscle mass, and sexual function.
Low testosterone does not always cause ED by itself, but it can contribute to low desire, weaker erections, fatigue, and reduced sexual confidence.
Other hormone problems may also play a role, including thyroid problems or high prolactin.
NIDDK lists some mental health, emotional, and physical conditions as causes or contributors to ED, and healthcare providers may evaluate hormones when symptoms suggest a possible endocrine issue. (NIDDK)
Signs Low Testosterone May Be Involved
Possible signs include:
- Lower sex drive
- Fewer morning erections
- Fatigue
- Low mood
- Loss of muscle
- Increased belly fat
- Poor sleep
- Reduced motivation
- Trouble concentrating
A blood test is needed to check testosterone. Symptoms alone are not enough to diagnose low testosterone.
Important Note
Testosterone supplements are not right for every man. They can have risks and should only be used after proper testing and medical guidance.
5. Stress, Anxiety, and Performance Pressure
Erectile dysfunction is not always caused by a physical health problem.
Stress, anxiety, fear of failure, relationship tension, depression, and performance pressure can all interfere with arousal and erection quality.
The brain is deeply involved in sexual response. If your mind is focused on worry, pressure, shame, or fear, your body may not respond the way you want.
Depression, anxiety, stress, and relationship problems among mental health causes of erectile dysfunction. The NHS also says counseling and therapy may help when erection problems are linked to emotional or mental health issues.
Signs Anxiety May Be Involved
Anxiety may be a factor if:
- ED happens mainly with a partner
- Erections are normal during sleep or masturbation
- The problem started after one difficult sexual experience
- You feel pressure to “perform”
- You worry about losing your erection
- You avoid sex because of fear
- Relationship conflict is present
Anxiety-related ED can become a cycle. One bad experience creates worry, and the worry makes the next experience harder.
The solution may include stress reduction, better communication, therapy, sex therapy, lifestyle changes, and sometimes medical treatment.
6. Depression and Low Mood
Depression can reduce sexual desire, energy, motivation, confidence, and physical arousal.
It can also affect sleep, hormones, appetite, weight, and overall health. All of these can influence erectile function.
Some antidepressants may also contribute to erection problems, delayed ejaculation, or reduced desire in some men.
Depression as a mental health cause of ED, and NIDDK notes that emotional or mental health issues can cause ED or make it worse.
What to Watch For
Depression may be involved if ED appears with:
- Low mood
- Loss of interest in things
- Fatigue
- Sleep changes
- Feeling worthless or hopeless
- Lower sex drive
- Irritability
- Appetite changes
- Difficulty concentrating
If you think depression is part of the problem, it is worth getting support. Treating mental health can improve overall quality of life, not just sexual function.
If you have thoughts of self-harm or feel unsafe, seek urgent help immediately.
7. Medication Side Effects
Some medications can contribute to erectile dysfunction.
This can be frustrating because the medicine may be important for treating another health condition.
Medication classes that may sometimes affect erections include:
- Some blood pressure medications
- Some antidepressants
- Some anxiety medications
- Some prostate medications
- Some opioid pain medicines
- Some hormone treatments
- Some cancer treatments
- Certain sedatives
- Some medications that affect testosterone or prolactin
Medications among possible ED contributors, and Mayo Clinic also includes medications and treatments for prostate cancer among risk factors.
What to Do
If ED started after a new medication, do not stop it on your own.
Instead, ask your doctor:
- Could this medication affect erections?
- Is there another option?
- Can the dose be adjusted?
- Is the ED more likely from my health condition than the medication?
- Can ED treatment be used safely with my current medicines?
This is especially important if you take nitrates, heart medication, or blood pressure medication.
8. Smoking, Alcohol, and Drug Use
Lifestyle habits can have a major effect on erections.
Smoking damages blood vessels and reduces circulation. Because erections depend on blood flow, smoking can make ED more likely over time.
Heavy alcohol use can also interfere with erections. Alcohol affects the nervous system, hormones, liver health, mood, sleep, and sexual response. Occasional alcohol may cause temporary erection problems, while heavy long-term use can contribute to ongoing ED.
Lifestyle changes may help improve ED symptoms, including quitting smoking, maintaining a healthy weight, and increasing physical activity. It also notes that smoking is linked to heart and blood vessel disease, which can lead to ED.
Habits That May Make ED Worse
- Smoking cigarettes
- Vaping nicotine
- Heavy alcohol use
- Recreational drug use
- Poor sleep
- Lack of exercise
- Sedentary lifestyle
- High ultra-processed food intake
Improving lifestyle habits does not guarantee instant results, but it can support better blood flow, hormones, energy, and confidence over time.
9. Obesity and Sedentary Lifestyle
Excess weight can contribute to ED in several ways.
It may increase the risk of diabetes, high blood pressure, heart disease, inflammation, sleep apnea, and low testosterone. These conditions can all affect erections.
A sedentary lifestyle can also reduce circulation, worsen metabolic health, and lower energy.
Obesity as a physical cause or risk factor for erectile dysfunction, while NIDDK says maintaining a healthy weight may help prevent diabetes and high blood pressure, both of which can cause ED.
Helpful Lifestyle Changes
Small changes may help, such as:
- Walking daily
- Strength training a few times per week
- Losing even a modest amount of weight if overweight
- Eating more high-fiber foods
- Reducing alcohol
- Improving sleep
- Managing blood pressure and blood sugar
- Quitting smoking
You do not need to become perfect overnight. Consistent improvement matters more than extreme changes.
10. Nerve Damage, Surgery, or Pelvic Injury
Erections depend on healthy nerves as well as blood flow.
Nerve signals from the brain and spinal cord help start and maintain the erection process. If those signals are disrupted, ED can happen.
Possible causes include:
- Spinal cord injury
- Multiple sclerosis
- Stroke
- Parkinson’s disease
- Pelvic injury
- Prostate surgery
- Bladder surgery
- Colon or rectal surgery
- Radiation treatment
- Long-term diabetes-related nerve damage
Neurologic conditions, trauma, pelvic surgery, radiation therapy, and chronic kidney disease among possible causes of ED. Mayo Clinic also notes that prostate surgery or radiation treatment for cancer can contribute to erectile dysfunction. (Cleveland Clinic)
Why This Happens
Surgery, injury, or nerve disease can affect the nerves and blood vessels that control erections.
This type of ED may need a more specific medical plan, especially after prostate cancer treatment or pelvic surgery.
Treatment may include medication, vacuum erection devices, injections, implants, rehabilitation strategies, or specialist care depending on the cause.
Other Possible Causes of Erectile Dysfunction
ED can also be linked to:
- Sleep apnea
- Chronic kidney disease
- Peyronie’s disease
- Low physical fitness
- Relationship problems
- Porn-related performance anxiety in some men
- Excessive fatigue
- Chronic pain
- Low self-esteem
- Poor sleep quality
- Certain neurological disorders
Cleveland Clinic includes chronic kidney disease, Peyronie’s disease, pelvic surgery, and neurologic conditions among possible ED causes. (Cleveland Clinic)
How to Know If ED Is Physical or Psychological
Sometimes the pattern gives clues.
ED May Be More Physical If:
- It developed gradually
- Morning erections are less frequent
- Erections are weak in all situations
- You have diabetes, high blood pressure, or heart disease
- You smoke
- You have low testosterone symptoms
- You had pelvic surgery or injury
ED May Be More Psychological If:
- It started suddenly
- It happens mainly with a partner
- You still get normal morning erections
- You can get an erection when alone
- You feel anxious before sex
- It began after stress, conflict, or a bad experience
Many men have both physical and psychological factors. For example, mild blood flow problems can cause one bad experience, and then anxiety makes the problem worse.
When Should a Man See a Doctor for ED?
You should consider seeing a healthcare provider if:
- ED happens often
- It lasts longer than a few weeks
- You have diabetes, high blood pressure, heart disease, or high cholesterol
- You have chest pain or shortness of breath
- You have low sex drive and fatigue
- You have pain, curvature, or a lump in the penis
- ED started after a new medication
- You had prostate, pelvic, or bladder surgery
- You feel depressed or anxious
- You are worried about your sexual health
ED can be a sign of a health condition that needs treatment and a risk factor for heart disease.
Do not be embarrassed. Doctors discuss this often, and ED is a common medical concern.
How Doctors May Check for the Cause
A doctor may ask about:
- Your erection pattern
- Morning erections
- Sexual desire
- Medical history
- Medications
- Stress and mental health
- Relationship factors
- Smoking and alcohol use
- Exercise and sleep
- Diabetes, blood pressure, and cholesterol history
- Past surgeries or injuries
They may check:
- Blood pressure
- Blood sugar
- Cholesterol
- Testosterone
- Thyroid function
- Kidney function
- Weight and waist size
- Signs of nerve or blood vessel problems
The goal is not only to treat ED but also to identify hidden health issues that may need attention.
Treatment Depends on the Cause
ED treatment is not one-size-fits-all.
Depending on the cause, treatment may involve:
- Lifestyle changes
- Better blood pressure control
- Diabetes management
- Weight loss support
- Smoking cessation
- Mental health support
- Couples counseling
- Medication changes
- ED medication
- Hormone evaluation
- Vacuum erection device
- Injectable medication
- Penile implant in severe cases
Healthcare professionals treat the underlying cause of ED when possible and may suggest lifestyle changes, counseling, medicines, devices, or other treatments depending on the situation. (NIDDK)
ED Pills: Important Safety Warning
ED pills can help many men, but they are not safe for everyone.
Do not take sildenafil, tadalafil, vardenafil, avanafil, or similar ED medications without medical advice if you:
- Take nitrates for chest pain
- Have serious heart disease
- Have very low blood pressure
- Recently had a heart attack or stroke
- Take certain alpha-blockers
- Have severe liver or kidney disease
- Were told to avoid sexual activity for medical reasons
Also avoid fake or unlicensed ED pills sold online. They may contain unsafe ingredients, wrong doses, or hidden drugs.
Can ED Be Prevented?
Not every case can be prevented, but many risk factors can be reduced.
Helpful habits include:
- Do not smoke
- Limit alcohol
- Exercise regularly
- Maintain healthy blood pressure
- Manage blood sugar
- Treat high cholesterol
- Sleep well
- Manage stress
- Stay connected with your partner
- Treat depression or anxiety
- Eat a heart-healthy diet
- Maintain a healthy weight
- Get regular checkups
The same habits that support the heart often support erections because both depend heavily on healthy blood vessels.
Frequently Asked Questions
What is the most common cause of erectile dysfunction in men?
Poor blood flow is one of the most common physical causes. Heart disease, high blood pressure, high cholesterol, diabetes, obesity, and smoking can all affect circulation and contribute to ED. (Mayo Clinic)
Can stress cause erectile dysfunction?
Yes. Stress, anxiety, depression, relationship problems, and performance pressure can cause ED or make it worse. (Mayo Clinic)
Can erectile dysfunction be a warning sign?
Yes. ED can sometimes be a warning sign of heart disease, diabetes, high blood pressure, or other health problems. That is why recurring ED should be discussed with a healthcare provider. (Mayo Clinic)
Can young men get erectile dysfunction?
Yes. ED can happen at any age. In younger men, anxiety, stress, depression, medication side effects, alcohol, smoking, obesity, diabetes, hormone issues, and pornography-related performance concerns may all play a role.
Can low testosterone cause ED?
Low testosterone can contribute to ED, especially when it also causes low sex drive, fatigue, fewer morning erections, and mood changes. A blood test is needed to confirm low testosterone.
Can high blood pressure cause erectile dysfunction?
Yes. High blood pressure can damage blood vessels and reduce healthy blood flow. Some blood pressure medications may also contribute, but you should never stop them without medical advice.
Can diabetes cause erectile dysfunction?
Yes. Diabetes can damage nerves and blood vessels that are needed for erections. Good blood sugar control and medical care can help reduce risks.
Can smoking cause ED?
Yes. Smoking affects blood vessels and circulation, which can lead to erection problems over time. NIDDK notes that smoking is linked to heart and blood vessel disease, which can lead to ED. (NIDDK)
Can ED go away on its own?
Temporary ED caused by stress, tiredness, alcohol, or anxiety may improve. But ongoing ED should be checked because it may be linked to a medical issue.
Should I buy ED pills online?
Be careful. Do not buy unlicensed ED pills from random websites. Fake ED medication can be dangerous, especially if you have heart disease, blood pressure problems, or take other medicines.
Final Thoughts
Erectile dysfunction is common, treatable, and nothing to be ashamed of.
The cause may be physical, emotional, lifestyle-related, medication-related, or a mixture of several factors. Poor blood flow, diabetes, high blood pressure, low testosterone, stress, depression, medication side effects, smoking, obesity, nerve damage, and surgery are all possible causes.
The most important thing is not to ignore it.
If erection problems happen often, talk to a healthcare provider. ED may be your body’s way of signaling that your heart, blood vessels, hormones, mental health, or overall wellness needs attention.
With the right evaluation and treatment, many men are able to improve both their sexual health and their general health.

