Worried man sitting alone on a bench, head in his hand

Diagnosis

Erectile Dysfunction and Testosterone: Is Low T to Blame?

M. Videika

← Back to Resources

It happens once and you put it down to tiredness or one drink too many. Then it happens again. Before long you are thinking about it before sex even starts, which, of course, makes it more likely to happen. At some point a search engine suggests the obvious culprit: low testosterone.

Sometimes that is part of the answer. Far more often it is not the main one. Erectile dysfunction is one of the most common health problems in men over 40, it is usually treatable, and it can be an early warning about your heart that is worth more than any hormone test. Here is how testosterone fits into the picture, what actually causes most erection problems, and what to do about it.

How common erection problems really are

Erectile dysfunction, or ED, means struggling to get or keep an erection firm enough for sex, on a regular basis. Almost every man has the odd bad night. ED is when it becomes a pattern.

It is extremely common. In the Massachusetts Male Aging Study, one of the best-known surveys on the subject, around half of men aged 40 to 70 reported some degree of erectile difficulty, ranging from occasional to complete. The proportion rises with age, but ED is not an inevitable part of getting older, and plenty of men in their 60s and 70s have no problems at all.

The reason it matters beyond the bedroom is what it can tell you about the rest of your body.

How an erection actually works

An erection is mostly a plumbing event controlled by nerves and blood vessels. When you are aroused, nerves release nitric oxide in the penis. That relaxes the smooth muscle in the walls of its arteries, blood rushes into two spongy chambers, and the veins that normally drain them are squeezed shut. Anything that interferes with that chain can cause ED:

  • Blood vessels that are stiff, narrowed or damaged.
  • Nerves that are damaged, for example by diabetes or surgery.
  • Hormones, mainly testosterone, which sets the background level of desire and supports the nitric oxide system.
  • The brain, through stress, anxiety, low mood or relationship strain.
  • Medicines and substances that affect any of the above.

In most men over 40, more than one of these is involved.

The heart connection most men miss

The arteries in the penis are much smaller than the arteries supplying the heart. When the lining of blood vessels starts to stiffen and narrow, a process that also leads to heart attacks and strokes, the effect often shows up in the penis first, simply because there is less room for error in a small vessel.

A systematic review led by Gandaglia and colleagues in European Urology concluded that ED and cardiovascular disease are two expressions of the same underlying problem with blood vessels, and that ED usually comes before heart disease. The authors recommended that men with ED be assessed for cardiovascular risk and have their risk factors treated properly.

In practical terms, new erection problems in a man in his 40s or 50s are a good reason to have his blood pressure, cholesterol, blood sugar and weight checked, even if he feels fine otherwise. That check may matter more for his long-term health than the erection itself.

Where testosterone fits in

Testosterone is often blamed first, but its role is more specific than most men expect.

What testosterone does for sex

Testosterone drives libido, the background interest in sex, and supports the spontaneous erections you get at night and in the morning. Our article on what your morning erections are telling you explains why fewer morning erections can be a useful clue. Testosterone also helps the nitric oxide system in the penis work properly, so very low levels can make erections weaker.

What it does not do

Testosterone is not the main switch for an erection in most men. Plenty of men with low testosterone still get good erections, and plenty of men with normal testosterone have ED. The typical pattern of low testosterone is a loss of desire first, with erection problems following, rather than strong desire with an erection that will not cooperate.

The best recent evidence comes from the TRAVERSE trial, which tested testosterone therapy in more than 5,000 middle-aged and older men with low testosterone and symptoms. A sexual function substudy, published by Pencina and colleagues in the Journal of Clinical Endocrinology and Metabolism, found that testosterone modestly improved sexual activity and low desire compared with placebo. It did not clearly improve erectile function on its own.

That fits what doctors see in clinic. Treating genuinely low testosterone can restore interest in sex and help some men respond better to ED tablets, but testosterone alone rarely fixes a problem that is mainly about blood vessels.

Should you have your testosterone checked?

Yes. Guidance from the British Society for Sexual Medicine recommends measuring morning testosterone in men with ED, because low testosterone is common, treatable and can make other treatments work less well. It should be a fasting blood sample taken in the morning, and a low result should be repeated before anyone diagnoses low testosterone. Our guide to the testosterone blood test explains how to get an accurate result, and how to read your blood test results covers what the numbers mean.

The most common causes, in order

For most men, ED is caused by a combination of the following:

  • Blood vessel disease. High blood pressure, high cholesterol, smoking and diabetes all damage the lining of arteries. This is the most common physical cause in men over 40.
  • Type 2 diabetes. It damages both blood vessels and nerves, and men with diabetes are much more likely to develop ED, often at a younger age. Our article on testosterone and type 2 diabetes explains the overlap.
  • Weight around the middle. Visceral fat drives inflammation, raises blood pressure and lowers testosterone at the same time. See why belly fat won't budge.
  • Medicines. Some blood pressure tablets, antidepressants, prostate medicines such as finasteride, and others can affect erections or desire. Our guide to medications that lower libido lists the main ones. Never stop a prescribed medicine without talking to your doctor.
  • Alcohol, smoking, vaping and recreational drugs. Heavy drinking affects nerves and hormones, nicotine narrows blood vessels, and cannabis and other drugs can play a part. See the alcohol and testosterone truth and our article on vaping and nicotine pouches.
  • Psychological causes. Stress, anxiety, depression and performance anxiety are common, especially in younger men, and can keep the problem going even after a physical cause has been treated.
  • Low testosterone, usually alongside low desire and other symptoms.
  • Poor sleep and sleep apnoea. Our article on sleep apnoea and testosterone explains why loud snoring and daytime sleepiness are worth mentioning to your GP.

