- 01A symptom with a cause vs a problem a pill fixes
A PDE5 inhibitor restores the erection but leaves the cause untouched. Because ED is often the first sign of narrowing arteries, high blood sugar or low testosterone, the blood tests (HbA1c, lipids, morning testosterone) are what find the condition that needs treating, sometimes years before it would otherwise show.
Erectile dysfunction (ED), once called impotence, is one of the most common reasons men see a doctor. The penis depends on small arteries, steady nerve signals and enough testosterone, so erection problems often show up early when any of those starts to fail. In the Massachusetts Male Aging Study, 52% of men aged 40 to 70 reported some degree of ED: 17% minimal, 25% moderate and 10% complete 2. Tablets restore erections in many men, and blood tests find the cause behind them, often narrowed arteries, high blood sugar or low testosterone.
What erectile dysfunction is
Erectile dysfunction is a persistent difficulty getting an erection, or keeping one long enough, for satisfying sex. Doctors usually look for a pattern that has lasted at least three months. A bad night after drinking, during a stressful week or with a new partner is ordinary and does not count.
ED becomes more common with age, but age alone is rarely the full explanation. The conditions that build up with age (narrowed arteries, raised blood sugar, high blood pressure, falling testosterone, more prescription medicines) are what damage erections, which is why the workup looks for them.
It might be a sign of a health condition that can be treated.
How an erection works, and where it breaks
How an erection happens, step by step
Most cases come from one or more of five sources, and stress, anxiety and relationship strain can sit on top of any of them. The NHS lists high blood pressure, high cholesterol, diabetes, depression, anxiety and hormone problems among the common causes 1.
| Source | Common examples |
|---|---|
| Blood vessel disease | Narrowed arteries from high cholesterol, high blood pressure or smoking; the most common physical cause |
| Diabetes | Damages both the blood vessels and the nerves that start an erection |
| Hormones | Low testosterone; less often high prolactin or thyroid disease |
| Nerve damage | Pelvic or prostate surgery, spinal injury, multiple sclerosis |
| Medicines and substances | Some antidepressants and blood pressure drugs, finasteride, opioids, heavy drinking, cannabis |
Is it physical or psychological? The morning erection clue
Healthy men have erections during sleep, several times a night, and often wake with one. Those night-time erections run on the same blood vessels and nerves but bypass performance pressure. If morning erections are still firm, the hardware is usually working, which points toward a psychological cause. If they have faded along with erections during sex, a physical cause is more likely. Erections that get weaker gradually, in every situation, usually point to the blood vessels rather than to stress.
| Pattern | Points toward a psychological cause | Points toward a physical cause |
|---|---|---|
| Onset | Sudden, often after a stressful event | Gradual, over months or years |
| Situations | Fine alone or with some partners, not others | Weak in every situation |
| Morning erections | Still present and firm | Rare or weaker than before |
| Desire | Usually normal | Normal, or low if testosterone is low |
| Age | More often in younger men | More often after 40 |
The clue suggests a likely cause but cannot confirm it. Physical and psychological causes also feed each other: a man whose erections weaken because of narrowing arteries soon starts to worry about sex, and that performance anxiety makes erections worse still. If worry and low mood are part of the picture, the page on anxiety covers what helps.
Why erectile dysfunction can be an early warning for the heart
The penile arteries are about 1 to 2 mm across, against 3 to 4 mm for the coronary arteries that feed the heart. The artery-size hypothesis holds that the same slow build-up of plaque restricts flow in the smaller vessel first, so ED often comes before heart symptoms, typically by two to three years 11. A meta-analysis of 14 prospective studies covering about 92,000 men found that ED was linked to a higher risk of every major cardiovascular outcome 3.
| Outcome | Higher risk in men with ED (pooled relative risk 3) |
|---|---|
| Any cardiovascular event | 44% |
| Heart attack | 62% |
| Stroke | 39% |
| Death from any cause | 25% |
In a long-running community study, the link was strongest in younger men, those in their 40s 12. The Princeton III consensus advises that every man with ED, even without heart symptoms, has his cardiovascular risk assessed 13: blood pressure, blood sugar, cholesterol, smoking and waist size. Our heart health hub explains how those pieces add up to a risk score.
Which blood tests to get for erectile dysfunction
The British Society for Sexual Medicine recommends the same core set for every man with ED: a measure of blood sugar (HbA1c or fasting glucose), a lipid panel and a morning total testosterone 6. Other tests are added when the history or the first results point to them.
| Test | Why it matters for erections | Result that matters | Read more |
|---|---|---|---|
| HbA1c (average blood sugar over 2 to 3 months) or fasting glucose | Finds diabetes or prediabetes, a leading cause of ED | 5.7% to 6.4% (39 to 47 mmol/mol) is prediabetes; 6.5% (48 mmol/mol) or higher is diabetes, to be confirmed by a doctor. UK labs use 42 to 47 mmol/mol for prediabetes | HbA1c |
| Lipid panel (cholesterol and triglycerides) | High LDL and non-HDL cholesterol narrow arteries | Read against your overall heart risk | How to read your lipid panel |
| Total testosterone (morning, fasting) | Low levels reduce desire and can weaken erections | Under 264 ng/dL (9.2 nmol/L) on two morning tests is low 5 | Testosterone, total |
| SHBG and free testosterone | SHBG is a protein that holds on to testosterone; free testosterone is the loose, usable part. Needed when total testosterone is borderline, or in obesity and older age | Free testosterone is calculated from total testosterone, SHBG and albumin | SHBG |
| LH and prolactin | LH is the pituitary signal that tells the testes to make testosterone; prolactin, when high, can switch testosterone off. Together they show where low testosterone starts | Raised prolactin needs a repeat and a doctor's review | High prolactin |
| TSH, kidney and liver tests | Thyroid, kidney and liver disease can all affect erections | Added when symptoms or other results suggest them | Male hormone panel explained |
Markers to read beside erectile dysfunction
Reading your testosterone result
Testosterone peaks in the morning and can drop after a meal, so the Endocrine Society advises a fasting morning sample and a repeat before anyone diagnoses low testosterone 5. A single low result after a late night, an illness or a big breakfast is common and often normal on the second test. The Endocrine Society uses 264 ng/dL (9.2 nmol/L) as the lower limit for healthy young men 5. The British Society for Sexual Medicine treats levels under 8 nmol/L (about 230 ng/dL) as clearly low and 8 to 12 nmol/L (about 230 to 350 ng/dL) as a grey zone where symptoms decide 6. If your lab uses the other unit, the testosterone converter switches between ng/dL and nmol/L.
Where an example morning testosterone of 10.5 nmol/L fallsnmol/L
CalculatorFree testosterone calculatorGot total testosterone, SHBG and albumin (a common blood protein on most chemistry panels) on one report? Turn them into a free testosterone.Work it out Low testosterone tends to lower sex drive more than it weakens erections directly. Testosterone therapy improves desire in men with confirmed low levels, but its effect on erections is modest, so it is offered when a deficiency is confirmed rather than as a general ED treatment 5. Some men with low testosterone and ED are prescribed a PDE5 inhibitor alongside it; that is a decision for their doctor. Symptoms and treatment are covered on the low testosterone page, and TRT blood work lists the monitoring tests if therapy starts.
Reading your blood sugar and cholesterol results
Diabetes damages erections twice over, through the nitric oxide signal in artery walls and through the nerves that start an erection. A meta-analysis of 145 studies found ED in about half of men with diabetes, with more than three times the odds seen in men without diabetes 10. ED is sometimes the first symptom that leads to a diabetes diagnosis. An HbA1c in the prediabetes range is worth acting on early, and an HbA1c of 6.5% or higher is in the diabetes range and should be confirmed and managed with your doctor. For men who already have type 2 diabetes, tighter glucose and blood pressure control protect the small vessels that erections depend on.
On a lipid panel, the results that matter most for arteries are LDL cholesterol, non-HDL cholesterol and triglycerides. Apolipoprotein B (ApoB) counts the cholesterol-carrying particles directly, and it can run high when LDL looks fine; ApoB vs LDL explains when the two disagree, and high ApoB covers what a raised count means. When ED may be signalling vessel trouble, that is a good reason to go over cholesterol and overall heart risk with a doctor.
Next step: if your HbA1c is 5.7% or higher, or your LDL or ApoB is above your lab's range, ask your doctor for a cardiovascular risk assessment and a plan, then recheck HbA1c and a lipid panel about 3 months after any change in diet, exercise or medicine.
Sudden ED, and ED in your 20s and 30s
Erectile dysfunction that appears over days or weeks usually has a trigger: a new medicine, a stressful event, heavy drinking, recreational drugs, a recent illness or a relationship change. Look at what changed in the month before. If a new prescription medicine is the likely trigger, raise it with the prescriber rather than stopping it yourself. Sudden ED with low desire, new headaches, vision changes or breast swelling can point to high prolactin from a pituitary problem and needs a prompt doctor's appointment, not only a blood test. Men who use or have recently stopped anabolic steroids, which shut down the body's own testosterone production, should also have their hormones checked.
ED is not only a problem of older men: at one Italian clinic, about one in four men newly diagnosed with ED was under 40 9. Psychological causes are more common in younger men, but physical causes are found often enough that the same basic checks apply. Smoking, heavy cannabis use, poor sleep and very low body fat from extreme training are worth raising with a doctor.
Treatment: what works and how well
Treatment starts with the cause. That can mean getting blood pressure, blood sugar or cholesterol under control, or switching a medicine that is known to affect erections, which is always done with the prescriber and never by stopping a drug on your own. In men who already need a statin for their heart, a meta-analysis of randomized trials found a small improvement in erectile function scores 7; statins are not prescribed for ED itself.
- 1First line: PDE5 inhibitorsSildenafil (Viagra), tadalafil (Cialis), vardenafil and avanafil help many men 6. They work only with sexual arousal, and they differ mainly in how fast they start and how long they last. A doctor or pharmacist checks your heart and your other medicines first.
- 2Second line: devices and local treatmentsVacuum erection devices, alprostadil as a urethral pellet or cream, and injections into the side of the penis work without the nitric oxide pathway, so they can help when tablets fail.
- 3Third line: penile implantsAn inflatable implant, placed by a urologist, is an option when other treatments have not worked, and most men who have one report being satisfied 6.
- 4Alongside any of these: psychosexual therapyCognitive behavioral therapy or sex therapy, ideally with a partner, treats performance anxiety and helps men return to sex confidently after a long gap.
Two amino acid supplements have been studied in mild ED. In a small trial of 24 men, more reported harder erections on L-citrulline than on placebo 14, and a 2019 meta-analysis of small trials found L-arginine improved erectile function scores in mild to moderate ED compared with placebo 15. The trials were small, neither supplement has been shown to work as well as prescription tablets, and neither replaces finding the cause. Check with your doctor before trying one, especially if you take blood pressure medicines.
What you can change yourself
The strongest evidence for lifestyle change comes from a randomized trial of 110 obese men with ED who spent two years losing weight and exercising more 4. The changes that helped erections were the same changes that lower heart risk.
- Lose weight if your waist is large: belly fat lowers testosterone and drives metabolic syndrome.
- Exercise most days, with both aerobic work and strength training.
- Stop smoking, which damages the artery lining that makes nitric oxide.
- Keep alcohol to two drinks a day or fewer, and avoid drinking heavily before sex.
- Get blood pressure checked and treated: the high blood pressure page covers targets.
- Sleep seven to nine hours; short sleep and untreated sleep apnea lower testosterone.
- Try pelvic floor exercises, which helped men keep erections in a randomized trial 16.
- If you cycle long distances, use a saddle that takes pressure off the area behind the scrotum.
For the hormone side of this list, how to increase testosterone covers which habits move testosterone and by how much.
When to see a doctor
See a doctor if erection problems have lasted more than a few weeks or keep coming back. Doctors discuss ED every day. A short visit usually covers blood pressure, pulse and waist, a genital or prostate examination depending on age and symptoms, and the three core blood tests. Depending on the results you may be referred to urology, endocrinology, cardiology or a psychosexual therapist. Bring a list of every medicine and supplement you take.
- Go sooner if ED comes with chest pain, breathlessness on exertion or calf pain on walking.
- Go sooner if ED comes with low libido, tiredness, breast swelling, headaches or changes in vision, which can point to a hormone or pituitary problem.
- Go sooner if erections have become painful or bent, which can be Peyronie's disease.
- An erection lasting more than 4 hours (priapism) is an emergency: go to the emergency department, even if it is not painful.

