
Erectile dysfunction can happen at any age, but for men under 40 the most common cause is not physical. It is anxiety. Worry, performance pressure, and overthinking can interrupt the body’s natural arousal response, even when everything is physically healthy. This can feel confusing and frightening, especially after it happens once or twice, but anxiety related erection problems are incredibly common and very treatable.
This guide explains how anxiety affects erections, why the body reacts the way it does, and when medication may or may not help.
An erection is controlled by the nervous system. When you feel relaxed, aroused, and safe, the body releases chemicals that open blood vessels in the penis and allow blood to flow in. Anxiety activates the opposite system. The brain senses stress or threat and redirects blood flow away from the genitals and into the muscles needed for alertness.
This response is automatic. You cannot force an erection during high anxiety, no matter how much you want to. This type of reaction is why many younger men find they have normal morning erections or solo erections but struggle during partnered sex. It is not a failure, it is simply a stress response.
Men under 40 often face specific pressures, including:
These thoughts can create a loop. Anxiety disrupts the erection, the loss of erection increases the anxiety, and the cycle repeats the next time.
You are more likely dealing with anxiety if:
Physical causes are more likely if erections are weak in all situations, including mornings or solo activity. In that case, a GP or men’s health provider should assess you.
Medicines like sildenafil or tadalafil can help younger men with anxiety related ED, but they work best when used alongside relaxation strategies and confidence building. These medicines improve blood flow, which can make it easier to maintain an erection, but they do not remove the underlying anxiety.
Medication is less helpful when:
Medication is more helpful when:
For many younger men, the combination of ED tablets, reassurance, and reduced pressure works very well.
Take the pressure off
Sex improves when it is not treated like a test. Focus on touch, connection, and enjoyment rather than performance.
Slow down
Rushing increases adrenaline, which works against erections.
Talk openly with your partner
Most people are far more understanding than men expect. Honesty reduces pressure and creates calm.
Limit alcohol
Alcohol can increase confidence at first but reduces erection quality.
Improve sleep
Poor sleep increases nervous-system tension and can worsen ED.
Look after your mental health
Stress, depression, and low confidence all play a role. Talking to a therapist or counsellor can make a big difference.
Speak to a doctor or online men’s health provider if:
A simple consultation can rule out physical causes and help you decide the right approach.
Erection problems among younger men are far more common than most people realise. Anxiety is the leading cause, and it is both understandable and treatable. With reassurance, practical strategies, and support when needed, most men return to normal function much faster than they expect.