Evidence-based men's health information Emergency? An erection lasting 4+ hours needs urgent care.
Home / Guides / Causes

Erection problems in your 20s and 30s

It's more common than most guys think, and in younger men the cause is usually fixable.

Updated November 2026General information, not medical adviceSources at the end
The short version
  • Occasional trouble is normal. ED means it happens regularly over weeks or months.
  • In younger men, stress, anxiety, alcohol, sleep and medications are the usual suspects.
  • Persistent ED is still worth a check-up, because it can be an early warning sign of blood-vessel problems.

How common is it?

ED is often thought of as an older man's problem, but younger men are far from immune. In one Italian clinic study, about 1 in 4 men seeking help for new ED were under 40, and many of them had severe symptoms.

A useful clue: morning and solo erections

If you still get firm erections in the morning, or when you're on your own, but struggle with a partner, a psychological cause such as anxiety is more likely. If erections are weak in every situation, physical causes deserve a closer look. This isn't a diagnosis, but it's a helpful starting point for a conversation with a doctor.

Common causes in younger men

Anxiety, stress and depression

Erections depend on the relaxed "rest and digest" part of the nervous system. Stress hormones push the other way. Worry about performance can turn one bad night into a pattern. More on performance anxiety →

Alcohol and recreational drugs

Heavy drinking dulls the nerve signals involved in arousal. Cannabis, cocaine and other drugs are also linked to erection problems.

Smoking and vaping nicotine

Nicotine narrows blood vessels and smoking damages their lining over time. Smoking is one of the clearest risk factors for ED at any age.

Medications

Some antidepressants (especially SSRIs), certain blood-pressure drugs, finasteride and others can affect erections or desire. Never stop a prescribed medicine on your own: ask your doctor about alternatives.

Weight, fitness and sleep

Obesity, low physical activity and poor sleep (including untreated sleep apnoea) all affect blood flow and hormones. See what helps →

Porn

Many men wonder about this. The research is mixed: some studies link heavy use to problems with partnered sex, while others find no clear connection. If you notice a pattern for yourself, cutting back for a few weeks is a low-risk experiment.

Low testosterone and other medical causes

Low testosterone is less common in young men than adverts suggest, but it's easy to test. Diabetes, high blood pressure, high cholesterol and, rarely, hormone or nerve problems can also be involved.

Why it's worth seeing a doctor

The blood vessels in the penis are small, so they often show trouble before larger ones do. Persistent ED can be an early warning of heart disease or diabetes, sometimes years before other symptoms. A basic check usually means blood pressure, blood sugar, cholesterol and sometimes testosterone, so it isn't an ordeal.

What actually helps

  • Treat the underlying cause where there is one: anxiety, medication side effects, sleep or blood sugar.
  • Lifestyle changes: exercise, quitting smoking, drinking less.
  • Talking therapy or sex therapy, especially for anxiety-driven ED.
  • Medication such as sildenafil or tadalafil, which can also break the anxiety cycle by restoring confidence.

Sources

  1. Capogrosso P. et al. "One patient out of four with newly diagnosed erectile dysfunction is a young man." Journal of Sexual Medicine, 2013.
  2. American Urological Association: Erectile Dysfunction Guideline (2018, amended 2023).
  3. NHS: Erectile dysfunction (impotence), causes.
  4. Gandaglia G. et al. "A systematic review of the association between erectile dysfunction and cardiovascular disease." European Urology, 2014.