Difficulty staying hard is one of the most common sexual health issues, and it almost always has an identifiable, treatable cause. The problem comes down to blood flow, nerve signaling, hormones, or some combination of the three. Understanding which factor is at play helps you figure out what to do about it.
How Erections Work (and Fail)
An erection depends on a specific sequence: arousal triggers arteries in the penis to widen, flooding the tissue with blood. As pressure builds inside the penis, it compresses the veins that would normally drain blood back out. That compression is what keeps you hard. The whole system runs on your parasympathetic nervous system, the branch responsible for “rest and digest” functions.
When any part of that chain breaks down, you lose the erection. The arteries might not open wide enough. The veins might not clamp shut properly, letting blood leak back out faster than it flows in. Or your nervous system might flip into fight-or-flight mode, which actively works against the erection. These aren’t separate problems that exist in a textbook. They overlap constantly in real life.
The Blood Flow Problem
The most common physical reason for losing an erection is restricted blood flow. The arteries supplying the penis are small, only 1 to 2 millimeters across. That makes them some of the first blood vessels in your body to narrow when plaque builds up on artery walls. This is worth paying attention to: erection problems typically show up 3 to 5 years before a heart attack or stroke, because the same process damaging penile arteries is also damaging the ones feeding your heart and brain. That window gives you time to address the underlying cardiovascular issue before it becomes dangerous.
High blood pressure, high cholesterol, diabetes, and smoking all damage blood vessel linings and reduce the flow needed to get and stay hard. If you’re over 40 and noticing erection problems without an obvious psychological trigger, this is the first thing worth investigating.
Venous Leak
Sometimes blood flows into the penis just fine, but the veins don’t compress the way they should. Blood “leaks” back out into the body before you’re done. This is called venous leak, and it creates a frustrating pattern where you can get partially hard but can’t maintain full rigidity. Scar tissue from conditions like Peyronie’s disease (where the penis develops a noticeable curve) can prevent veins from clamping down properly, making the leak worse.
Your Nervous System Is Working Against You
Your body has two competing systems controlling erections. The parasympathetic system promotes them. The sympathetic system, which handles stress and adrenaline, actively shuts them down. This isn’t a subtle effect. Switching off sympathetic nervous system activity directly enhances erections, and ramping it up kills them.
This is why anxiety, stress, and performance pressure are so effective at making you lose an erection. It doesn’t matter how attracted you are or how much you want to have sex. If your brain perceives a threat, even the vague threat of embarrassment, adrenaline enters the picture and constricts the very arteries that need to stay open. The result is a feedback loop: you lose your erection once, you worry about it happening again, and that worry triggers the exact response that causes it.
This pattern is especially common in younger men. If you can get and stay hard when you’re alone (morning erections, masturbation) but lose it with a partner, the cause is almost certainly psychological rather than physical. That distinction matters because the treatment path is completely different.
Hormones and Low Testosterone
Testosterone plays a supporting role in erections. It doesn’t directly cause them, but low levels reduce sex drive and make the whole arousal system less responsive. The American Urological Association defines low testosterone as a total level below 300 ng/dL, and they recommend testing testosterone in anyone experiencing erection problems.
Low testosterone tends to show up alongside other symptoms: fatigue, reduced muscle mass, weight gain, low motivation, and decreased interest in sex altogether. If you’re losing erections but your desire for sex is also noticeably lower than it used to be, hormones are worth checking. A simple blood test, usually drawn in the morning when levels peak, gives you an answer.
Medications That Interfere
Several common medications make it harder to stay erect, and antidepressants are the biggest offenders. SSRIs like sertraline (Zoloft), fluoxetine (Prozac), paroxetine (Paxil), and escitalopram (Lexapro) carry the highest risk of sexual side effects among antidepressants. Older antidepressant classes, including tricyclics and MAOIs, can cause the same problems.
Blood pressure medications, particularly older types like beta-blockers and certain diuretics, also interfere with erections. Opioid painkillers suppress testosterone over time, creating a hormonal cause on top of everything else. If your erection problems started around the same time as a new medication, that timing is probably not a coincidence. Switching to an alternative in the same class often resolves the issue, but don’t stop taking prescribed medication on your own.
Lifestyle Factors That Add Up
Erection quality is surprisingly sensitive to everyday habits. Heavy alcohol use depresses the nervous system and reduces arousal signals. Even moderate drinking in the hours before sex can make it harder to stay erect. Smoking damages blood vessel linings directly, and the effect compounds over years. Men who quit smoking often notice improvement in erection quality within a few months as blood vessels begin to heal.
Poor sleep, especially untreated sleep apnea, tanks testosterone levels and disrupts the hormonal cycles your body relies on. Obesity contributes through multiple pathways at once: it promotes inflammation, worsens blood vessel function, and converts testosterone into estrogen through fat tissue. Losing even 5 to 10 percent of body weight can produce measurable improvement in erection quality for men who are overweight.
Porn use is another factor worth examining honestly. Frequent use of high-stimulation pornography can raise the threshold of arousal needed to maintain an erection, making real-world sexual encounters feel less stimulating by comparison. This isn’t universal, but if you notice a pattern where you stay hard easily to porn but not with a partner, the discrepancy is telling.
What Getting Evaluated Looks Like
A doctor will typically start with your medical and sexual history, a physical exam, and blood work to check testosterone, blood sugar, cholesterol, and thyroid function. You may be asked to fill out a validated questionnaire that scores the severity of the problem and helps track whether treatment is working over time.
The evaluation is designed to sort out whether the cause is primarily physical, psychological, or a mix. Morning erections are a useful clue: if you regularly wake up hard, the physical machinery is likely working and the issue is more situational. If morning erections have disappeared too, a physical cause is more likely.
Treatment Options by Cause
For blood flow issues, oral medications that increase blood flow to the penis are the most common starting point. They work for roughly 70 percent of men and are taken before sexual activity. They don’t create arousal on their own; they make it easier for your body to respond to arousal that’s already happening.
For psychological causes, cognitive behavioral therapy focused on sexual performance anxiety is highly effective. Some men benefit from short-term use of oral medications to break the anxiety cycle: a few successful experiences can reset the pattern, and the medication can often be stopped afterward.
For low testosterone, hormone replacement brings levels back to normal range and typically improves desire and erection quality together. For medication-related problems, switching to an alternative with fewer sexual side effects is usually the simplest fix.
The American Urological Association recommends that all treatment options be discussed upfront, regardless of how invasive they are. Some men prefer to start with the least invasive approach and work up. Others want to jump to what’s most effective for their specific situation. Both are valid starting points, and the choice is yours.

