Difficulty getting or keeping an erection is one of the most common sexual health problems men experience, and it has a wide range of causes, from stress and sleep quality to blood vessel health and hormone levels. About 26% of men under 40 deal with some degree of erectile dysfunction, and the rate climbs steadily with age. The good news: most causes are treatable, and understanding what’s behind the problem is the first step.
Blood Flow Problems Are the Most Common Cause
An erection is essentially a blood flow event. Arteries in the penis dilate, blood rushes in, and the pressure creates firmness. Anything that damages blood vessels or restricts circulation can interfere with this process.
The most frequent physical cause is damage to the inner lining of blood vessels, a condition called endothelial dysfunction. When that lining stops working properly, blood flow slows throughout the body, including to the penis. Over time, this damage leads to plaque buildup inside arteries. High blood pressure, high cholesterol, smoking, and diabetes all accelerate this process.
Here’s why this matters beyond your sex life: the arteries in the penis are significantly smaller than the ones supplying the heart. That means erection problems can show up years before symptoms of heart disease appear. Erectile dysfunction in men over 40, especially those with risk factors like high blood pressure or a family history of heart disease, is worth taking seriously as a potential early cardiovascular warning sign.
Stress, Anxiety, and the Mental Side
Your brain plays a central role in triggering an erection. When you’re stressed or anxious, your body activates its fight-or-flight response, which actively shuts down functions it considers nonessential, including erections. This isn’t a character flaw. It’s a hardwired survival mechanism that diverts blood and energy away from sexual function.
Chronic stress also raises cortisol, your body’s main stress hormone. Cortisol suppresses testosterone, which drives both sex drive and the blood flow changes that produce an erection. So stress hits you from two directions: it blocks the nerve signals that start an erection and lowers the hormone that fuels desire in the first place.
Performance anxiety creates a particularly vicious cycle. You fail to get hard once, then worry about it happening again, which triggers the same stress response that caused the problem. Many men with no underlying physical issue develop persistent erection difficulties purely from this loop.
What Morning Erections Tell You
One of the simplest clues to whether your problem is physical or psychological is whether you still wake up with erections. Healthy men typically get several erections during sleep, and waking up hard in the morning is a sign that the blood vessels, nerves, and hormones involved are all working.
If you’re still getting morning erections but can’t get hard during sex, the cause is more likely psychological: anxiety, relationship stress, or distraction. If morning erections have stopped entirely, that points more toward a physical issue like hormonal changes, blood vessel damage, or a sleep disorder. Neither scenario is absolute, but it’s a useful starting point.
Medications That Interfere
Several common medications can cause or worsen erection problems. Antidepressants are among the most frequent culprits, particularly SSRIs and SNRIs. In one review of 300 reported cases of persistent sexual dysfunction tied to medications, antidepressants accounted for the vast majority. The most commonly implicated drugs were escitalopram, citalopram, paroxetine, sertraline, and fluoxetine.
Blood pressure medications (especially older types like beta-blockers), finasteride (used for hair loss and prostate enlargement), and isotretinoin (used for acne) have also been linked to sexual side effects. If your erection problems started around the time you began a new medication, that’s a conversation worth having with your prescriber. Switching to a different drug in the same class often resolves the issue.
Testosterone and Hormonal Shifts
Testosterone plays a supporting role in erections, primarily by driving libido. If desire has dropped alongside your ability to get hard, low testosterone could be a factor. Levels decline naturally with age, but the threshold for “low” depends on how old you are. A 25-year-old with a testosterone level of 413 ng/dL sits at the bottom of his normal range, while that same number would be typical for a 40-year-old.
Symptoms of low testosterone go beyond erection problems. Fatigue, loss of muscle mass, increased body fat, irritability, and poor concentration are common. A simple blood test can measure your levels, though testing should be done in the morning when testosterone peaks.
Nerve Damage and Neurological Conditions
Erections require a signal chain from the brain through the spinal cord to the nerves in the penis. Conditions that disrupt those nerve pathways can cause what’s called neurogenic erectile dysfunction. Multiple sclerosis, stroke, spinal stenosis, and spinal cord injuries all fall into this category. Pelvic surgery (including prostate surgery) and radiation therapy to the pelvic area can also damage the nerves involved.
If erection problems appeared after a surgery, injury, or alongside neurological symptoms like numbness, tingling, or balance issues, nerve involvement is worth investigating.
How Exercise Helps
Regular aerobic exercise is one of the most effective lifestyle changes for improving erections. A review of 11 controlled trials involving over 1,100 men found that aerobic exercise produced clinically meaningful improvements in erectile function scores, not just small statistical blips. The benefit was strongest in men who started with the worst erectile function.
The mechanism is straightforward: exercise improves blood vessel health, lowers blood pressure, reduces inflammation, and boosts testosterone. It also lowers cortisol and improves sleep, addressing the psychological contributors at the same time. Even moderate activity like brisk walking for 30 minutes most days can make a measurable difference over several weeks.
How Treatment Works
The most widely used medications for erectile dysfunction are PDE5 inhibitors, a class that includes sildenafil (Viagra), tadalafil (Cialis), and vardenafil (Levitra). These drugs work by relaxing blood vessel walls in the penis, making it easier for blood to flow in when you’re aroused. They don’t create arousal on their own; you still need stimulation.
These medications typically take 30 to 120 minutes to start working, though some men notice effects sooner. Tadalafil lasts significantly longer than the others, which is why some men take a low daily dose rather than using it on demand. All three are available in multiple dose strengths, and most prescribers start with a moderate dose and adjust based on results and side effects.
For men whose erectile dysfunction stems primarily from anxiety, therapy focused on breaking the performance anxiety cycle can be highly effective, sometimes on its own and sometimes alongside medication. When the cause is hormonal, testosterone replacement therapy may be appropriate. When it’s tied to a medication side effect, switching drugs is often the simplest fix.
Other Factors Worth Considering
- Sleep: Poor sleep, especially untreated sleep apnea, disrupts hormone production and is strongly linked to erectile problems.
- Alcohol: Small amounts may reduce inhibition, but regular heavy drinking suppresses testosterone and damages blood vessels.
- Pornography habits: Some men find that heavy porn use makes it harder to become aroused with a partner, though this remains a topic of debate among researchers.
- Cycling: Extended time on a narrow bike saddle can compress nerves and blood vessels that supply the penis. A properly fitted saddle with a cutout can reduce this risk.
- Smoking: Nicotine constricts blood vessels and accelerates the kind of vascular damage that causes erectile dysfunction. Quitting improves erectile function even in men who have smoked for years.

