It's Not "Just Getting Older"

Something shifted. Maybe you noticed it over the past year or two — erections that are not as firm, not as reliable, or not as easy to maintain as they were at 30. Maybe morning erections have quietly disappeared. Maybe everything still works, but it takes more effort, more stimulation, or more mental focus than it used to. And you are not sure if this is normal aging or a sign that something is wrong.

Here is what most men do not hear: erection quality declining after 40 is common, but it is not inevitable — and it is almost never caused by one thing. A 2019 meta-analysis in The Journal of Sexual Medicine found that approximately 40% of men experience some degree of erectile difficulty by age 40, rising to 70% by age 70. But those numbers describe prevalence, not destiny. The majority of cases have identifiable, treatable causes — and many of those causes are the same conditions silently undermining your energy, body composition, and cardiovascular health.

This article covers the 7 most common medical reasons erections weaken after 40, what the research shows actually works, and the specific blood work that separates "I'm probably fine" from a real answer.

When to seek immediate evaluation

If you experienced a sudden, complete loss of erectile function (overnight, not gradual), it may indicate a vascular event, pelvic injury, or medication reaction. Sudden onset ED is medically different from gradual decline and should be evaluated promptly. Also seek care if ED is accompanied by pelvic pain, penile curvature that appeared recently, or difficulty urinating.

The 7 Most Common Reasons Erections Weaken After 40

These are ordered by how frequently they contribute to erectile decline in men ages 40 to 60. Most men have two or three of these factors working simultaneously — which is why single-intervention approaches (just taking a pill, just losing weight) often produce incomplete results.

1 Vascular Dysfunction

An erection is a hydraulic event. Arousal triggers nitric oxide release from nerve endings and endothelial cells in the penile arteries. Nitric oxide activates an enzyme (guanylate cyclase) that produces cyclic GMP, which relaxes smooth muscle and allows blood to fill the corpora cavernosa. Anything that impairs nitric oxide production, damages the endothelium, or stiffens arterial walls weakens this process.

After 40, endothelial function naturally declines — but the rate of decline is heavily influenced by modifiable factors: blood pressure, cholesterol, blood sugar, smoking, physical inactivity, and visceral fat. A landmark 2005 study in JAMA found that ED preceded a cardiovascular event by an average of 3 to 5 years in men who later developed heart disease. The penile arteries are 1 to 2 mm in diameter — roughly half the size of coronary arteries — so they show vascular damage first. Your erection is your earliest warning system. Read more about the connection between testosterone and blood pressure.

2 Declining Testosterone

Testosterone does not directly cause erections — that is a common misconception. What testosterone does is maintain the machinery that makes erections possible. It regulates nitric oxide synthase expression in penile tissue, maintains the structural integrity of smooth muscle in the corpora cavernosa, drives libido (the desire signal that initiates the erectile cascade), and supports the nerve signaling that sustains rigidity.

After age 30, total testosterone declines by approximately 1 to 2% per year, with free testosterone declining even faster due to rising SHBG. By 45, many men have lost 15 to 30% of the testosterone they had at their peak. A 2006 study in The Journal of Clinical Endocrinology & Metabolism found that men with testosterone below 300 ng/dL were 2.4 times more likely to report erectile dysfunction than men with levels above 400 ng/dL — even after adjusting for age, BMI, and comorbidities.

The pattern is distinctive: if your erection issues are accompanied by low energy, loss of drive, declining muscle mass, and vanished morning erections, the hormonal component needs to be evaluated. Take the low testosterone symptoms checklist and see how many boxes you check. Learn more about how TRT affects erectile dysfunction.

3 Metabolic Syndrome and Insulin Resistance

Metabolic syndrome — the cluster of elevated blood sugar, high blood pressure, excess abdominal fat, and abnormal cholesterol — is one of the most potent predictors of erectile dysfunction. A 2014 meta-analysis in The Journal of Sexual Medicine found that men with metabolic syndrome were 2.6 times more likely to have ED than metabolically healthy men.

