In this article (11 sections)
- Exercise: the best-studied change
- Losing weight if you carry extra
- Stopping smoking
- Alcohol and recreational drugs
- Sleep
- Getting blood pressure, blood sugar and cholesterol under control
- Reviewing your current medicines
- Pelvic floor exercises
- How lifestyle changes and medicine work together
- Sources
- Related reading
An erection is, at its core, a blood flow event. Arteries in the penis have to widen quickly, and the tissue has to fill and hold that blood. Anything that stiffens or narrows arteries elsewhere in the body tends to show up here too, often earlier, because these vessels are small. That is the main reason everyday habits have a measurable effect on erections, and why changes to them are recommended alongside medicine rather than instead of it.
Exercise: the best-studied change
Several trials have tested exercise as a treatment for ED. A meta-analysis of seven randomized trials with 478 men found that aerobic exercise and pelvic floor exercise both improved erectile function scores compared with no exercise [1]. A 2018 systematic review of ten studies concluded that regular activity is worth recommending, particularly for men who are inactive, overweight, have high blood pressure or have other cardiovascular risk factors [2].
The trials varied in design, and reviewers rated several at moderate or high risk of bias, so the size of the benefit is uncertain [1]. Still, the direction is consistent. A practical target drawn from these studies is around 40 minutes of moderate to vigorous aerobic activity, such as brisk walking, cycling or swimming, on most days of the week, built up over a few months. Exercise also lowers blood pressure, improves blood sugar control and helps with mood, all of which matter for erections in their own right.
If you have a heart condition or have been inactive for a long time, check with a doctor before starting vigorous exercise.
Losing weight if you carry extra
The most cited trial in this area was published in JAMA in 2004. It enrolled 110 obese men aged 35 to 55 with ED but without diabetes, high blood pressure or high cholesterol. Half were coached to lose at least 10% of their body weight through diet and more exercise over about two years; the other half received general advice [3].
By the end, 17 of the 55 men in the active group had erectile function scores in the normal range, compared with 3 in the control group [3]. Lower weight, more physical activity and lower levels of an inflammation marker each tracked with better scores. Not every man improved, but the study showed that for some, erection problems linked to excess weight can be partly reversed.
Stopping smoking
Smoking damages the lining of blood vessels and narrows arteries, and NIDDK lists it among the lifestyle causes of ED [4]. Stopping removes an ongoing source of that damage. How much function returns depends on age, how long and how much you smoked, and what other health conditions you have, but stopping is worthwhile for heart, lung and circulation health regardless. Nicotine replacement, prescription stop-smoking medicines and counseling all improve the chances of quitting for good.
Alcohol and recreational drugs
A drink or two may lower inhibitions, but heavy drinking dampens the nerve signals involved in arousal and can make erections harder to get and keep [4]. Over years, heavy use can also affect hormone levels and nerves. With ED medicine, large amounts of alcohol add another problem: tadalafil plus five or more units of alcohol can lower blood pressure enough to cause dizziness [5]. Keeping to moderate amounts helps on both fronts.
Recreational drugs, including cannabis, cocaine and opioids, are also associated with erection problems. Poppers are a particular concern because they are dangerous with ED medicine; our safety guide explains why.
Sleep
Poor sleep and untreated sleep apnoea are linked to lower testosterone, tiredness and low mood, all of which can affect sexual function. Loud snoring, gasping at night or heavy daytime sleepiness are reasons to ask a doctor about a sleep study. Regular sleep and a consistent bedtime are simple, low-risk steps to try.
Getting blood pressure, blood sugar and cholesterol under control
High blood pressure, diabetes and high cholesterol all damage blood vessels over time, and each is closely tied to ED [4]. Bringing them under control protects the arteries that supply the penis as well as the heart and brain. If you have not had these checked recently, a new erection problem is a good reason to do so; our guide to ED and heart health explains why ED can be an early warning sign.
Some medicines used to treat these conditions can contribute to erection problems, which brings us to the next point.
Reviewing your current medicines
NIDDK lists several medicine groups that can cause or worsen ED, including some blood pressure medicines and diuretics, antidepressants, antihistamines, some pain relievers, sedatives and certain stomach medicines [4]. If erection problems started after a new prescription, tell the doctor who prescribed it. There may be an alternative. Do not stop a prescribed medicine on your own, especially one for blood pressure, heart disease or mood.
Pelvic floor exercises
The pelvic floor muscles help keep blood in the penis during an erection. The exercise meta-analysis above included pelvic floor training among the approaches that improved erectile function [1]. To find the muscles, imagine stopping the flow of urine or holding in wind. A typical routine is to tighten them for a few seconds, relax for the same time, and repeat 10 times, a few times a day. A physiotherapist who specializes in pelvic health can check your technique if you are unsure.
How lifestyle changes and medicine work together
Lifestyle changes work slowly, over months, and they treat some of the underlying causes. ED medicine works on the day and helps with the mechanics of an erection, but it does not repair blood vessels. The two are complementary. Many men use medicine to restore confidence while working on weight, fitness or smoking, and some find over time that they need less help than before. The AUA guideline encourages discussing all of these options together with a clinician so the plan fits your health and preferences [6].
Small, steady changes are easier to keep than dramatic ones. Pick one or two to start with, such as a daily walk and cutting back on alcohol, and build from there.
Sources
- Meta-analysis of exercise for erectile dysfunction (7 randomized trials, 478 men)
- Gerbild H, et al. Physical activity to improve erectile function: a systematic review. Sex Med, 2018
- Esposito K, et al. Effect of lifestyle changes on erectile dysfunction in obese men. JAMA, 2004
- NIDDK. Symptoms and causes of erectile dysfunction
- Tadalafil US prescribing information (DailyMed, revised 2026)
- Burnett AL, et al. Erectile dysfunction: AUA guideline. J Urol, 2018
Related reading
- Causes of erectile dysfunction: the physical, hormonal and psychological factors behind ED.
- ED and heart health: what erection problems can signal about your arteries.
- Performance anxiety and the psychological side of ED: when the mind plays a part.
- How tadalafil works: what the medicine does and how it fits with lifestyle changes.
- Erectile dysfunction overview: an introduction to ED and the treatment options.
This article is for education only and is not a substitute for professional medical advice. Do not start, stop or change a medication without speaking to a licensed clinician. If you have chest pain, an erection lasting more than four hours, or sudden loss of vision or hearing, seek emergency care.