Causes, Diagnosis, and Treatment of Erectile Dysfunction

Author: Mayda Asif  PT, DPT

Medical ReviewerAzuka Chinweokwu Ezeike, MBBS, FWACS, FMCOG, MSc (PH)

Highlights 

  • Erectile dysfunction is a persistent difficulty in achieving or maintaining an erection for satisfying sex
  • Erections involve the brain, nerves, blood vessels, hormones, and mental health, so problems in any of these can affect sexual function.
  • ED often has multiple causes, including diabetes, hypertension, hormonal or nerve issues, medications, smoking, anxiety, and relationship problems.
  • Diagnosis follows a stepwise approach using medical history, physical exam, lab tests, imaging, and specialised assessments.
  • Treatment begins with lifestyle changes, then medications or therapy, and may progress to surgery if needed.
  • ED can signal an underlying health condition, so a sudden onset should prompt medical evaluation.


What Is Erectile Dysfunction?

Erectile dysfunction is the inability to get or keep an erection that is long enough for satisfying sex, even when you are fully aroused. Doctors usually diagnose ED when the problem lasts more than three (3) months, affects your sexual wellbeing, and is not linked to general stress, tiredness, or relationship issues [1].

Although erectile dysfunctions are more common as men age, not every man has to deal with this. Research suggests that 10 to 50% of men experience ED, and are more common in men above 40 years of age [2].  Yet the condition often goes unreported due to embarrassment and a general belief that ED is related to ageing and nothing can help. 

The impact of ED goes beyond just erections; it can influence mood, self-esteem, and the bond between you and your partner. As erectile dysfunction can impact both the body and the mind, doctors are encouraged to provide both medical and psychological help [3].

How Erections Work?

An erection is a complex process where the brain, nerves, hormones, and blood vessels all work together in response to emotional triggers. 

The following is the exact mechanism involved in an erection [1]

  1. It All Starts in the Brain 

Cues from sexual thoughts, what you see and touch, are first collected and then processed in the brain. As a result, it sends signals to the nerves inside the penis. In response to the signal from nerves, the blood vessels in the penis become relaxed and dilated, allowing more blood to enter the penis and cause an erection. Since the brain and nerves start the mechanism of erection, any abnormality in these pathways can cause erectile dysfunction even when there is nothing wrong with the penis itself. 

  1. Blood Flow plays the Central Role. 

The key part of getting an erection starts with the relaxation of a tiny smooth muscle inside the penis called the cavernosal smooth muscle. This allows the blood vessels to open up so that blood can enter and stay inside the penis, resulting in a firm erection. The relaxation of this tiny smooth muscle is mediated by nitric oxide [4].

  1. The Impact of Emotions

Stress, anxiety, low mood, and relationship conflicts can all lead to erectile dysfunction by interrupting the normal brain-nerve response to sexual stimulus. Even with a healthy penis and its blood vessels, the nervousness accompanied by low sexual performance and emotional conflicts with a partner can start the stress response of the body, worsening the symptoms of erectile dysfunction [3].

What are the Most Common Causes of Erectile Dysfunction?  

Erectile dysfunction has many well-established causes and can be directly or indirectly related to physical, psychological, or a mix of both. [1]

Physical Causes of Erectile Dysfunction 

  • Blood flow problems: 

High blood pressure, clogged arteries, heart disease, and stroke can narrow the blood vessels of the penis. This limits the blood from entering the penis, thus causing erection difficulties. 

  • Diabetes and other metabolic syndromes: 

High blood glucose can damage small blood vessels (microangiopathy) and all types of nerves in your body (both peripheral nerves and autonomic nerves). This impacts the normal process of erection as the nerves are damaged, so the brain-to-penis connection is damaged, and due to impaired blood vessels, blood can not enter the penis, making it hard to keep or even get an erection.  

  • Nerve Damage: 

Injuries to the spine, stroke, multiple sclerosis, pelvic surgeries (such as prostate surgery), and diabetes related nerve damage can all disrupt the signals that are required to start and maintain an erection. 

  •  Hormone Imbalance

Lower levels of testosterone and a thyroid hormone imbalance can reduce energy, lower sex drive, and cause unreliable erections. However, some men with slightly lower testosterone levels may continue to have normal erections.

  • Medications

Some medications can influence the normal functioning of nerves and blood flow, and this can lead to erectile dysfunction and lower sexual arousal. For example, medications used in the treatment of high blood pressure (beta-blockers, diuretics and older alpha-blockers) or depression (selective serotonin reuptake inhibitors (SSRIs) and tricyclic antidepressants or TCAs).  

  •  Smoking and Substance Use

Nicotine can harm blood vessels, and recreational drugs are well known for disrupting normal brain activity. Use and abuse of such products can lead to erectile dysfunction.

