The single most useful clue is whether your erectile dysfunction came on suddenly or gradually. A sudden, unexplained loss of erections, especially tied to a new partner, a stressful period, or a major life change, is almost always psychological in origin. A slow decline over months or years points toward a physical cause. But most cases aren’t purely one or the other, and several other signs can help you sort out what’s going on before you ever see a doctor.
Morning and Nighttime Erections
Your body tests its own hardware every night. Healthy men get several erections during sleep, typically three to five per night during dream cycles. These erections happen automatically, without any mental arousal, so they bypass the psychological side entirely. If you’re still waking up with morning erections on a regular basis, your blood vessels and nerves are likely working fine, and the problem is more likely psychological. Men with physical ED have significantly fewer of these nighttime erections and less firmness when they do occur.
There’s even a low-tech way to check this at home: the stamp test. You wrap a strip of perforated postage stamps snugly around the base of your penis before bed. If a nighttime erection occurs, it breaks the stamps. You repeat this over three consecutive nights. A broken stamp on at least one night suggests your erectile function is physically intact. It’s not a perfect diagnostic tool, but studies have found it correlates well with both standardized questionnaires and partners’ assessments of erectile function.
Erections in Some Situations but Not Others
Pay attention to the pattern. If you can get a full erection during masturbation, while watching visual stimuli, or when waking up, but lose it with a partner, that’s a strong signal the cause is psychological. Physical ED doesn’t pick and choose situations. Damaged blood vessels or impaired nerve signaling affect erections regardless of the context. Psychological ED is situational: it shows up in specific circumstances and disappears in others.
This is why performance anxiety is such a common culprit. Anxiety triggers your body’s fight-or-flight response, which increases sympathetic nervous system activity. That redirects blood flow away from the penis and toward muscles you’d use to flee danger. It also distracts your brain from erotic cues, impairing the arousal signal before it even reaches the physical machinery. The result is a perfectly healthy man who can’t get or maintain an erection in the exact moment he wants one most.
Signs That Point to a Physical Cause
Physical ED tends to follow a predictable pattern: it starts mild, gets worse over time, and affects all sexual situations equally. You might notice erections becoming less firm over months, taking longer to achieve, or not lasting as long as they used to. Several underlying conditions drive this.
Vascular problems are the most common physical cause. These involve the blood vessels that supply the penis, either reducing inflow (so erections are weak from the start) or failing to trap blood inside (so erections fade quickly). The same cardiovascular risk factors that cause heart disease, including high blood pressure, high cholesterol, diabetes, and smoking, damage these blood vessels. In fact, ED sometimes shows up years before a heart attack or stroke because penile arteries are smaller and clog sooner than coronary arteries.
Nerve-related ED happens when the signaling pathway between your brain and penis is disrupted. This can result from spinal cord injuries, multiple sclerosis, prostate surgery, or long-term diabetes that damages peripheral nerves. The key feature here is reduced or absent sensation in the genital area, not just difficulty with erections.
Hormonal causes are less common but worth checking. The American Urological Association recommends a total testosterone level below 300 ng/dL as the diagnostic threshold for low testosterone. If your ED is hormonally driven, you’ll usually have other symptoms too: reduced sex drive, fatigue, loss of muscle mass, difficulty concentrating, or depressed mood. A simple morning blood test can rule this in or out.
Medications That Cause ED
This is a frequently overlooked physical cause that mimics psychological ED because it often starts right when a new prescription begins. Antidepressants are among the worst offenders. SSRIs cause erectile dysfunction or other sexual problems in roughly 25% to 73% of men taking them. SNRIs carry a similar rate of 58% to 70%. Older tricyclic antidepressants cause ED in about 30% of users. Even medications for blood pressure, particularly beta-blockers and certain diuretics, can impair erections.
The tricky part is that depression itself causes sexual dysfunction. Over 40% of men with major depression report decreased sexual interest before starting any medication. So when ED appears alongside antidepressant use, it can be hard to tell whether the drug, the depression, or both are responsible. The clearest signal is timing: if your erections were fine before starting the medication and declined within weeks of beginning it, the drug is the likely cause.
Signs That Point to a Psychological Cause
Beyond sudden onset and situational erections, several other patterns suggest a psychological origin. Relationship conflict, recent job loss, financial stress, grief, or a history of sexual trauma can all trigger ED without any physical problem. Depression and generalized anxiety are especially common contributors, and they don’t need to be severe to affect sexual function.
One useful question: are you losing your erection at a specific, predictable moment? Men with performance anxiety often get erections fine during foreplay but lose them at the point of penetration, or they can maintain erections alone but not when they feel “watched” or pressured. This kind of patterned, situation-specific failure is a hallmark of psychological ED. Physical ED, by contrast, is consistent. It doesn’t care whether you’re relaxed, stressed, alone, or with a partner.
Age matters as context too. Younger men without cardiovascular risk factors who develop ED are far more likely to have a psychological cause. That doesn’t mean physical causes are impossible in younger men, but the odds shift considerably.
How Doctors Confirm the Cause
If your own observations don’t give you a clear answer, a few medical tests can. A blood panel checking testosterone, blood sugar, and cholesterol helps screen for hormonal and vascular risk factors. If vascular disease is suspected, a penile Doppler ultrasound measures blood flow directly. Doctors look for arterial inflow speed above 30 cm/sec (below that suggests restricted blood supply) and venous outflow below 5 cm/sec (above that means blood is leaking out of the penis too fast to maintain firmness).
For more precise sleep monitoring, a formal nocturnal penile tumescence test can be done at home or in a sleep lab, using sensors that record the number, duration, and rigidity of nighttime erections over one to three nights. This remains one of the most reliable ways to separate physical from psychological causes, since the brain’s arousal system during sleep bypasses conscious anxiety entirely.
When It’s Both
In practice, physical and psychological ED overlap more often than not. A man might develop mild vascular ED from high blood pressure, notice his erections becoming unreliable, and then develop performance anxiety that makes the problem dramatically worse. Or a man with purely psychological ED might avoid sex for months, become deconditioned, and start to wonder if something is physically wrong, which feeds the anxiety cycle further.
The patterns described above, morning erections, situational variation, onset speed, and associated symptoms, are your best tools for identifying the primary driver. But if you recognize elements of both, that’s not unusual. It just means treatment may need to address the physical side (cardiovascular health, hormones, or medication adjustments) and the psychological side (anxiety management, therapy, or stress reduction) at the same time.

