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
- Establish the pattern. Do you get morning erections? Are you fine alone but not with a partner? Track it for two weeks.
- Get the basic workup done so nothing is missed, and so you can stop wondering.
- Be completely honest about steroids, recreational drugs, finasteride and supplements. Omitting these wastes everyone's time, including yours.
- Address the anxiety directly. Sex therapy or CBT has good evidence and works faster than waiting it out.
- 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.
- Fix sleep, alcohol and exercise — the three highest-yield changes at this age, and the ones with the largest effect on testosterone.
- Talk to your partner. They are almost certainly drawing a worse conclusion than the truth — see talking to your partner.
Frequently asked questions
Is ED normal in your 20s?
Should a young man have blood tests for ED?
Will it go away on its own?
Do steroids cause permanent ED?
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.
- [01]American Urological Association. Erectile Dysfunction: AUA Guideline (2018).
- [02]Mayo Clinic. Erectile dysfunction — symptoms and causes.
- [03]National Institute of Diabetes and Digestive and Kidney Diseases. Definition & Facts for Erectile Dysfunction.
- [04]Urology Care Foundation. What is Erectile Dysfunction?.