Psychological Causes of Erectile Dysfunction

  • Sexual Performance Anxiety 

In younger men with no physical illness, erectile dysfunction is usually linked to the fear of failing or being judged during sex. Anxiety can disturb brain arousal circuits and weaken erections. If left untreated, it can lead to further problems, such as gut-brain barrier dysfunction. [5]

  • Depression and Mood Problems 

Men with depression and overall mood disturbances have higher rates of ED and poor sexual satisfaction. A low mood can reduce sex drive and impact sexual arousal. These conditions can worsen with ongoing erectile dysfunction.  

  • Relationship Conflicts

If partners are frequently in conflict and struggle to talk openly about sexual anxiety and the fear of indirect infertility, this can turn sex into a source of worry and suppress the intimacy that is needed to build emotional connection, sexual desire, and a normal erection. Experts suggest that relationship conflicts are as significant as any physical cause of erectile dysfunction [6].

  • Long-Term Stress and Illness   

Chronic stress, constant workload, and mental exhaustion can push the body into stress mode, leaving the nervous system no time to relax. In a stressed state of mind, the brain can't work properly and maintain a firm erection, thus causing erectile dysfunction. 

  • Mixed Nature of Erectile Dysfunction 

Most men with erectile dysfunction have both physical and psychological factors that act together and not a single clear pathology. An episode of erectile dysfunction can trigger the cycle of psychological worry of ‘’this might happen again’’, which then increases the anxiety and makes it even harder to achieve a normal, firm erection [7].

 Risk Factors for Erectile Dysfunction

The risk factors are divided into modifiable and non-modifiable risk factors. Moreover, some related medical conditions might also increase the risk of ED. 

Non-modifiable Risk Factors

  1. The risk of erectile dysfunction increases with age as the blood vessels and the erections become less flexible over time, especially after 40 years of age. However, age alone does not cause erectile dysfunction [8].
  2. Your genes might be responsible for erectile dysfunction, as some people are born with weak blood vessels and metabolic health.

Modifiable Risk Factors

  1. If your lifestyle is sedentary, your days and nights are inactive, you might be at a high risk of developing ED. It is extremely important to keep your body moving. 
  2. Food loaded with fat, sugar, and ultra-processed products can drive weight gain, increase cholesterol, and risk of diabetes, all of which are linked to ED.
  3. Smoking, alcohol, and the use of any recreational drugs negatively affect brain function. 

Medical Conditions

  1. Diabetes, high blood pressure, and high cholesterol can damage blood vessels and their normal flexibility. Over time, the blood vessels become stiff, so not enough blood can reach the penis, and this creates erectile dysfunction. 
  2. Narrow or hard blood vessels in the body can cause erectile dysfunction, and sometimes ED can be one of the earliest signs of heart disease due to low blood supply. 
  3. Pelvic surgeries, such as the removal of the prostate or the use of radiation in the pelvic area, can damage both nerves and blood vessels that create a normal erection. Patients report developing or worsening of erectile dysfunctions even when they have fully recovered from cancer. 

How is Erectile Dysfunction Diagnosed?

Erectile dysfunction is diagnosed through a stepwise, evidence-based approach that is explained below. 

Medical History

  1. Symptom and Onset

Your doctor will ask basic questions, such as: 

  • When did you start having difficulty keeping or having an erection? 
  • How often does this happen?
  • How bad is it? 
  • Is it consistent when you are doing it solo or with a partner?

They may sometimes use a simple questionnaire like IIEF-5 to maintain patients' confidence. 

  1. Morning or Night Erection 

Having normal morning or night erections usually points to psychological causes, and a loss of these erections can be due to more organic (physical)  problems. 

  1. Medicines and Other Illnesses 

Your doctor will take a look at your medical history and the type of medications you are using regularly. Here, they will check for diabetes, high blood pressure, kidney disease, and other conditions that can contribute to erectile dysfunction. 

  1. Emotional and Relationship Issues

Your healthcare provider might explore whether you have performance anxiety, relationship conflicts, or sexual anxiety, as these conditions can worsen or even trigger erectile dysfunction.

Physical Examination 

  1. Heart and Circulation Check 

Your doctor will measure blood pressure, examine circulation, and feel pulses in your legs and pelvis. To look out for any blocked blood vessels and compromised blood supply. 

  1. Genital Exam 

The doctor checks the penis and scrotum (testicles) to point out any curvature, scarring, or structural abnormalities that can be linked to erectile dysfunction. 

  1. Hormone Clues

The amount of body hair, size of testicles, and muscle mass can give a brief idea of testosterone levels and other hormones. If any signs of low hormonal levels are suspected, your doctors might need blood tests to investigate further. 

