Yes, it is probably psychological. No, that is not a diagnosis.

In men under 40, psychological and relational factors are the leading contributors by a wide margin. Performance anxiety in particular is close to universal once a first failure has happened — see how that cycle establishes itself.

But 'you're young, it's stress' is a conclusion, not an assessment, and it is reached without evidence far too often. Type 2 diabetes is being diagnosed at younger ages. Anabolic steroid use is common and under-reported. And research consistently finds that ED in a young man carries a higher relative cardiovascular risk than the same symptom in an older man, precisely because it is so unusual for the age group.

What actually causes it at this age

Performance anxiety
The most common single factor. One bad night, meaning attached to it, self-monitoring during sex, sympathetic activation, repeat. New relationships and first encounters are the classic trigger.
Anabolic steroids and SARMs
Suppress the body's own testosterone production, sometimes for many months after stopping. Be honest with your clinician about this — it changes the entire workup and treatment plan, and there is no judgement worth protecting yourself from here.
Finasteride for hair loss
Sexual side effects are documented in the labelling and affect a minority of users. If your ED began within months of starting it, say so. See medications that cause ED.
SSRIs and other antidepressants
Very common in this age group and a frequent contributor. Never stop them on your own — alternatives with lower sexual side-effect burden exist.
Alcohol, cannabis and stimulants
All impair erections through different mechanisms. Heavy or regular use matters more than occasional.
Sleep deprivation and shift work
Testosterone is produced largely during sleep. Chronically short or fragmented sleep measurably lowers it.
Obesity and early metabolic syndrome
Increasingly present by the thirties, and it acts through several mechanisms at once. See obesity and ED.
Congenital venous leak
Uncommon, but a recognised cause of lifelong difficulty maintaining erections in otherwise healthy young men. Diagnosed with penile duplex ultrasound.
Arousal conditioning
A contested area with genuinely mixed evidence. Some men with heavy pornography use report improvement after changing habits — see pornography and ED.

A sensible order of operations

  1. Establish the pattern. Do you get morning erections? Are you fine alone but not with a partner? Track it for two weeks.
  2. Get the basic workup done so nothing is missed, and so you can stop wondering.
  3. Be completely honest about steroids, recreational drugs, finasteride and supplements. Omitting these wastes everyone's time, including yours.
  4. Address the anxiety directly. Sex therapy or CBT has good evidence and works faster than waiting it out.
  5. Consider a short course of medication to break the cycle of failure. Several reliable successes contradict the belief driving the anxiety, and many men taper off afterwards.
  6. Fix sleep, alcohol and exercise — the three highest-yield changes at this age, and the ones with the largest effect on testosterone.
  7. Talk to your partner. They are almost certainly drawing a worse conclusion than the truth — see talking to your partner.
FAQ

Frequently asked questions

Is ED normal in your 20s?
It is more common than most men assume, and a meaningful minority of ED presentations are under 40. Common is not the same as normal, though — it still warrants assessment.
Should a young man have blood tests for ED?
Yes. Blood pressure, HbA1c, lipids and a morning testosterone are reasonable minimums. Being young is not a reason to skip them, and ED at a young age is a relatively stronger cardiovascular signal.
Will it go away on its own?
Situational difficulty often does. A pattern that has persisted for months, particularly with an anxiety cycle attached, tends to entrench rather than resolve.
Do steroids cause permanent ED?
They suppress your own testosterone production, and recovery after stopping can take many months. Most men recover; some do not fully. Tell your clinician — it changes the treatment plan.
Sources

What this is based on

We link to primary sources — clinical guidelines, regulator publications and peer-reviewed research — wherever possible. Links open on third-party sites we do not control.

  1. [01]American Urological Association. Erectile Dysfunction: AUA Guideline (2018).
  2. [02]Mayo Clinic. Erectile dysfunction — symptoms and causes.
  3. [03]National Institute of Diabetes and Digestive and Kidney Diseases. Definition & Facts for Erectile Dysfunction.
  4. [04]Urology Care Foundation. What is Erectile Dysfunction?.