Half of Men Over 40 Have Some ED — and It's Often the Body's First Warning. What Really Drives Libido and Erections
An erection is a vascular event — so weight, sleep, stress, and activity shape it, and ED can be an early sign of heart trouble. Here's what moves it, and why lifestyle can turn it around.

Short Answer
If your sex drive or erections aren't what they used to be, it's extremely common — and it's usually not "just in your head" or "just age." An erection is a vascular event: it depends on healthy blood vessels and nerves, which is why the same things that wear down your cardiovascular system — excess weight, poor sleep, chronic stress, too little movement, smoking, and heavy drinking — measurably drag down libido and erectile function. That connection runs deep enough that ED is now treated as an early warning sign for heart disease, often showing up years before other symptoms. The encouraging flip side: because so much of it is lifestyle and blood flow, it's often modifiable — studies show a meaningful share of men improve or fully regain function by changing habits. This article covers how common it really is, why these levers matter, what the evidence says about turning it around, and how tracking the underlying signals can help. If symptoms persist, see a doctor — sometimes the erection is the messenger.
Cohort Context: the same levers show up in the heart data
Welltory doesn't measure libido or erections — nothing here is a claim about sexual function. But erections are vascular, and the lifestyle levers that shape them are exactly what Welltory measures. In men in our data, those levers show up clearly in cardiovascular signals:
Active men had healthier hearts and far less stress. Men in the most active third (about 9,000+ daily steps) averaged a lower resting heart rate (about 60 vs 63 bpm) and dramatically lower stress load (about 235 vs 309 stress-minutes a day) than the least active third. Resting heart rate is a basic cardiovascular marker — and cardiovascular health is the foundation erections are built on.
The full healthy bundle mattered most. Men combining regular activity, adequate sleep, and low stress averaged a resting heart rate around 57 bpm and morning energy near 85, versus roughly 66 bpm and 58 energy for men with the opposite bundle (sedentary, short sleep, high stress).
These are general male users, correlational, and not a measure of sexual health — but they illustrate the mechanism: the habits that protect erections show up as a healthier, calmer cardiovascular system you can actually see.
How common is it — and at what age?
Far more common than most men assume, and it starts earlier than the stereotype. In the landmark Massachusetts Male Aging Study, 52% of men aged 40–70 reported some degree of erectile dysfunction, and the rate of complete ED tripled — from about 5% at age 40 to 15% at age 70. (pubmed.ncbi.nlm.nih.gov) Incidence climbs with each decade, but ED is increasingly reported in younger men too, which is part of why doctors no longer wave it off as "just getting older." Some decline in libido with age is normal; a persistent change usually isn't just the calendar — it's a signal worth understanding.
Erections are a vital sign
This is the part every man should hear. The arteries that fill the penis are small — much smaller than the coronary arteries feeding the heart — so when the lining of your blood vessels (the endothelium) starts to struggle, the plumbing "downstairs" often shows it first. That's why ED can appear two to four years before a heart attack or other cardiovascular event, and why a diagnosis of ED is associated with roughly a two-fold increase in heart attack, stroke, and cardiovascular death — a signal as strong as smoking or a family history. (mayoclinic.org) The takeaway isn't fear — it's leverage. Erection problems are often the body's earliest, most honest check-engine light for your arteries, which means addressing them is really about protecting your whole cardiovascular system. It also means persistent ED is a genuine reason to see a doctor, not to tough it out.
Why weight, sleep, stress, and inactivity drag it down
Each of these hits the same machinery. Excess weight promotes inflammation, insulin resistance, and lower testosterone, and it damages the endothelium that erections depend on. Inactivity lets cardiovascular fitness and blood flow decline — the opposite of what an erection needs. Poor sleep undercuts the hormones directly: a single week of roughly five-hour nights lowered young men's testosterone by 10–15%, comparable to aging 10–15 years, and untreated sleep apnea (common and under-diagnosed) compounds it. (sciencedaily.com) Chronic stress keeps the body in fight-or-flight — a sympathetic state that constricts blood flow and blunts desire, while elevated cortisol works against testosterone. And smoking and heavy drinking damage blood vessels and semen alike. None of these act alone; they stack, which is why the "bundle" in our data looked so different from one end to the other.
The good news: lifestyle can turn it around
Because so much of libido and erectile function runs on blood flow and metabolic health, it responds to change. In clinical work, guidance for ED emphasizes more exercise, weight loss toward a BMI under 30, and stopping smoking to improve or restore function — and in one study of obese men, about a third regained sexual function after a lifestyle program of more activity and weight loss. (journals.lww.com) A Mediterranean-style diet has repeatedly been linked to better erectile function in men with metabolic syndrome, likely by easing inflammation, improving insulin sensitivity, and restoring the endothelial nitric-oxide pathway that makes erections physically possible. (pubmed.ncbi.nlm.nih.gov) The timeline isn't overnight — it tracks with real cardiovascular and metabolic improvement over weeks to months — but the direction is hopeful and, crucially, within your control.
How to track the levers underneath
You can't see an erection coming on a chart — but you can see the cardiovascular and lifestyle system it depends on. Over a few weeks, watch your resting heart rate (lower generally reflects better cardiovascular fitness), your HRV and recovery, your sleep duration and regularity, your activity, and your stress load. As you move the habits — more steps, steadier sleep, less alcohol, a calmer baseline — these are the numbers that shift, and they're the same foundations that support libido and erections. A wearable can't assess sexual health, and it shouldn't try; but it can tell you whether the underlying machinery is trending healthier, and give you and your doctor a concrete picture to work from.
A practical plan
Keep it simple and stackable. Move most days — a brisk walk counts, and consistency beats intensity. Protect 7–9 hours of regular sleep, and if you snore heavily or wake unrefreshed, ask about a sleep-apnea screen. Trim the weeknight alcohol that's shredding both your sleep and your blood vessels, and if you smoke, quitting is the single biggest vascular win. Eat more like the Mediterranean pattern — vegetables, legumes, whole grains, olive oil, fish. Build in a few minutes of a calming routine to pull yourself out of chronic fight-or-flight. And don't white-knuckle it alone: if symptoms persist, a doctor can check the things a lifestyle plan can't — hormones, medications, blood pressure, blood sugar, and heart health.
When to see a doctor
Occasional trouble is normal, especially when you're tired, stressed, or have been drinking. But persistent low libido or erectile difficulty deserves a real check-up — not because it's shameful, but because it can be the first sign of cardiovascular disease, diabetes, low testosterone, depression or anxiety, or a side effect of medication. Bring it up plainly; it's one of the most common things doctors treat, and catching an underlying issue early is exactly why the erection-as-warning-sign matters.