The mechanisms are multiple and compounding. Insulin resistance damages endothelial cells directly, impairing nitric oxide production. Visceral fat produces inflammatory cytokines that stiffen arterial walls. Hyperinsulinemia suppresses testosterone via the hypothalamic-pituitary-gonadal axis. And the visceral fat itself contains aromatase, an enzyme that converts testosterone to estradiol — further depleting the hormone that maintains erectile tissue.

If you are gaining belly fat despite exercise, struggling to lose weight, or experiencing energy crashes after meals, your metabolic health is a primary suspect. A fasting insulin level and HbA1c — not just fasting glucose — are essential. For more on this connection, see our guide on low testosterone and diabetes.

4 Medication Side Effects

After 40, men are far more likely to be taking prescription medications — and several common drug classes have well-documented effects on erectile function. This is one of the most overlooked causes because men (and their providers) often do not connect the timing of a new medication with the onset of erection problems.

The most common offenders include: beta-blockers for blood pressure (especially older, non-selective agents like atenolol and propranolol), thiazide diuretics, SSRIs and SNRIs for depression and anxiety, 5-alpha reductase inhibitors for hair loss or prostate enlargement (finasteride, dutasteride), antihistamines, opioid pain medications, and some statins. A 2016 review in The Journal of Urology found that antihypertensives and antidepressants together accounted for medication-related ED in up to 25% of men over 40 seeking treatment.

If your erectile decline coincided with starting a new medication — even one you started 3 to 6 months ago — discuss alternatives with your prescribing provider. ACE inhibitors, ARBs, and nebivolol (a vasodilating beta-blocker) have more favorable sexual side effect profiles. For SSRIs, bupropion is the antidepressant with the lowest rate of sexual dysfunction.

5 Chronic Stress and Cortisol Elevation

The sympathetic nervous system (fight-or-flight) and the parasympathetic nervous system (rest-and-digest) are antagonistic when it comes to erections. Erections require parasympathetic dominance — relaxation, safety, blood flow to the periphery. Chronic stress keeps you locked in sympathetic overdrive, which constricts peripheral blood vessels, elevates adrenaline, and diverts blood flow away from non-essential functions — including the erectile mechanism.

Beyond the acute nervous system effect, chronic cortisol elevation directly suppresses testosterone production. A 2016 study in Psychoneuroendocrinology demonstrated that men with sustained elevated cortisol had 30% lower free testosterone than controls. The result is a double hit: less libido from lower testosterone, and a less responsive vascular system from chronic sympathetic activation.

This pattern is especially common in men in high-pressure careers, men going through major life transitions (divorce, financial stress, caregiving), and men who describe themselves as "always on." If you notice that erections work fine on vacation or on weekends but fail during stressful work periods, the autonomic nervous system is telling you something. For more on this topic, read about high cortisol symptoms in men.

Think It Might Be Hormonal?

Heyday's at-home lab kit tests testosterone, metabolic markers, and cardiovascular risk factors — the same panel that identifies the most common causes of erectile decline. Results reviewed by a licensed provider.

Take The Quiz →

6 Sleep Quality and Sleep Apnea

Testosterone production is tightly linked to sleep architecture. The majority of daily testosterone secretion occurs during deep sleep (N3 slow-wave sleep), and disrupted sleep directly suppresses both testosterone production and nocturnal erections. A 2011 study in JAMA demonstrated that restricting men to 5 hours of sleep for one week reduced testosterone levels by 10 to 15% — equivalent to aging 10 to 15 years hormonally.

Obstructive sleep apnea (OSA) compounds this problem dramatically. An estimated 1 in 4 men over 40 has at least mild OSA, and the majority do not know it. OSA fragments sleep, prevents adequate time in deep sleep, raises nocturnal cortisol, and causes intermittent hypoxia — all of which impair erectile function. A 2009 study in The Journal of Sexual Medicine found that 69% of men diagnosed with OSA also had ED, and that CPAP treatment improved erectile function scores by an average of 28% over 3 months.

If you snore, wake with a dry mouth, have a collar size above 17 inches, or your partner has observed you stop breathing at night, sleep apnea should be evaluated before attributing erectile issues to anything else. Learn more about the relationship between testosterone and sleep apnea and how TRT affects sleep quality.

7 Pelvic Floor Dysfunction

