Why Can’t I Stay Hard? Causes and Treatment

Losing your erection during sex, or finding it difficult to keep one firm enough, is one of the most common sexual health issues men experience. It can happen at any age, and the causes range from straightforward lifestyle factors to early signs of cardiovascular problems worth paying attention to. Understanding why it happens is the first step toward fixing it.

How Erections Are Maintained

Getting hard and staying hard are actually two different processes. An erection starts when blood flows into the two spongy chambers that run the length of the penis. But maintaining that erection depends on a trapping mechanism: the expanding tissue compresses the veins that would normally drain blood back out, locking it in place. If that trapping mechanism doesn’t work properly, blood flows in but leaks back out too quickly, and rigidity fades.

This whole process depends on healthy blood vessel linings. The cells that line your arteries produce a signaling molecule that relaxes smooth muscle and opens blood flow. When those lining cells are damaged, whether from smoking, high blood sugar, high cholesterol, or just aging, they produce less of that signal. The result is weaker inflow, weaker trapping, or both. Testosterone also plays a regulatory role in this system, influencing both how much blood flows in and how effectively it stays trapped.

Blood Vessel Health Is the Most Common Culprit

The arteries supplying the penis are significantly smaller than the ones supplying the heart. That size difference matters: when the blood vessel lining starts to deteriorate throughout your body, you’ll notice the effects in the penis first, sometimes years before any heart-related symptoms like chest pain show up. Erection problems and heart disease share the same underlying process, a gradual damage to blood vessel walls that reduces blood flow everywhere.

This is why doctors take erectile issues seriously as a potential early warning sign, especially in younger men. If you’re under 50 and experiencing consistent difficulty maintaining erections, the Mayo Clinic considers this a meaningful signal of cardiovascular risk. It doesn’t mean you have heart disease, but it means the same vascular damage that causes ED could eventually progress to affect your heart if the underlying causes aren’t addressed.

Hormones and Low Testosterone

The American Urological Association defines low testosterone as a total level below 300 ng/dL, and erection difficulty is one of the recognized symptoms. Research shows the odds of experiencing ED increase as testosterone drops, with men below 231 ng/dL being roughly twice as likely to have problems compared to men with normal levels.

That said, the relationship between testosterone and erections isn’t as straightforward as “low T equals ED.” Many men with low testosterone maintain erections fine, and many men with normal testosterone still struggle. When low testosterone is a contributing factor, treatment can help, but the improvement varies. For men using oral ED medications, combining them with testosterone therapy tends to make those medications work better than either approach alone.

Psychological Causes

Performance anxiety, stress, depression, and relationship tension can all interfere with erections. The classic diagnostic clue used to be simple: if you still get erections during sleep or when you wake up in the morning, the problem is probably psychological rather than physical. Clinicians now recognize this is an oversimplification. Morning erections only test one part of the erectile system, and early physical problems can coexist with psychological ones.

Still, certain patterns point toward a psychological component. If the problem started suddenly rather than gradually, if it comes and goes rather than being consistent, or if erections work fine during masturbation but not with a partner, anxiety or stress is likely playing a role. A normal physical exam with no signs of vascular disease or nerve problems further supports this. In practice, most men dealing with erection issues have some mix of both physical and psychological factors, because nothing feeds performance anxiety quite like a few episodes of losing your erection.

Medications That Interfere

Several common prescription medications can directly cause or worsen erection problems. The most well-documented culprits are antidepressants, particularly SSRIs (like sertraline, fluoxetine, and escitalopram) and SNRIs (like venlafaxine and duloxetine). These medications can reduce sex drive, dampen arousal, and make it harder to maintain an erection. In a global review of 300 reported cases of persistent sexual dysfunction linked to medications, SSRIs and SNRIs accounted for the vast majority.

Blood pressure medications, especially older types, are another frequent cause. Finasteride, commonly prescribed for hair loss or an enlarged prostate, and isotretinoin, used for severe acne, have also been linked to sexual dysfunction. What makes this trickier is that these effects can sometimes persist even after stopping the medication, though this is considered rare. If your erection difficulties started around the same time you began a new medication, that connection is worth exploring with your prescriber. Switching to a different drug in the same class can sometimes resolve the issue.

Lifestyle Factors You Can Change

Smoking damages blood vessel linings directly, accelerating the same process that leads to both ED and heart disease. Heavy alcohol use depresses the nervous system and impairs the signals needed for erection. Carrying significant excess weight contributes to hormonal changes (fat tissue converts testosterone to estrogen) and increases the risk of diabetes and high blood pressure, both of which compound vascular damage. A sedentary lifestyle weakens cardiovascular fitness overall, reducing the blood flow capacity your erections depend on.

The encouraging part is that these factors are modifiable. The American Urological Association specifically recommends that men with ED and known risk factors like these make lifestyle changes, including dietary improvements and increased physical activity, noting that these modifications improve overall health and can improve erectile function. This isn’t a vague wellness suggestion. For men whose ED is driven primarily by vascular health, losing weight, quitting smoking, and exercising regularly can produce measurable improvement.

Pelvic Floor Strength

The muscles at the base of your pelvis do more than control urination. Two muscles in particular squeeze the base of the penis during an erection, increasing internal pressure and restricting blood from draining out. When these muscles are weak or poorly coordinated, erection firmness suffers.

A systematic review of ten clinical trials found that pelvic floor muscle training improved erectile function across all studies, with meaningful cure rates in many cases. The exercises are essentially Kegels: contracting the muscles you’d use to stop urination midstream, holding briefly, then releasing. No optimal training protocol has been established yet, but the evidence consistently supports that strengthening these muscles helps. It’s a low-risk intervention you can start on your own, though working with a pelvic floor physical therapist can help you ensure you’re targeting the right muscles.

Treatment Options

The first-line medical treatment is an oral PDE5 inhibitor, a class of drugs that enhances the natural signaling process that keeps blood trapped in the penis. Four are currently approved in the U.S., and they differ mainly in how quickly they take effect and how long they last. These medications don’t create an erection on their own. They make the natural arousal process work more effectively, so you still need stimulation. Dosing often needs to be adjusted upward before concluding a medication doesn’t work, and proper timing and instructions matter significantly for how well they perform.

Beyond oral medications, other options include vacuum erection devices (external pumps that draw blood into the penis mechanically), medications delivered directly into the urethra or injected into the penis, and surgical implants for cases where other treatments have failed. Mental health support is also specifically recommended in clinical guidelines, both to address anxiety that may be contributing to the problem and to help integrate treatments into your actual sex life rather than treating ED as a purely mechanical issue.

What the Pattern Tells You

Pay attention to when and how your erection fades. Losing firmness gradually over months or years, especially alongside declining morning erections, points toward a physical cause like vascular damage or hormonal changes. Losing your erection suddenly during sex but waking up hard in the morning suggests anxiety or distraction is a bigger factor. Difficulty that appeared after starting a new medication has an obvious suspect.

If you’re under 40 and this is a new problem, it’s worth getting basic bloodwork (testosterone, blood sugar, cholesterol) and a blood pressure check. These simple tests can reveal whether your erection issues are an early signal of something broader happening with your cardiovascular or hormonal health. For men over 50, some degree of erection change is extremely common and doesn’t necessarily signal a serious underlying condition, though the same basic workup is still worthwhile.