Losing Your Erection During Sex? Causes, Solutions, and When to Get Help

Leo, a sexologist with over 10 years of experience in sex education.
Losing Your Erection During Sex? You are in the middle of sex, things are going well, and then suddenly — your erection starts to fade. Maybe it goes away completely. You feel a rush of panic. Your mind starts racing. And the more you worry, the softer you get. If this has happened to you, you are not broken, you are not alone, and in most cases, this is completely normal.
Here is the truth that no one tells you. Occasional erectile difficulty is not erectile dysfunction. The Merck Manual defines erectile dysfunction as the persistent inability to achieve or maintain an erection sufficient for satisfactory sexual performance . The key word is persistent. If it happens once in a while — after a long week, a few too many drinks, or during a stressful period — that is not ED. That is being human. According to the MSD Manuals consumer version, it is normal for men to have problems getting an erection once in a while; doctors do not consider it ED unless it happens often .
But if it is happening regularly and starting to bother you, let us walk through why, what you can do about it, and when to actually see a doctor.
Why Do I Lose My Erection During Sex?
There is rarely one single reason. Most cases of ED are actually a mix of physical and psychological factors working together . The Merck Manual explains that secondary ED — meaning you used to be fine and now you are not — is more common, and more than ninety percent of cases have an organic (physical) cause. However, many men with physical ED also develop reactive psychological difficulties that make the problem worse . So your anxiety about losing the erection can become the very reason you keep losing it. Let me break down the most common causes.
Performance anxiety is the biggest one, especially for younger men. You start worrying about whether you will stay hard. That worry activates your sympathetic nervous system — your fight or flight response. And here is the problem: your sympathetic nervous system is the enemy of an erection. To get and stay hard, you need your parasympathetic nervous system — the rest and digest state. You cannot be in both at the same time. A 2025 case report published in The Journal of Sexual Medicine described a 28-year-old man with psychogenic ED linked to performance anxiety. The study noted that psychogenic ED is common among young men and often tied to performance anxiety and interpersonal distress . The moment you start watching yourself perform instead of feeling the pleasure, you are setting yourself up for failure.
Stress and mental exhaustion are silent erection killers. Work pressure, financial worries, relationship conflicts, lack of sleep — all of these raise your cortisol levels. Elevated cortisol constricts blood vessels and lowers testosterone. The Merck Manual notes that psychological factors must be considered in every case of ED, including stress and depression . If your brain is exhausted, your penis is going to be exhausted too.
Alcohol and recreational drugs are temporary saboteurs. Alcohol is a central nervous system depressant. It might lower your inhibitions, but it also lowers your ability to get and stay hard. The Merck Manual explicitly lists alcohol as a cause of temporary ED . One drink might relax you. Three drinks will likely deflate you. The same goes for many recreational drugs.
Porn-induced arousal problems are real, especially for younger men. A 2025 case report from the Philippine Medical Association described a 22-year-old man who presented with the primary complaint of an inability to sustain an erection, with erections lasting only about one minute. Psychological assessment revealed moderate ED, problematic use of pornography, and minimal anxiety . A 2025 systematic review published in Advances in Experimental Medicine and Biology found mixed findings. Some studies showed significant associations between pornography watching and sexual problems, while others showed no association or even beneficial effects. The key finding was that mere watching of pornography is not a significant risk factor — but problematic use, body dissatisfaction, and insecurities play a significant role . If you need more extreme content to get aroused, or if real partners do not measure up to what you see on screen, your brain has been trained on a level of stimulation that real life cannot match.
Condom-related sensitivity loss is another common issue. Condoms can reduce sensation, especially if you are using the wrong size or material. The solution is not to skip the condom. The solution is to find a condom that fits properly, add a drop of lubricant inside the tip, and use plenty of external lubrication.
Relationship and emotional factors matter more than most men want to admit. If there is unresolved conflict, lack of emotional safety, or simply boredom, your body will respond. The Merck Manual notes that evaluation should include exploration of satisfaction with sexual relationships and assessment of partner interaction . You cannot expect your penis to perform when your heart or your head is not in it.
Physical Health Conditions That Cause ED
If your erection problems are happening both with a partner and during solo masturbation, or if you have noticed a gradual decline over time, there may be a physical cause.
Cardiovascular problems are the most common physical cause. The Merck Manual states that the most common vascular cause of ED is atherosclerosis of the penile arteries, often caused by smoking, endothelial dysfunction, and diabetes . Here is the scary part: the penile artery is only one to two millimeters wide, while your coronary arteries are three to four millimeters wide. Because the penile artery is smaller, it clogs up faster. Atherogenic ED is often called "the canary in the coal mine" for heart disease, as it can precede heart attacks by two to five years . If you have ED and no known heart disease, it might be worth getting your heart checked.
Diabetes is a major cause. High blood sugar damages both the nerves and the blood vessels required for an erection. According to a 2026 prospective study, men with type 2 diabetes are approximately three and a half times more likely to experience ED than men without diabetes .
Low testosterone can reduce libido and make erections harder to achieve. However, the Merck Manual notes that erectile function only rarely improves with normalization of testosterone levels alone because most affected men also have neurovascular causes . In other words, low testosterone is rarely the only problem.
Obesity contributes through multiple pathways: inflammation, poor blood flow, low testosterone, and sleep apnea. The 2026 study from Cureus found that a combined lifestyle and medication intervention reduced average body weight by 7.1% and increased SHIM scores from 14 to 22 over three months .
Medication side effects are often overlooked. The Merck Manual lists multiple drugs that can cause ED, including certain antidepressants (SSRIs), beta-blockers, diuretics, and anti-anxiety medications . If you started a new medication and noticed erection problems shortly after, talk to your prescribing doctor. Do not stop taking your medication on your own.
Is It Actually Erectile Dysfunction?
Here is how to tell the difference. The Merck Manual explains that a psychological cause should be suspected in young healthy men with abrupt onset of ED, particularly if it is associated with a specific emotional event or if it only happens in certain settings. Men with psychogenic ED usually have normal erections upon waking up in the morning. Men with organic ED often do not .
If you wake up with morning erections, your plumbing probably works fine. Your issue is likely psychological or situational. If you have not had a morning erection in months, that points toward a physical cause.
How to Stop Losing Your Erection During Sex
Let me give you practical solutions based on the medical evidence.
Reduce performance pressure. This is the hardest but most important step. Stop treating sex as a performance. Take penetration off the table for a while. Focus on mutual pleasure without any requirement to get or stay hard. The more you relax, the more your body will respond naturally.
Improve your sleep. Poor sleep raises cortisol and lowers testosterone. A study on obstructive sleep apnea found that treating sleep apnea can significantly improve erectile function . Aim for seven to eight hours.
Exercise regularly. Aerobic exercise improves blood flow, reduces inflammation, and boosts nitric oxide production. The NIH expert review notes that the potential for lifestyle changes to improve erectile function may prove uniquely motivating for patients to make such changes . A 2026 study found that structured lifestyle changes combined with medication led to significant improvements in erectile function, glycemic control, and testosterone levels .
Limit alcohol. One drink might help with anxiety. More than that hurts more than it helps.
Try different stimulation. If you lose your erection during intercourse, switch to manual or oral stimulation. Use your hands. Use toys. Take the focus off penetration entirely.
Reduce porn overuse. If you suspect porn is part of the problem, try a thirty-day break. Pay attention to how your real-life arousal changes. The systematic review found that problematic use — not just casual viewing — is associated with sexual difficulties .
Can Sex Toys Help?
Yes, in specific ways. Cock rings, also called constriction rings, trap blood in the penis and help maintain an erection once it is achieved. A 2025 case study published in The Journal of Sexual Medicine evaluated a structured desensitization protocol using progressive compression rings in a 28-year-old man with psychogenic ED. The patient's IIEF-5 score improved from 11 (moderate to severe ED) to 21 (near-normal function) over twelve weeks, with a treatment satisfaction score of 95.45% . Cock rings do not create an erection on their own, but they can help you keep one.
Penis pumps, also called vacuum erection devices, draw blood into the penis using a vacuum. The Merck Manual lists VEDs as a second-line treatment option, often used when oral medications are ineffective or not tolerated . You then place a constriction ring at the base to maintain the erection. These devices are safe and effective for many men.
Vibrators and strokers can help by reducing performance pressure. If you can maintain an erection with a toy but not with a partner, your issue is likely psychological, not physical. That is actually good news — it means the plumbing works, and you just need to work on the mental side.
When Should You See a Doctor?
See a doctor if your erection problems have been happening consistently for more than three months. See a doctor if you have lost morning erections entirely. See a doctor if you have diabetes, heart disease, or other risk factors. See a doctor right away if you have ED and numbness in the area between your legs — that could be a spinal cord problem .
Your primary care provider can handle most cases. They will take a history, check your blood pressure, order blood tests for blood sugar, cholesterol, and testosterone, and review your medications . They may prescribe a PDE5 inhibitor like sildenafil or tadalafil. And if needed, they can refer you to a urologist.
Do not let embarrassment delay you. Doctors see this every single day. According to Norton Healthcare, typically your primary care provider can treat ED, and some men choose to see a urologist . The man who asks for help is not weak. He is smart.
Frequently Asked Questions
Q: Is it normal to lose an erection occasionally?
Yes, absolutely. The Merck Manual consumer version states clearly that it is normal for men to have problems getting an erection once in a while. Doctors do not consider it ED unless it happens often .
Q: Why do I stay hard during masturbation but not during sex?
This is classic psychogenic ED. Your plumbing works fine. The issue is performance anxiety, distraction, or lack of adequate stimulation during partnered sex. The solution is reducing pressure and communicating with your partner about what actually feels good to you.
Q: Can anxiety alone cause erectile problems?
Yes. Anxiety activates your sympathetic nervous system, which is the direct opponent of the parasympathetic state required for an erection. The Merck Manual lists anxiety as a psychological cause of both primary and secondary ED.
Q: Does age automatically cause erectile dysfunction?
No. While ED becomes more common with age — affecting the majority of men over fifty — it is not inevitable . Many older men maintain perfectly good erectile function. Age is a risk factor, not a guarantee.
Q: Can lifestyle changes improve erections?
Yes, significantly. A 2026 prospective study found that combined lifestyle modification and pharmacological management led to an eight-point improvement in SHIM scores over three months, along with significant reductions in HbA1c, LDL cholesterol, and body weight, and an 85% increase in testosterone levels .
My Personal Advice
Here is what I tell men who come to me with this concern. Stop panicking about one bad night. Everyone has them. If you are tired, stressed, or have been drinking, give yourself a pass.
Start with your lifestyle before you reach for a pill. Exercise, sleep, and stress management work better than any medication in the long run.
Talk to your partner. I know it is vulnerable. But carrying this alone makes the anxiety worse. A supportive partner who understands that this is not about her can change everything.
And if you need help, get help. There is no medal for suffering in silence. ED is treatable. The treatments work. And the sooner you address it, the sooner you can stop worrying and start enjoying sex again.
As the Merck Manual notes, for all patients, reassurance and education — including of the partner whenever possible — are important . You are not broken. You are just dealing with a common medical issue that has many effective solutions. And that is something you can absolutely fix.
Disclaimer: This article is for educational purposes and does not constitute medical advice. If you are experiencing persistent erectile difficulties, please consult a qualified healthcare provider.
Sources cited:
- Merck Manual Professional Edition — Erectile Dysfunction (2024)
- MSD Manuals Consumer Version — Quick Facts: Erectile Dysfunction (2025)
- The Journal of Sexual Medicine — Systematic Desensitization Using Myhixel Ring Pack (2025)
- Journal of the Philippine Medical Association — Pornography-Induced Psychogenic ED Case Report (2025)
- NIH — The Impact of Diet, Exercise and Obstructive Sleep Apnea on Atherogenic ED (2026)
- Cureus — Management of ED in Middle-Aged Men (2026)
- GPnotebook — Erectile Dysfunction Podcast (2024)
- Norton Healthcare — ED in Young Men (2025)
- Advances in Experimental Medicine and Biology — Pornography Consumption Systematic Review (2026)




