SYNTHETIC DEMONSTRATION — no real student or patient. Not a medical device.

Men's health

Can't Keep an Erection During Sex: What's Behind It and What Helps

Losing an erection during sex is a form of erectile dysfunction (ED). Occasional episodes are normal, but when it happens frequently or persistently it deserves medical evaluation — both for quality of life and because ED can be an early indicator of cardiovascular or hormonal changes worth addressing early [1].

Talk to a clinician

Nina Osei, NPNurse Practitioner

checkups, refills & skin. Gale can match you with a licensed clinician for a visit.

Find care →

Why does this happen? The two broad pathways

An erection depends on a chain of coordinated events: mental arousal, nervous-system signaling, arterial dilation, and the temporary trapping of blood in penile tissue. A disruption anywhere in that chain can cause difficulty sustaining one.

Physical (vascular, hormonal, neurological). The most common physical driver is impaired blood flow — often reflecting the same arterial narrowing that precedes heart disease 1. High blood pressure, diabetes, high cholesterol, obesity, and smoking all damage vascular function and are major contributors. Hormonal factors (low testosterone, thyroid dysfunction) and nerve damage — from diabetes or certain surgeries — are physical causes as well [2, 3].

Psychological and situational. Performance anxiety is extremely common. Once an erection is lost in a stressful moment, fear of recurrence can create a self-reinforcing cycle that is genuinely physiological even though it starts psychologically. Depression, generalized anxiety, relationship stress, and distraction during sex are all contributors 4. Psychological causes often show situational patterns: erections may be fine during solo activity but not with a partner, or fine in one context but not another.

What clues point toward physical versus psychological causes?

Clinicians use a few practical questions to distinguish the two. Healthy spontaneous erections during sleep or upon waking — called nocturnal penile tumescence — suggest the vascular and neurological hardware is intact, pointing toward psychological or situational causes. Absent or weak morning erections suggest a physical contributor.

Gradual onset over months to years, consistent difficulty across all situations, and cardiovascular risk factors lean toward a physical cause. Sudden onset in a previously healthy man, or context-specific difficulty, leans more psychological. Most cases involve elements of both.

What lifestyle changes make a real difference?

The cardiovascular risk factors that drive physical ED are also where lifestyle changes matter most. Regular aerobic exercise improves vascular function and is one of the most evidence-supported steps 5. Quitting smoking, reducing heavy alcohol use, reaching a healthy weight, and controlling blood pressure, blood sugar, and cholesterol all improve erectile function — and protect overall health at the same time [1, 6].

Poor sleep, untreated depression or anxiety, and relationship stress are worth addressing in parallel 4. For mild to moderate ED, lifestyle changes can produce meaningful improvement before any medication is needed.

When should you see a clinician, and what does treatment look like?

If difficulty sustaining an erection happens frequently — more than occasionally — a primary care visit is a reasonable first step. A clinician will take a history including cardiovascular risk and relationship context, do a targeted exam, and likely order blood work 1.

Treatment depends on the cause. Options may include addressing an underlying condition, therapy or counseling for psychological contributors, or medications (a clinician will review which are appropriate for your situation). Oral PDE5 inhibitors — the class that includes sildenafil and tadalafil — are effective across a broad range of ED causes 7. The goal is the right treatment for the right cause, not just a prescription.

Common questions

Is it normal to lose an erection occasionally during sex?

Yes. Occasional loss of erection during sex happens to most men at some point and does not indicate an underlying problem. It becomes worth evaluating when it happens frequently or is causing distress.

Could my blood pressure or cholesterol medication be causing this?

Possibly. Certain antihypertensives (some beta-blockers, thiazide diuretics), SSRIs, opioids, and other medications can contribute to ED. Do not stop a prescribed medication without talking to your clinician, but do mention the timing.

Does erectile dysfunction mean I have a heart problem?

