Losing the ability to get fully hard is one of the most common sexual health problems men experience, and it has a physical explanation in most cases. About 26% of men under 40 deal with some degree of erectile difficulty, and the rate climbs steadily with age. The good news: once you understand what’s actually happening in your body, most causes are identifiable and treatable.
How Erections Work (and Where Things Break Down)
An erection depends on blood flow. When you’re sexually aroused, nerve endings and blood vessel cells in the penis release a signaling molecule called nitric oxide. This triggers a chain reaction that relaxes the smooth muscle tissue inside the shaft, allowing blood to rush in and fill the two spongy chambers that run the length of the penis. The tissue expands, compresses the veins that would normally drain blood away, and you get hard.
Any disruption along this chain, from the brain signals that start the process, to the nerve endings that release nitric oxide, to the blood vessels that need to dilate, can weaken or prevent an erection. That’s why so many different conditions can cause the same symptom.
Physical Causes vs. Psychological Causes
There’s a practical way to start narrowing down what’s going on. If the problem came on gradually over months and you’ve also noticed weaker erections when you wake up in the morning or during masturbation, the cause is more likely physical. If it came on suddenly, you still get firm erections on your own or while sleeping but lose them with a partner, or the timing lines up with stress, relationship problems, or a major life change, the cause is more likely psychological.
Physical causes tend to come with normal sex drive and normal ejaculation but progressively less firmness. Psychological causes more often involve situational failures: things work fine in some contexts but not others. Many men have a mix of both, where an initial physical problem creates performance anxiety that makes everything worse.
Blood Vessel Damage: The Most Common Culprit
The single biggest physical cause is damage to blood vessel linings, a condition called endothelial dysfunction. It’s the same process that leads to clogged arteries elsewhere in your body, but the arteries supplying the penis are smaller than the ones feeding the heart, so they tend to show problems first. The American Heart Association has published data showing that erectile difficulty often appears 3 to 5 years before a heart attack or stroke in men with underlying cardiovascular disease.
This is worth taking seriously. If you’re over 40 and gradually losing erection quality with no obvious lifestyle explanation, it may be an early signal that your cardiovascular system needs attention. The same plaque buildup and vessel stiffness that prevent the penis from filling with blood are working on your coronary arteries too.
Weight, Exercise, and Lifestyle Factors
Carrying extra weight has a direct relationship with erection problems. Men with a BMI over 30 are nearly twice as likely to experience erectile dysfunction compared to men at a normal weight, and their risk of moderate to severe problems is about 2.5 times higher. Excess body fat increases inflammation, disrupts hormone balance, and accelerates blood vessel damage.
A sedentary lifestyle compounds the effect. Regular cardiovascular exercise improves the health of blood vessel linings, boosts nitric oxide production, and helps maintain healthy testosterone levels. Even moderate improvements, like losing 5 to 10 percent of your body weight through diet and exercise, can meaningfully improve erection quality for men whose weight is a contributing factor.
Alcohol deserves a specific mention. While a drink or two may reduce anxiety, heavier drinking directly suppresses arousal signals and impairs blood flow. Chronic heavy drinking can cause lasting nerve and blood vessel damage.
Low Testosterone
Testosterone plays a supporting role in erections by maintaining sex drive and helping regulate the signaling pathways involved in arousal. The American Urological Association defines low testosterone as a blood level below 300 ng/dL, and recommends testing for any man experiencing erectile problems. The lower your levels drop, the higher your odds of difficulty: men with levels under 230 ng/dL are roughly twice as likely to have erectile dysfunction compared to men with normal levels.
Testosterone tends to decline about 1% per year after age 30, but obesity, poor sleep, chronic stress, and certain medications can accelerate that drop. Low testosterone alone rarely explains a complete inability to get hard, but it can reduce your drive enough that arousal signals never fully engage, and it can make other causes harder to overcome.
Sleep Apnea and Poor Sleep
If you snore heavily, wake up feeling unrested, or have been told you stop breathing during sleep, obstructive sleep apnea could be a factor. Repeated drops in blood oxygen throughout the night damage blood vessel linings and reduce nitric oxide production. At the same time, the oxygen deprivation stimulates the body to produce endothelin, one of the most powerful vessel-constricting substances your body makes. This combination directly opposes the blood vessel relaxation required for a firm erection.
Research shows that treating sleep apnea, whether through a CPAP machine or in some cases surgery, can improve erectile function by restoring nighttime oxygen levels and protecting the nerves involved in sexual response.
Medications That Interfere With Erections
Several common prescription drugs can cause or worsen erectile problems. The most frequent offenders fall into a few categories:
- Blood pressure medications: Thiazide diuretics (water pills) are the most common cause, followed by beta-blockers. If your erection problems started after beginning a blood pressure medication, this is worth discussing with your prescriber.
- Antidepressants and anti-anxiety medications: SSRIs like fluoxetine and sertraline are well known for blunting sexual response. Benzodiazepines like diazepam and lorazepam can also contribute.
- Opioid painkillers: Codeine, oxycodone, morphine, and other opioids suppress testosterone production and dampen arousal signals.
- Recreational drugs: Nicotine constricts blood vessels. Cocaine, amphetamines, and chronic marijuana use can all impair erectile function through different mechanisms.
If you suspect a medication is the cause, don’t stop taking it on your own. In many cases, your doctor can switch you to an alternative in the same class that’s less likely to cause sexual side effects. Alpha-blockers, for example, are less likely to cause erection problems than beta-blockers for blood pressure management.
Performance Anxiety and the Mental Side
Your brain is the starting point for the entire erection process, and anxiety can shut it down before the physical chain reaction even begins. The pattern usually looks like this: you fail to get hard once, for any reason (stress, alcohol, fatigue), then you start worrying about it happening again. That worry activates your fight-or-flight response, which constricts blood vessels and floods your system with adrenaline, the exact opposite of what’s needed for an erection.
The hallmark of anxiety-driven erectile problems is inconsistency. You get hard fine on your own, or you wake up with morning erections, but things fall apart with a partner. The fix often involves breaking the cycle of worry rather than addressing any physical problem. Cognitive behavioral therapy has strong evidence for this type of erectile difficulty, and it works faster than most men expect.
What Treatment Looks Like
The most widely used medications for erectile dysfunction are PDE5 inhibitors, which work by amplifying the nitric oxide signaling pathway. They don’t create arousal on their own; they make it easier for your body to respond to arousal that’s already happening.
The main options differ primarily in timing. Sildenafil takes about an hour to kick in and remains effective for roughly 4 to 5 hours. Tadalafil takes closer to two hours to reach full effect but lasts far longer, with a half-life of 17.5 hours, meaning many men find it still working the next day. This longer window makes tadalafil popular for men who don’t want to plan around a pill.
These medications work for the majority of men, but they work best when the underlying cause is also being addressed. If the root problem is obesity, poor cardiovascular health, low testosterone, or an interfering medication, fixing only the symptom with a pill while ignoring the cause means the underlying condition continues to progress. For men whose erectile difficulty is an early warning sign of cardiovascular disease, treating the vascular problem is the more important intervention by far.