An erection lasting more than 4 hours is a medical emergency: go to the emergency department. Erectile dysfunction with chest pain, breathlessness or calf pain on walking needs prompt medical review, and chest pain at rest needs a 911 call. Never take ED tablets with nitrate medicines or poppers, and never stop or change a prescribed medicine on your own because of ED; any change is made with your doctor.
Citations
- NHS. Erectile dysfunction (impotence).
- Feldman HA, Goldstein I, Hatzichristou DG, Krane RJ, McKinlay JB. Impotence and its medical and psychosocial correlates: results of the Massachusetts Male Aging Study. J Urol. 1994;151(1):54-61.
- Vlachopoulos CV, Terentes-Printzios DG, Ioakeimidis NK, Aznaouridis KA, Stefanadis CI. Prediction of cardiovascular events and all-cause mortality with erectile dysfunction: a systematic review and meta-analysis of cohort studies. Circ Cardiovasc Qual Outcomes. 2013;6(1):99-109.
- Esposito K, Giugliano F, Di Palo C, et al. Effect of lifestyle changes on erectile dysfunction in obese men: a randomized controlled trial. JAMA. 2004;291(24):2978-2984.
- Bhasin S, Brito JP, Cunningham GR, et al. Testosterone therapy in men with hypogonadism: an Endocrine Society clinical practice guideline. J Clin Endocrinol Metab. 2018;103(5):1715-1744.
- Hackett G, Kirby M, Wylie K, et al. British Society for Sexual Medicine guidelines on the management of erectile dysfunction in men, 2017. J Sex Med. 2018;15(4):430-457.
- Kostis JB, Dobrzynski JM. The effect of statins on erectile dysfunction: a meta-analysis of randomized trials. J Sex Med. 2014;11(7):1626-1635.
- US Food and Drug Administration. Sexual enhancement and energy product notifications (health fraud).
- Capogrosso P, Colicchia M, Ventimiglia E, et al. One patient out of four with newly diagnosed erectile dysfunction is a young man: worrisome picture from the everyday clinical practice. J Sex Med. 2013;10(7):1833-1841.
- Kouidrat Y, Pizzol D, Cosco T, et al. High prevalence of erectile dysfunction in diabetes: a systematic review and meta-analysis of 145 studies. Diabet Med. 2017;34(9):1185-1192.
- Montorsi P, Ravagnani PM, Galli S, et al. The artery size hypothesis: a macrovascular link between erectile dysfunction and coronary artery disease. Am J Cardiol. 2005;96(12B):19M-23M.
- Inman BA, Sauver JL, Jacobson DJ, et al. A population-based, longitudinal study of erectile dysfunction and future coronary artery disease. Mayo Clin Proc. 2009;84(2):108-113.
- Nehra A, Jackson G, Miner M, et al. The Princeton III Consensus recommendations for the management of erectile dysfunction and cardiovascular disease. Mayo Clin Proc. 2012;87(8):766-778.
- Cormio L, De Siati M, Lorusso F, et al. Oral L-citrulline supplementation improves erection hardness in men with mild erectile dysfunction. Urology. 2011;77(1):119-122.
- Rhim HC, Kim MS, Park YJ, et al. The potential role of arginine supplements on erectile dysfunction: a systemic review and meta-analysis. J Sex Med. 2019;16(2):223-234.
- Dorey G, Speakman MJ, Feneley RC, et al. Randomised controlled trial of pelvic floor muscle exercises and manometric biofeedback for erectile dysfunction. Br J Gen Pract. 2004;54(508):819-825.
Educational context only, not medical advice or a diagnosis. Always discuss your results with a clinician.





