Back to Sexual Health

What Causes Erectile Dysfunction?

Mens Health Guide Editorial 19 January 2026

Erectile dysfunction, usually shortened to ED, means difficulty getting or keeping an erection firm enough for sex. It is extremely common. Most men experience occasional problems at some point, and studies suggest that around half of men between forty and seventy have some degree of persistent difficulty. It is not something to be embarrassed about, and it is usually very treatable. It is also worth taking seriously, because the causes can matter for your wider health.

How does an erection work?

An erection depends on several systems working together. Sexual arousal sends signals from the brain through the nerves to the penis. Those signals cause the blood vessels in the penis to relax and widen, allowing blood to flow into two spongy chambers called the corpora cavernosa. As they fill, veins that normally drain blood away are compressed, trapping the blood and producing a firm erection.

Anything that affects the brain, nerves, blood vessels, hormones or the tissue of the penis itself can interfere with that process.

What are the physical causes?

Problems with blood flow are the most common physical cause, particularly in men over forty. The same processes that narrow the arteries to the heart, including high blood pressure, raised cholesterol, smoking and diabetes, also narrow the smaller arteries supplying the penis.

Diabetes is one of the leading causes, because it damages both blood vessels and nerves. Being overweight, especially around the waist, is closely linked. Heavy drinking, smoking and lack of physical activity all contribute.

Nerve damage from conditions such as multiple sclerosis, Parkinson's disease, spinal injury or surgery for prostate or bowel cancer can cause ED. Hormone problems, including low testosterone, an overactive or underactive thyroid and high prolactin, play a part in some men.

Many medicines can cause erection problems as a side effect, including some antidepressants, blood pressure tablets and prostate medicines. Recreational drugs and anabolic steroids can too.

What are the psychological causes?

Stress, anxiety, depression, tiredness and relationship difficulties can all affect erections. Performance anxiety, where worry about failing makes failure more likely, is common and can develop after a single bad experience.

Psychological causes are more common in younger men, but they can affect anyone. A clue is when erections work normally in some situations, such as during masturbation or on waking, but not in others.

Is it usually one or the other?

Often both are involved. A man may develop mild ED because of a physical cause, then begin worrying about it, which makes things worse. Treating both sides usually produces the best result.

Why is ED linked to heart disease?

The arteries supplying the penis are narrower than those supplying the heart, so they can show signs of damage earlier. ED can appear several years before symptoms of heart disease. For this reason, a GP will often check your blood pressure, cholesterol and blood sugar when you mention erection problems.

What treatments are available?

Treatment depends on the cause. Lifestyle changes such as losing weight, exercising, stopping smoking and cutting down on alcohol can improve erections. Tablets such as sildenafil and tadalafil work for many men. Other options include vacuum pumps, injections and, in some cases, surgery. Psychosexual therapy helps where psychological factors are significant.

Sildenafil is available from pharmacies without a prescription after a consultation with a pharmacist, and it can also be prescribed by a GP.

When should you see a GP?

See a GP if erection problems last for more than a few weeks or are affecting your confidence or relationship. The appointment is also an opportunity to check for conditions such as diabetes and heart disease that may not yet have caused any other symptoms. It is a routine conversation for a GP, and often a quick one.

Seek urgent help at A&E for an erection lasting more than four hours, as this is a medical emergency called priapism.

The sexual health section covers related topics in more detail.

This page is general information rather than medical advice.