Losing your erection during sex is one of the most common sexual issues, and in most cases it has a straightforward explanation. Around 16% of men aged 40 to 60 experience erectile difficulties, but it happens to younger men too, often for different reasons. The cause is usually psychological, physical, or a combination of both, and understanding the mechanism behind it can help you figure out what’s going on.
How Erections Work (and Why They Fail)
An erection depends on a specific chain of events. Sexual arousal triggers nerve signals that release a chemical called nitric oxide into the tissue of the penis. This causes the smooth muscle inside to relax and blood vessels to widen, allowing blood to rush in and create firmness. Critically, the veins that normally drain blood away get compressed, trapping blood inside. Staying hard requires this entire system to keep working in sync.
The system runs on your parasympathetic nervous system, the same branch that handles rest, digestion, and relaxation. The moment your sympathetic nervous system activates (your “fight or flight” response), it works against the erection. Your body redirects resources toward surviving a perceived threat: faster heart rate, deeper breathing, and the shutting down of functions it considers non-essential, including erections. This is the core reason so many causes of going soft come back to one thing: something is pulling your nervous system out of its relaxed state.
Performance Anxiety Is the Most Common Trigger
If you can get hard during masturbation or wake up with morning erections but lose firmness with a partner, the issue is almost certainly psychological. Performance anxiety creates a vicious cycle. You worry about staying hard, which activates your fight-or-flight response, which makes you lose your erection, which gives you more to worry about next time.
This isn’t a character flaw or a sign you aren’t attracted to your partner. It’s your nervous system doing exactly what it’s designed to do under stress. The anxiety doesn’t have to be dramatic either. Subtle worries about pleasing your partner, body image, relationship tension, or even just the pressure of a new sexual situation can be enough to tip the balance. Stress from work, finances, or life outside the bedroom carries over too. Your brain doesn’t neatly separate “life stress” from “sex stress.”
Alcohol and Smoking
Alcohol is one of the most common and overlooked culprits. Even a moderate amount interferes with the brain signals needed to initiate and maintain an erection. It also inhibits the parasympathetic nervous system directly, working against the very mechanism that keeps you hard. On top of that, alcohol dilates blood vessels throughout your body, causing a temporary drop in blood pressure that reduces blood flow to the penis. If you notice the pattern lines up with drinking, that’s likely your answer.
Smoking damages the blood vessels that erections depend on. Nicotine constricts blood vessels over time, reducing the blood flow needed to maintain firmness. This is a cumulative effect, so it may not cause problems right away but gradually makes erections less reliable.
Condoms and Changes in Stimulation
About 25% of men report losing their erection while putting on a condom or shortly after. This is extremely common and happens for a few overlapping reasons. The pause in stimulation while you open the wrapper and roll it on creates a gap where arousal can dip. The sensation of penetration through latex is also different from direct skin contact or oral stimulation, and if your body was responding strongly to one type of sensation, the shift can be enough to lose momentum.
Fit matters too. A condom that’s too tight or too loose changes how stimulation registers. If this is a recurring issue, experimenting with different sizes or thinner materials can help. Some people also find that incorporating the condom into foreplay, rather than treating it as an interruption, reduces the problem.
Porn Habits and Arousal Patterns
Frequent pornography use can train your brain to associate arousal with a very specific type of stimulation: fast-paced, novel, and visually intense. Research from the University of Rhode Island found a pattern among men who started watching porn in adolescence and gradually escalated to more extreme content. Over time, real-life sex felt comparatively understimulating, and they struggled to maintain erections with a partner.
The good news is that this appears to be reversible. Many of the men in the study regained normal erectile function after a period of abstaining from pornography, a process sometimes called a “reboot.” If you notice that you stay hard easily while watching porn but not during sex, this connection is worth examining honestly.
Medications That Affect Erections
Antidepressants are the most well-known medication class linked to erectile problems. Drugs that increase serotonin levels carry the highest risk, and this includes most commonly prescribed antidepressants (SSRIs like sertraline, fluoxetine, and paroxetine, with paroxetine carrying the greatest risk). These medications can make it harder to get or stay erect even when arousal and desire are present.
Blood pressure medications, antihistamines, and certain anti-anxiety drugs can also contribute. If your erection difficulties started around the same time as a new prescription, that’s a strong clue. Stopping medication without medical guidance isn’t the answer, but alternatives with fewer sexual side effects often exist.
Physical Causes Worth Knowing About
A condition called venous leak occurs when the veins in the penis can’t trap blood effectively. Instead of staying compressed during an erection, they allow blood to drain back out, causing you to lose firmness even when arousal is high. The hallmark of an organic (physical) cause like this is that the problem is consistent across all situations: with a partner, during masturbation, and even during sleep. If you still get reliable morning erections and can stay hard when you’re alone, a venous leak is unlikely.
Cardiovascular health plays a major role in erectile function at any age. Conditions like high blood pressure, diabetes, and high cholesterol all damage blood vessels over time and reduce the blood flow erections require. In fact, erectile difficulty is sometimes the first noticeable sign of a cardiovascular issue, since the small blood vessels in the penis are affected before larger ones elsewhere in the body.
What You Can Do About It
The first step is identifying the pattern. Ask yourself a few key questions: Does it happen every time or only in certain situations? Do you get firm erections during masturbation or in the morning? Did it start suddenly or gradually? Did it coincide with a new medication, more stress, or a change in habits? The answers point toward whether the root cause is psychological, physical, or lifestyle-related.
If anxiety is the driver, the most effective approach is breaking the worry cycle. Shifting focus away from erection quality and toward physical sensation and connection with your partner takes the pressure off. Techniques from cognitive behavioral therapy, sometimes done with a sex therapist, are well-studied for this. Simply talking openly with your partner about what’s happening can reduce the shame and secrecy that fuel the anxiety.
Strengthening your pelvic floor muscles through Kegel exercises can improve erectile function. These muscles support blood flow to the penis and play a direct role in maintaining firmness. To find them, try stopping your urine stream midflow. The muscles you clench are the ones to target. Consistent daily practice over several weeks is typically needed before you notice a difference.
Cutting back on alcohol before sex, quitting smoking, improving sleep, and getting regular cardiovascular exercise all support the vascular health that erections depend on. These changes aren’t dramatic or immediate, but they address the underlying physiology rather than masking the symptom.
If the problem is persistent across all situations, happens without an obvious lifestyle or psychological explanation, or came on gradually over months, a medical evaluation is worthwhile. A basic workup typically includes a physical exam, blood tests to check hormone levels and metabolic health, and sometimes an ultrasound to assess blood flow. The goal is to rule out or identify treatable physical causes.