Physical or psychological? A rough guide

A few clues can point one way or the other, although many men have elements of both:

  • If you still get firm erections in the morning or when alone, but struggle with a partner, anxiety or relationship factors are more likely to be playing a big part.
  • If the problem came on gradually and erections are weaker in every situation, including the morning, a physical cause is more likely.
  • If it started suddenly after a stressful event, a new medicine or a new relationship, think about those first.

What actually works

Lifestyle changes that make a real difference

The same habits that protect your heart protect your erections, and they help testosterone too:

  • Move more. Regular aerobic exercise and strength training improve blood vessel function. Our guide on whether lifting weights increases testosterone covers the hormonal side.
  • Lose weight if you need to. Even modest weight loss improves erectile function in many overweight men.
  • Stop smoking and cut down on alcohol.
  • Sort out sleep. Short or broken sleep lowers testosterone and makes everything else harder. See why you wake up tired after 8 hours.
  • Get your blood pressure, cholesterol and blood sugar under control, with medicine if needed.

ED tablets

The first-line medicines for ED are PDE5 inhibitors, such as sildenafil (Viagra) and tadalafil (Cialis). They boost the nitric oxide pathway, so they help an erection happen when you are aroused rather than causing one on their own. They work for a large majority of men, including many with diabetes.

In the UK, some are available from pharmacies without a prescription. Sildenafil 50mg (Viagra Connect) was reclassified for pharmacy sale in late 2017 and went on sale in 2018, and tadalafil 10mg (Cialis Together) followed in 2023. A pharmacist will ask some questions first and will not sell them to men with severe heart disease, high cardiovascular risk, severe kidney or liver failure, or men taking certain interacting medicines.

One rule matters above all: never take a PDE5 inhibitor with nitrate medicines, such as GTN spray for angina, or with recreational "poppers". The combination can cause a dangerous drop in blood pressure. Be wary of tablets bought online without a prescription or pharmacy check, as counterfeit ED medicines are common and can contain the wrong dose or other drugs.

If the first tablet you try does not work, do not give up. It may need to be taken a different way, at a different dose, or several times before it works well. A GP or pharmacist can help.

Other treatments

If tablets do not work or are not suitable, there are other options, including vacuum pumps, medicines injected into the penis or inserted into the urethra, and, for some men, surgery. Psychosexual therapy is effective when anxiety or relationship factors are involved, on its own or alongside medicine.

Testosterone therapy

If blood tests confirm low testosterone and you have symptoms, testosterone therapy may help desire and overall wellbeing and can make ED tablets work better. It is not a treatment for ED in men with normal testosterone, and it carries its own considerations, including fertility. Our articles on TRT, TRT side effects and TRT and fertility are worth reading before you start.

When to see a doctor

See your GP if erection problems last for more than a few weeks, especially if you are over 40, have diabetes, smoke, or have high blood pressure or cholesterol. It is a routine conversation for doctors, and a good opportunity to check your heart health at the same time.

Get help urgently if an erection lasts more than four hours, or if erection problems come with chest pain, breathlessness on exertion, or pain, swelling or a lump in the testicles. Our guide to low testosterone red flags covers other symptoms that need prompt attention.

Common questions

Is my erectile dysfunction caused by low testosterone?

It might be part of it, particularly if you also have low desire, fewer morning erections, tiredness or low mood. But in most men over 40, the main cause is blood vessels, often with other factors adding up. A morning blood test is the only way to know your testosterone level.

Will TRT fix my erections?

Not on its own in most cases. In large trials, testosterone improved sexual desire and activity in men with confirmed low levels, but it did not clearly improve erectile function by itself. It can help ED tablets work better in men who are genuinely deficient.

Can I buy Viagra over the counter in the UK?

Yes. Sildenafil 50mg (Viagra Connect) and tadalafil 10mg (Cialis Together) can be bought from pharmacies without a prescription after a short consultation with the pharmacist, if you are 18 or over and they are suitable for you.

I am in my 20s. Can I still have ED?

Yes. In younger men, anxiety, stress, alcohol, recreational drugs and porn-related performance worries are more common causes, but physical causes still need checking. Our article on whether masturbation lowers testosterone clears up some common myths.

Does ED mean I am going to have a heart attack?

No, but it does mean your heart health is worth checking. ED often appears before heart problems, which gives you a valuable head start on lowering your risk.

Sources: Feldman HA et al, Journal of Urology, 1994, 151(1):54 to 61, Massachusetts Male Aging Study · Gandaglia G et al, European Urology, 2014, 65(5):968 to 978, erectile dysfunction and cardiovascular disease · Pencina KM et al, Journal of Clinical Endocrinology and Metabolism, 2024, 109(2), TRAVERSE sexual function substudy · Hackett G et al, Journal of Sexual Medicine, 2018, 15(4):430 to 457, British Society for Sexual Medicine guidelines on the management of erectile dysfunction in men · MHRA, reclassification of Viagra Connect (2017) and Cialis Together (2023) · NHS, Erectile dysfunction (impotence) · Educational only, not medical advice.

Keep reading: What your morning erection is telling you · Why your libido tanked after 40 · Medications that lower libido · Is TRT safe for your heart? · What causes low testosterone? · The testosterone blood test

Want the full protocol?

The Testosterone Blueprint covers the complete system — sleep, training, nutrition, supplements and bloodwork, with a step-by-step plan you can start this week.

Get the book →