Why lifestyle works on ED specifically
Erections depend on the endothelium — the single-cell lining of blood vessels that produces nitric oxide. The penile arteries are narrow, roughly 1–2 mm across, compared with 3–4 mm for the coronary arteries. When endothelial function starts to decline, the smallest vessels show it first. That is why ED often precedes a cardiac event by several years.
It also means the reverse holds. Anything that improves endothelial function — exercise, weight loss, glycaemic control, stopping smoking — improves the blood supply everywhere, including where you want it.
Exercise: the strongest evidence
Randomised trials and meta-analyses consistently show improved erectile function scores with structured aerobic exercise. The benefit is largest in men whose ED stems from vascular, obesity-related or sedentary causes.
- How much
- The regimen studied most often is about 160 minutes per week of moderate-to-vigorous aerobic activity — four sessions of 40 minutes — sustained for six months.
- What kind
- Brisk walking, cycling, swimming, running. Anything that raises your heart rate and that you will actually keep doing.
- How long until it helps
- Measurable improvement typically appears at around three months, with continued gains to six.
- Resistance training
- Useful for body composition and testosterone, but the direct evidence for erectile function is weaker than for aerobic work. Do both if you can.
Weight and diet
In trials of men with obesity and ED, losing roughly 10% of body weight produced meaningful improvement in erectile function — and improvement in the inflammatory and endothelial markers behind it. Fat tissue also converts testosterone into oestrogen, so weight loss can raise testosterone without any medication.
On diet, the pattern with the most consistent support is Mediterranean-style: vegetables, fruit, legumes, nuts, whole grains, olive oil, fish; limited red and processed meat, refined carbohydrate and ultra-processed food. No single food matters. The pattern does.
- Aim for a realistic 5–10% weight loss rather than a dramatic target you will abandon.
- Prioritise protein and fibre — they make the calorie deficit survivable.
- Cut sugar-sweetened drinks first; it is the highest-yield single change for most people.
- If you have type 2 diabetes, glycaemic control is doing double duty here. See diabetes and ED.
Smoking, alcohol and sleep
- Smoking
- Smoking damages the endothelium directly and roughly doubles the risk of ED. Stopping improves erectile function measurably, and younger men with shorter smoking histories recover the most. This is the highest-impact single change available to a smoker.
- Alcohol
- Acutely, alcohol impairs erections. Chronically, heavy drinking damages nerves, lowers testosterone and harms the liver. Moderate intake is not the problem; regular heavy intake is.
- Sleep
- Testosterone is produced largely during sleep, and short or fragmented sleep lowers it. Untreated obstructive sleep apnoea is strongly associated with ED and often overlooked — see sleep apnoea and ED.
- Recreational drugs
- Stimulants, opioids and cannabis all impair sexual function through different mechanisms. Anabolic steroid use shuts down natural testosterone production, sometimes for a long time.
Setting realistic expectations
Two honest caveats. First, lifestyle change is slower than a tablet — think months, not evenings. Second, it does not cure everything: established nerve damage, severe arterial disease and post-surgical ED will not resolve through exercise alone.
The sensible approach is both. Use medication to restore function and confidence now; use lifestyle change to improve the underlying biology over the next year. Some men find their medication works better, at lower doses, as their fitness improves — and a few no longer need it.
Frequently asked questions
How long before exercise helps my erections?
Can lifestyle change alone cure ED?
Does cycling cause ED?
Will losing weight raise my testosterone?
What this is based on
We link to primary sources — clinical guidelines, regulator publications and peer-reviewed research — wherever possible. Links open on third-party sites we do not control.
- [01]American Urological Association. Erectile Dysfunction: AUA Guideline (2018).
- [02]Mayo Clinic. Erectile dysfunction — symptoms and causes.
- [03]National Institute of Diabetes and Digestive and Kidney Diseases. Treatment for Erectile Dysfunction.
- [04]National Library of Medicine. PubMed — search the primary literature.