
Key takeaways
- An erection needs healthy blood vessels, working nerves, the right hormones and a calm mind. A problem in any one of them can cause erectile dysfunction (ED).
- Most men have more than one contributing factor, which is why a proper check-up is more useful than guessing.
- Many causes can be improved, including medicines, weight, smoking, alcohol, sleep and stress.
- Persistent ED can be an early signal of heart disease or diabetes, so it deserves a medical conversation.
How an erection works
An erection is a team effort. Sexual arousal sends signals from the brain and nerves that relax the smooth muscle in the penis. Blood then flows in through the arteries and is held there while the veins close off. Hormones, especially testosterone, support desire and the whole process. If blood vessels, nerves, hormones or the brain are affected, an erection can become harder to get or keep.
Physical causes
Blood vessel disease
The arteries to the penis are small, so they are often affected first when arteries are narrowed by cholesterol build-up, high blood pressure or smoking. This is why ED and heart disease so often travel together. Read more in our guide to ED and heart health.
Diabetes
High blood sugar over time damages both blood vessels and nerves. Men with diabetes are more likely to develop ED, and often at a younger age. See ED and diabetes for detail.
Nerve and spinal conditions
Conditions such as multiple sclerosis, Parkinson disease, spinal injury and nerve damage after pelvic surgery can interrupt the signals needed for an erection.
Hormone problems
Low testosterone can reduce sex drive and sometimes erection quality. Thyroid and prolactin problems can also play a role. A simple blood test can check these when your clinician thinks it is appropriate.
Prostate and pelvic treatment
Surgery or radiotherapy for prostate or bowel cancer can affect the nerves and vessels involved. Many men recover some function over time, and treatment can help.
Medicines that can contribute
Several common medicines are linked with ED, including some blood pressure tablets, antidepressants, antipsychotics, and medicines used for prostate conditions or hair loss. Never stop a prescribed medicine on your own. If you think a medicine is involved, ask your clinician about alternatives or dose changes.
Psychological causes
The brain is the biggest sexual organ. Stress, anxiety, depression, relationship difficulty and fear of failing to perform can all cause or worsen ED. A single bad experience can create a cycle of worry that makes the next one harder. Our article on stress, anxiety and ED explains how to break that cycle.
Lifestyle and habits
- Smoking damages blood vessels and is one of the strongest modifiable risk factors.
- Alcohol and drugs: heavy drinking, and recreational drugs, can impair erections in the short and long term.
- Weight and inactivity: obesity, a poor diet and lack of exercise raise the risk of vascular disease and low testosterone.
- Poor sleep: long-term sleep loss and untreated sleep apnoea are linked with ED.
The good news is that these are changeable. See lifestyle changes that help ED.
Is it physical or psychological?
There are some clues. Erections that happen at night or on waking, or during solo activity, but fail with a partner, point more towards a psychological cause. A gradual onset that is the same in every situation points more towards a physical cause. In practice the two overlap, and a clinician can help sort out the mix.
When to see a doctor
Make an appointment if ED lasts more than a few weeks, if it comes on suddenly, or if you also have chest pain, breathlessness, numbness, or symptoms of diabetes such as increased thirst. See when to see a doctor for the full list, and what to expect at the appointment.
Frequently asked questions
Is ED a normal part of getting older?
It becomes more common with age, but it is not something you simply have to accept. Many older men have good sexual function, and treatment works at any age.
Can young men get ED?
Yes. In younger men, psychological causes, smoking, drug use and stress are more common contributors, although physical causes can still be present.
Can ED be reversed?
Often it can be improved or fully resolved when the cause is treated, for example by stopping smoking, controlling diabetes, changing a medicine or addressing anxiety.
This article is general information. It does not replace advice from a clinician who knows your health.

Written by
Dr. James Anderson
Physician, men's health
Dr. James Anderson is the physician who writes and checks the medical articles on BoostPills. He explains erectile dysfunction, its causes and its treatments in plain language, drawing on official drug labels, national health services and clinical guidelines, and always encourages readers to speak to their own clinician.
- #causes
- #risk-factors
Related reading
- What factors can affect erectile function?Erectile function reflects overall health. These are the main factors, and the ones within your control.
- What is erectile dysfunction?A short introduction to ED: what it is, what it is not, and why talking about it matters.
- Lifestyle changes that can help erectile dysfunctionExercise, weight, smoking, alcohol, sleep and diet all influence erections. Here are the changes with the best evidence, and which popular claims to ignore.
Sources and further reading
- Erectile Dysfunction (opens in a new tab) — National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK)
- Erectile dysfunction (impotence) (opens in a new tab) — NHS (UK)
- Erectile dysfunction: Symptoms and causes (opens in a new tab) — Mayo Clinic
- Erectile Dysfunction: AUA Guideline (opens in a new tab) — American Urological Association