The pelvic floor is the group of muscles that runs from the pubic bone to the tailbone, supporting the bladder, bowel, and — critically for erectile function — the base of the penis. The ischiocavernosus and bulbospongiosus muscles compress the base of the corpora cavernosa and corpus spongiosum during an erection, trapping blood and creating rigidity. When these muscles weaken, erection firmness decreases and sustaining an erection becomes harder.

Pelvic floor weakness in men increases with age, prolonged sitting (desk work, driving), lower back or hip injuries, prostate procedures, and chronic constipation. A 2005 randomized controlled trial in BJU International (the "Dorey study") found that 40% of men with ED who performed pelvic floor exercises for 3 months regained normal erectile function — and another 35% showed significant improvement. That is a 75% response rate from an intervention with zero side effects, zero cost, and zero prescriptions.

Despite this evidence, pelvic floor training for men remains almost entirely unknown to the average patient and undermentioned by providers. If you notice that your erection firmness is specifically worse during standing positions, or that you lose rigidity during transitions, pelvic floor weakness is a likely contributor.

Your Erection Is a Vascular Report Card

This point deserves its own section because it may be the most important clinical insight in this article: erectile dysfunction is a cardiovascular early warning system. The data is unambiguous.

FindingStudy / Source
ED precedes coronary artery disease by an average of 3 to 5 yearsThompson et al., JAMA, 2005
Men with ED have a 44% higher risk of cardiovascular eventsVlachopoulos et al., European Heart Journal, 2013 (meta-analysis of 92,757 men)
ED in men under 50 carries a higher cardiovascular risk multiplier than ED in men over 60Inman et al., Mayo Clinic Proceedings, 2009
Severity of ED correlates with severity of coronary artery diseaseMontorsi et al., European Urology, 2006
Treating ED risk factors (exercise, weight loss, statins) reduces cardiovascular eventsGandaglia et al., European Urology, 2014 (review)

The takeaway is not meant to be alarming — it is meant to be motivating. If your erection quality has declined, treating the causes (vascular health, metabolic health, hormone optimization) does not just improve your sexual function. It reduces your risk of the leading cause of death in men. Every intervention on this page has cardiovascular benefits beyond the bedroom.

The "artery size" hypothesis

Penile arteries are 1 to 2 mm in diameter. Coronary arteries are 3 to 4 mm. The same atherosclerotic process — endothelial damage, plaque buildup, reduced blood flow — affects smaller arteries first. This is why ED shows up years before a heart attack. Think of your erection quality not as a vanity metric but as a real-time readout of your cardiovascular health. When erection quality improves, it means your vascular health is improving everywhere.

What Actually Works (Evidence-Based Interventions)

These are ordered from lifestyle changes (which address root causes) to medical interventions (which address symptoms and accelerate recovery). The best outcomes come from combining approaches — because erection quality is multifactorial, the fix is usually multifactorial too.

Resistance Training and Aerobic Exercise

Exercise is the single most effective lifestyle intervention for erectile function — period. A 2018 meta-analysis in Sexual Medicine Reviews evaluated 10 randomized controlled trials and concluded that moderate-to-vigorous aerobic exercise for 40 minutes, 4 times per week, improved erectile function scores comparably to PDE5 inhibitors in men with mild to moderate ED. Resistance training adds testosterone optimization on top of the vascular benefits.

The mechanisms: exercise improves endothelial function and nitric oxide bioavailability, lowers blood pressure, improves insulin sensitivity, reduces visceral fat, lowers cortisol, improves sleep quality, and acutely raises testosterone. No medication touches that many pathways simultaneously. Compound movements — squats, deadlifts, rows, presses — produce the largest hormonal response. Aim for 3 to 4 sessions per week combining strength training and 20 to 30 minutes of moderate-intensity cardiovascular work.

Body Composition Optimization

Visceral fat is not passive tissue — it is an endocrine organ that actively worsens every cause of erectile decline on this list. It produces inflammatory cytokines, aromatase (converting testosterone to estrogen), and adipokines that damage the endothelium. A 2004 study in JAMA found that losing just 10% of body weight improved erectile function scores by an average of 33% in obese men with ED — without any medication.

