Erectile dysfunction is one of the few symptoms that reliably shows up before a heart attack rather than after one. In a landmark analysis of the Prostate Cancer Prevention Trial, men who developed ED had a roughly 25% higher risk of a subsequent cardiovascular event over seven years, and the ED preceded the cardiac diagnosis by an average of 3–5 years (Thompson et al., JAMA 2005).
That's not a coincidence. It's anatomy.
Why the penis is a stress test for the whole vascular system
The penile arteries are about 1–2 mm in diameter. The coronary arteries are 3–4 mm. The carotids are 5–7 mm. When atherosclerotic plaque or endothelial dysfunction starts narrowing arteries throughout the body, the smallest vessels lose function first.
That's the artery size hypothesis, and it's held up across two decades of vascular research (Montorsi et al., European Urology 2003). A firm erection requires roughly a threefold increase in penile arterial blood flow, driven by nitric oxide–mediated smooth muscle relaxation. If the endothelium — the single-cell lining of every blood vessel — isn't producing enough nitric oxide, the erection fails before the coronary flow does.
In plain terms: ED is often the first outward sign that your endothelium is under strain.
What counts as vascular ED versus hormonal ED — the clinical fork in the road
Not every case of ED is a vascular alarm. The differential typically runs in four buckets:
- Vascular — atherosclerosis, endothelial dysfunction, hypertension damage
- Hormonal — low testosterone, elevated prolactin, thyroid dysfunction
- Neurogenic — diabetic neuropathy, pelvic surgery, spinal issues
- Psychogenic — performance anxiety, depression, relationship stress
A useful bedside clue: men with primarily psychogenic or hormonal ED usually still get spontaneous nocturnal and early-morning erections. Men with vascular ED typically lose those too, because the problem isn't desire or signaling — it's flow.
That distinction matters because the workup, and the treatment, diverge sharply from there.
The labs worth having before a serious ED workup
If you're going to investigate ED properly rather than just chase a PDE5 inhibitor prescription, the panel below is what a thorough vascular-and-hormonal workup would typically include. Not every marker is essential for every man, but this is the map.
Cardiometabolic markers
- Fasting glucose and HbA1c. Diabetes is one of the strongest independent risk factors for ED — up to 50% of diabetic men have ED, often a decade earlier than non-diabetic peers (Malavige & Levy, Journal of Sexual Medicine 2009). An HbA1c above 5.7% deserves attention.
- Lipid panel with ApoB. Standard LDL-C tells you cholesterol concentration; ApoB tells you particle number, which correlates more tightly with atherosclerotic risk. An ApoB above ~90 mg/dL in a man with ED is a meaningful signal.
- Lp(a). Genetically determined, measured once in a lifetime. Elevated Lp(a) (>50 mg/dL or >125 nmol/L) raises cardiovascular risk independent of LDL and is worth knowing.
- hs-CRP. A nonspecific but useful marker of vascular inflammation. Above 2.0 mg/L suggests elevated cardiovascular risk in the AHA framework.
- Blood pressure and resting heart rate. Not a lab, but the cheapest and most predictive data point in the entire workup.
Hormonal markers
- Total testosterone, drawn between 7–10 a.m., ideally repeated on a second morning if low. The clinical threshold for hypogonadism in most guidelines is around 300 ng/dL, though symptoms often begin at higher levels.
- Free testosterone or SHBG, because a normal total T with high SHBG can still leave you functionally low.
- Estradiol (sensitive assay), LH, prolactin, and TSH to rule out pituitary, thyroid, or estrogen-related contributors.
Optional but useful
- Fasting insulin and a HOMA-IR calculation for early insulin resistance
- Homocysteine in men with a strong family cardiac history
- Vitamin D, given its associations with both endothelial function and testosterone
{callout: The clinical bottom line} If a man over 40 develops ED without an obvious psychological trigger, the vascular workup is not optional — it's the point.
What the pattern usually looks like — reading the panel
A classic vascular-ED panel in a 45-year-old man might look like: HbA1c 5.9%, ApoB 105, hs-CRP 3.1, blood pressure 138/88, testosterone a perfectly normal 550 ng/dL. Nothing here is catastrophic on its own. Together, they describe an endothelium under sustained metabolic and inflammatory stress, and they explain the ED far better than any hormone number would.
Contrast that with a 38-year-old with morning testosterone of 240 ng/dL, elevated SHBG, low-normal free T, and a pristine lipid and glucose panel. Same symptom, entirely different mechanism, entirely different treatment path.
This is why "just try the little blue pill" is medicine in the dark. PDE5 inhibitors (sildenafil, tadalafil) work by amplifying the nitric oxide pathway — they can mask a vascular problem for years without addressing it.
ED is a symptom. The lab panel is what turns it into a diagnosis.
What actually moves the needle when the cause is vascular
The interventions with the strongest evidence for improving both erectile function and cardiovascular outcomes overlap almost perfectly:
1. Aerobic exercise, 160+ minutes per week. A meta-analysis in Sexual Medicine Reviews (Gerbild et al., 2018) found supervised aerobic training produced clinically meaningful improvements in IIEF scores across multiple trials. 2. Weight loss of 5–10% of body weight in men with obesity or metabolic syndrome, which improves both endothelial function and free testosterone. 3. Blood pressure control, ideally below 130/80, without relying on beta-blockers or thiazides as first-line agents when possible (both can worsen ED). 4. ApoB reduction via diet, statins, or other lipid therapy when indicated. 5. Sleep apnea evaluation in any man who snores, has a thick neck, or wakes unrefreshed — untreated OSA independently drives both ED and cardiac risk.
PDE5 inhibitors still have a role, and daily low-dose tadalafil in particular has some data suggesting endothelial benefits beyond symptom relief. But they work best layered on top of the vascular fixes, not instead of them.
When testosterone is actually the answer
If the workup shows genuinely low morning testosterone on repeated measurement, alongside classic symptoms (low libido, fatigue, loss of morning erections, mood flattening), then hormone optimization becomes part of the conversation — after the cardiovascular picture is understood, not before.
Testosterone therapy in appropriately selected men can improve libido and erectile quality, though the effect on erections specifically is more modest than most patients expect (Corona et al., European Urology 2017). It's not a substitute for treating vascular disease, and in men with untreated cardiovascular risk factors, the sequencing matters.
The takeaway
ED after 40 is a data point about your entire vascular system, not just your sex life. The men who do best are the ones who treat the symptom as the beginning of a workup, not the end of one — and who get real numbers on the table before deciding what to do next.
The labs above are the ones worth asking about. Whether you run them through us or through your primary care physician matters less than actually running them.
Sexual health, prescribed and discreet.
Compounded sildenafil, tadalafil, and combination protocols. US-licensed clinician oversight. Shipped discreetly.
See your options →Editorial disclosure: This article is for informational purposes only and does not constitute medical advice. All treatments at DirectCare AI are prescribed by US-licensed clinicians based on individual medical evaluation. Compounded medications are not FDA-approved and are not reviewed by the FDA for safety, effectiveness, or quality. Always consult a US-licensed clinician before starting or changing any therapy.