• Customer Service Team available now: Mon-Fri 8:00-17:00
Home / Men's Health / Lifestyle and erectile dysfunction: how weight, alcohol, sleep and exercise affect erections
Weight, exercise, alcohol, sleep and smoking all affect the blood vessels that erections depend on.
Short answer

Yes, lifestyle changes can improve erectile dysfunction (ED), and for some men they are enough on their own. In one randomised trial, about a third of men with obesity and ED regained normal erectile function after two years of weight loss and regular exercise.

Regular aerobic exercise, drinking within the UK low-risk guideline, treating poor sleep and stopping smoking all have evidence behind them. Changes take weeks to months to show, so many men use ED medication alongside them in the meantime. That isn't cheating. It's what the clinical guidelines describe.

Before you read on

If you've noticed your erections aren't what they were, you're in large company. In the Massachusetts Male Aging Study, 52% of men aged 40 to 70 reported some degree of erectile difficulty. It's one of the most common reasons men speak to a prescriber, and it's rarely a sign that something is "wrong with you" as a person.

It is, though, often a sign of something worth paying attention to. Erections depend on healthy blood vessels, so the habits that affect your heart can affect your erections too, and erection problems can be an early warning sign of poor blood vessel health.

That's the useful part: the same changes that protect your heart can also improve your erections, and they're within your control.

This guide covers what the evidence shows for weight, exercise, alcohol, sleep and smoking, how long changes take, and how lifestyle and medication work together. OnlineClinic has been operating since 2011 and has treated more than 2.1 million patients. Our prescribers handle ED consultations every day, discreetly and without judgement, and this guide is written the same way: straight answers, sourced, no scare tactics.

Why lifestyle affects erections

An erection is a blood-flow event. When you're aroused, nerves signal the lining of the blood vessels in the penis (the endothelium) to release nitric oxide. That relaxes the vessel walls, blood flows in, and the erection follows.

Anything that damages the endothelium or narrows small arteries makes that process less reliable. Excess weight, inactivity, smoking, heavy drinking and poor sleep all do this, mostly through the same routes as heart disease: raised blood pressure, higher blood sugar, unhealthy cholesterol and chronic inflammation.

The arteries in the penis are smaller than those supplying the heart. So when blood vessels start to struggle, erections are often the first thing to change.

A large US study followed 9,457 men aged 55 and over for several years. Men with ED had a 45% higher risk of a later heart attack, stroke or other cardiovascular event than men without it. The researchers noted that this was in the same range as the risk linked to current smoking. (Thompson et al, JAMA, 2005)

That's not a reason to panic. It's a reason to take ED seriously as health information, and a reason the lifestyle changes below matter beyond the bedroom.

Lifestyle isn't the only cause of ED. Age plays a role (see ED causes by age), so can low testosterone and anxiety. This guide focuses on the parts you can change.

At a glance: what the evidence shows

Factor What the evidence shows A realistic target
Weight Men with obesity who lost weight and exercised more were more than five times as likely to regain normal erections as a control group (Esposito, JAMA, 2004) Aim for gradual, sustained loss. In the trial, average BMI fell from about 37 to 31 over two years
Exercise Regular aerobic exercise improved erectile function in men with ED linked to inactivity, obesity, high blood pressure or heart disease (Gerbild, Sexual Medicine, 2018) Around 40 minutes of moderate to vigorous activity, four times a week, for six months
Alcohol Drinking temporarily impairs erections. In population studies, moderate drinking was associated with a lower risk of ED No more than 14 units a week, spread over three or more days (UK Chief Medical Officers)
Sleep Obstructive sleep apnoea is strongly linked to ED. One week of short sleep lowered testosterone by 10–15% in young men Seven or more hours. Get loud snoring or daytime sleepiness checked
Smoking ED risk rises the more you smoke. Former smokers have better erectile function than current smokers Stop completely. Support roughly doubles quit rates in trials
Pelvic floor In a UK trial, 40% of men with ED regained normal function after pelvic floor training Daily exercises for at least three months