The threshold effect matters: waist circumference above 40 inches in men is an independent risk factor for ED regardless of total body weight. If you are struggling to lose weight despite exercise, consider whether hormonal factors (low testosterone, insulin resistance) are making fat loss biochemically harder than it should be.

Pelvic Floor Training (Kegels for Men)

The Dorey study protocol is straightforward: identify the pelvic floor muscles by stopping urination midstream (once, to locate the muscles — do not use this as an exercise). Then contract those muscles 3 times daily — 8 to 12 maximal contractions held for 6 to 8 seconds, with 6 to 8 seconds of rest between each. Perform standing, sitting, and lying down. Results typically appear at 4 to 6 weeks, with maximum benefit at 3 months.

A 2019 systematic review in Physical Therapy confirmed the Dorey findings: pelvic floor muscle training produced clinically significant improvements in erectile function in 5 out of 6 included trials. Unlike medications, the improvements tend to be durable — the muscles stay strong as long as training continues.

Hormonal Optimization

If blood work confirms low or borderline testosterone, testosterone replacement therapy can restore the hormonal environment that supports erectile function. A 2016 multicenter trial published in The New England Journal of Medicine (the TTrials) found that testosterone treatment in men over 65 with low T produced a significant improvement in sexual desire and erectile function compared to placebo, with benefits appearing within 3 to 6 months.

TRT does not work like a PDE5 inhibitor — it does not create an immediate erection. What it does is restore libido, improve nitric oxide signaling in penile tissue, maintain smooth muscle integrity, and reverse the hormonal deficiency that was undermining the entire erectile cascade. The effect is slower but more foundational. For men who are unsure, read should I start TRT and how long TRT takes to work.

Important: TRT alone may not fully resolve ED if vascular or metabolic factors are also present. The best results come from combining hormonal optimization with exercise, metabolic improvement, and where needed, pharmacological support.

PDE5 Inhibitors