Discounts for blog readers: up to 36% off
See what affects your energy, stress, sleep, and daily state with Welltory

This article is for educational purposes only and is not medical advice, diagnosis, or treatment. Erectile dysfunction and low libido are common and treatable — and because erection problems can be an early sign of heart disease, diabetes, low testosterone, depression, or a medication side effect, persistent symptoms are worth discussing with a doctor. Welltory measures physiological signals like heart rate, HRV, sleep, activity, and stress; it does not measure or diagnose sexual function.
Was this helpful?
Ask AI for a summary of page
Written by Jane Smorodnikova
The founder and CEO of Welltory. A recognized tech leader with two Master's degrees and experience at MIT, she has scaled Welltory to over 17 million users.
Written by Tatyana Yashyna
Reviewed by Anna Elitzur
With her medical degree, Anna reviews Welltory's health content for medical accuracy and alignment with current clinical guidelines and research.
References
- Feldman HA et al. Impotence and its medical and psychosocial correlates: results of the Massachusetts Male Aging Study (52% aged 40–70; complete ED 5%→15%). Journal of Urology / PubMed. https://pubmed.ncbi.nlm.nih.gov/10647654/
- Erectile dysfunction: a sign of heart disease? (endothelial link; 2–4 year lead time; ~2× cardiovascular risk). Mayo Clinic. https://www.mayoclinic.org/diseases-conditions/erectile-dysfunction/in-depth/erectile-dysfunction/art-20045141
- Leproult R, Van Cauter E. Effect of 1 week of sleep restriction on testosterone in young men (−10–15%). JAMA. 2011. https://www.sciencedaily.com/releases/2011/05/110531162142.htm
- Lifestyle modifications and erectile dysfunction (exercise, weight loss, smoking cessation; ~1/3 regain function). Asian Journal of Andrology. https://journals.lww.com/ajandrology/fulltext/2015/17010/lifestyle_modifications_and_erectile_dysfunction_.2.aspx
- Esposito K et al. Mediterranean diet improves erectile function in metabolic syndrome. PubMed. https://pubmed.ncbi.nlm.nih.gov/16395320/
- Welltory men's cohort context (activity, stress, resting heart rate). Reproducible script: `persona_lab/scripts/libido_lifestyle_men_context.py`.


-2.jpg)