Sources for each row are listed at the end of this article.

Weight: the change with the strongest trial evidence

Carrying excess weight, especially around the middle, raises the risk of ED through blood pressure, blood sugar and inflammation. Losing weight reverses some of that.

The clearest evidence comes from a randomised trial of 110 men with obesity (BMI 30 or over) and ED, aged 35 to 55, published in JAMA. Half were given detailed, ongoing support to lose at least 10% of their body weight through eating less and moving more. The other half received general healthy-living information.

After two years:

  • Average BMI in the intervention group fell from 36.9 to 31.2. In the control group it barely moved (36.4 to 35.7)
  • Weekly exercise in the intervention group rose from 48 to 195 minutes
  • 17 of the 55 men in the intervention group (31%) regained normal erectile function, compared with 3 of 55 (5%) in the control group
  • Lower BMI, more activity and lower inflammation were each independently linked to better erections

(Esposito et al, JAMA, 2004)

Two things are worth taking from this. First, the improvement was real and measurable. Second, it took sustained effort over two years, and two-thirds of men in the active group still had some degree of ED at the end. Weight loss helps, but it isn't a guaranteed fix, and it isn't fast.

A 2021 meta-analysis of randomised trials in men with overweight or obesity found that, on average, men in the weight-loss groups scored 1.99 points higher on the IIEF, a standard erection questionnaire used by clinicians, than men in the control groups. (Andrologia, 2021) That's a modest but meaningful shift, often enough to move someone from one severity band to the next.

If your BMI is 30 or above, or 27 or above with a weight-related condition, prescription weight-loss treatment may also be an option. Our complete UK guide to GLP-1 medications covers who is eligible and what to expect.

Exercise: how much actually helps

Exercise improves erections in two ways. It helps with weight, and it directly improves how blood vessels behave, independent of weight loss.

A systematic review in Sexual Medicine looked at intervention studies in men whose ED was linked to inactivity, obesity, high blood pressure, metabolic syndrome or heart disease. Its recommendation was specific:

  • About 40 minutes of aerobic exercise, four times a week
  • Moderate to vigorous intensity: brisk walking uphill, cycling, swimming, jogging, a rowing machine
  • Around 160 minutes a week, kept up for six months

(Gerbild et al, Sexual Medicine, 2018)

"Moderate to vigorous" means you're breathing harder and can talk in short sentences but not sing. If you're starting from very little, there's no need to hit 160 minutes in week one. Build up over a month or two. If you have a heart condition, or haven't exercised in years and have chest symptoms, speak to your GP before increasing intensity.

Pelvic floor exercises

Most men have never heard of pelvic floor exercises, but the muscles involved help keep blood in the penis during an erection.

In a UK randomised trial, 55 men with ED were taught pelvic floor exercises with biofeedback. After three months, the exercise group improved significantly on erectile function scores compared with men given lifestyle advice only.

By six months, 40% had regained normal erectile function, 34.5% had improved, and 25.5% had not improved. (Dorey et al, British Journal of General Practice, 2004)

To find the right muscles, imagine stopping yourself passing urine and holding in wind at the same time. Squeeze and lift, hold for a few seconds, then relax fully. Do this in sets several times a day, lying, sitting and standing. A specialist physiotherapist can check your technique if you're unsure. It costs nothing and carries no real risk.

Alcohol: what it does to erections

The short-term effect is clear. Alcohol depresses the nervous system, and enough of it makes erections harder to get and keep. The patient leaflets for both Viagra and Cialis say drinking can temporarily impair your ability to get an erection. (Viagra patient leaflet, MHRA; Cialis patient leaflet, MHRA)

