Trouble getting or keeping an erection comes down to one of three things: blood flow, nerve signaling, or hormones. Often it’s a combination. The good news is that most causes are treatable, and some are reversible with lifestyle changes alone. Understanding what’s behind the problem is the first step toward fixing it.
An erection depends on a precise chain of events. When you’re aroused, nerve signals trigger the release of a chemical messenger (nitric oxide) inside the penis. This messenger relaxes the smooth muscle tissue in two spongy chambers, allowing blood to rush in and fill them. A set of muscles at the base of the penis then compresses the veins, trapping blood inside and creating rigidity. Anything that disrupts blood flow, nerve function, hormone levels, or the muscles involved can make this process fail.
Blood Vessel Damage Is the Most Common Cause
The arteries supplying the penis are significantly smaller than the ones feeding your heart. That matters because when the lining of your blood vessels starts to deteriorate, a process called endothelial dysfunction, those narrow penile arteries feel the effects first. Plaque builds up, blood flow drops, and erections weaken or stop. This is exactly the same process that leads to heart disease, just showing up earlier in a smaller set of arteries.
That’s why erection problems are considered a warning sign for cardiovascular disease. The same risk factors drive both: high blood pressure (which damages artery linings over time), high LDL cholesterol (which accelerates plaque buildup), and diabetes (which harms both nerves and blood vessels through prolonged high blood sugar). If you’re having persistent trouble getting hard and you haven’t had your blood pressure, cholesterol, or blood sugar checked recently, those numbers matter more than you might think.
Your Medications Could Be the Problem
Several common drug classes list erection problems as a known side effect. The most frequent culprits include:
- Blood pressure medications: Thiazide diuretics (water pills) are the most common cause among blood pressure drugs, followed by beta-blockers. Alpha-blockers are less likely to cause issues.
- Antidepressants: SSRIs and older tricyclic antidepressants are well-known for affecting sexual function. Anti-anxiety medications like benzodiazepines can also interfere.
- Antipsychotics: Several medications used for psychiatric conditions have erectile side effects.
If your erection problems started around the same time you began a new medication, that timing is a strong clue. Don’t stop taking a prescribed medication on your own, but the connection is worth raising with your prescriber, who can often switch you to an alternative that’s less likely to cause sexual side effects.
Stress, Anxiety, and the Mental Side
Your brain is the starting point for the entire arousal process, so psychological factors can shut things down before the physical chain of events even begins. Performance anxiety is one of the most common causes of erection problems in younger men. Stress, depression, relationship tension, and even worrying about whether you’ll get hard can create a self-reinforcing cycle: one failed erection leads to anxiety about the next attempt, which makes the next attempt more likely to fail.
There’s a useful clue for distinguishing psychological causes from physical ones. If your erection problems are situational (they happen with a partner but not when you’re alone, or they happen in some contexts but not others), the cause is more likely psychological. If you consistently have difficulty regardless of the situation, a physical cause is more likely. Your body also tests itself: healthy men get several erections during sleep. If those are still happening, the physical hardware is working and the issue is more likely rooted in stress or anxiety.
Low Testosterone
Testosterone plays a supporting role in erections by driving libido and helping maintain the signaling pathways that trigger arousal. The American Urological Association defines low testosterone as a total level below 300 ng/dL, measured on at least two separate mornings (testosterone peaks in the early morning, so timing matters for accuracy).
Low testosterone alone doesn’t always cause erection problems, but it’s linked to higher rates of both erectile dysfunction and cardiovascular disease. If you’ve also noticed a drop in sex drive, increased fatigue, or loss of muscle mass alongside your erection issues, hormone levels are worth investigating. The diagnosis requires both low lab numbers and symptoms. A blood test alone isn’t enough, and symptoms alone aren’t enough either.
Smoking and Weight
Smoking directly damages the blood vessels that erections depend on. The evidence for quitting is striking. In one study of over 700 men with erection problems, 54% of those who quit smoking reported improved erectile function within six months, compared with just 28% of those who kept smoking. Another study found that 25% of men who quit saw improvement within a year, while zero percent of those who continued smoking improved. Even the short-term effects are measurable: penile blood flow improves within 24 to 36 hours of stopping.
Excess body weight contributes through multiple pathways. Fat tissue converts testosterone into estrogen, lowering your available testosterone. Obesity increases inflammation, raises blood pressure, and accelerates blood vessel damage. It also raises your risk of diabetes, which compounds the problem further by damaging both nerves and blood vessels over time.
Pelvic Floor Weakness
This is an overlooked cause that many men don’t know about. The muscles at the base of your pelvis play an active role in maintaining an erection. One muscle group compresses the roots of the erectile chambers to boost internal pressure and rigidity. Another engorges the head of the penis. When these muscles are weak or dysfunctional, they can’t trap blood effectively, resulting in erections that are soft or don’t last.
Pelvic floor dysfunction can also compress the artery that supplies blood to the penis, reducing flow before the erection process even gets going. This is more common in men who spend long hours sitting, particularly cyclists. Targeted pelvic floor exercises (often called Kegels) have shown benefit in clinical trials, and pelvic floor physiotherapy is an option for more significant dysfunction.
Physical vs. Psychological: How to Tell
The pattern of your symptoms offers real diagnostic information. Physical causes tend to develop gradually, getting slightly worse over months or years. You might notice erections becoming less firm before they stop entirely. Psychological causes often appear suddenly, sometimes after a specific stressful event or a single bad experience in bed.
Morning erections are another signal. If you’re still waking up with erections, your blood flow and nerve function are likely intact. A more formal version of this test exists: a device with sensor rings placed at the base and tip of the penis monitors erections during sleep, recording how many occur, how long they last, and how rigid they get. If normal nighttime erections are present, the cause is almost certainly psychological rather than structural.
In practice, many men have a mix of both. A mild physical issue creates anxiety, and the anxiety makes the physical problem worse. Addressing both sides, the vascular or hormonal component alongside the stress or performance worry, typically produces better results than treating either one alone.
What Happens at a Medical Evaluation
Erection problems are formally recognized as a risk marker for cardiovascular disease, which means a medical evaluation serves double duty. It addresses the sexual concern and screens for potentially serious conditions you might not otherwise catch for years. The evaluation typically involves a physical exam, blood work (checking blood sugar, cholesterol, and testosterone at minimum), and a detailed conversation about when the problem started, how it progresses, and what makes it better or worse.
Many men avoid bringing this up, but clinicians recognize that reluctance. Guidelines from the American Urological Association specifically state that physicians should be the ones to initiate the conversation about sexual health, especially when a patient has conditions like diabetes or high blood pressure that are known to affect erections. If your doctor doesn’t ask, it’s worth raising yourself. The problem is common, the causes are well understood, and the treatments work for most men.