Why Can’t I Get a Boner? Causes and What to Do

Difficulty getting or keeping an erection is one of the most common sexual health issues men face, affecting roughly 18 million men in the United States alone. It can happen at any age, and the causes range from stress and sleep problems to blood vessel issues and medication side effects. Understanding what’s actually going on in your body is the first step toward fixing it.

How Erections Actually Work

An erection is a vascular event, meaning it depends almost entirely on blood flow. When you become aroused, nerve endings and cells lining the blood vessels inside your penis release a chemical called nitric oxide. This triggers a chain reaction that relaxes the smooth muscle tissue in the two spongy chambers running the length of the penis, allowing blood to rush in and fill them. The expanding chambers compress the veins that normally drain blood away, trapping it inside and creating firmness.

Anything that disrupts this process, whether it’s reduced blood flow, nerve damage, hormone shifts, or mental distraction, can make it harder to get or stay hard. That’s why erection problems rarely have a single cause. They usually involve some combination of your blood vessels, nerves, hormones, and mental state all working together (or failing to).

Common Physical Causes

Because erections depend on healthy blood flow, cardiovascular problems are the most frequent physical culprit. Conditions that narrow or stiffen your arteries, like high blood pressure, high cholesterol, and atherosclerosis (plaque buildup in blood vessels), directly reduce the amount of blood that can reach the penis. Diabetes is another major contributor: over time, elevated blood sugar damages both blood vessels and the nerves responsible for triggering that nitric oxide release. The American Urological Association considers erection problems a risk marker for underlying cardiovascular disease, meaning difficulty getting hard can be an early warning sign that your heart and blood vessels need attention.

Nerve damage from spinal cord injuries, pelvic surgery (including prostate surgery), or neurological conditions like multiple sclerosis can also interrupt the signals between your brain and penis. Even cycling long distances on a poorly fitted seat can compress the nerves and blood vessels in the perineum enough to cause temporary problems.

Medications That Interfere

If your erection difficulties started around the same time you began a new medication, that’s worth investigating. Several common drug classes are known to cause or worsen the problem:

  • Blood pressure medications: Thiazide diuretics (water pills) are the most common offenders, followed by beta-blockers. Alpha-blockers are less likely to cause issues.
  • Antidepressants: SSRIs and other psychiatric medications frequently affect sexual function, including your ability to get aroused and reach orgasm.
  • Opioid painkillers: Long-term use suppresses testosterone production and dampens sexual response.
  • Antihistamines: Certain allergy and heartburn medications can contribute.
  • Parkinson’s disease drugs and some chemotherapy agents also carry this risk.

Never stop a prescribed medication on your own because of sexual side effects. A doctor can often switch you to an alternative that works just as well without the same impact.

Stress, Anxiety, and the Mental Side

Your brain is where arousal starts, so psychological factors are a huge piece of the puzzle, especially for younger men. Performance anxiety is one of the most common causes in men under 40. You worry about whether you’ll stay hard, that worry floods your body with stress hormones, those hormones constrict blood vessels, and the erection fails. The failure then feeds the anxiety for next time, creating a cycle that can feel impossible to break.

Depression plays a measurable role too. Research shows the risk of erectile problems increases by about 39% in men with depression. Relationship conflict, work stress, financial pressure, and grief can all have the same effect. If you notice you still get firm morning erections or can get hard when you masturbate but struggle with a partner, the cause is more likely psychological than physical.

Hormones and Low Testosterone

Testosterone fuels your sex drive, but its relationship with erections is more indirect than most people assume. Low testosterone does not directly cause erection failure. What it does is lower your desire for sex in the first place. If you rarely think about sex, you’re less likely to become aroused, and without arousal, the physical process never kicks off.

Low testosterone can also contribute through secondary pathways: it tends to worsen mood and increase fatigue, which reduce physical activity, which can lead to weight gain, all of which independently raise your risk of erection problems. So while boosting testosterone alone won’t fix a vascular or nerve issue, it can matter if low desire is a big part of what you’re experiencing. A morning blood test for total testosterone is the standard way to check.

Sleep, Alcohol, and Lifestyle Habits

Poor sleep does more damage than most men realize. Obstructive sleep apnea, where your airway repeatedly collapses during sleep, triggers a cascade of problems in the neural, hormonal, and vascular systems that all feed into erection difficulties. Even without apnea, chronic sleep deprivation lowers testosterone and raises stress hormones. If you snore heavily, wake up gasping, or feel exhausted despite a full night in bed, a sleep evaluation is worth pursuing.

Alcohol is a direct depressant of sexual function. Among men with alcohol use disorder, more than 67% experience some form of sexual dysfunction. The encouraging finding: in one study, 88% of participants saw improvement in their erection quality after just three months of cutting out alcohol entirely. Even moderate to heavy drinking on a given night can temporarily make it difficult to get hard by suppressing your nervous system and dilating blood vessels in ways that work against the erection process.

Smoking accelerates damage to blood vessel linings throughout the body, including the small arteries in the penis. Because those arteries are narrower than the ones feeding your heart, they tend to show damage earlier, which is another reason erection problems can be an early cardiovascular warning sign. Quitting smoking measurably improves vascular function, often within weeks.

What You Can Do About It

The first practical step is identifying whether the issue is mostly physical, mostly psychological, or a mix. Morning erections are a useful clue. Your body naturally produces erections during deep sleep, so if you wake up hard regularly but can’t perform with a partner, the plumbing likely works fine and the issue is more mental. If morning erections have disappeared too, a physical cause is more likely.

Lifestyle changes make a real difference. Regular cardiovascular exercise improves blood flow everywhere, including the penis. Losing excess weight, especially abdominal fat, improves hormone balance and vascular health. Cutting back on alcohol, quitting smoking, and prioritizing sleep are all evidence-backed strategies that directly improve erection quality.

When lifestyle adjustments aren’t enough, medications that block the enzyme responsible for breaking down the chemical signal that keeps blood vessels relaxed (PDE5 inhibitors) are the most common medical treatment. The shorter-acting version starts working in as few as 11 minutes for some men, though most need 30 to 60 minutes, and its effects last roughly 4 hours. The longer-acting option has a half-life of about 17.5 hours, giving a wider window of spontaneity. Success at very early time points occurs in fewer than 40% of men, so patience with timing matters. These medications work by amplifying the natural erection process, meaning you still need arousal for them to take effect.

For psychological causes, cognitive behavioral therapy or sex therapy, sometimes combined with medication to break the anxiety cycle, tends to be highly effective. Many men find that once they have a few successful experiences, the anxiety fades and they no longer need medication at all.