In This Article

  1. How Common Is ED in Young Men?
  2. The Main Causes of ED Under 40
  3. The Morning Erection Test
  4. Lifestyle Factors That Wreck Erections Early
  5. Porn-Induced ED: What the Research Says
  6. Treatment Options for Younger Men
  7. Online Providers Worth Considering
  8. FAQs

If you're in your 20s or 30s and having trouble getting or keeping an erection, you're not broken — and you're far from alone. Erectile dysfunction in young men is significantly more common than most people realize, and the number of young men dealing with it has been increasing.

The problem is that most ED content is written for men over 50. That's understandable — age is the single biggest risk factor — but it leaves younger men feeling like something is seriously wrong with them when they can't perform. The causes, the psychology, and the best treatment approaches for a 25-year-old are different from those for a 55-year-old.

Key Takeaway Most ED in men under 40 is psychological — performance anxiety, stress, or relationship issues. But roughly 1 in 3 young men with ED have an underlying physical cause. The morning erection test is your first diagnostic clue.

How Common Is ED in Young Men?

More common than you'd think. Depending on how strictly ED is defined, studies report a prevalence of 8–30% in men under 40. The wide range reflects differences in how studies define "erectile dysfunction" — some count occasional difficulty, others require consistent inability.

A few data points worth noting:

The stigma cuts both ways. Older men accept ED as a natural part of aging (even though it's treatable). Younger men assume they're the only 27-year-old dealing with this, so they don't talk about it and don't seek help.

The Main Causes of ED Under 40

In older men, ED is predominantly vascular — the arteries that supply blood to the penis are damaged by years of high blood pressure, diabetes, smoking, or atherosclerosis. In younger men, the picture is different.

Psychological causes (most common in young men)

Performance anxiety is the leading cause of ED in men under 40. It creates a brutal feedback loop: you fail once, then you're anxious about failing again, and the anxiety itself prevents the erection. The more you focus on your performance, the worse it gets.

Relationship stress — conflict, emotional disconnection, communication breakdown, or unresolved issues with a partner — directly impacts sexual function. Erections require parasympathetic nervous system activation ("rest and digest"), which is the opposite of what your body does when you're stressed or emotionally guarded.

Depression and anxiety both independently suppress sexual function. Depression blunts desire and arousal. Anxiety triggers sympathetic nervous system activation that actively prevents erections. And many medications used to treat these conditions — particularly SSRIs — can cause or worsen ED as a side effect.

Physical causes (don't rule them out)

A UCLA study found that more than 30% of young men presenting with ED had underlying physical pathology that would have been missed without proper evaluation. Just because you're 25 doesn't mean the cause is automatically "in your head."

Physical causes in younger men include hormonal imbalances (low testosterone, thyroid disorders), medication side effects (SSRIs, finasteride, certain acne medications), recreational drug use, vascular issues from early diabetes or metabolic syndrome, and pelvic floor dysfunction.

When to See a Doctor If your ED started suddenly, if you've lost morning erections entirely, if you have pain during erections, or if you have other symptoms like fatigue, weight gain, or breast tissue changes — see a doctor. These patterns suggest a physical cause that needs medical evaluation.

The Morning Erection Test: Your First Diagnostic Clue

This is the single most useful piece of self-assessment for any man experiencing ED, and it's especially relevant for younger men where the psychological vs. physical distinction matters most.

If you regularly wake up with erections: Your vascular and neurological hardware is working. Your body can produce erections when your conscious mind isn't interfering. This strongly suggests a psychological cause — performance anxiety, stress, depression, or relationship factors.

If morning erections have stopped or become very rare: Something may be affecting your physical ability to get erections. This warrants blood work (testosterone, thyroid, blood glucose, lipid panel) and a medical evaluation. It doesn't mean it's necessarily serious, but it means the cause isn't purely psychological.

This isn't a perfect test — some medications suppress nocturnal erections, and poor sleep quality can interfere — but it's a solid starting point that costs nothing and can help you and your provider determine the right approach.

Lifestyle Factors That Wreck Erections Early

Young men often underestimate how much their daily habits affect erectile function. The same body that can recover from a night of heavy drinking at 22 is accumulating damage that shows up in the bedroom by 28.

Alcohol

One or two drinks may actually reduce performance anxiety, but three or more drinks reliably impair erection quality. Chronic heavy drinking causes long-term ED through liver damage, reduced testosterone, and nerve damage. If you're having ED and you drink regularly, cutting back is the single easiest intervention.

Recreational drugs

Cannabis, cocaine, MDMA, and amphetamines all affect sexual function in different ways. Cannabis reduces sensitivity and can impair arousal. Cocaine causes vasoconstriction (the opposite of what you need). MDMA makes erections nearly impossible during use. Regular use of any of these can create persistent problems.

Sleep deprivation

Testosterone production is directly linked to sleep quality. Restricting sleep to 5 hours per night for just one week can reduce testosterone levels by 10–15% — the equivalent of aging 10–15 years in terms of hormone levels. If you're sleeping 5–6 hours a night and having ED, this is likely a major contributor.

Sedentary lifestyle and poor diet

Even at a young age, poor cardiovascular fitness means reduced blood flow — including to the penis. Regular aerobic exercise improves endothelial function and nitric oxide production, both of which are essential for erections. The evidence is strong enough that some researchers have called exercise the "best lifestyle intervention for ED."

Porn-Induced ED: What the Research Actually Says

This is one of the most debated topics in men's sexual health, and the research is genuinely mixed.

The hypothesis: Heavy pornography use may alter dopamine reward pathways in the brain, leading to a situation where real-world sexual encounters don't provide enough stimulation to achieve or maintain an erection. The term "porn-induced erectile dysfunction" (PIED) was coined to describe this phenomenon.

What the evidence supports: Several studies have found associations between high pornography consumption and erectile difficulties in young men. The proposed mechanism — desensitization of dopamine receptors — is biologically plausible and consistent with what we know about other forms of behavioral conditioning.

What remains uncertain: Correlation isn't causation. Men with depression or anxiety may use more porn and have more ED, with both caused by the underlying mental health condition. Controlled studies are difficult to conduct and the existing evidence is largely observational.

The practical approach: If you suspect porn use is contributing to your ED, the most commonly recommended approach is a trial period of reduced consumption or abstinence (typically 30–90 days) while monitoring whether sexual function improves with a real partner. There's little downside to trying this, and many men report improvement.

Treatment Options for Younger Men

The good news is that ED in young men is generally very treatable. The approach depends on the cause.

For primarily psychological ED

Cognitive behavioral therapy (CBT) and sex therapy are the most evidence-based approaches for performance anxiety. A therapist who specializes in sexual dysfunction can help break the anxiety cycle. Many men see significant improvement in 6–12 sessions.

Mindfulness-based techniques have growing evidence for sexual performance anxiety. The core principle is learning to stay present during sexual activity rather than monitoring your performance — which is the pattern that maintains the anxiety loop.

PDE5 inhibitors as a bridge: Many clinicians prescribe sildenafil or tadalafil temporarily for young men with performance anxiety. The medication ensures the erection works, which breaks the failure cycle and rebuilds confidence. Once the anxiety resolves, the medication can often be discontinued. This is not a crutch — it's a therapeutic tool.

For physical causes

Address the root cause first: If low testosterone is the issue, treatment with TRT or clomiphene can help (with the caveat that TRT affects fertility — important for men in this age group). If medications are causing the problem, switching to an alternative may resolve it.

PDE5 inhibitors work well for organic ED in young men. Response rates are typically higher in younger men (~80%+) compared to older men, because the underlying vascular system is usually in better shape.

Lifestyle changes — improving sleep, reducing alcohol, exercising regularly, managing stress — can be surprisingly effective, especially when the ED is mild to moderate.

Ready to Talk to a Provider?

Online telehealth platforms let you get a private consultation and prescription without an awkward in-person visit. Here are the top options for younger men.

BraveRX — Compound Formulas from $119/mo → MyDrHank — From ~$1.67/pill →

Online Providers Worth Considering

Telehealth has been particularly impactful for younger men with ED, largely because it removes the barrier of having to discuss this face-to-face with a doctor. Privacy and convenience matter — and they're legitimate reasons to use an online platform.

Provider Best For Starting Price
BraveRX Compound formulas, daily dosing, 24/7 support $119/mo Visit →
MyDrHank Budget-friendly, ~$1.67/pill, pharmacy-owned ~$1.67/pill Visit →
Peter MD $90 flat-rate program, fast approval $90/program Visit →

For a full comparison of every online ED treatment platform — including pricing, medications offered, and our honest assessment of each — see our complete provider ranking.

Which Approach Is Right for You?

Frequently Asked Questions

How common is ED in men under 30?
Studies show that 8–30% of men under 30 experience some degree of erectile dysfunction, depending on how ED is defined. The prevalence has been rising in recent years, likely due to increased awareness and changing lifestyle factors.
Is ED in young men usually psychological or physical?
In men under 40, ED is more often psychological (performance anxiety, stress, relationship issues) than organic/physical. However, a UCLA study found that over 30% of young men presenting with ED had underlying physical pathology, so medical evaluation is still important.
How can I tell if my ED is psychological or physical?
The simplest diagnostic clue is morning erections. If you regularly wake up with erections, your vascular and neurological hardware is likely working correctly, pointing to psychological causes. If morning erections have disappeared, an organic cause is more likely and you should see a doctor.
Should a 25-year-old take Viagra or Cialis?
PDE5 inhibitors like sildenafil (Viagra) and tadalafil (Cialis) are safe and effective for young men when prescribed by a doctor. Many telehealth platforms can prescribe these after a brief consultation. However, if your ED is primarily psychological, medication alone won't address the root cause — consider combining it with therapy or lifestyle changes.
Can porn cause erectile dysfunction?
Research on porn-induced ED is still evolving. Some studies suggest that heavy pornography use may contribute to erectile difficulties by altering dopamine reward pathways. Reducing consumption and engaging in a period of abstinence is the most commonly recommended approach if you suspect this is a factor.