Laboratory Tests

  1. Blood Sugar Tests (Fasting Glucose and HbA1c):

This helps to identify undiagnosed diabetes and poorly controlled blood glucose, which is one of the major causes of erectile dysfunction. 

  1. Cholesterol Tests (Lipid profile): 

A lipid profile will give a detailed insight into high blood cholesterol and the presence of any other metabolic disease, both of which are closely linked to ED.

  1. Thyroid Exam (if needed):

These tests are ordered if your doctor finds the symptoms of thyroid dysfunction, such as weight change, palpitations, fatigue, mood disturbances, and their effects on sexual function and energy. 

Specialised Tests

  1. Penile Doppler Ultrasound: 

An ultrasound is performed to closely assess blood flow in the penis. This test is usually performed if the doctor is sure about blood-vessel-related erectile dysfunction and needs clear proof of diagnosis.  

  1. Night Erection Testing (NET): 

There are home devices (Rigiscan, snap-gauge) that can be used to signal if erections are present at night or morning. These are used when the clinical picture isn’t clear, and doctors are not sure if the problem is physical or psychological. 

  1. Nerve and Brain Tests: 

If nerve damage is suspected after a spinal surgery, radiation therapy, or long-term disease, your doctors may arrange nerve tests to look out for nerve-related causes of erectile dysfunction. 

How to Treat Erectile Dysfunction?

Lifestyle Modifications: 

You can make these four lifestyle-related changes, and your symptoms will start to improve if the problem is not serious.

  1. Weight and Metabolic Health: 

Maintaining an ideal body weight and controlling blood glucose, blood pressure, and cholesterol are the first and foremost measures to avoid erectile dysfunction. 

  1. Regular Exercise:

Exercise keeps you moving; brisk walking, cycling, and strength training are very important to keep your blood vessels intact and ensure sufficient blood supply throughout the body. 

  1. Quit Smoking and Cut Back on Alcohol

Discontinuing smoking and reducing alcohol consumption are two of the basic pieces of advice you will get from your doctor if you are experiencing erectile dysfunction. Nicotine and alcohol can damage blood vessels and nerves, which clearly increases the risk of ED.

  1. Better Sleep

Addressing poor sleep patterns and associated problems like sleep apnea and achieving regular, good-quality sleep can also support normal erections and general sexual health.

Medication for Erectile Dysfunction

First-Line Medication: 

Sildenafil (viagra), Tadalafil (Cialis), vardenafil, and avanafil are the most popularly prescribed medicines for erectile dysfunction when they are safe to use for a patient.

How They Work   

The mechanism is simple; these medications increase the number of signals and enhance the blood flow in the penis. This makes it easier to achieve an erection when you are sexually aroused.

Safety and Use

These pills should not be used with medicines that contain nitrates, which are commonly prescribed in patients with heart disease.[4] Your doctor might adjust the dosage and the timing of taking ED pills, so you and your partner have realistic expectations and achieve better results.

Psychological Therapies

Behavioural Therapy: 

Cognitive behavioural therapies (CBT) or therapies that engage patients in talking and opening up about their feelings can help with anxiety-related erectile dysfunction. In many cases, ED is linked to worry, negative emotions, and low confidence about sex. [3]

Sex Therapy

Sex therapy can help reduce the fear of not performing well during sex. It gently rebuilds confidence and pleasure during sexual activities. 

Couple-Based Support

Involving both partners to improve their communication, build emotional connection, and non-penetrative intimacy often reduces the symptoms of ED. 

Medical Device 

Vacuum Erection Devices (VEDs) : 

These are specialised external pumps that are used to draw blood into the penis and create an erection. This is an extremely useful non-surgical option for those who can not take medication. 

Penile Injections 

By using a tiny needle, medications can be directly injected into the side of the penis to achieve a firm erection. This method is used when pills do not work.

Intraureter Suppositories

A small medicine pellet is placed inside the urethra at the tip of the penis to increase blood flow. However, this device is less effective than traditional pills.

Surgical Treatment

Penile Implants

For men with severe, long-lasting erectile dysfunction that does not respond to pills, injections, and even suppositories, an implant might be the most extreme medical measure. A surgeon will place a bendable or an inflatable rod inside the penis that will provide a firm, on-demand erection. 

When to See a Doctor for Erectile Dysfunction? 

  1. You must see a doctor if you are experiencing erectile dysfunction for more than 3 months. Early intervention can provide better results and also help identify any underlying health conditions that might be related to ED. 
  2. If erectile dysfunction appears out of the blue and you already have diabetes, high blood pressure, or smoke, you must seek prompt medical advice because in these situations, ED can point to a blood vessel or nerve issue. 
  3. When ED is coupled with low sex drive, low energy, constant fatigue, chest pain, breathlessness, and leg pain, it is very important to see a doctor and preferably get your heart checked. 
  4. Men with ongoing diabetes, high blood cholesterol, and long-term kidney disease should not consider ED as a sign of getting old; instead, they must address the root cause of it.

