Why Can’t I Keep an Erection? The Most Likely Causes

Difficulty keeping an erection is one of the most common sexual health concerns men experience, and it rarely has a single cause. A 2021 national survey found that even among men aged 18 to 24, nearly 18% met criteria for erectile dysfunction, while roughly a third of men aged 55 to 64 did. Whether the issue is occasional or persistent, it almost always traces back to one or more identifiable factors: blood vessel health, stress hormones, medications, hormone levels, or lifestyle habits.

How an Erection Stays Hard

Getting an erection and keeping one are actually two different physiological tasks. To understand why yours fades, it helps to know what’s supposed to happen. When you become aroused, your nervous system signals the smooth muscle inside the penis to relax. Arteries widen and blood rushes into two sponge-like chambers called the corpora cavernosa. As those chambers fill and expand, they press against the tough outer sheath surrounding them (the tunica albuginea), which compresses the veins that would normally drain blood back out. This trapping mechanism is what keeps the erection rigid.

If any part of that chain breaks down, blood either doesn’t flow in fast enough or leaks out too quickly. Insufficient relaxation of the smooth muscle, weakened blood vessel walls, or a less rigid outer sheath can all let blood escape before you’re finished. That’s why erection problems tend to show up as “losing it partway through” rather than never getting hard at all.

Blood Vessel Health Is the Most Common Culprit

The inner lining of your blood vessels, called the endothelium, produces a signaling molecule that tells smooth muscle to relax and arteries to open. When that lining is damaged, less of this signal gets produced, and blood flow drops throughout the body. The same process behind high blood pressure and clogged arteries also restricts flow to the penis.

Here’s the detail that catches many men off guard: because the arteries in the penis are significantly smaller than those supplying the heart, erection problems often appear years before any heart symptoms like chest pain. The Mayo Clinic notes that for men under 50, erectile difficulty may be an early warning sign of cardiovascular disease. This doesn’t mean you have heart problems, but it’s a reason to take the symptom seriously rather than dismissing it as “just stress.”

Anxiety and Stress Hormones Work Against You

Your nervous system has two competing modes. The one responsible for erections (the parasympathetic system) requires you to be in a relatively relaxed state. The one that activates during stress or anxiety (the sympathetic system) does the opposite: it releases adrenaline and norepinephrine, which bind to receptors on penile smooth muscle and force it to contract. Contracted smooth muscle means less blood flow in, more blood flow out, and a lost erection.

This is why performance anxiety creates a vicious cycle. You lose your erection once, worry about it happening again, and the worry itself floods your system with exactly the hormones that cause the problem. Even men with perfectly healthy blood vessels and normal testosterone can lose erections consistently if their stress response stays elevated during sex. The effect is immediate and physical, not “all in your head” in the way people sometimes imply.

Medications That Interfere With Erections

A surprising number of common prescriptions can make it harder to stay erect. If your difficulty started around the time you began a new medication, that connection is worth exploring.

  • Blood pressure drugs: Thiazide diuretics (water pills) are the most common blood pressure medications linked to erection problems. Beta-blockers are the next most frequent cause. Alpha blockers tend to be less likely to cause issues.
  • Antidepressants and anti-anxiety medications: SSRIs like fluoxetine and sertraline are well-known offenders, but older antidepressants and benzodiazepines used for anxiety can also contribute.
  • Opioid painkillers: Codeine, oxycodone, morphine, and other opioids suppress testosterone production and interfere with arousal signals.
  • Antihistamines: Some allergy and heartburn medications, including diphenhydramine (the active ingredient in many sleep aids) and older heartburn drugs, can contribute.

Never stop a prescribed medication without talking to your prescriber. In many cases, switching to a different drug in the same class resolves the problem without sacrificing the treatment you need.

Low Testosterone’s Role

Testosterone plays a supporting role in erections rather than being the sole driver. It helps maintain the structural integrity of penile tissue and supports the chemical signaling that keeps smooth muscle relaxed during arousal. When testosterone drops too low, the tissue can become less responsive, and the outer sheath may lose some of its rigidity, making it harder to trap blood effectively.

The American Urological Association defines low testosterone as a total level below 300 ng/dL, with a target range of 450 to 600 ng/dL for treatment. Not every man with low testosterone has erection problems, and not every man with erection problems has low testosterone. But some men do see meaningful improvement with hormone therapy, particularly those whose levels are well below the threshold. A simple blood test, drawn in the morning when levels peak, can clarify whether this is a factor for you.

Smoking and Nicotine

Nicotine damages the endothelial lining of blood vessels with a direct, dose-dependent effect: more nicotine, more damage. It also reduces the availability of the signaling molecule that relaxes smooth muscle. In controlled studies, healthy nonsmoking men given nicotine gum equivalent to a single cigarette showed measurably reduced erectile response while watching erotic films, compared to men given a placebo. Smokers given high-nicotine cigarettes showed significantly less penile blood flow than those given low-nicotine cigarettes or a placebo.

The encouraging finding is that reversal begins quickly. In one study, heavy smokers with erectile dysfunction showed improved penile blood flow within 24 to 36 hours of stopping smoking. That doesn’t mean full recovery happens overnight, but it suggests the vascular effects of nicotine are at least partially reversible in the short term, with continued improvement over weeks and months.

Alcohol and Recreational Drugs

Alcohol is a central nervous system depressant that dulls the nerve signals needed to maintain arousal. A drink or two may lower inhibitions, but beyond that, it actively works against you. Chronic heavy drinking also lowers testosterone over time. Cocaine, amphetamines, marijuana, and heroin are all independently linked to erectile problems through various mechanisms, from constricting blood vessels to suppressing hormone production.

How to Tell What’s Causing Your Problem

A useful clue is whether you ever wake up with an erection or get firm erections during masturbation. If you do, the basic hydraulic machinery is working, and the issue during partnered sex is more likely related to anxiety, relationship dynamics, or situational factors. If you rarely or never get full erections in any context, a physical cause like blood vessel damage, low testosterone, or medication side effects is more probable.

Duration matters too. The clinical definition of erectile dysfunction is the consistent or recurrent inability to maintain an erection sufficient for sexual satisfaction. An occasional lost erection after a stressful day, too much alcohol, or poor sleep is normal. When it happens regularly over several weeks or months, something identifiable is usually driving it.

Age increases the likelihood but doesn’t make it inevitable. That national survey found roughly 13% of men in their late twenties and early thirties met criteria for ED. It’s not something that only affects older men, and younger men who experience it shouldn’t assume they’ll just grow out of it. For men under 50 especially, it can be the body’s earliest signal that cardiovascular health needs attention.