Why Can’t I Maintain an Erection? Causes & Treatment

Difficulty maintaining an erection is one of the most common sexual health concerns men experience, and it has a wide range of causes, from blood vessel problems to stress. About 5% to 10% of men under 40 deal with it, and the numbers climb steadily with age: roughly 22% of men at age 40 have moderate to complete erectile dysfunction, rising to 49% by age 70. If it happens occasionally, that’s normal. If it’s been a consistent pattern for three months or more, something specific is likely going on.

How Erections Work (and Fail)

An erection depends on a carefully coordinated chain of events. During arousal, nerves and blood vessel walls release a signaling molecule called nitric oxide. This triggers a chemical cascade that relaxes the smooth muscle inside the penis, allowing blood to rush into two spongy chambers called the corpora cavernosa. As those chambers fill, they compress the veins that would normally drain blood away. That compression is what keeps the erection firm.

Problems at any point in this chain can make it hard to stay erect. If the arteries can’t dilate enough, not enough blood flows in. If the smooth muscle doesn’t fully relax, the chambers don’t expand properly. And if the veins aren’t compressed tightly enough, blood leaks back out faster than it flows in. That last scenario, sometimes called a venous leak, is a common reason men can get partially hard but can’t maintain firmness.

Vascular Causes Are the Most Common

The arteries supplying the penis are smaller than those feeding the heart. That makes them an early warning system for cardiovascular problems. When cholesterol builds up in blood vessel walls and forms plaques, vessels lose their ability to dilate properly. This process, atherosclerosis, slows blood flow everywhere, but it shows up in the penis before it shows up in larger arteries. That’s why erectile dysfunction can appear years before a heart attack or stroke.

High blood sugar accelerates this damage. Over time, elevated glucose injures both the nerves that trigger erections and the blood vessels that supply them. High blood pressure does something similar, stiffening artery walls so they can’t expand on demand. Smoking compounds the problem by narrowing blood vessels even further, reducing the blood available to reach the penis. If you have any combination of these risk factors, vascular damage is the most likely explanation for erection trouble.

How Stress and Anxiety Shut Things Down

Erections require the parasympathetic nervous system, the branch responsible for rest, digestion, and sexual arousal. Stress and anxiety activate the opposite branch: the sympathetic “fight or flight” response. When your brain detects a threat, whether that’s a genuine danger or the fear of not performing well in bed, it suppresses functions it considers non-essential. Erections are one of the first things to go.

This isn’t just a mental block. The stress response raises cortisol levels, and cortisol directly suppresses testosterone, the hormone that drives libido and contributes to the blood flow changes behind an erection. So performance anxiety creates a vicious cycle: you worry about losing your erection, your body floods with stress hormones, the erection fades, and the next time you’re even more anxious. Men in their 20s and 30s who lose erections primarily during partnered sex but not during masturbation or morning erections are often dealing with this pattern rather than a physical problem.

Weight, Hormones, and Lifestyle

Carrying excess abdominal fat does more than raise your cardiovascular risk. Belly fat actively converts testosterone into estrogen. As fat increases, testosterone drops, which lowers sex drive and weakens the hormonal signals that support erections. Losing even a moderate amount of weight can reverse this shift.

Alcohol plays a dual role. A drink or two may lower inhibitions, but alcohol is a central nervous system depressant that dulls the nerve signals needed for arousal. Heavy or chronic drinking damages blood vessels and liver function, both of which affect hormone metabolism. Sleep deprivation has a similar hormonal effect: men who consistently sleep fewer than five or six hours a night tend to have significantly lower testosterone levels. Sedentary habits round out the picture by reducing cardiovascular fitness, which directly affects how efficiently blood flows to the pelvis.

Medications That Interfere

Several categories of commonly prescribed drugs can make it harder to maintain an erection. Antidepressants, particularly SSRIs, are well-known culprits. Blood pressure medications like beta-blockers can reduce blood flow to the penis. Antihistamines, opioid painkillers, and some prostate medications also have erectile side effects. If your erection problems started around the same time as a new prescription, the medication is worth discussing with whoever prescribed it. Adjusting the dose or switching to an alternative often resolves the issue.

How Severity Is Assessed

Doctors typically use a short questionnaire called the IIEF-5 to gauge how significant the problem is. It scores from 1 to 25 based on your answers about erection quality, confidence, and satisfaction. A score of 22 to 25 means no dysfunction. Scores of 17 to 21 indicate mild difficulty. Between 12 and 16 is mild to moderate. Scores of 8 to 11 fall into moderate territory, and anything from 1 to 7 is considered severe. This scoring helps guide treatment decisions, but the number that matters most is how much the problem affects your quality of life.

The Cardiovascular Connection

Erectile dysfunction that develops gradually, getting slightly worse over months or years, is often the earliest visible sign of arterial disease. The penile arteries are roughly 1 to 2 millimeters in diameter, about half the size of coronary arteries, so plaque buildup restricts them sooner. Studies published in Circulation, the American Heart Association’s journal, have established that men with erectile dysfunction are at significantly higher risk for heart attacks and strokes in the following years. This is especially true for men in their 40s and 50s who have no other obvious heart disease symptoms. Getting evaluated isn’t just about sexual function; it’s a chance to catch cardiovascular problems early.

What Treatment Looks Like

First-line treatment for most men is a class of oral medications that work by blocking the enzyme that breaks down the chemical signal responsible for smooth muscle relaxation. The most commonly prescribed options differ mainly in how long they last and how quickly they take effect. One works within about an hour and lasts several hours. Another stays active in the body for up to 36 hours, which removes some of the pressure around timing. Your doctor will typically start with a moderate dose and adjust based on how well it works and whether you experience side effects like headache or flushing.

These medications don’t work in a vacuum. They enhance the body’s natural arousal response, so you still need stimulation. They also won’t fully compensate for severe vascular damage or very low testosterone. For men whose blood tests reveal low testosterone, hormone replacement can restore both desire and erectile function. For venous leak specifically, treatments range from medications to procedures that address the underlying vein dysfunction.

Lifestyle changes work alongside any medical treatment. Regular aerobic exercise improves blood vessel function throughout the body, including the penis. Losing abdominal fat shifts the testosterone-to-estrogen ratio back in a favorable direction. Quitting smoking allows blood vessels to regain some of their ability to dilate. For men whose primary issue is psychological, working with a therapist who specializes in sexual health can break the anxiety cycle, sometimes in just a few sessions.

Occasional vs. Persistent Problems

Every man occasionally loses an erection. Fatigue, alcohol, distraction, and stress all cause temporary issues that resolve on their own. The clinical threshold is three months of consistent difficulty. If you can get erections during sleep or in the morning but lose them during sex, the underlying hardware is likely working fine and the issue is more situational. If erections are weaker across the board, including morning erections, that points more toward a physical cause like blood flow or hormone levels. Paying attention to this pattern gives you useful information to bring to any medical conversation.