The long-term picture is less clear-cut, and it's worth being honest about that. A 2018 meta-analysis of population studies found a curved relationship between alcohol and ED, in which moderate drinking was associated with a lower risk of ED. (Allen and Walter, Journal of Sexual Medicine, 2018)

What this means practically:

  • On the night, more drinks generally means less reliable erections
  • Over time, drinking within the UK low-risk guideline is the sensible line. That's no more than 14 units a week, spread over three or more days, with several drink-free days (UK Chief Medical Officers)
  • Heavy drinking adds weight, raises blood pressure and disrupts sleep, all of which feed back into ED

Fourteen units is roughly six pints of average-strength beer or six medium glasses of wine across a week.

Alcohol and ED medication

If you take sildenafil or tadalafil, heavy drinking works against you. It can blunt the erection the tablet is helping with. If you take tadalafil (Cialis), excessive drinking (a blood alcohol level of 0.08% or more) may also increase the risk of dizziness when you stand up, and the Cialis leaflet advises avoiding it for this reason. A drink or two is generally fine. A big night out is the situation where the tablet is most likely to seem as if it "didn't work".

Sleep: the factor most men overlook

Sleep affects erections through hormones, mood and, in some men, a treatable medical condition.

Short sleep and testosterone

Testosterone is mostly released during sleep. In a small study published in JAMA, 10 healthy young men slept under five hours a night for one week. Their daytime testosterone fell by 10–15%.

For comparison, the researchers noted that normal ageing lowers testosterone by 1–2% a year. (Leproult and Van Cauter, JAMA, 2011) One week of poor sleep won't cause ED on its own, but long-term short sleep adds up. If you're worried your testosterone might be low, see Testosterone and ED.

Obstructive sleep apnoea

Obstructive sleep apnoea (OSA) is a condition where the airway repeatedly narrows or closes during sleep, briefly cutting oxygen. It's common in men who are overweight, and it's strongly linked to ED.

Signs worth mentioning to your GP include loud snoring, a partner noticing you stop breathing at night, waking unrefreshed and feeling very sleepy during the day. OSA is diagnosed with a sleep study, and treating it helps far more than erections.

Practical sleep steps

Aim for seven or more hours on a consistent schedule. Keep alcohol away from the last few hours before bed, since it fragments sleep. If stress or worry about performance is keeping you awake, that's common too, and Anxiety and erectile dysfunction covers the psychological side.

Smoking: the change we'd add to the list

Smoking isn't in the title, but it belongs here. It damages the endothelium directly and reduces nitric oxide, the chemical that starts an erection.

The risk is dose-dependent. A 2018 meta-analysis of population studies found that the risk of ED increased with greater cigarette smoking. (Allen and Walter, Journal of Sexual Medicine, 2018)

Stopping helps:

  • In a study of 6,754 men aged 50 to 75, former smokers had about 20% lower odds of ED than current smokers (Mima et al, BJU International, 2022)
  • In a randomised trial of 719 men with ED who smoked, those who quit were more likely to see their ED improve at six months (Chan et al, American Journal of Preventive Medicine, 2010). In the same trial, structured counselling with nicotine replacement roughly doubled quit rates compared with brief advice
  • A small study of 20 heavy smokers with ED found measurable improvement in penile blood flow within 24–36 hours of stopping (Sighinolfi et al, Urology, 2007). That's an early signal from a small group, not a promise of a quick fix

If you smoke, stopping is likely to be the single most useful change for your erections and your heart. Our stop smoking page covers the support available.

Does diet matter?

Yes, mostly through the routes above. A 2024 meta-analysis of 14 studies and more than 27,000 men found that diets rich in vegetables, fruit, nuts and plant foods were associated with lower ED risk.

Detailed advice combining diet and exercise was linked to lower risk, and a low-fat diet showed an even stronger association. (Yang et al, Asian Journal of Andrology, 2024) Most of these studies were observational, so they show a link rather than proof of cause.

