Erectile dysfunction is the repeated inability to get or keep an erection firm enough for satisfying sex. The key word is “repeated.” Every man occasionally has trouble with erections, especially when tired, stressed, or after drinking. That’s normal. ED becomes a medical concern when the pattern is consistent, happening more often than not over a period of weeks or months.
About 24% of men in the United States meet diagnostic criteria for ED, and it’s not just an older man’s problem. Roughly 13% of men aged 25 to 34 experience it, rising to about 25% of men in their late 40s and early 50s, and nearly half of men over 65.
The Pattern That Points to ED
A single bad night doesn’t mean you have ED. What matters is whether the problem keeps happening. If you find that you can rarely get an erection when you want one, or that erections consistently fade before sex is finished, that pattern over several weeks or longer is what doctors consider erectile dysfunction. Some men can get partially hard but not fully erect, while others lose firmness during sex. Both count.
Pay attention to how often it happens. If erection difficulties show up in more than half your sexual encounters over a month or two, that’s a meaningful signal. If it only happens occasionally, after a long day, or when you’ve had several drinks, it’s more likely situational and not ED.
Physical ED vs. Psychological ED
One of the most useful things you can figure out on your own is whether your erection problems are more likely physical or psychological in origin. The two look quite different.
Physical (organic) ED typically comes on gradually. Over months, erections slowly become less firm or less reliable. You still feel desire and can ejaculate normally, but the erection itself isn’t what it used to be. Risk factors include diabetes, heart disease, high blood pressure, smoking, heavy drinking, and certain medications. If you’ve had surgery or radiation in the pelvic area, that also raises the likelihood of a physical cause.
Psychological ED tends to arrive suddenly. One week everything is fine, the next week you can’t perform. A hallmark clue: you still get strong erections in other situations. If you wake up with firm morning erections, or have no trouble when masturbating, but lose your erection with a partner, the cause is more likely psychological. Relationship problems, major life stress, depression, and performance anxiety are common triggers. It’s also worth noting that psychological ED can eventually lead to physical ED if the anxiety cycle persists, and the two can overlap.
The Morning Erection Clue
Morning erections are one of the simplest self-checks available. Your body naturally produces erections during sleep, typically three to five times per night. If you regularly wake up with a firm erection, the physical equipment is working. That strongly suggests any difficulties during sex have a psychological component. If morning erections have become rare or weak, a physical cause is more likely, and it’s worth getting checked out.
Performance Anxiety or ED?
Performance anxiety is one of the most common reasons younger men search for this topic. The distinction matters because the causes and solutions are different. Performance anxiety is situational: it tends to show up with a new partner, during high-pressure moments, or when you’re already worried about whether you’ll be able to perform. The worry itself triggers a stress response that diverts blood flow away from the penis.
If your erection problems come and go depending on the situation, that points to anxiety. If they happen consistently regardless of the partner, setting, or your mental state, that’s more characteristic of ED with a physical component. Many men experience both at the same time: a mild physical issue creates worry, and the worry makes the physical problem worse.
Medications That Can Cause Erection Problems
If your difficulties started around the same time you began a new medication, that’s a strong clue. Several common drug classes can interfere with erections.
- Blood pressure medications: Water pills (thiazide diuretics) are the most common culprits, followed by beta-blockers. These are among the most frequently prescribed drugs in the country, and many men don’t connect them to erection changes.
- Antidepressants and anti-anxiety medications: SSRIs like fluoxetine and sertraline are well known for affecting sexual function. Benzodiazepines and older antidepressants can also contribute.
- Antihistamines: Over-the-counter allergy and heartburn medications, including diphenhydramine and ranitidine, can affect erections in some men.
- Opioid painkillers: Codeine, fentanyl, and similar drugs frequently suppress sexual function.
- Hair loss and prostate medications: Finasteride and dutasteride, used for both hair loss and enlarged prostate, are known to cause ED in a percentage of users.
If you suspect a medication is the cause, don’t stop taking it on your own. Talk to your prescriber about alternatives, because many drug classes have options that are less likely to affect sexual function.
Why ED Can Be a Cardiovascular Warning Sign
This is something most men don’t realize, and it could be the most important reason to take erection problems seriously. The same process that clogs heart arteries (atherosclerosis, or plaque buildup) also affects the blood vessels in the penis. Because penile arteries are smaller than coronary arteries, they tend to show problems first.
Research published in the American Heart Association’s journal Circulation found that ED caused by blood vessel damage often precedes a heart attack or stroke by three to five years. When blood vessels lose the ability to expand properly, the penis is affected before the heart and brain simply because its arteries are narrower and more sensitive to reduced blood flow. For men in their 40s or 50s who develop ED without an obvious psychological cause, this is worth discussing with a doctor, not just for sexual health but for cardiovascular screening.
What Happens at a Doctor’s Visit
If you decide to see a doctor, the visit is less invasive than most men expect. It typically starts with a conversation: how long the problem has been going on, whether it’s consistent or situational, what medications you take, and whether you have morning erections. Many doctors use a short questionnaire to gauge severity.
A physical exam checks for signs of nerve or blood vessel issues and any structural changes in the penis. Blood work is common and usually looks at testosterone levels, thyroid function, blood sugar (to screen for diabetes), and cholesterol. These tests help identify underlying conditions that might be driving the problem.
In some cases, a doctor may order an ultrasound of the penis to evaluate blood flow directly, or recommend a nighttime erection test. The nighttime test can be done at home with a simple monitoring device and confirms whether erections are happening during sleep. If they are, the plumbing works and the issue is likely psychological. If they aren’t, further investigation into physical causes is warranted.
A Simple Self-Assessment
Before seeing a doctor, you can gather useful information by asking yourself a few questions:
- How long has this been going on? A few weeks suggests something situational. Months of gradual decline suggests a physical cause.
- Do you get morning erections? Regular morning erections mean the physical mechanism is intact.
- Can you get erections alone but not with a partner? That points to anxiety or relationship factors.
- Did anything change recently? A new medication, weight gain, increased stress, a relationship shift, or a new health diagnosis can all trigger ED.
- Do you have risk factors? Diabetes, high blood pressure, heart disease, smoking, obesity, and heavy alcohol use all increase the likelihood of physical ED.
Your answers to these questions will also help a doctor zero in on the cause faster if you do seek care. ED is one of the most treatable conditions in men’s health, and identifying whether the root cause is physical, psychological, or both is the first step toward fixing it.