Erectile Dysfunction in Men Under 40: Common Causes and What to Do
Erectile dysfunction (ED) is not only a problem of older age. In younger men it is often linked to stress, anxiety, sleep, smoking, alcohol, weight and some medicines, but it can also be an early sign of a health condition such as diabetes or heart disease. A doctor can check for physical causes, and many younger men improve with lifestyle and psychological support.
How common is ED under 40?
ED is less common in younger men than in older men, but it is far from rare. One study of men seeking help for new ED found that roughly one in four was under 40. Many more never seek help because of embarrassment. If this is you, you are not alone and it is usually treatable.
Occasional erection difficulty is normal at any age, particularly after a poor night’s sleep, a lot of alcohol or a stressful week. It becomes worth attention when it happens repeatedly or lasts more than a few weeks. Our article on when to see a doctor for erectile dysfunction explains the thresholds.
Common causes in younger men
- Psychological factors: performance anxiety, stress, depression, relationship problems and worry about sex are leading causes in men under 40.
- Smoking, vaping and alcohol: both harm blood vessels, and heavy drinking can also blunt arousal.
- Recreational drugs: cannabis, cocaine, amphetamines, opioids and anabolic steroids can all affect erections.
- Excess weight and inactivity: linked to blood vessel and hormone problems.
- Poor sleep: short or broken sleep affects hormones and mood.
- Medicines: some antidepressants, blood pressure medicines, acne treatments and hair loss medicines can affect sexual function.
- Medical conditions: diabetes, high blood pressure, high cholesterol, thyroid problems and low testosterone.
Related reading: psychological causes of erectile dysfunction, common causes of erectile dysfunction and how to fix them, and how smoking and alcohol affect erectile dysfunction.
Is it psychological or physical?
A few clues can help, although a doctor should make the call.
| Pattern | Often points to |
|---|---|
| Sudden onset, linked to a stressful event | Psychological factors |
| Normal morning erections and erections during self-stimulation, but trouble with a partner | Performance anxiety or situational stress |
| Gradual worsening over months, fewer morning erections | Physical or vascular factors |
| Problems in every situation, plus tiredness or low desire | Hormonal or medical factors |
The categories overlap, and anxiety often develops on top of a physical cause. Our guide to erectile dysfunction vs performance anxiety describes the cycle of worry that can keep problems going.
What a doctor may check
- A review of your symptoms, relationship, mood, lifestyle and medicines.
- Blood pressure, weight and waist measurement.
- Blood tests such as blood sugar or HbA1c, cholesterol and, if symptoms suggest it, morning testosterone.
- A heart risk check, especially if there is a family history of early heart disease.
Read about the hormone angle in erectile dysfunction vs low testosterone. Low testosterone is a less common cause in young men than most expect.
What helps
- Reduce pressure. Take the focus off performance. Intimacy without a goal of penetration lowers anxiety and builds confidence.
- Sleep, move and eat well. See lifestyle changes to improve erectile dysfunction and sleep, erections and testosterone.
- Cut back on alcohol and stop smoking or vaping. Avoid recreational drugs and unregulated supplements, especially anabolic steroids.
- Train your pelvic floor. Our guide to Kegel exercises for men explains how.
- Manage weight and waist size, as covered in weight, belly fat and erectile dysfunction.
- Talk about it. Open conversations with a partner reduce secrecy and stress. Counselling or sex therapy can help a great deal.
- Review medicines with a doctor if you suspect a prescribed drug contributes. Do not stop it on your own.
ED medicines for younger men
PDE5 inhibitors work in men of all ages, but doctors usually prefer to look for causes first, and they are not meant for recreational use or “performance boosting” in men without a problem. Taking them without need can create psychological reliance, and combining them with recreational drugs, especially poppers (nitrites), can be dangerous. Counterfeit tablets sold online are another real risk. For the basics on each option, read our comparison of sildenafil, tadalafil, vardenafil and avanafil, and the nitrate warning in ED pills and nitrates.
Younger men sometimes also have premature ejaculation, which is a separate issue. See premature ejaculation vs erectile dysfunction and techniques to last longer naturally.
A note on pornography and ED
Some men report difficulty with partnered sex after heavy porn use. Research is mixed and ED is not caused by porn in every case, but anxiety, high-intensity stimulation and unrealistic expectations can play a role. If you notice a pattern, discussing it with a doctor or therapist, and trying a break or a reduction, can be helpful and nonjudgmental support is available.
Frequently asked questions
Often it is stress, sleep or lifestyle related, but a check-up is sensible because ED can occasionally signal diabetes or heart risk.
Sometimes, especially when stress or lifestyle causes are addressed, but persistent problems should be assessed.
Often yes. Blood sugar, cholesterol and sometimes testosterone are common checks.
Yes. Anxiety can fully explain ED in some men and is often present alongside physical causes.
It carries real risks, including counterfeit products. Use regulated pharmacies and get medical advice first.
Conclusion
ED in men under 40 is common, usually treatable and often linked to stress, lifestyle and sleep, but it deserves a proper check because it can point to underlying health conditions. Reduce pressure, build healthy habits, get support if anxiety is involved, and speak to a doctor if it persists. See our drug policy and FAQs for how we handle medicine information.
This article is general education, not individual medical advice. It is not a substitute for a consultation with a licensed healthcare professional.