Anxiety and erectile dysfunction: is it psychological or physical?
How nerves interfere with erections, the patterns that point to mind or body — and why a check-up is worth it either way.
Losing an erection once, or struggling to get one on a night you were nervous, is extremely common. Almost every man experiences it at some point. But when it happens a few times, a worry can take root — what if it happens again? — and that worry can become the very thing that causes the next episode.
This is often called performance anxiety-related erectile dysfunction, or psychogenic ED. It's real, it's common, and it's very treatable. The tricky part is that erection problems can also be an early sign of physical health issues, and many men have a mix of both. This guide explains how anxiety affects erections, the clues that point towards a psychological or physical cause, and when you should see a doctor.
What erectile dysfunction actually means
Erectile dysfunction (ED) is the persistent difficulty getting or keeping an erection firm enough for satisfying sex. The key word is persistent. An occasional difficulty — after drinking, when exhausted, stressed, or with a new partner — is normal and isn't a diagnosis.
ED is common and becomes more so with age. Large studies such as the Massachusetts Male Aging Study found some degree of ED in around half of men aged 40 to 70. Among younger men, psychological factors — especially anxiety — account for a larger share of cases, though physical causes still need to be considered.
How anxiety affects erections
An erection depends on blood flowing into the penis, which is triggered by the parasympathetic nervous system — the "rest and digest" state. Anxiety activates the opposite system: the sympathetic, or "fight or flight", response. Stress hormones such as adrenaline tighten blood vessels and redirect blood towards muscles, which works against an erection.
In practical terms, your body can't easily be highly anxious and highly aroused at the same time. That's not a flaw; it's how the nervous system is designed.
Performance anxiety creates a loop:
- You have one difficult experience.
- Next time, you anticipate a problem and monitor yourself closely ("spectatoring").
- That monitoring triggers the stress response, which makes an erection harder to get or keep.
- The difficulty confirms the fear, and the next time you're even more anxious.
We go deeper into this cycle, and how to break it, in performance anxiety isn't a flaw.
Psychological or physical? The clues
Only a doctor can diagnose the cause, but certain patterns give useful clues. Doctors ask about these when taking a history.
Patterns that suggest a psychological cause:
- It started suddenly, often after a specific event (a stressful encounter, a new relationship, a break-up, a comment from a partner).
- It's situational: erections are fine during masturbation or with one partner, but not in other situations.
- You still regularly wake up with erections. Night-time and morning erections happen during sleep, when anxiety isn't in play — so if they're present, the "hardware" is usually working.
- It's worse when you feel pressure to perform, and better when you're relaxed or distracted.
- You're generally healthy, younger, and there's significant stress, depression, or relationship tension in your life.
Patterns that suggest a physical cause:
- It came on gradually over months or years.
- It happens in every situation, including alone.
- Morning and night-time erections have become rare or absent.
- You have risk factors: diabetes, high blood pressure, high cholesterol, heart disease, obesity, smoking, heavy drinking, or low physical activity.
- It began after starting a new medication (some blood pressure drugs, antidepressants and others can affect erections) or after pelvic surgery or injury.
- You also notice low desire, fatigue, or loss of body hair, which can point to hormonal causes such as low testosterone.
Physical and psychological causes frequently overlap. A man with a mild physical cause may experience one difficulty, then develop anxiety that makes it much worse. That's why "it's all in your head" is rarely the full story — and why a check-up is sensible even if anxiety seems like the obvious explanation.
Why a check-up matters: ED and heart health
The blood vessels in the penis are smaller than those supplying the heart. So when vessels start to narrow due to atherosclerosis, erection problems can appear years before symptoms such as chest pain. Organisations including the American Urological Association and Mayo Clinic describe ED as a possible early warning sign of cardiovascular disease.
This doesn't mean ED is a sign of heart disease for most men — especially younger men with situational symptoms. It means ED is a good reason to get a basic health check, which might include blood pressure, blood sugar, cholesterol and, if indicated, hormone levels.
What helps anxiety-related ED
Take the pressure off. The most effective step is often to stop treating sex as a test. Many sex therapists use sensate focus, a structured programme where intercourse is temporarily off the table and couples practise touch purely for sensation. With nothing to fail at, erections often return on their own.
Calm the nervous system. Slow breathing with a longer exhale shifts the body towards the parasympathetic state that supports arousal. Practising it daily — not just in the moment — makes it more effective when you need it.
Challenge catastrophic thoughts. Cognitive behavioural therapy (CBT) techniques help you notice thoughts like "if I lose it, she'll leave" and test them against reality. Writing them down is often more powerful than thinking them through.
Talk to your partner. Secrecy fuels anxiety. A brief, honest conversation — "I've been nervous lately and it's affecting me; it's not about you" — usually relieves pressure on both sides.
Look after the basics. Regular exercise, good sleep, limiting alcohol, and not smoking all support erectile function. Pelvic floor exercises have also been shown in trials to help some men with ED.
Consider medication, with a doctor. PDE5 inhibitors such as sildenafil and tadalafil improve blood flow and can be helpful even when the cause is mainly psychological — a few successful experiences can break the anxiety loop. They require a medical assessment (in the UK, sildenafil is also available from pharmacies after a pharmacist consultation). They must never be combined with nitrate medicines used for chest pain, and should be avoided from unregulated online sellers, where counterfeit products are common.
Work with a professional. A sex therapist or psychologist experienced in sexual health can be extremely effective for psychogenic ED, especially where there's relationship strain, depression, or past trauma.
When to see a doctor
See a doctor if:
- Erection problems have lasted more than a few weeks.
- You have risk factors such as diabetes, high blood pressure, high cholesterol, smoking, or a family history of heart disease.
- ED came on gradually or you've lost morning erections.
- It started after a new medication — but don't stop any prescribed medicine without advice.
- You have other symptoms: pain, curvature of the penis, low desire, or urinary problems.
- It's affecting your mood, confidence, or relationship.
Seek urgent medical help if you ever have an erection that lasts longer than four hours (priapism), or chest pain, especially during sexual activity.
Doctors see ED every day. It's a routine conversation for them, and there's no need to feel embarrassed.
This article is for general education and cannot diagnose the cause of your symptoms. Please speak to a qualified healthcare professional about your situation.
Break the anxiety loop, privately
Kareeb's performance anxiety track uses guided breathing, body awareness and sensate-focus-based exercises to take the pressure off. Anonymous, audio-guided, 5–10 minutes.
Try a free exercise — no signup →→ Talk it through with the AI Coach, anonymously
The full 21-day performance anxiety reset is part of Kareeb Premium — $9.99/month, free tier available.
Frequently asked questions
Can anxiety cause erectile dysfunction?
Yes. Anxiety activates the fight-or-flight response, which works against the relaxed state needed for an erection. Worry about performance can create a loop where each difficulty increases anxiety next time.
How do I know if my ED is psychological?
Clues include sudden onset, problems only in certain situations, and still having normal morning or night-time erections. Gradual onset, problems in every situation and health risk factors point more towards a physical cause. Only a doctor can diagnose the cause, and many men have both.
Is erectile dysfunction a sign of heart disease?
It can be an early warning sign, because the penile blood vessels are small and may be affected by narrowing before the heart is. That is why a basic health check is recommended for persistent ED.
When should I see a doctor about erection problems?
If difficulties last more than a few weeks, came on gradually, started after a new medication, or you have risk factors such as diabetes, high blood pressure or smoking. Seek urgent help for an erection lasting more than four hours.
Feldman H.A. et al., "Impotence and its medical and psychosocial correlates: results of the Massachusetts Male Aging Study", Journal of Urology (1994) · Masters W.H. & Johnson V.E., Human Sexual Inadequacy (1970) · Dorey G. et al., BJU International (2005) — pelvic floor exercises for ED · American Urological Association · Mayo Clinic · NHS · Cleveland Clinic · International Society for Sexual Medicine (ISSM).