Why Can’t I Maintain an Erection? Causes Explained

Difficulty maintaining an erection is one of the most common sexual health concerns, affecting roughly 5% to 10% of men under 40 and becoming significantly more common with age. About 22% of men experience moderate to complete erectile difficulty by age 40, rising to 49% by age 70. If you’re dealing with this, you’re far from alone, and there are clear biological reasons it happens.

An erection depends on a chain of events involving your blood vessels, nerves, hormones, and mental state. A problem at any point in that chain can make it hard to stay erect. Understanding which link is weakest for you is the key to fixing it.

How Erections Actually Work

An erection is fundamentally a blood flow event. When you’re sexually aroused, nerve signals trigger the release of a molecule called nitric oxide inside the penile tissue. Nitric oxide causes the smooth muscle lining the blood vessels and internal chambers of the penis to relax. That relaxation opens the floodgates: blood rushes in, fills the spongy tissue, and the expanding tissue compresses the veins that would normally drain blood away. The result is a firm erection that holds.

Anything that disrupts nitric oxide production, damages those blood vessels, interferes with nerve signaling, or prevents smooth muscle relaxation can make it difficult to get or keep an erection. This is why the causes range so widely, from stress to blood pressure problems to medications.

Blood Vessel Problems Are the Most Common Cause

The arteries that supply the penis are small, roughly 1 to 2 millimeters in diameter. That makes them some of the first blood vessels in your body to show the effects of damage to their inner lining. When that lining (called the endothelium) stops working properly, it produces less nitric oxide, and blood flow decreases. The same process affects arteries throughout your body, including those feeding the heart.

This is why erectile difficulty often shows up years before heart disease symptoms. The penile arteries are simply too narrow to compensate for early plaque buildup the way larger coronary arteries can, at least temporarily. If you’re under 50 and losing erections without an obvious explanation, it may be worth checking your cardiovascular health. The Mayo Clinic notes that for younger men, erectile problems are a meaningful signal of heart disease risk.

High blood pressure, high cholesterol, smoking, and diabetes all damage the endothelium over time. Diabetes is particularly harmful because it attacks both blood vessels and the nerves that trigger nitric oxide release, creating a double hit to erectile function.

Anxiety and Stress Directly Block Erections

Erections require your parasympathetic nervous system to be in control. That’s the “rest and digest” branch of your nervous system. Anxiety, stress, and performance pressure activate the opposite branch: the sympathetic “fight or flight” system. When that happens, your body releases adrenaline and noradrenaline, which constrict blood vessels throughout your body, including in the penis.

This isn’t just psychological. Stress hormones physically reduce nitric oxide release in penile tissue, blocking the exact molecule needed to relax smooth muscle and allow blood inflow. Clinical research confirms that heightened sympathetic nervous system activity directly correlates with difficulty achieving and maintaining erections. So the more you worry about losing your erection, the more likely your body chemistry makes it happen. It becomes a self-reinforcing cycle.

This pattern is especially common in younger men who don’t have vascular or hormonal issues. A single episode of losing an erection can create enough anxiety to cause it repeatedly, even when nothing else is wrong.

Low Testosterone May Play a Role

Testosterone fuels sex drive and helps maintain the tissue and signaling pathways involved in erections. The American Urological Association considers a total testosterone level below 300 ng/dL the threshold for diagnosing low testosterone. If your levels fall below this, it can reduce both your desire for sex and your body’s ability to produce erections.

Diagnosing low testosterone requires two separate blood draws, both taken in the early morning when levels are highest. Testosterone naturally dips in the afternoon, so a single low reading doesn’t necessarily mean you have a deficiency. Levels also decline gradually with age, dropping about 1% per year after 30, which contributes to the increasing prevalence of erectile difficulty in older men.

That said, many men with low testosterone still get erections, and many men with normal testosterone still lose them. Hormones are one piece of the puzzle, not the whole picture.

Medications That Interfere With Erections

Several common prescription and recreational drugs can make it harder to maintain an erection. If your difficulty started around the same time as a new medication, that’s worth investigating.

  • Blood pressure medications: Thiazide diuretics are the most common culprits. Beta blockers are the next most likely. Alpha blockers tend to cause fewer problems.
  • Antidepressants: SSRIs and other psychiatric medications frequently affect sexual function, including the ability to stay erect and reach orgasm.
  • Opioid painkillers: Both prescription and recreational opioids suppress testosterone and impair nerve signaling.
  • Antihistamines: Some over-the-counter allergy and heartburn medications can contribute.
  • Recreational substances: Alcohol, nicotine, cocaine, amphetamines, and marijuana all affect erectile function through different mechanisms. Alcohol is particularly deceptive because it lowers inhibition while simultaneously impairing the vascular response needed for an erection.

Never stop a prescribed medication without talking to whoever prescribed it. In many cases, switching to a different drug in the same class resolves the problem.

Lifestyle Factors That Add Up

Because erections depend so heavily on healthy blood flow, the same habits that protect your heart protect your erectile function. Obesity, physical inactivity, poor diet, smoking, and heavy drinking all damage the endothelial lining of blood vessels over time.

Exercise is one of the most effective interventions. Regular aerobic activity improves endothelial function, boosts nitric oxide production, reduces stress hormones, and can raise testosterone levels. Even moderate improvements in fitness and body weight can produce noticeable changes in erectile quality, particularly for men whose difficulty stems from vascular or metabolic causes.

Sleep matters too. Testosterone production peaks during deep sleep, and chronic sleep deprivation reliably lowers testosterone levels. Men who sleep fewer than five hours per night consistently show lower testosterone than those getting seven to eight hours.

How to Figure Out What’s Causing Yours

A few patterns can help narrow down the cause. If you still get firm erections during sleep or in the morning but lose them during sex, the issue is more likely psychological. Your vascular and nerve systems are working fine; performance anxiety or relationship stress is activating your fight-or-flight response at the wrong moment.

If you’ve noticed a gradual decline in erection quality across all situations, including morning erections and masturbation, vascular, hormonal, or neurological causes are more likely. This is especially true if you also have risk factors like high blood pressure, diabetes, obesity, or a smoking history.

If the problem appeared suddenly and coincides with a new medication, a stressful life event, or a change in your relationship, those are the most logical places to start looking. Erectile function is sensitive to context, and sometimes the fix is straightforward once you identify the trigger.

A basic workup typically involves blood tests for testosterone, blood sugar, and cholesterol, along with a blood pressure check. These simple screenings can reveal whether a treatable underlying condition is driving the problem.