Sildenafil (Viagra), tadalafil (Cialis), vardenafil (Levitra), and avanafil (Stendra) work by blocking phosphodiesterase type 5 — the enzyme that breaks down cyclic GMP in penile smooth muscle. By slowing cGMP degradation, they amplify the nitric oxide signal and produce stronger, longer-lasting erections. They do not create desire (that is testosterone's job) or initiate an erection on their own (arousal is still required). They enhance a signal that is already present.

PDE5 inhibitors are effective in 60 to 70% of men across all ED severity levels. Daily low-dose tadalafil (5 mg) has an additional benefit: a 2008 study in The Journal of Sexual Medicine found that daily dosing improved endothelial function markers independent of sexual activity, suggesting a cardiovascular protective effect. For men combining TRT with a PDE5 inhibitor, a 2012 meta-analysis in International Journal of Impotence Research found that the combination was more effective than either intervention alone in men with hypogonadism-associated ED.

Lifestyle Factors That Compound Over Time

FactorImpact on Erectile FunctionEvidence Level
Smoking cessationImproves endothelial function within 2 to 4 weeks; ED risk drops 25% within 1 yearStrong (multiple meta-analyses)
Alcohol moderationMore than 3 drinks/day impairs erectile function; moderate intake (1 to 2/day) may be protectiveModerate (alcohol and testosterone)
Sleep optimizationRestoring 7 to 8 hours of quality sleep raises testosterone 10 to 15% within one weekStrong (JAMA 2011)
Mediterranean dietAssociated with 40% lower ED prevalence in multiple cohort studiesStrong (Esposito et al., 2010)
Stress managementCognitive behavioral therapy reduced ED severity by 50% in psychogenic casesModerate (meta-analysis 2021)

The Blood Work You Need

This panel covers the hormonal, metabolic, and vascular risk factors most commonly involved in erectile decline after 40. It is more comprehensive than a standard physical exam panel — but every test is standard, widely available, and either covered by insurance or available through Heyday's at-home lab kit:

TestWhat It Tells You
Total TestosteronePrimary screen for hormonal deficiency. Must be drawn before 10 AM, fasted. Below 300 ng/dL is diagnostic; 300 to 400 is a gray zone requiring clinical correlation.
Free TestosteroneThe bioavailable fraction. Often low when total T is "normal" — especially in men over 40 with rising SHBG. More predictive of symptoms than total T alone.
SHBGSex hormone-binding globulin. Rises with age, binds testosterone, reduces free T. Explains why you can have a "normal" level and still be symptomatic.
Estradiol (E2)Elevated estradiol relative to testosterone impairs libido and erectile function. Common with excess body fat (aromatase activity).
Fasting Insulin + HbA1cDetects insulin resistance and metabolic dysfunction — a major independent driver of ED. Fasting glucose alone misses early-stage cases.
Lipid Panel (with LDL-P or ApoB)Evaluates atherosclerotic risk. Standard LDL-C is insufficient in some cases; LDL particle count or ApoB is more predictive of vascular disease.
hsCRPHigh-sensitivity C-reactive protein. Marker of systemic inflammation. Elevated hsCRP is independently associated with endothelial dysfunction and ED.
TSH + Free T4Screens for thyroid dysfunction, which affects libido, energy, and vascular tone.
CBC with DifferentialScreens for anemia (fatigue contributor) and evaluates hematocrit baseline. Low hemoglobin impairs tissue oxygenation including erectile tissue.
ProlactinElevated prolactin suppresses GnRH, lowers testosterone, and directly impairs libido and erectile function. Usually checked when libido is very low with low-normal testosterone.
Morning testing is critical

Testosterone follows a circadian rhythm, peaking between 7 and 10 AM and declining by 20 to 30% throughout the day. An afternoon draw can produce a falsely low result. Always test in the morning, fasted, and confirm any low result with a second draw on a separate day. This is the Endocrine Society's standard protocol for diagnosing testosterone deficiency.

When to See a Provider

Schedule a consultation if any of the following apply:

  • Your erection quality has noticeably declined over the past 6 to 12 months, even partially
  • Morning erections have mostly or completely disappeared
  • You have difficulty achieving or maintaining firmness adequate for penetration
  • ED is accompanied by other symptoms: low energy, loss of libido, abdominal weight gain, brain fog, or mood changes
  • You are over 40 with one or more cardiovascular risk factors (high blood pressure, elevated cholesterol, family history, smoking history, diabetes)
  • Lifestyle changes (exercise, weight loss, sleep improvement) have not improved the situation after 8 to 12 weeks
  • You started a new medication and noticed a decline within 1 to 6 months

The biggest mistake men make is normalizing the decline. "I'm just getting older." That framing stops men from pursuing a workup that would reveal treatable causes — causes that, left unaddressed, continue to worsen and carry implications far beyond sexual function. You would not ignore rising blood pressure because "it's just age." Erectile decline deserves the same clinical seriousness.

Get the Full Picture

Heyday's at-home lab kit tests testosterone, metabolic markers, and key cardiovascular risk factors — the same panel recommended above. Clinician-reviewed results, personalized plan, all from home.

Take The Quiz →

Key Takeaways

  • Erectile decline after 40 is common but not inevitable. Approximately 40% of men experience some degree of difficulty by 40 — but the majority of cases have identifiable, treatable causes.
  • The 7 most common causes are vascular dysfunction, declining testosterone, metabolic syndrome, medication side effects, chronic stress, sleep disorders, and pelvic floor weakness.
  • ED is a cardiovascular early warning system. It precedes coronary artery disease by 3 to 5 years. Treating the causes of ED reduces your risk of heart attack and stroke.
  • Exercise is the most effective single intervention, improving erectile function comparably to PDE5 inhibitors in mild-to-moderate cases.
  • Pelvic floor training works. The Dorey study showed 75% of men improved or fully recovered erectile function with 3 months of targeted exercises.
  • Low testosterone maintains the entire erectile cascade — from libido to nitric oxide signaling to smooth muscle integrity. A comprehensive hormone panel is essential for any man over 40 with ED.
  • Multifactorial problems need multifactorial solutions. The best outcomes combine lifestyle changes, hormonal optimization, and where needed, pharmacological support.
  • The blood work matters. Total T, free T, SHBG, fasting insulin, lipids, and hsCRP together reveal the vascular, metabolic, and hormonal drivers — most standard physicals miss this panel.