Losing an erection during sex or before penetration is one of the most common sexual health issues men experience, and it almost always has an identifiable cause. About 16% of men between 40 and 60 deal with erectile dysfunction, but the problem affects younger men too. The reasons fall into a few categories: blood flow, nervous system signaling, hormones, medications, and psychological factors. Most of the time, more than one of these is involved.
How Erections Are Maintained
Understanding why you’re losing erections starts with understanding what keeps one going. An erection isn’t just about blood flowing in. It’s about trapping that blood inside the penis long enough to maintain firmness. When you become aroused, the spongy tissue inside the shaft relaxes and expands with incoming blood. As that tissue swells, it presses against the tough outer lining of the penis, which compresses the veins that would normally drain blood back out. This pressure-dependent trapping mechanism is what keeps you hard.
Anything that disrupts this process, whether it’s reduced blood flow in, weakened trapping of blood, or a nervous system signal that tells the body to shut things down, can cause you to lose your erection partway through or struggle to get fully rigid in the first place.
Blood Vessel Damage Is the Most Common Cause
The single biggest reason men can’t maintain erections is damage to blood vessels. The inner lining of your blood vessels, called the endothelium, is responsible for producing the chemical signals that relax penile tissue and allow blood to flow in. When that lining is damaged, blood supply to the penis drops. The same process that reduces blood flow to your heart in cardiovascular disease also reduces blood flow to your penis. In fact, erectile problems often show up three to five years before heart disease is diagnosed, making them an early warning sign worth paying attention to.
High blood pressure, high cholesterol, and diabetes are the leading causes of this blood vessel damage. Diabetes is particularly harmful because chronically elevated blood sugar damages both the nerves and the blood vessels involved in erections, creating a double hit. If you’ve noticed a gradual decline in erection quality over months or years, vascular health is the most likely explanation.
Anxiety Triggers a Physical Response
Your nervous system has two competing branches when it comes to erections. The parasympathetic branch (your “rest and digest” mode) promotes erections. The sympathetic branch (your “fight or flight” mode) actively inhibits them. Erections are a product of relaxation at the deepest neurological level.
This is why performance anxiety is so effective at killing an erection. The moment you start worrying about staying hard, your brain activates the sympathetic nervous system, flooding your body with adrenaline. That adrenaline directly counteracts the signals keeping blood trapped in the penis. The more you focus on the problem, the worse it gets, creating a feedback loop that can persist across multiple sexual encounters.
There’s a revealing piece of evidence here: nocturnal erections. During REM sleep, the sympathetic nervous system essentially shuts off in a specific area of the brain stem. With those inhibitory signals gone, erections happen automatically. If you’re waking up with morning erections but losing them during sex, that strongly suggests a psychological or situational cause rather than a physical one.
Alcohol and Smoking Both Interfere
Alcohol disrupts erections through multiple pathways at once. It interferes with the brain signals needed to initiate and maintain arousal, it inhibits the parasympathetic nervous system (the one you need active for erections), and it dilates blood vessels throughout the body, causing a temporary blood pressure drop that reduces the flow needed to stay firm. Even a few drinks can be enough to cause problems in the moment.
Chronic heavy drinking compounds the damage. Long-term alcohol use contributes to hardened arteries and high blood pressure, both of which permanently reduce blood flow to the penis. One study found that more than 67% of men with alcohol use disorder experienced some form of sexual dysfunction, with erectile problems among the top complaints.
Smoking causes similar vascular damage over time. Nicotine constricts blood vessels and accelerates the buildup of plaque in arterial walls, progressively reducing the blood supply available for erections. The damage is cumulative, meaning each year of smoking makes the problem harder to reverse.
Medications That Affect Erections
If your erection difficulties started around the same time you began a new medication, the medication may be the cause. Antidepressants are among the most common culprits. All antidepressants can potentially cause sexual side effects, but those that affect serotonin carry the highest risk. SSRIs like sertraline, fluoxetine, and paroxetine are frequently associated with erection difficulties, with paroxetine carrying the greatest risk in that class.
Blood pressure medications, particularly older classes like beta-blockers and certain diuretics, can also reduce erection quality by lowering the blood pressure needed to fill and maintain penile rigidity. If you suspect a medication is involved, that’s a conversation worth having with whoever prescribed it, because alternatives with fewer sexual side effects often exist.
Low Testosterone Plays a Smaller Role Than You’d Think
Testosterone is critical for sex drive. When levels are low, you may simply not feel interested in sex, and the mental arousal that helps trigger erections can fade. But research shows that low testosterone alone is not a strong driver of erection problems. There’s limited evidence that testosterone replacement therapy, on its own, reliably restores the ability to maintain erections. Testosterone fuels desire more than it fuels the mechanical process of staying hard. If your sex drive feels normal but you’re losing erections during the act, low testosterone is less likely to be the primary issue.
Pelvic Floor Weakness
A set of muscles at the base of the pelvis plays an active role in erection rigidity. The muscles that wrap around the base of the penis contract during an erection, generating internal pressures far higher than your normal blood pressure. This is what pushes an erection from “filled with blood” to “fully rigid.” When these muscles are weak, from prolonged sitting, aging, surgery, or simply disuse, you may be able to get partially erect but struggle to reach or maintain full firmness. Targeted pelvic floor exercises have been shown to improve both erectile function and ejaculatory control in clinical rehabilitation studies.
Sorting Out Your Specific Cause
The pattern of your erection difficulties tells you a lot about the likely cause. If the problem came on gradually over months or years, it typically points to a vascular issue, especially if you also have risk factors like high blood pressure, diabetes, or a smoking habit. If the problem is situational (you lose erections with a partner but wake up hard, or you’re fine with one partner but not another), anxiety and psychological factors are more likely driving things.
If the problem started suddenly and coincided with a new medication, stress, or relationship change, those situational factors deserve attention first. And if you’re under 40 with no obvious health conditions, the most common explanations are performance anxiety, excessive alcohol use, or a combination of both. For men over 40, the odds of a vascular contribution increase with each decade. Multiple causes often overlap: a mild blood flow issue might never cause a problem on its own, but add two drinks and some performance anxiety, and the combination becomes enough to lose the erection.