You can get an erection but lose it before or during sex. That pattern has a name: erectile dysfunction of the maintenance phase. The cause is usually not one single thing — it is a mix of blood flow, nerve signaling, hormones, pelvic muscle function, and psychological state. Getting hard depends mostly on the early part of the process. Staying hard depends on keeping blood trapped inside the penis under pressure. When that second step fails, the erection fades even though everything started normally.
Why Can I Get Hard But Not Stay Hard Causes?
The most common root causes fall into two groups: physical problems with blood flow or nerve signaling, and psychological factors that interfere with the maintenance phase specifically.
Erection has two distinct phases. In the first, arteries in the penis widen and blood rushes in. In the second, a network of smooth muscle and veins closes off, trapping that blood and holding pressure. Getting hard is mostly about inflow. Staying hard is mostly about keeping outflow blocked. Many men have normal inflow and a problem with the trapping mechanism.
Smooth muscle relaxation is the key event. The penis contains two cylinders of spongy tissue called the corpora cavernosa. When the nerves release nitric oxide, that tissue relaxes and expands. As it expands it presses against veins that would otherwise drain the blood away. If the tissue does not relax fully, or if the veins cannot be compressed properly, blood leaks out and the erection drops.
This is why the failure often looks identical regardless of cause. The erection starts, holds briefly, then fades. The underlying reason can be vascular, neurological, hormonal, or psychological — and often more than one at once.
How Is This Different From Not Being Able to Get Hard at All?
Difficulty starting and difficulty maintaining are not the same problem, and the difference matters for figuring out what is going on.
Inability to get hard at all points more strongly toward a problem with arterial inflow — the blood cannot arrive fast enough or in large enough volume. Maintaining difficulty points more toward the trapping mechanism: smooth muscle relaxation, venous sealing, or nerve signaling.
That said, the two overlap heavily. A man with narrowed arteries may still get an erection but lose it quickly because the blood supply cannot keep up with demand. A man with anxiety may get hard easily during foreplay and lose it the moment intercourse begins.
Doctors often ask about the pattern because it helps narrow the cause. Morning erections are a useful clue. If they are present and firm, the physical machinery is likely working, which shifts attention toward psychological or situational factors. If they have disappeared, a physical cause becomes more likely.
What Physical Conditions Cause Erections to Fade?
Vascular disease is the leading physical cause. The arteries that supply the penis are small, so they tend to show the effects of atherosclerosis earlier than larger vessels.
Conditions linked to this include:
- High blood pressure, which damages blood vessel walls over time
- High cholesterol and atherosclerosis, which narrow the arteries
- Diabetes, which affects both blood vessels and the nerves that trigger relaxation
- Heart disease, which often shares the same underlying process
- Obesity and metabolic syndrome, which affect blood flow and hormone levels
Venous leak is another physical cause. This is when the veins that should be compressed during an erection do not seal properly, so blood drains out. It can be present from birth or develop after injury, surgery, or as part of a broader vascular problem.
Pelvic surgery and radiation — particularly prostate surgery — can damage the nerves and blood vessels involved in erection. Recovery varies widely, and nerve function can return over time in some men.
Medications are a common and often overlooked factor. Some blood pressure drugs, antidepressants, and other medications can interfere with the signaling that maintains an erection. This is a conversation to have with a prescribing clinician rather than a reason to stop a medication on your own.
What Role Do Hormones Play?
Testosterone supports erectile function, but its role is often overstated in popular discussion.
Low testosterone can contribute to erectile problems, but it is rarely the sole cause. It also affects sex drive, energy, and mood, which can feed into the problem indirectly. When testosterone is genuinely low and confirmed on repeat testing, treatment may help — but it does not reliably fix erection maintenance on its own.
Thyroid problems and high prolactin levels are less common hormonal causes. These are typically identified through blood tests when other explanations do not fit.
Hormonal causes should be assessed by a clinician using proper testing. Self-diagnosing low testosterone from symptoms alone is unreliable, and testosterone supplements bought without a prescription carry real risks, including suppression of the body’s own testosterone production.
Can Anxiety and Stress Cause This Specific Pattern?
Yes, and this is one of the most common reasons a man can get hard but not stay hard. Performance anxiety acts directly on the maintenance phase.
The mechanism is well understood. The sympathetic nervous system — the “fight or flight” branch — is activated by anxiety. Erection requires the parasympathetic branch to dominate. When anxiety flips the balance, the smooth muscle that needs to relax instead stays tense. Blood drains, and the erection fades.
This creates a loop. The first time it happens, it is often situational. The next time, the man is watching for it. That monitoring itself triggers the anxiety, which triggers the failure. Over time the pattern can become automatic even when the original trigger is gone.
Other psychological factors include relationship stress, depression, and general life stress. These can affect the maintenance phase even when desire and initial arousal are intact.
Psychological and physical causes frequently coexist. A man with mild vascular issues may function fine until stress pushes him over a threshold he was already close to.
What Lifestyle Factors Contribute?
Several everyday factors affect the blood vessels and nerves involved in maintaining an erection.
Smoking narrows blood vessels and damages the lining of arteries. It is one of the strongest modifiable risk factors for erectile problems. Heavy alcohol use affects nerve function and hormone levels. Recreational drug use, particularly stimulants, can interfere with the signaling that holds an erection.
Sedentary behavior and poor cardiovascular fitness reduce blood flow throughout the body, including the penis. Regular physical activity is associated with better erectile function in multiple studies, though the effect size varies and exercise alone does not resolve every case.
Sleep matters more than most men realize. Poor sleep and untreated sleep apnea are linked to erectile problems, partly through effects on testosterone and partly through effects on the cardiovascular system. This is one of the less obvious connections worth mentioning to a clinician, especially for men who snore heavily or wake unrefreshed.
When Should You See a Doctor?
Erection problems can be an early warning sign of cardiovascular disease. The small arteries in the penis often show the effects of vascular disease before symptoms appear elsewhere.
See a clinician if the problem is persistent, if it started suddenly, if it is accompanied by other symptoms such as chest pain or leg pain with walking, or if morning erections have disappeared. A doctor can check blood pressure, blood sugar, cholesterol, and hormone levels, and review medications.
Treatment depends on the cause. Options include addressing underlying conditions, adjusting medications where possible, psychological support such as cognitive behavioral therapy or sensate focus, and medications that support erection. Pelvic floor muscle training has some evidence for erectile function, though results vary and it is not a standalone fix.
What works for one man may not work for another, and combining approaches is common. The key step is identifying which mechanism is failing, which usually requires an in-person assessment rather than guesswork.
Frequently Asked Questions
Why can I get hard but not stay hard?
The most common reasons are problems with the mechanism that traps blood in the penis, anxiety that activates the sympathetic nervous system, or a mix of both. Getting hard depends on blood flowing in; staying hard depends on keeping it there.
Is losing an erection during sex always a sign of a physical problem?
No. Performance anxiety alone can cause this pattern, especially when the problem happens mainly with a partner and not during masturbation. However, physical causes are common, and the two often overlap.
Can low testosterone cause this?
Low testosterone can contribute, but it is rarely the only cause. It also affects sex drive and energy, and it should be confirmed with blood tests by a clinician before any treatment is considered.
Does exercise help with maintaining an erection?
Regular physical activity is associated with better erectile function in multiple studies, likely through improved blood flow and cardiovascular health. It helps, but it does not resolve every case on its own.

