Why Can I Get Hard but Not Stay Hard: Causes

Getting an erection but losing it before or during sex is one of the most common forms of erectile dysfunction, and it usually comes down to one of a few fixable problems: blood isn’t staying trapped in the penis, your nervous system is working against you, or something in your lifestyle or medication list is interfering. The good news is that this pattern often points to causes that respond well to treatment.

How Erections Are Maintained

Understanding why you lose hardness starts with understanding what keeps it in the first place. When you become aroused, arteries in the penis widen and blood floods into two spongy chambers called the corpora cavernosa. As those chambers expand, they press against a tough outer sheath of tissue, which in turn compresses the small veins that would normally drain blood back out. This trapping mechanism is what builds pressure (averaging around 100 mmHg) and keeps the erection rigid.

Anything that weakens the inflow of blood, damages that outer sheath, or triggers premature drainage can allow you to get partially hard but not stay there. The fact that you can still get an erection means the initial arousal signal is working. The breakdown is happening in the maintenance phase.

Blood Flow Problems

The most common physical cause is vascular: either not enough blood is flowing in, or too much is leaking back out. When the veins that are supposed to stay compressed fail to seal properly, blood escapes faster than it arrives. This is sometimes called venous leak, and it’s a recognized cause of erectile dysfunction where the issue is specifically insufficient blood retention during erection.

The penile arteries are among the smallest in the body, which makes them especially vulnerable to the same plaque buildup and stiffening that affects larger arteries. This is why erectile difficulties often show up years before heart problems do. Research estimates that ED precedes a first cardiovascular event by about three years on average. In men aged 40 to 49, the incidence of heart disease in those with ED is nearly 50 times higher than in men without it. That doesn’t mean ED guarantees heart trouble, but it does mean your vascular health is worth checking.

High blood pressure, high cholesterol, and diabetes all damage blood vessels over time. If you have any of these conditions, the erection maintenance issue may be an early signal that your circulatory system needs attention beyond just sexual function.

Anxiety and the Sympathetic Nervous System

If you can get fully hard when you’re alone or wake up with strong erections but lose them with a partner, the cause is likely psychological. Performance anxiety triggers the sympathetic nervous system, the same “fight or flight” response that prepares your body to deal with threats. This response floods your system with adrenaline and norepinephrine, which constrict blood vessels and actively work against erection maintenance. The sympathetic nervous system is, in fact, primarily responsible for keeping the penis flaccid under normal conditions.

The pattern is self-reinforcing. You lose an erection once, worry about it happening again, and that worry itself generates the exact nervous system response that causes the problem. Anxiety disorders are associated with increased sympathetic tone that distracts from erotic stimuli and impairs arousal. This doesn’t mean the issue is “all in your head” in a dismissive sense. It means your brain is sending real, measurable chemical signals that physically prevent blood from staying where it needs to be.

How Doctors Tell the Difference

One of the most reliable clues is what happens while you sleep. Healthy men experience several erections during sleep, typically during REM cycles. If those nighttime erections are normal in rigidity and duration, that strongly suggests the physical hardware is working fine and the daytime problem is psychological. Abnormal nighttime recordings point toward a physical cause. Sleep monitoring isn’t perfect, though. Depression, smoking, aging, and even the content of your dreams can influence the results.

A simpler self-check: if you reliably get and keep firm erections during masturbation or wake up hard in the morning, the plumbing is likely intact. If erections are weak or short-lived across all situations, a physical evaluation makes more sense as a starting point.

Smoking and Nicotine

Nicotine is particularly damaging to erection maintenance because it attacks the problem from two directions. It decreases arterial blood flow into the penis and disrupts the vein-compression mechanism that traps blood inside. These effects happen because nicotine directly stimulates the release of stress hormones from nerve endings, causing blood vessels to constrict. Even in nonsmoking men given nicotine in research settings, measurable decreases in sexual arousal occurred. This isn’t a long-term cumulative effect. It’s an acute response that happens each time nicotine enters your system.

Alcohol works differently but lands in a similar place. In small amounts it may reduce anxiety and help, but beyond a drink or two it dulls nerve signals and impairs the reflexes that maintain blood flow. If you notice the problem mainly after drinking, the connection is straightforward.

Medications That Interfere

Several common prescription drugs can allow you to get an erection but make it difficult to keep one. Antidepressants, particularly SSRIs, are among the most frequent culprits. Studies have found sexual side effects in 54% to 65% of people taking various SSRIs, with problems including decreased arousal and erectile dysfunction specifically. These medications alter the balance of brain chemicals involved in sexual excitement, reducing both desire and the physical response that sustains an erection.

Blood pressure medications, especially older types like beta-blockers and certain diuretics, can also impair erection quality by lowering the pressure needed to keep blood trapped in the penis. If your maintenance issues started around the same time as a new prescription, that timing is worth discussing with whoever prescribed it. Switching to a different medication in the same class often resolves the problem.

Hormones and Low Testosterone

Low testosterone is often blamed for erection problems, but the relationship is more nuanced than most people think. Testosterone primarily drives desire. Men with low levels most commonly report loss of libido, decreased energy, and reduced muscle mass. Erections are dependent on testosterone, and men with significantly low levels do experience reduced frequency, firmness, and rigidity. But here’s the catch: testosterone replacement can improve many symptoms of low testosterone while erectile function itself may not improve. This suggests that if your desire is fine but your erections fade, testosterone is less likely to be the sole issue. If your desire has also dropped noticeably, a hormone check makes more sense.

Pelvic Floor Strength

The muscles at the base of your pelvis play an active role in maintaining erections by helping compress the veins that drain blood from the penis. Weakness in these muscles can contribute to losing hardness, and strengthening them has measurable results. In a randomized controlled trial, men who did pelvic floor exercises (essentially Kegels) for three months saw significant improvement: 40% regained completely normal erectile function, another 34.5% improved noticeably, and about 25% saw no change. These results have been replicated across similar studies, with normal function recovery rates ranging from 26% to 46%.

The exercises involve repeatedly contracting the muscles you’d use to stop urinating midstream, holding for a few seconds, and releasing. They cost nothing, carry no side effects, and can be done anywhere. For a problem that may be partly muscular, this is a reasonable first step to try alongside other approaches.

How ED Medications Help

Medications like sildenafil and tadalafil work specifically on the maintenance side of the equation. They don’t create an erection out of nowhere. Instead, they block an enzyme that breaks down the chemical your body uses to keep penile blood vessels relaxed and open. With that enzyme suppressed, the smooth muscle in the penis stays relaxed longer, blood stays trapped more effectively, and rigidity lasts. You still need arousal to start the process, but the medication makes it far easier to sustain.

These drugs are effective for most men regardless of whether the underlying cause is vascular, psychological, or mixed. For performance anxiety in particular, they can break the worry cycle: a few successful experiences rebuild confidence, and some men eventually stop needing the medication altogether.

What to Look At First

If you’re trying to sort out what’s going on, start with the basics. Consider whether the problem is situational (only with a partner, only with a new partner, only after drinking) or consistent across all contexts. Think about whether anything changed recently: a new medication, increased stress, weight gain, less exercise, more smoking or drinking. Check whether your morning erections are still firm and reliable.

For many men, the cause is a combination of factors rather than a single one. Mild blood flow issues become noticeable only when paired with anxiety, or moderate stress becomes a problem only after starting a new medication. Addressing even one contributing factor often tips the balance back toward normal function.