By the HealthDataConsortium.org Research Team. Sources checked October 3, 2026. HealthDataConsortium.org is an independent educational publication. This article has not been clinically reviewed or peer-reviewed and is not medical advice. It recommends no product.
The Short Answer
There is no single main cause of erectile dysfunction (ED). For most men, several things overlap. The most common underlying mechanism is vascular, meaning problems with blood vessels and blood flow, and the American Urological Association (AUA) says that ED and heart disease share causes and risk factors (AUA Erectile Dysfunction Guideline, 2018). Diabetes, hormone problems such as low testosterone, nerve damage, certain medicines, alcohol and smoking, sleep, stress, mood, and relationship strain can all contribute too.
One point matters beyond the bedroom: ED can be an early signal of heart and blood-vessel disease. That is the best reason to get it checked rather than guess at a cause.
The National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK) describes ED as getting an erection only some of the time, getting one that does not last long enough for sex, or not being able to get one at all (NIDDK: Symptoms & Causes of Erectile Dysfunction).
Why “The Main Cause” Is the Wrong Question
A review of the causes of ED by Heaton and Adams describes it as arising from a collision of circumstances among risk factors, causes, and probable associations, each with its own timing and its own power to affect the outcome. The authors note that the power of any single cause to degrade erectile function remains unquantified (Heaton and Adams, Endocrine, 2004, abstract). In plain terms, nobody can honestly tell you that one cause is “the” cause for all men. The AUA likewise says the origins of ED are often multifactorial.
What we can say is which causes are most worth checking first. The sections below go through them.
Vascular Causes: The Most Common Underlying Mechanism
An erection depends on healthy blood flow. The AUA guideline says compelling evidence shows the most common underlying mechanism of ED is vascular, and that ED and cardiovascular disease share causes and disease processes. The risk factors it lists for both include older age, smoking, diabetes, high blood pressure, abnormal blood fats, depression, obesity, and a sedentary lifestyle.
NIDDK lists atherosclerosis (narrowed arteries), high blood pressure, and stroke among the conditions that can lead to ED (NIDDK). The AUA adds that vascular problems matter because some can improve with lifestyle changes such as diet, weight loss, and more physical activity.
Hormonal Causes: Testosterone and Thyroid
NIDDK names low testosterone and thyroid imbalance as hormone-related causes. The AUA recommends that men with ED have a morning total testosterone level measured. It defines testosterone deficiency as total testosterone below 300 ng/dL with symptoms and signs, and says at least two morning measurements should be taken before making the diagnosis. Levels vary during the day and with illness and some medicines, so timing and repeat testing matter.
Guidance has differed over time. A 2010 commentary in the Canadian Medical Association Journal called testosterone measurement controversial and not needed unless a loss of sexual desire was identified (Katz and Katz, CMAJ, 2010). The AUA guideline is more recent, but whether to test, and when, is a decision for you and your clinician.
Diabetes and Other Long-Term Conditions
The AUA reports that ED is one of the most common complications of diabetes, with prevalence ranging from 20% to 85% depending on the severity and duration of the diabetes. It also notes that ED can be the first sign of diabetes that has not yet been diagnosed. NIDDK also lists chronic kidney disease, obesity and overweight, and chronic obstructive pulmonary disease (COPD) among conditions that can lead to ED.
Nerves, Prostate, and Surgery
NIDDK lists nerve disorders and injuries, such as multiple sclerosis, spinal cord injury, and nerve damage from pelvic surgery. It also lists problems of the male reproductive system, such as an enlarged prostate and penile curvature (Peyronie's disease). The CMAJ commentary adds that a clinician should ask about any pelvic surgery or radiation.
Medicines, Alcohol, and Drugs
NIDDK says ED can be a side effect of many prescription and over-the-counter medicines. Its examples include antidepressants, appetite suppressants, antihistamines, blood pressure medicines and water pills, chemotherapy and hormone medicines, some pain relievers (including NSAIDs, codeine, and oxycodone), sedatives, and ulcer medicines. It also lists too little physical activity, drinking too much alcohol, smoking, and using recreational or illicit drugs as lifestyle contributors.
A medicine on that list does not mean it is causing your ED. Do not stop a prescribed medicine on your own. Bring the full list to your clinician or pharmacist and ask.
Stress, Mood, and Relationship Factors
NIDDK says anxiety, depression, stress, feeling isolated or lonely, and low self-esteem or negative body image can cause ED or make it worse. The AUA says depression, anxiety, and relationship conflict may be either a primary or a secondary contributor, and that ED itself can harm mental health and a couple's relationship, so the two can feed each other.
The AUA also notes that having morning or nighttime erections suggests, but does not confirm, a psychological component. That is one reason a clinician will ask about them.
Sleep
The evidence on sleep is mixed. A 2026 study in Scientific Reports followed 155,688 men in the UK Biobank for a median of 11.6 years. It found no significant link between snoring or a recorded sleep apnea diagnosis and later ED. It did find that men who reported often feeling sleepy during the day, or who found it hard to get up in the morning, had a higher risk of ED (Zhou et al., Scientific Reports, 2026). The authors say sleep apnea was likely under-recorded in the data, and that men in the study were mostly white and middle-aged to older, so the results may not apply to everyone.
This is observational research. It shows an association, not that poor sleep causes ED. Because sleep problems often travel with weight, blood pressure, and blood sugar problems, it is worth mentioning sleepiness or snoring at your visit.
When ED Can Be an Early Warning Sign of Heart Disease
The AUA says men with ED should be counseled that ED is a risk marker for underlying cardiovascular disease and other health conditions. A risk marker predicts a higher chance of a disease; it does not mean you have it. The AUA guideline says symptoms of ED may come up to five years before a cardiovascular event.
A 2024 summary of the American College of Cardiology's Princeton IV consensus guidelines goes further. It says ED is a risk marker for cardiovascular disease and should be treated as a risk-enhancing factor when clinicians decide how intensively to reduce risk. It reports that in one study (MESA), ED was independently associated with nearly twice the rate of cardiovascular events (hazard ratio 1.9, 95% confidence interval 1.1 to 3.4), and that some men with ED but without symptoms may be considered for a coronary artery calcium scan (American College of Cardiology, Princeton IV highlights, 2024). The older CMAJ commentary cites a smaller but still significant association (hazard ratio 1.25).
These are group averages, not a prediction for any one man. If you have chest pain or trouble breathing at any time, call emergency services instead of waiting for an appointment.
Your Cause-and-Risk-Factor Checklist
Print this page or copy the list into your notes app, and check what applies. It is a conversation starter, not a test, and checking a box does not mean that item is causing your ED. The groups follow the causes described above.
Heart and Blood Vessels
- ☐ High blood pressure, or readings I was told were high
- ☐ High cholesterol or other blood fat problems
- ☐ Heart disease, narrowed arteries, or a stroke
- ☐ Close relatives with heart or blood-vessel disease
- ☐ I smoke or used to smoke
- ☐ Chest discomfort or unusual shortness of breath with activity (tell your clinician promptly)
Blood Sugar, Weight, and Other Conditions
- ☐ Diabetes, or a blood sugar result that was ever flagged as high
- ☐ Overweight or obesity, or a growing waistline
- ☐ Chronic kidney disease or COPD
- ☐ Date and result of my last blood sugar or A1c test, if I know them: ______
Hormones
- ☐ Lower sex drive, fewer morning erections, tiredness, or low mood
- ☐ A thyroid problem
- ☐ Any past testosterone test (dates and results): ______
Nerves, Prostate, and Surgery
- ☐ Multiple sclerosis, a spinal cord injury, or another nerve condition
- ☐ Pelvic surgery or pelvic radiation
- ☐ Enlarged prostate or urinary symptoms
- ☐ Curvature of the penis, or a lump or scar-like area (Peyronie's disease)
Medicines, Alcohol, and Drugs
- ☐ I wrote down every prescription medicine, over-the-counter medicine, and supplement I take, with doses
- ☐ I take any nitrate medicine (such as nitroglycerin), which matters before any ED medicine is considered
- ☐ I take medicines from the classes listed above (for example antidepressants, blood pressure medicines, sedatives, or pain relievers)
- ☐ Alcohol: about how much per week: ______
- ☐ Recreational drug use
Stress, Mood, and Relationship
- ☐ Ongoing low mood, anxiety, or high stress
- ☐ Worry about performance, or feeling low in confidence
- ☐ Tension or poor communication with my partner
- ☐ Feeling lonely or isolated
Sleep
- ☐ Often sleepy in the daytime, or hard to get out of bed in the morning
- ☐ Loud snoring, or a sleep apnea diagnosis
About the ED Itself
- ☐ When it started, and whether it came on suddenly or gradually: ______
- ☐ Whether I can get an erection but not keep it, cannot get one, or it varies
- ☐ Whether it happens only in some situations or with some partners
- ☐ Whether I still have morning or nighttime erections
- ☐ Whether my sex drive has changed
What a Clinician May Do With This List
The AUA guideline says men with ED symptoms should have a thorough medical, sexual, and psychosocial history, a physical exam, and selective laboratory tests. It lists history factors that include age, medical and psychological conditions, past surgeries, medications, family history of vascular disease, and substance use. The tests it names as sometimes appropriate include kidney function, fasting lipids, fasting glucose or hemoglobin A1c, and morning testosterone, with thyroid tests and a PSA blood test for some men. It also says validated short questionnaires, such as the Sexual Health Inventory for Men, can help measure severity. The guideline encourages including your partner in the conversation when that is right for you.
On lifestyle, the AUA says changes in diet and physical activity improve overall health and may improve erectile function in men with related conditions, though its review found the effects on erections were small.
Limits of This Article, and Who Should Seek Care
- This article cannot tell you why you have ED. Only a clinician who knows your history and has examined you can determine that.
- The AUA guideline cited here is from 2018, and the NIDDK page was last reviewed in October 2024. Newer guidance may exist, and recommendations such as testosterone testing have varied between sources.
- Much of the research on causes is observational, so it shows links, not proof of cause.
- See a clinician if ED is new, keeps happening, or is paired with a loss of desire, urinary symptoms, or any heart symptoms. Talk with one before using any ED medicine, especially if you have heart disease, diabetes, or high blood pressure, or you take nitrate medicines.
- The AUA notes that ED in younger men deserves particular attention because of its link to later heart problems, so being young is not a reason to skip the visit.
What You Can Do Next
- Fill in the checklist above and bring it, along with your full medicine list.
- Book a visit with your primary care clinician or a urologist, and say plainly that you are there about erection problems.
- Ask whether they should check your heart risk, blood sugar, cholesterol, and blood pressure.
- Ask whether a morning testosterone test makes sense for you.
- Ask whether any of your current medicines could be involved, before changing anything.
- Consider inviting your partner to join the conversation.
If you later look into online ED care, our guide to verifying the prescriber, pharmacy, and follow-up path covers the licensing and pharmacy checks. We also have a separate analysis of one compounded ED telehealth program, which explains how that program is described. That page carries an affiliate disclosure, and nothing in this article depends on it. Neither page replaces an evaluation of the causes above.
Sources
All sources below were opened on October 3, 2026.
- American Urological Association. Erectile Dysfunction: AUA Guideline (2018). Burnett AL, et al. J Urol 2018;200:633.
- National Institute of Diabetes and Digestive and Kidney Diseases. Symptoms & Causes of Erectile Dysfunction (page shows last reviewed October 2024).
- American College of Cardiology. Erectile Dysfunction as an ASCVD Risk-Enhancing Factor: Highlights From the Princeton IV Consensus Guidelines (September 23, 2024).
- Katz A, Katz A. Erectile dysfunction. CMAJ 2010;182(4):381-382.
- Heaton JPW, Adams MA. Causes of erectile dysfunction. Endocrine 2004;23(2-3):119-123 (abstract).
- Zhou H, et al. Association between obstructive sleep apnea and male sexual dysfunction: a prospective cohort study based on 155,688 participants from the UK Biobank. Scientific Reports 2026;16:13948.
HealthDataConsortium.org is an independent analytical publication. It is not a medical practice, a nonprofit organization, or a government entity. Content is informational only and does not constitute medical advice. Consult a licensed healthcare professional about erectile dysfunction and before starting any medication.