A practical rule: eat in a way that would please a cardiologist. More vegetables, pulses, whole grains, oily fish and olive oil. Less processed meat, sugary drinks and ultra-processed snacks. There's no single "erection food", and supplements sold for ED are not a substitute for this.

Lifestyle changes or medication? Usually both

This is the question most men are really asking. If lifestyle can help, should you hold off on treatment?

There's no rule that says you have to choose. The European Association of Urology guidelines on ED place lifestyle change and risk factor management at the centre of treatment, alongside medication where it's needed, not as a hurdle you must clear first. (EAU Guidelines on Sexual and Reproductive Health, 2026)

The practical reasons for doing both:

  • Lifestyle changes are slow. The trials above ran for three months, six months and two years
  • Medication works now. Sildenafil and tadalafil help most men get a reliable erection while the longer-term changes take effect
  • Confidence matters. A few successful experiences can ease the performance worry that makes ED worse
  • You can review later. Some men find they need a lower dose, or treatment less often, as their health improves

You can buy sildenafil or tadalafil from OnlineClinic after a free consultation with a GMC-registered prescriber. If you'd like to understand the difference between taking tadalafil as needed or every day, see Cialis daily vs on-demand.

Two practical points from the patient leaflets. Sildenafil (Viagra) is taken about an hour before sex, and may take longer to work after a heavy meal. Tadalafil (Cialis) can be taken with or without food. (Viagra patient leaflet, MHRA; Cialis patient leaflet, MHRA)

How long until lifestyle changes make a difference?

It depends on the change and the cause, but expect weeks to months, not days.

Change Timeframe seen in studies
Stopping smoking Blood-flow changes within 24–36 hours in a small study. Clinical improvement measured at six months
Pelvic floor exercises Improvement at three months, further gains at six months
Aerobic exercise Recommended for six months to reduce ED
Weight loss Measured over two years in the main trial
Treating sleep apnoea Improvements reported after CPAP treatment, timing varies between studies

A sensible approach is to pick one or two changes you can stick with, give them three months, and keep a rough note of how things are going. Small, sustained changes beat a burst of effort that stops after a fortnight.

When ED is a reason to see your GP

ED is usually manageable, but sometimes it's a signal to get a fuller health check. Speak to your GP if:

See your GP if

  • You have chest pain, breathlessness or palpitations, especially on exertion or during sex. For chest pain, seek medical help immediately by calling 999 or going to A&E. If it starts during or after sex, get into a semi-sitting position and try to relax. Don't use nitrates to treat the chest pain, and tell the doctor, nurse or pharmacist treating you that you've taken sildenafil or tadalafil and when
  • You haven't had your blood pressure, cholesterol or blood sugar checked in the last few years
  • You have symptoms of possible diabetes, such as unusual thirst, passing urine more often or unexplained weight loss
  • Your ED came on suddenly after an injury or surgery to the pelvis or spine
  • You also have a low sex drive, low energy or low mood
  • You have loud snoring or a partner has noticed you stop breathing at night

Given the link between ED and heart health, a check of your cardiovascular risk is worthwhile for most men with ED, even if you feel well. We cover this in more depth in When should I see a doctor about ED?

What happens when you order

Straightforward and discreet. From start to finish:

  1. Fill in a short medical questionnaire. It takes 5–10 minutes and covers your health, current medicines and blood pressure. The questions are thorough on purpose. Some heart medicines, particularly nitrates, can't be taken with ED treatment, and the prescriber needs to check.
  2. A GMC-registered prescriber reviews your answers. If they need more information, they message you through your account.
  3. If treatment is suitable, it's dispensed and dispatched for next-day delivery in plain, unbranded packaging.
  4. If it isn't suitable, the prescriber explains why and what to do next. You're not charged for treatment that isn't issued.

Our pharmacy is registered with the General Pharmaceutical Council (GPhC), our prescribers are registered with the General Medical Council (GMC), and the service is regulated by the Care Quality Commission (CQC). On Trustpilot, our service rating is 4.6 from over 7,365 reviews.

