Performance Anxiety and Erectile Dysfunction: Why It Happens and What to Do

By the WeSex editorial team, from the work of the sexologists and gynecologists who create WeSex content · November 10, 2026 · 4 min read

The short answer: nerves can affect your erection because anxiety triggers your body's alarm response, which shuts down sexual function. It's very common, especially with someone new or someone you really like. Lowering the pressure, taking the focus off your penis, relaxing your body and talking about it all help. If it happens often, or you don't get erections when you wake up, see a doctor.

It's one of the most common concerns people with a penis bring to Luna, along with lasting longer in bed.

Why does anxiety affect erections?

Thoughts like "I won't get hard" or "I won't last" register as a threat. Your fight-or-flight system kicks in and your body pauses anything it doesn't need to defend itself, including your sexual response.

That's how the cycle starts: one encounter goes wrong, you fear it'll happen again, the fear creates more anxiety and the anxiety affects your erection again. Over time it can even lower your desire, because your body avoids what feels like a test.

When is it erectile dysfunction and not just nerves?

Erectile dysfunction (ED) is a persistent difficulty getting or keeping an erection firm enough for satisfying sex. Prevalence estimates vary widely by study and by age range. In the Massachusetts Male Aging Study, the standard reference, 52% of men aged 40 to 70 reported some degree of erectile difficulty (Feldman et al., 1994). It can start earlier too.

It can have physical causes (diabetes, high blood pressure, hormonal imbalances) or psychological ones (anxiety, depression, stress). One useful clue: if you have erections at night or in the morning, the emotional side is more likely to be the main factor.

5 myths about erections

MythWhat sex therapists say
"If I don't get hard, I'm not into them"False. Wanting someone doesn't guarantee an erection. The pressure of really liking someone can work against you.
"I should be able to get hard anytime"False. People with a penis can also not be in the mood.
"My erection has to last the whole time"False. A lot of great things can happen without an erect penis.
"It should always feel the same"False. Firmness changes with the situation and with age. Your penis gets stressed and ages like the rest of you.
"Condoms make me lose my erection"False, unless it's too small or you're allergic to latex. It's usually nerves or lack of practice.

What to do in the moment if you lose your erection

  1. Don't make it a big deal. It happens, especially early on. What matters most is how you react.
  2. Take the focus off your penis. Keep going with kissing, touching, oral sex, toys or just talk.
  3. If it happens to your partner, don't take it personally. It's far more likely to be nerves than a lack of attraction. Skip the negative comments.
  4. Check the context. Alcohol, other substances and exhaustion all affect erections.

Which habits support healthy erections?

  • Diet and exercise. They protect your arteries, which are key for erections.
  • Sleep. Too little sleep can lower desire and affect erections.
  • Stress management. Through exercise and conscious breathing.
  • Pelvic floor exercises. They improve control and muscle strength.

Exercise: get to know what speeds you up

These rituals come from Presence and Control, the WeSex plan for lasting longer and feeling more in control:

  1. What speeds you up. Think about your recent sexual experiences and write down at least two things that ramp up your arousal: a movement, a rhythm, a position, a thought. Knowing them lets you choose when to go up and when to slow down.
  2. Tense to let go. Pick an area where you hold tension. Squeeze it for five seconds and release all at once. Repeat three times. Your body needs to remember what relaxation feels like so it can choose it.

In the app, Luna guides you through the full 21-day plan and adapts it to what you share.

When should you see a doctor?

If it keeps happening, see a sex therapist. If you also haven't had night or morning erections for a long time, see a doctor. Talking about it is the first step of treatment.

Frequently asked questions

Can anxiety cause erectile dysfunction?

Yes. Anxiety triggers your body's alarm response, which inhibits sexual function.

Why do I lose my erection with my partner but not alone?

Alone there's no one watching and no pressure to perform. With someone else, expectations and fear of failing show up.

How do I know if it's psychological or physical?

If you get erections at night or in the morning, the emotional side usually weighs more. Still, see a doctor if it keeps happening.

Is premature ejaculation also linked to anxiety?

Often, yes. The pressure to last works against control. Start by looking at your expectations.

Is it normal for this to happen the first time with someone?

Yes, it's very common. The key is not to make it a big deal and keep enjoying each other in other ways.

Based on

Articles "Erection Problems?", "False Beliefs About Erections", "Keys to Healthy Erections", "What Happens When There's No Erection?", "Premature Ejaculation", "Performance Anxiety" · guide "Sexual Desire" (dysfunction) · Presence and Control plan (rituals "What speeds you up", "Tense to let go")