Erectile dysfunction is one of the most common medical conditions in men over 40, and one of the most under-investigated. Trouble getting or keeping an erection firm enough for sex is not a character flaw, not an inevitable part of aging, and not a problem that starts and ends with a prescription. In a large share of cases it is the first visible sign that the blood vessels are in trouble, which is why a new diagnosis deserves a cardiometabolic work-up rather than a quick pill. In this article you will learn why the penile arteries fail first, which blood tests belong in a work-up, how medications and mood contribute, and how treatment really works.
What erectile dysfunction is, and what counts as a problem
Erectile dysfunction is the persistent inability to get or keep an erection firm enough for satisfying sex. The word that matters is persistent: almost every man has an off night, and one disappointing evening says nothing about vascular health. Clinicians start paying attention when the difficulty is present most of the time over roughly three months, or when it appears suddenly and does not settle.
How an erection actually works
An erection is a blood flow event with a nerve trigger and a hormone backdrop. Arousal signals the nerves in the penis to release nitric oxide, a short-lived messenger molecule. It relaxes the smooth muscle lining the two spongy cylinders of erectile tissue called the corpora cavernosa. Relaxed muscle lets arteries widen, blood rushes in, and the swelling tissue compresses the veins so blood cannot easily leave. Four systems must cooperate: arteries, veins, nerves, and hormones, and a problem in any one shows up as the same symptom.
Occasional trouble versus a pattern
Two patterns point in different directions. Difficulty that appears abruptly, varies by situation, and coexists with normal erections on waking suggests a psychological or relational driver. Difficulty that develops gradually, affects every situation, and comes with a fading of morning erections suggests a physical driver, most often vascular. Neither pattern is a diagnosis, but the distinction shapes the questions a clinician asks first.
Why erectile dysfunction often signals a vascular problem first
The most useful thing to know about erectile dysfunction is that it is frequently an early warning of cardiovascular disease. The mechanism becomes obvious once you see the numbers on artery size. The arteries supplying the penis are roughly one to two millimeters across; the coronary arteries feeding the heart muscle are three to four. Atherosclerosis, the gradual narrowing of arteries, and endothelial dysfunction, the loss of the artery lining’s ability to relax on demand, affect both at a similar rate. The same narrowing a coronary artery absorbs silently is enough to shut down the far smaller penile arteries.
The years-of-warning window
Because the small vessels fail first, the symptom commonly appears several years before chest pain, a heart attack, or a stroke. In men with vascular risk factors that interval is often estimated at three to five years. This is not a prediction that anything will happen; it is a reason to take the opportunity seriously, because a warning that arrives early can still be acted on. Blood pressure control, blood sugar control, lipid management, stopping smoking, and exercise all improve vascular health, and they tend to help erections too.
Nerve and hormone routes to the same symptom
Vascular disease is the most common physical cause but not the only one. Long-standing high blood sugar damages small nerves as well as small vessels, which is why men living with diabetes and its complications are affected earlier and more severely. Pelvic surgery, prostate treatment, and spinal cord injury interrupt the nerve signal. Low testosterone, thyroid disease, and high prolactin dampen desire. Most men with a physical cause have more than one contributor.
The cardiometabolic work-up a new diagnosis deserves
A first episode of persistent erectile dysfunction is a screening opportunity. A reasonable work-up is inexpensive, uses ordinary tests, and looks for the metabolic and hormonal conditions that both cause the symptom and threaten the heart. None of these results make the diagnosis, which comes from the history. They explain it, and they change what happens next.
| Test | What it looks for | Why it belongs here |
|---|---|---|
| Fasting glucose and HbA1c | Prediabetes and diabetes | High blood sugar damages the small arteries and the small nerves the penis depends on |
| Lipid panel | LDL, HDL, triglycerides | Quantifies the atherosclerosis risk the symptom may be announcing |
| Morning total testosterone | Hypogonadism | Must be drawn early and confirmed on a second sample before anyone acts on it |
| LH and prolactin | Cause of a low testosterone | Separates a testicular problem from a pituitary one, which changes the treatment |
| TSH | Thyroid over- or underactivity | Both directions affect desire and erections, and both are easily corrected |
| Kidney and liver panel | Organ function | Advanced disease causes the symptom and limits which drugs are safe |
| Blood pressure | Hypertension | A leading vascular cause, and several of its treatments contribute too |
Blood sugar and lipids
Blood sugar comes first, because diabetes is both a common cause and a frequently missed one. A morning sample gives a fasting glucose measurement, and HbA1c adds an average of the past two to three months, so a normal fasting number does not close the question. Your clinician will also order a complete lipid panel. Men with elevated results should read up on the management of high cholesterol.
Testosterone, and why the timing of the draw matters
Testosterone testing is where work-ups most often go wrong. Levels peak in the early morning and fall through the day, so an afternoon sample can read low in a man whose morning level is normal. The draw should happen between about 7 and 11 a.m., ideally fasting, and a low result confirmed on a second morning sample. Illness, poor sleep, and heavy exercise push the number down temporarily. Anyone reading a report should first understand the meaning of a testosterone level.
If two morning samples are genuinely low, the next step is finding out why, which means measuring luteinizing hormone levels and a prolactin value. Low testosterone with high LH points to the testicles; low testosterone with a low or normal LH points upstream to the pituitary gland, where a raised prolactin can be the reason, sometimes from a small benign growth, sometimes from a medication. That distinction determines whether the answer is hormone replacement, a drug, or imaging.
Thyroid, kidney, liver, and blood pressure
Thyroid disease in either direction affects sexual function, and screening starts with a TSH measurement. Kidney function is checked with creatinine and an estimated glomerular filtration rate, since advanced kidney disease restricts drug choices. Liver enzymes matter for the same reason, so it helps to know what an ALT result means. Blood pressure deserves a proper measurement, because untreated hypertension damages the vessel lining directly; men new to the topic can start with a plain-language guide to high blood pressure.
Medications and substances that commonly contribute
Medication side effects are among the most common and most reversible causes of erectile dysfunction, and among the least discussed. The point is not to stop anything: several of the drugs below treat conditions far more dangerous than the side effect. It is to raise the issue with the prescriber, because most of these classes contain alternatives that behave differently.
- Thiazide diuretics and older beta blockers, both widely used for blood pressure
- Several antidepressants, particularly the SSRI class
- Antipsychotics and some anti-nausea drugs, which can raise prolactin
- Finasteride and dutasteride, used for hair loss and prostate enlargement
- Anti-androgen therapy used in prostate cancer treatment
- Opioid painkillers, which suppress testosterone production over time
- Heavy alcohol use, tobacco, cannabis, and anabolic steroids
Anabolic steroids deserve a mention because the effect is counterintuitive: supplemental androgens shut down the body’s own signal to the testicles, and the result after a cycle is often months of low testosterone and poor erections.
Psychological and relational contributors
Calling erectile dysfunction psychological is often heard as calling it imaginary. It is neither. The nervous system controls the plumbing, and anxiety produces a real physiological response: adrenaline constricts the very arteries that need to open. Performance anxiety is self-reinforcing, because one difficult episode makes the next more likely. Depression reduces desire directly, and several of its treatments reduce it further. Relationship conflict, work stress, and poor sleep register in the same system.
Two points follow. Psychological and physical causes coexist far more often than either occurs alone, so treating only one leaves a man disappointed. And psychological contributors respond to treatment: cognitive behavioral therapy, sex therapy, and couples counseling work alongside medication rather than instead of it.
Treatments, and how they actually work
PDE5 inhibitors
Sildenafil, tadalafil, vardenafil, and avanafil are the first-line drug treatment for erectile dysfunction, and they are widely misunderstood. They do not create arousal and do not produce an erection on their own. They block an enzyme called phosphodiesterase type 5, which breaks down the chemical messenger that keeps the smooth muscle relaxed. They do not start the signal; they stop it from being switched off too quickly.
Arousal is still required, and a man who takes a tablet and waits for something to happen will conclude that it failed. A heavy meal delays absorption of some of them. Tadalafil lasts far longer than the others, which is why it can be taken as a low daily dose rather than before sex. These drugs also normally need several attempts at an adequate dose before being judged ineffective.
The nitrate check, which is not optional
Anyone considering a PDE5 inhibitor must be asked about nitrates. Nitroglycerin tablets or spray, isosorbide mononitrate or dinitrate, and recreational nitrites known as poppers all act on the same nitric oxide pathway these drugs amplify, and combining them can cause a sudden, dangerous drop in blood pressure. This is an absolute contraindication, not a caution. The same conversation should cover alpha blockers, recent heart attack or stroke, and severe liver or kidney impairment. This is why these medicines are prescription-only.
Testosterone therapy: when it fits and when it does not
Testosterone therapy suits men with genuinely low levels confirmed on two morning samples together with matching symptoms, a combination clinicians call hypogonadism. In that group it can restore desire and improve response to other treatments. It is not a treatment for erectile dysfunction in men whose testosterone is normal, and it does not reliably fix erections even when the level is low, because it does nothing about narrowed arteries. Anyone starting it needs monitoring: therapy can raise red blood cell concentration, suppress fertility, and calls for prostate assessment in older men.
Other options
When tablets are unsuitable or insufficient, established alternatives exist. Vacuum erection devices draw blood in mechanically and hold it with a constriction ring. Injectable alprostadil, given with a very fine needle, works independently of the nerve signal and helps men whose nerves are damaged. A urethral suppository exists as well, and penile implants are a surgical option with high satisfaction rates. Alongside these, the least glamorous interventions carry real weight: weight loss, stopping smoking, treating sleep apnea, and aerobic exercise.
Unregulated online products, and why they are dangerous
Products sold online and in gas stations as natural male enhancement occupy a category of their own. The U.S. Food and Drug Administration maintains a running list of them found to contain undeclared prescription drug ingredients, usually sildenafil or tadalafil, at unknown doses.
The danger is precise. A man who avoided a prescription because he takes nitrates for angina, then buys a herbal capsule believing it contains no drug, is exposed to exactly the interaction that prescription screening exists to prevent. The agency notes that the products it has identified are only a fraction of what is on the market.
When to see a doctor
Erectile dysfunction is worth raising with a clinician in almost every case, if only to rule out the vascular and metabolic causes. Some situations deserve faster attention than others.
- Difficulty that has persisted for three months or more, in any age group
- A sudden change, especially under 40, which more often has a treatable single cause
- Morning erections that have gradually disappeared, which points toward a physical driver
- Accompanying chest pain, breathlessness on exertion, or leg pain when walking
- Loss of desire, breast enlargement, shrinking testicles, or loss of body hair
- Onset within weeks of starting a new medication
- A painful erection lasting more than four hours, which is a medical emergency
The visit is routine: this is one of the most frequent reasons men consult a primary care physician or urologist.
Latest scientific advances
Research over the last three years has strengthened the case for treating erectile dysfunction as a whole-body signal rather than an isolated complaint. Here is what the recent work found, in plain terms.
New erection problems are common after a heart attack
A 2026 review pooling five studies of men with no previous erection problems found that a large majority, roughly two out of three, developed them after a first heart attack, usually within six months. What this means for you: if erections change after a cardiac event, that is a recognized part of recovery rather than a personal failure, and it is worth raising at a follow-up appointment. The studies were few and differed considerably, so the exact proportion is uncertain even though the direction is clear.
Cardiac rehabilitation improves erections, modestly
A 2024 pooled analysis of six studies in men with heart disease found that supervised cardiac rehabilitation, a structured program of monitored exercise and lifestyle coaching, produced a small but real improvement compared with usual care. What this means for you: the exercise program prescribed for your heart works on the same vessels involved in erections. The effect was modest and the studies small, so this supports rehabilitation as an addition rather than a treatment in itself.
In diabetes, the modifiable risks are the familiar ones
A 2024 systematic review pooling 58 studies and nearly 67,000 men with diabetes identified the factors that most strongly track with erection problems: higher long-term blood sugar, longer diabetes duration, smoking, high blood pressure, existing cardiovascular disease, nerve and kidney complications, and depression. What this means for you: almost every item on that list is something a work-up can measure and a treatment plan can act on. It shows which factors travel together rather than proving that changing one changes the other.
Not all blood pressure drugs behave the same way
Beta blockers have long carried a reputation for causing erection problems. A 2025 pooled analysis of four randomized trials found that nebivolol, a newer agent that also relaxes blood vessels, scored better on erectile function than the older metoprolol. What this means for you: if a blood pressure medication seems to be the trigger, an alternative may exist within the same family, and that is a conversation for the prescriber rather than a reason to stop treatment. The trials were few, so this informs the discussion rather than settling it.
Guidelines keep tightening the rules on testosterone
A major 2025 guideline update on male sexual and reproductive health reaffirmed that testosterone therapy belongs to men who meet clear criteria for low levels combined with matching symptoms, and that treatment needs structured follow-up. It also set out a stepwise approach based on how invasive each option is and what the patient wants. What this means for you: a good consultation starts with confirming the cause, not with a prescription pad.
Glossary
| Term | Definition |
|---|---|
| Endothelium | The single-cell lining on the inside of every blood vessel. It releases the signals that tell an artery to widen or narrow. |
| Endothelial dysfunction | The state in which that lining loses its ability to make arteries relax on demand. It is one of the earliest stages of cardiovascular disease and shows up in the smallest vessels first. |
| Corpora cavernosa | The two cylinders of spongy tissue running along the penis that fill with blood to produce an erection. |
| Nitric oxide | A short-lived gas released by nerves and by the vessel lining that relaxes smooth muscle and allows blood to flow in. |
| PDE5 inhibitor | Phosphodiesterase type 5 inhibitor. A class of prescription drugs, including sildenafil and tadalafil, that prevents the breakdown of the relaxation signal so an erection can be sustained. Arousal is still required. |
| Nitrate | A class of heart medication, such as nitroglycerin, used for angina. It must never be combined with a PDE5 inhibitor, because together they can drop blood pressure dangerously. |
| Hypogonadism | Persistently low testosterone confirmed on two morning blood samples, together with symptoms such as low desire, fatigue, or loss of body hair. |
| Luteinizing hormone (LH) | A pituitary hormone that tells the testicles to make testosterone. Its level shows whether a low testosterone comes from the testicles or from the pituitary gland. |
| Prolactin | A pituitary hormone. When elevated, it suppresses testosterone and desire, sometimes because of a medication and sometimes because of a small benign pituitary growth. |
| HbA1c | A blood test reflecting average blood sugar over roughly the previous two to three months, used to detect and monitor diabetes. |
Frequently asked questions
What is the main cause of erectile dysfunction?
In men over about 40, the most common single cause is reduced blood flow from atherosclerosis and endothelial dysfunction, the same process behind heart disease. Diabetes is next, acting on both vessels and nerves. Medication side effects account for a substantial share and are often overlooked. Below about 40, psychological factors and medication effects are proportionally more common than advanced vascular disease, although vascular causes still occur. Most men who are properly assessed turn out to have more than one contributor, which is why a single explanation is rarely the whole story.
Can I test for erectile dysfunction at home?
There is no home test that diagnoses it, because the diagnosis comes from the history rather than from a measurement. What you can do at home is gather useful information. Note whether the difficulty is constant or situational, whether morning erections still occur, when it started, and whether it followed a new medication. Home blood pressure readings and at-home sampling kits for glucose, lipids, and testosterone can contribute real data, provided a testosterone sample is collected in the early morning. Those results still need interpretation alongside your history and examination.
Which medications are most likely to cause erectile dysfunction?
The classes most often implicated are thiazide diuretics and older beta blockers used for blood pressure, SSRI antidepressants, antipsychotics, finasteride and dutasteride, anti-androgen therapy for prostate cancer, and opioid painkillers. Timing is the strongest clue: difficulty that begins within weeks of starting a new drug deserves a conversation with the prescriber. Do not stop a cardiovascular or psychiatric medication on your own, since the underlying condition is usually more dangerous than the side effect. Within most of these classes there are alternatives with a different profile.
Is erectile dysfunction reversible?
Frequently, yes, at least in part. When the cause is a medication, a thyroid problem, elevated prolactin, or confirmed low testosterone, correcting it often improves the symptom substantially. When the cause is early vascular disease, weight loss, stopping smoking, exercise, and good control of blood pressure, blood sugar, and cholesterol can improve erectile function measurably. When arteries are extensively narrowed or nerves are damaged, full reversal is less likely, but effective treatment still exists. Reversibility depends on the cause, which is the practical argument for identifying it early.
What causes erectile dysfunction in young men?
In younger men the picture skews toward psychological and lifestyle drivers: performance anxiety, depression, relationship difficulties, poor sleep, heavy alcohol or cannabis use, and antidepressant side effects. Anabolic steroid use is an important and under-reported cause. That said, a new problem in a young man should not be dismissed, because early metabolic disease, hormonal conditions, and rare vascular problems do occur, and a young man with a vascular cause has the most to gain from finding it early. A basic screen is reasonable at any age.
Does this mean I will have a heart attack?
No. Erection problems raise the statistical likelihood that vascular disease is present, but they do not predict that an event will happen, and many men with them never have a cardiac problem. The useful framing is that it is a prompt to check. Blood pressure, blood sugar, cholesterol, and family history together give a far better picture of risk than the symptom alone. Men who investigate and address what they find are acting on information that arrived early, which is the whole value of the warning.
Sources
- National Institute of Diabetes and Digestive and Kidney Diseases — Erectile Dysfunction (ED) — NIDDK, National Institutes of Health — niddk.nih.gov
- Cleveland Clinic — Erectile Dysfunction (ED): Causes, Diagnosis and Treatment — my.clevelandclinic.org
- U.S. Food and Drug Administration — Sexual Enhancement and Energy Product Notifications — fda.gov
- Sama C, Ajibade A, Al-Saed M, et al. — De novo erectile dysfunction after first myocardial infarction: systematic review and meta-analysis — The Journal of Sexual Medicine, 2026 — doi.org/10.1093/jsxmed/qdaf338
- Sadeghi M, Askari A, Bostan F, et al. — Impact of cardiac rehabilitation on erectile dysfunction in cardiovascular patients: a systematic review and meta-analysis — Sexual Medicine, 2024 — doi.org/10.1093/sexmed/qfae043
- Dilixiati D, Waili A, Tuerxunmaimaiti A, et al. — Risk factors for erectile dysfunction in diabetes mellitus: a systematic review and meta-analysis — Frontiers in Endocrinology, 2024 — doi.org/10.3389/fendo.2024.1368079
- Lu Y, Li L, Li Q, et al. — Effect of nebivolol on erectile function: a systematic review and meta-analysis of randomized controlled trials — The Journal of Sexual Medicine, 2025 — doi.org/10.1093/jsxmed/qdae189
- Salonia A, Capogrosso P, Boeri L, et al. — European Association of Urology Guidelines on Male Sexual and Reproductive Health: 2025 Update on Male Hypogonadism, Erectile Dysfunction, Premature Ejaculation and Peyronie’s Disease — European Urology, 2025 — doi.org/10.1016/j.eururo.2025.04.010
Further reading
- Readers checking their thyroid results should consult a guide to hypothyroidism
- Men with reduced kidney function can review an overview of chronic kidney disease
- Anyone with an abnormal lipid report should read an explanation of triglyceride levels
- Men with borderline blood sugar can explore the early signs of insulin resistance
- Men weighing prostate treatment options should read a guide to prostate cancer
Understand your lab results with BloodSense
A new episode of erectile dysfunction usually sends a man home with a stack of lab results rather than a clear explanation. BloodSense reads those reports in plain English and shows how the pieces fit together: what your fasting glucose and HbA1c suggest about blood sugar, what your lipid panel says about your arteries, whether a morning testosterone was drawn at the right time, and what TSH, kidney and liver values add. It helps you understand your own numbers and ask better questions at your next appointment. It does not diagnose, and it does not replace your doctor.



