Losing an erection during sex or before penetration is one of the most common sexual health issues men experience, and it rarely has a single cause. An erection depends on a chain of events: arousal signals from the brain, healthy blood vessels that deliver blood to the penis, and a trapping mechanism that keeps that blood in place. A problem at any point in that chain can make it difficult to stay hard.
How Erections Are Maintained
Getting an erection and keeping one are actually two different processes. When you become aroused, smooth muscle tissue inside the penis relaxes, allowing blood to rush in and fill two sponge-like chambers called the corpora cavernosa. As these chambers expand with blood, they compress the veins that would normally drain blood away. This compression is what keeps the erection firm. The smooth muscle tissue inside the penis is the main regulating factor for this entire process. If it doesn’t relax fully, or if the veins can’t be compressed enough, blood escapes faster than it flows in and the erection fades.
This means that anything affecting your blood vessels, nerves, hormones, or mental state can interfere with erection maintenance, even if the initial erection feels normal.
Blood Flow and Nerve Problems
The most common physical reason men can’t stay erect is restricted blood flow. Conditions that damage blood vessels, like high blood pressure, high cholesterol, atherosclerosis (plaque buildup in arteries), and diabetes, all reduce the amount of blood reaching the penis. Diabetes is a double threat because it also damages the small nerves that trigger the smooth muscle relaxation needed to trap blood in place.
Nerve damage from other sources matters too. Pelvic surgery, radiation therapy, spinal injuries, multiple sclerosis, and stroke can all interrupt the signals traveling from the brain to the penis. When those signals are weakened or blocked, the erection may start but can’t be sustained because the smooth muscle doesn’t stay relaxed long enough.
A related condition called venous leak (sometimes called veno-occlusive insufficiency) happens when the veins inside the penis can’t close down properly regardless of blood flow. Blood fills the chambers but drains out too quickly. This is typically diagnosed with a Doppler ultrasound that measures blood flow in and out of the penis.
Stress, Anxiety, and the Fight-or-Flight Response
Your nervous system has two competing modes: one for rest, digestion, and sexual arousal (parasympathetic), and one for danger and stress (sympathetic). An erection requires the rest-and-arousal mode. When you feel anxious, stressed, or self-conscious during sex, your brain activates the fight-or-flight response. Your heart rate increases, breathing quickens, and your body shuts down functions it doesn’t need for immediate survival. Erections are one of the first things to go.
This creates a frustrating cycle. You lose your erection once, then worry about it happening again, which triggers more anxiety the next time, which makes it more likely to happen again. Performance anxiety is especially common in new relationships, after a long period without sex, or during times of high life stress. The erection loss isn’t a sign that something is physically wrong with your body. It’s your nervous system responding to a perceived threat, even though the “threat” is just worry about sexual performance.
Medications That Interfere
Several common prescription drugs can make it harder to maintain erections. If your difficulty started around the same time you began a new medication, that connection is worth investigating.
- Blood pressure medications: Thiazide diuretics (water pills) are the most common culprits. Beta-blockers are the next most likely class to cause problems. Alpha-blockers tend to be less likely to interfere.
- Antidepressants: SSRIs, the most widely prescribed class of antidepressants, frequently affect sexual function. This includes common medications like fluoxetine and sertraline.
If you suspect a medication is involved, don’t stop taking it on your own. There are often alternative drugs in the same class that have fewer sexual side effects, and your prescriber can help you switch.
Low Testosterone
Testosterone plays a supporting role in erections by maintaining sex drive and helping the smooth muscle tissue in the penis function properly. The American Urological Association defines low testosterone as a total level below 300 ng/dL, measured with a morning blood draw. Below that threshold, men are more likely to experience reduced desire and difficulty with erections, though testosterone alone is rarely the only factor. Low testosterone is most common in men over 40, but it can occur at any age due to obesity, chronic illness, or problems with the pituitary gland.
If your main symptom is losing erections but your sex drive feels normal, low testosterone is less likely to be the primary cause. When testosterone is truly deficient, reduced desire and fatigue usually show up alongside erection problems.
How Severity Is Measured
Doctors often use a five-question screening tool called the IIEF-5 to assess erectile function on a 25-point scale. A score of 22 to 25 is considered normal. Scores of 17 to 21 indicate mild erectile dysfunction, 12 to 16 is mild to moderate, 8 to 11 is moderate, and 1 to 7 is severe. This questionnaire helps determine how much the problem is affecting your sexual life and guides treatment decisions. You can find versions of it online, and filling one out before a doctor’s visit gives you a useful starting point for the conversation.
Exercise as a First Step
Regular aerobic exercise is one of the most effective non-medical interventions for erection problems. A review of 11 randomized controlled trials involving more than 1,000 men with mild or moderate erectile dysfunction found that men who exercised 30 to 60 minutes, three to five times per week, saw more improvement in their erections compared to men who didn’t exercise. Harvard Health Publishing reported that the benefit may be comparable to medication for some men.
The effect works through multiple pathways. Cardiovascular exercise improves blood vessel health and blood flow throughout the body, including to the penis. It also lowers stress hormones and improves mood, which helps counteract the anxiety component. Even if exercise doesn’t fully resolve the issue, it makes other treatments work better.
How ED Medications Work
The most widely used medications for erectile dysfunction all work by the same basic mechanism: they help the smooth muscle in the penis stay relaxed longer, which keeps blood trapped in the chambers. They don’t create arousal on their own. You still need to be mentally and physically stimulated for them to work.
The three main options differ primarily in timing. Sildenafil starts working in about 30 minutes and lasts 3 to 5 hours. Vardenafil can kick in slightly faster, sometimes within 25 minutes, with a similar duration of about 4 hours. Tadalafil also begins working at around 30 minutes but lasts dramatically longer, typically 24 to 36 hours, which is why it’s sometimes called the “weekend pill.” That longer window can reduce performance pressure because you don’t need to time the dose as precisely around sexual activity.
Current guidelines from the American Urological Association emphasize that there’s no mandatory starting point for treatment. While many men begin with medication because it’s the least invasive, the guidelines support choosing any treatment that isn’t contraindicated, based on your preferences and how the problem affects your life. Options beyond oral medications include vacuum devices, injectable treatments, and surgical implants for cases that don’t respond to other approaches.
When Multiple Causes Overlap
Most men dealing with this problem have more than one contributing factor. A 45-year-old with borderline high blood pressure and a stressful job might find that neither issue alone would cause a problem, but together they tip the balance. A younger man with no cardiovascular risk factors might trace his difficulty entirely to anxiety, while an older man on blood pressure medication might have a combination of reduced blood flow and medication side effects.
This is why the most effective approach usually addresses multiple angles at once: improving cardiovascular health through exercise, managing stress or anxiety, reviewing medications, checking hormone levels, and considering ED medication if needed. Identifying which factors are contributing in your specific case is the key to finding a solution that actually works.

