
Erectile dysfunction (ED) can be physical, psychological, or both. The biggest clue is when it happens: if you still get firm erections when you're alone or while you sleep, but not with a partner, the cause is more likely psychological, while trouble in every situation points to a physical cause.
ED is common in younger men, with up to 30% of men under 40 having had erection difficulties (Nguyen et al., 2017). In one clinic study of 948 men with ED in Turkey, 83% of men under 40 had mainly psychological ED, compared with 40.7% of men over 40 (Caskurlu et al., 2004). Many men have both causes at once, so a doctor's check is the surest way to know what's behind yours.
Age is one clue, but it can't settle the question. If you want the basics first, our full guide to erectile dysfunction covers how common ED is and how doctors usually describe it. Here, we're narrowing in on one question: is your ED more likely physical or psychological?
In younger men, ED is more often psychological. Physical causes become more common as men get older, since conditions like high blood pressure build up over time.
A physical cause is less likely in your 20s or 30s, but it can still happen (Rastrelli & Maggi, 2017). That's why the signs in the sections below are a better guide than your age.
Physical ED usually comes down to blood flow, hormones, or nerve signals not working the way they should. Common physical causes include (Cleveland Clinic, 2023):
If several of these apply to you, seeing a doctor is the fastest way to find out what's actually going on.
Psychological ED is usually driven by stress, anxiety, or how you feel about yourself or the situation. Psychological erectile dysfunction covers a wide range of causes, and the most common ones include stress and anxiety, which put your body on edge and make it harder to relax into arousal, and low self-esteem, which can make you expect to fail before you even try (Cleveland Clinic, 2023). A negative sexual experience that knocked your confidence can also be where the problem starts.
Depression is another common driver. It often lowers desire and arousal at the same time, so erections become harder even when nothing physical has changed (Cleveland Clinic, 2023).
Performance anxiety works a bit differently. Once a man loses an erection one time, he can start watching himself during sex instead of staying in the moment. That habit, sometimes called spectatoring, makes it harder to relax the next time, which can turn one bad experience into a repeating pattern.
Many men also point to other experiences that seem to affect their arousal, like inexperience with sex, boredom or disinterest in a specific partner, or a relationship with porn that's started to affect how they respond to real-life sex. These aren't established clinical causes in the same way stress or performance anxiety are, but men report them often.
Psychological ED tends to be situational. It happens in some contexts but not others. Physical ED tends to be more consistent, no matter the situation.
| Signal | Physical ED | Psychological ED |
|---|---|---|
| Onset (when it began) | Gradual, gets worse over time | Often sudden, tied to a specific event or period |
| Morning or waking erections | Usually absent or weak | Usually still present |
| Consistency | Consistent across partners and situations | Situational, happens with one partner or context but not another |
| Common triggers | Diabetes, heart disease, low testosterone, certain medications | Performance anxiety, stress, depression, relationship tension |
None of these signals confirm anything on their own. Together, they give you, and a doctor, somewhere to start.
A simple historical self-check for nighttime erections is the stamp test. It involves wrapping a strip of postage stamps around the penis before bed to see if the perforations break overnight (Barry et al., 1980). A broken seal in the morning suggests a nocturnal erection happened while you were asleep.
The stamp test is a rough, historical self-check that can't diagnose anything. The clinical version, called nocturnal penile tumescence (NPT) testing, is done by a doctor with proper equipment and gives a far more reliable result. Mojo doesn't administer or interpret this test. If your stamp test result is unclear, book that doctor's appointment. One result can't prove anything on its own.
See a doctor if your ED is new, persistent, or happening in most situations. Only a doctor can test for and rule out physical causes.
A doctor can check hormone levels, cardiovascular health, and medication side effects, things you can't test on your own. That appointment’s important even if you suspect the cause is psychological, since ruling out a physical driver first gives you a clearer starting point.
Silva Neves, psychosexual and relationship therapist, says psychological support is often the right next step once a physical cause has been ruled out or treated:
Diagnosing and treating physical ED is a licensed clinician's job. Mojo's job is to help you understand what's going on, which is the first step toward doing something about it. If you want what to expect from that first conversation, we've written a guide to help you prepare.
Physical ED is a medical matter, and a doctor is the right person to treat it. You can read about the full range of ED treatment options in our dedicated guide, covering medication, lifestyle changes, and treating underlying conditions like high blood pressure or low testosterone.
Psychological ED, especially when performance anxiety is driving it, often responds well to specialist sex therapy, which can bring positive results in a fairly short time. Medication works on blood flow. For many men the main driver is performance anxiety, which calls for a different kind of support. Understanding what's going on and learning helpful techniques can help future-proof your erections.
Dr. Shannon Chavez, the psychologist and sex therapist behind The Erection Reset, built the program for men whose erection issues are tied to performance anxiety, stress, or lost confidence during sex. It's expert-led and evidence-based, walking you through how your nervous system affects arousal and how to retrain the pattern instead of just managing symptoms. Try The Erection Reset.
Look at whether erections happen in some situations, like alone or during sleep, but not others. That pattern points to psychological causes. A consistent lack of erections in any situation points more toward a physical cause. A doctor can confirm with testing.
A doctor can check hormone levels, cardiovascular health, and medication side effects. Normal erections during sleep or masturbation also suggest physical function is intact.
It depends on age. In one clinic study of 948 men with ED in Turkey, 65.4% of cases overall were mainly psychological, including 83% of men under 40 and 40.7% of men over 40 (Caskurlu et al., 2004). Physical risk factors can still play a role at any age (Rastrelli & Maggi, 2017).
Psychological ED often feels situational and can come with anxiety about performance. Physical ED tends to feel more consistent and unrelated to mood or context.
Yes. The two often overlap. A physical cause can create anxiety that then makes erections harder to get, even after the physical issue is treated.
Mojo aims to provide useful wellbeing resources to its users; however, you should not solely rely on opinions or advice available on the Website or given by the Community. Always seek advice from a qualified medical doctor or other healthcare professional before acting.

With 18 years as an accredited COSRT and BACP therapist, Amanda helps people navigate desire, intimacy, and the changes life brings.