Why Can’t I Hold an Erection? Common Causes

Difficulty maintaining an erection is one of the most common sexual health concerns men experience, and it almost always has an identifiable cause. Around 5% to 10% of men under 40 deal with it, and the prevalence climbs steadily with age: roughly 22% of men at age 40 have moderate to complete difficulty, rising to 49% by age 70. Whether the issue is physical, psychological, or a mix of both, understanding what’s happening in your body is the first step toward fixing it.

How Erections Work (and Where They Fail)

An erection depends on a precise chain of events. When you’re aroused, nerve endings and blood vessel cells in the penis release a chemical signal that relaxes the smooth muscle inside the erectile tissue. That relaxation allows blood to rush in and fill two sponge-like chambers called the corpora cavernosa. As they expand, they compress the veins that would normally drain blood out, trapping it under pressure. That’s what keeps you hard.

The key player in this process is nitric oxide. It triggers a cascade that ultimately tells the smooth muscle to relax and let blood flow in. Anything that disrupts nitric oxide production, damages the blood vessels, interferes with nerve signaling, or shifts your nervous system into the wrong gear can cause you to lose your erection partway through sex, or prevent you from getting fully hard in the first place.

Blood Vessel Problems Are the Most Common Cause

The arteries supplying the penis are small, significantly smaller than the ones feeding your heart. That means even mild damage to the inner lining of your blood vessels (a condition called endothelial dysfunction) can reduce penile blood flow before it shows up anywhere else in your body. The same process that eventually leads to clogged coronary arteries often hits the penis first.

This is why erection problems are now recognized as an early warning sign for cardiovascular disease. Research published in JACC: Advances found that men with erectile dysfunction had a higher prevalence of hidden cardiac problems and were at a markedly higher risk of cardiovascular death. In one analysis, men with erection difficulties had a 23% higher risk of dying from any cause, even after accounting for other risk factors. If you’re losing erections and you also have high blood pressure, high cholesterol, or a family history of heart disease, it’s worth taking seriously as a signal about your vascular health, not just your sex life.

Diabetes and Blood Sugar Damage

Diabetes is one of the strongest risk factors for erection problems. Prolonged high blood sugar damages the body through multiple pathways at once. It degrades the small blood vessels that supply the penis, reducing the flow needed to fill erectile tissue. It also destroys nerve fibers, including both the sensory nerves that carry arousal signals and the nerves that trigger smooth muscle relaxation. Without those nerve signals, the penis can’t produce enough nitric oxide to initiate or sustain the blood-trapping mechanism.

On top of that, high glucose changes the behavior of the smooth muscle cells themselves, making them more prone to contraction and less responsive to relaxation signals. The result is a compounding problem: less blood flowing in, weaker signals telling the tissue to relax, and muscle that resists relaxing even when the signal arrives. Men with poorly controlled blood sugar are especially vulnerable, but even prediabetes can begin this cascade of damage.

Stress, Anxiety, and the Wrong Nervous System

Erections are controlled by the parasympathetic nervous system, the “rest and digest” branch that activates when you feel safe and relaxed. Stress and anxiety flip your body into sympathetic mode, the “fight or flight” response. These two systems work against each other. When stress hormones like cortisol and adrenaline are elevated, they actively suppress the parasympathetic signals your body needs to relax penile smooth muscle and trap blood.

In men with psychogenic erectile dysfunction, cortisol levels stay elevated because persistent anxiety keeps the sympathetic nervous system running. The body essentially can’t switch into the mode required for maintaining an erection. This creates a vicious cycle: you lose an erection once, which makes you anxious about it happening again, which raises your stress hormones, which makes it more likely to happen again. Performance anxiety is one of the most common causes in younger men whose blood vessels and nerves are otherwise healthy.

Medications That Interfere

A surprisingly long list of common medications can make it harder to maintain an erection. If your difficulty started around the time you began a new prescription, that’s a clue worth investigating.

  • Blood pressure medications: Thiazide diuretics (water pills) are the most common culprits among blood pressure drugs, followed by beta-blockers. These can reduce blood flow or interfere with nerve signals involved in erections.
  • Antidepressants and anti-anxiety medications: SSRIs like fluoxetine and sertraline are well known for sexual side effects. Benzodiazepines like diazepam and lorazepam can also contribute.
  • Opioid painkillers: Codeine, oxycodone, morphine, and other opioids suppress testosterone production and dampen nerve signaling.
  • Antihistamines: Common over-the-counter options like diphenhydramine (Benadryl) and some heartburn medications like cimetidine and ranitidine can affect erection quality.

Never stop a prescribed medication on your own because of erection problems. But knowing that this is a recognized side effect gives you something concrete to discuss with your prescriber, who can often adjust the dose or switch to an alternative that’s less likely to cause the issue.

Alcohol, Nicotine, and Recreational Drugs

Alcohol is one of the most common situational causes of lost erections. It slows your central nervous system and directly inhibits the parasympathetic nerve activity responsible for smooth muscle relaxation in the penis. A drink or two might reduce performance anxiety, but beyond that, alcohol actively works against the physical process your body needs to stay hard.

Nicotine constricts blood vessels, reducing the flow available to fill erectile tissue. This effect is both immediate (from a single cigarette or vape session) and cumulative (long-term smoking damages vessel linings permanently). Amphetamines, cocaine, marijuana, and heroin all appear on the list of recreational substances associated with erection problems, each through slightly different mechanisms ranging from blood vessel constriction to hormonal disruption to nervous system interference.

When It’s Occasional vs. a Pattern

Losing an erection once in a while is normal and not a medical concern. Fatigue, alcohol, distraction, or a stressful week can all cause a one-off event. The clinical threshold for erectile dysfunction requires symptoms to persist for at least six months and occur on at least 75% of sexual occasions. That said, you don’t need to hit that threshold before seeking help. If erection loss is happening frequently enough to bother you or affect your relationship, that alone is reason enough to look into it.

One useful clue: if you still get firm erections during sleep or when you wake up in the morning, the physical hardware (blood vessels, nerves, smooth muscle) is likely working fine. That points toward psychological factors, medication effects, or situational causes like alcohol. If you’re not getting nighttime or morning erections either, a physical cause is more likely.

What You Can Do About It

The most effective approach depends on the cause. For many men, especially those under 50, lifestyle changes alone make a meaningful difference. Regular aerobic exercise improves blood vessel health and nitric oxide production. Losing excess weight reduces inflammation and often improves testosterone levels. Cutting back on alcohol, quitting smoking, and improving sleep each address specific parts of the erection mechanism.

If stress or anxiety is the driver, addressing it directly tends to be more effective than medication. Cognitive behavioral therapy has strong evidence for psychogenic erectile dysfunction, particularly for breaking the cycle of performance anxiety. Mindfulness-based approaches also help some men by reducing the sympathetic nervous system activation that blocks erections.

For physical causes, oral medications that enhance nitric oxide signaling are the most common first-line treatment and are effective for the majority of men. If an underlying condition like diabetes, cardiovascular disease, or low testosterone is contributing, treating that condition often improves erection quality as part of a broader health improvement. The key insight is that difficulty holding an erection is rarely an isolated problem. It’s usually your body telling you something about your cardiovascular health, metabolic health, mental health, or medication load, and fixing the root cause tends to fix the erection.