Frequently asked questions

Can erectile dysfunction be reversed with lifestyle changes?

How much weight do I need to lose to improve ED?

What is the best exercise for erectile dysfunction?

Does alcohol cause erectile dysfunction?

Can I drink alcohol with Viagra or Cialis?

Can lack of sleep cause erectile dysfunction?

Will stopping smoking improve my erections?

Should I try lifestyle changes before taking ED medication?

Is ED a sign of heart disease?

Is OnlineClinic safe to use for ED treatment?

Was this article helpful?

Related guides

Clinical guidelines

Weight, exercise and diet

  • Esposito K et al. Effect of lifestyle changes on erectile dysfunction in obese men: a randomized controlled trial. JAMA, 2004. doi:10.1001/jama.291.24.2978
  • Effect of weight loss on erectile function in men with overweight or obesity: a meta-analysis of randomised controlled trials. Andrologia, 2021. doi:10.1111/and.14250
  • Gerbild H et al. Physical activity to improve erectile function: a systematic review of intervention studies. Sexual Medicine, 2018. doi:10.1016/j.esxm.2018.02.001
  • Dorey G et al. Randomised controlled trial of pelvic floor muscle exercises and manometric biofeedback for erectile dysfunction. British Journal of General Practice, 2004. PubMed 15527607
  • Yang B et al. Association between improved erectile function and dietary patterns: a systematic review and meta-analysis. Asian Journal of Andrology, 2024. doi:10.4103/aja202485

Alcohol, sleep and smoking

  • Allen MS, Walter EE. Health-related lifestyle factors and sexual dysfunction: a meta-analysis of population-based research. Journal of Sexual Medicine, 2018. doi:10.1016/j.jsxm.2018.02.008
  • Drinkaware. Count14: understanding how your drinking adds up. drinkaware.co.uk
  • Leproult R, Van Cauter E. Effect of 1 week of sleep restriction on testosterone levels in young healthy men. JAMA, 2011. doi:10.1001/jama.2011.710
  • Association between obstructive sleep apnea and erectile dysfunction: a systematic review and meta-analysis. International Journal of Impotence Research, 2018. doi:10.1038/s41443-018-0017-7
  • Pang KH et al. The association between obstructive sleep apnoea and erectile dysfunction: a systematic review and meta-analysis. International Journal of Impotence Research, 2026. doi:10.1038/s41443-026-01315-7
  • Mima M et al. The impact of smoking on sexual function. BJU International, 2022. doi:10.1111/bju.15711
  • Chan SSC et al. Smoking-cessation and adherence intervention among Chinese patients with erectile dysfunction. American Journal of Preventive Medicine, 2010. doi:10.1016/j.amepre.2010.05.006
  • Sighinolfi MC et al. Immediate improvement in penile hemodynamics after cessation of smoking. Urology, 2007. doi:10.1016/j.urology.2006.09.026

Prevalence and cardiovascular risk

Product information

Disclaimer

Sildenafil and tadalafil are prescription-only medicines when supplied through our consultation. Decisions about whether treatment is suitable for you are made by a GMC-registered prescriber based on your individual medical history. The information here is for general guidance and is not a substitute for professional medical advice.

OnlineClinic is operated by Hexpress Healthcare Ltd, 106 Lower Addiscombe Road, Croydon CR0 6AD. Registered with the Care Quality Commission and the General Pharmaceutical Council, and supported by GMC-registered prescribers. Operating since 2011 · 2.1M+ patients treated · Trustpilot 4.6 from 7,361+ reviews.

Further reading

More articles
Fill out a short
medical form
Select
medication
Doctor issues
prescription
Medication sent
from pharmacy

Not sure which treatment is right for you?

No obligation · Reviewed by GMC-registered prescribers · CQC regulated

Check your eligibility Takes 2 minutes