Not necessarily, but the two share common underlying causes. Both are often driven by impaired blood vessel function. A man with ED and cardiovascular risk factors warrants a cardiovascular risk assessment alongside an ED evaluation.

Do I need a specialist, or can my regular doctor handle this?

Primary care is the appropriate first step for most men. A primary care clinician can take a history, order relevant blood work, and coordinate treatment. A urologist or other specialist may be involved for complex cases.

Talk to a clinician

Nina Osei, NPNurse Practitioner

checkups, refills & skin. Gale can match you with a licensed clinician for a visit.

Find care →

When to seek urgent care

  • A painful erection lasting more than 2–3 hours (priapism) — go to an emergency department immediately; this can cause permanent damage
  • Sudden complete inability to achieve any erection, especially after groin or pelvic trauma — seek urgent evaluation
  • New ED paired with chest pain, shortness of breath, or severe leg pain with exertion — these may indicate heart or vascular disease requiring prompt attention

A prolonged, painful erection lasting more than 2–3 hours is a medical emergency. Go to an emergency department immediately.

This article is general health information and does not constitute a personalized diagnosis or treatment recommendation. It does not replace evaluation by a licensed clinician who can take your full history and recommend appropriate next steps.

References

  1. 1.Burnett AL, Nehra A, Breau RH, Culkin DJ, Faraday MM, Hakim LS, Heidelbaugh J, Khera M, McVary KT, Miner MM, Nelson CJ, Sadeghi-Nejad H, Seftel AD, Shindel AW (2018). Erectile Dysfunction: AUA Guideline. Journal of Urology. doi:10.1016/j.juro.2018.05.004Vascular risk factors as the primary physical drivers of ED; clinical evaluation framework
  2. 2.American Diabetes Association Professional Practice Committee (2024). Standards of Care in Diabetes—2024. Diabetes Care. doi:10.2337/dc24-SINTDiabetes as a major contributor to vascular and neurological erectile dysfunction
  3. 3.Mulhall JP, Trost LW, Brannigan RE, Kurtz EG, Redmon JB, Chiles KA, Lightner DJ, Miner MM, Murad MH, Nelson CJ, Platz EA, Ramanathan LV, Lewis RW (2018). Evaluation and Management of Testosterone Deficiency: AUA Guideline. Journal of Urology. doi:10.1016/j.juro.2018.03.115Low testosterone as a hormonal contributor to ED; role of morning testosterone testing in workup
  4. 4.O'Connor E, Henninger M, Perdue LA, et al. (2023). Screening for Depression and Suicide Risk in Adults: US Preventive Services Task Force Recommendation Statement. JAMA. doi:10.1001/jama.2023.9297Depression and anxiety as contributors to sexual dysfunction, including ED
  5. 5.Bull FC, Al-Ansari SS, Biddle S, et al. (2020). World Health Organization 2020 guidelines on physical activity and sedentary behaviour. British Journal of Sports Medicine. doi:10.1136/bjsports-2020-102955Regular aerobic exercise improving vascular function, relevant to physically-driven ED
  6. 6.Whelton PK, Carey RM, Aronow WS, et al. (2018). 2017 ACC/AHA Guideline for the Prevention, Detection, Evaluation, and Management of High Blood Pressure in Adults. Journal of the American College of Cardiology. doi:10.1016/j.jacc.2017.11.006Hypertension as a primary vascular risk factor for ED; blood pressure control as protective
  7. 7.Pyrgidis N, Mykoniatis I, Haidich AB, Tirta M, Talimtzi P, Kalyvianakis D, Ouranidis A, Hatzichristou D (2021). The Effect of Phosphodiesterase-type 5 Inhibitors on Erectile Function: An Overview of Systematic Reviews. Frontiers in Pharmacology. doi:10.3389/fphar.2021.735708PDE5 inhibitors as an effective pharmacological treatment for ED across multiple causes

7 sources, numbered by first appearance. General health information, not medical advice — synthetic demonstration content.