Can You Prevent Erectile Dysfunction?

  1. Healthy Daily Habits:

You can avoid ED by performing exercises, keeping your body moving, consuming a healthy diet rich in nutrients, avoiding smoking, and keeping a moderate intake of alcohol. These will protect the blood vessels, improve nerve function, and cut down the chances of developing ED.  

  1. Protect your Heart and Metabolism: 

Keeping a strict control on your blood pressure, blood glucose, and cholesterol will go a long way in maintaining your overall health and avoiding ED. Men with or at risk of developing the related disease will have a higher chance of experiencing ED. 

  1.  Manage Long-Term Illnesses Before It's Too Late: 

If you are diagnosed with diabetes, high blood pressure, kidney disease, or even heart disease, you can always avoid ED by keeping an eye on the type of medicines you are consuming and by practising a healthy lifestyle. 

  1. Mind and Relationships 

Your ED might be due to the relationship conflicts and the emotional tension between you and your partner. It is very important to talk to your partner about your feelings, insecurities, and worries. Things usually start working out once you start communicating your emotions. 

Long-Term Treatment Outlook

  1. Most men experience significant improvements once they get their diagnosis and start getting their personalised treatments for the root cause. 
  2. Controlling the underlying long-term diseases (diabetes, high blood pressure, etc.) can improve ED. 
  3. Cognitive behavioural therapies and clear communication can bridge the emotional gap between you and your partner. Thus, reduce the episodes of ED. [3]

Conclusion 

Erectile dysfunction can be tied to many causes and is closely related to a man’s overall health. Getting an early checkup and appropriate interventions is highly efficient in preventing and treating erectile dysfunction. Most men with ED will recover from it by following their doctor's advice, while avoiding treatment makes it worse and sometimes irreparable. 

References

  1. Mazzilli F. Erectile Dysfunction: Causes, Diagnosis and Treatment: An Update. J Clin Med 2022;11:6429. Available from: https://doi.org/10.3390/jcm11216429
  1.  Zhang Y, Zang N, Xiang Y, Lin F, Liu X, Zhang J. A comprehensive analysis of erectile dysfunction prevalence and the impact of prostate conditions on ED among US adults: evidence from NHANES 2001-2004. Front Endocrinol 2025;15. Available from: https://doi.org/10.3389/fendo.2024.1412369
  1.  Dewitte M, Bettocchi C, Carvalho J, Corona G, Flink I, Limoncin E, Pascoal P, Reisman Y, Van Lankveld J. A Psychosocial Approach to Erectile Dysfunction: Position Statements from the European Society of Sexual Medicine (ESSM). Sexual Medicine 2021;9:100434–100434. Available from: https://doi.org/10.1016/j.esxm.2021.100434
  1. Musicki B, Lagoda G, Goetz T, La Favor JD, Burnett AL. Transnitrosylation: A Factor in Nitric Oxide-Mediated Penile Erection. J Sex Med 2016;13:808–14.Available from: https://doi.org/10.1016/j.jsxm.2016.03.003
  1. Lidawi G, Asali M, Majdoub M, Rub R. Short-term intracavernous self-injection treatment of psychogenic erectile dysfunction secondary to sexual performance anxiety in unconsummated marriages. Int J Impot Res 2022;34:407–10.Available from: https://doi.org/10.1038/s41443-020-00399-z
  1. Topak OZ, Sinik Z, Oguzhanoglu NK, Ugurlu TT. An Evaluation of Psychogenic Predictors of Non-Organic Erectile Dysfunction. Medicina 2023;59:1195. Available from: https://doi.org/10.3390/medicina59071195
  1. Angellee J, Suharyani S, Tanojo TD, Pakpahan C, William W, Utomo NS. Exploring the Interplay of Mental and Metabolic Factors in Erectile Dysfunction Management: A Case Report. Indonesian Andrology and Biomedical Journal 2025;6:39–44.Available from: https://doi.org/10.20473/iabj.v6i1.66725
  1.  Xiong Y, Zhang F, Zhang Y, Wang W, Ran Y, Wu C, Zhu S, Qin F, Yuan J. Insights into modifiable risk factors of erectile dysfunction, a wide-angled Mendelian Randomization study. J Adv Res 2023;58:149–61. Available from: https://doi.org/10.1016/j.jare.2023.05.008


Disclaimer:
The information provided on this website is for general educational and informational purposes only. It is not intended to replace professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding a medical condition.

Published April 25, 2026

Comments
* The email will not be published on the website.