Why You Can’t Get Hard Anymore and How to Fix It

Difficulty getting or staying hard is one of the most common sexual health issues men experience, and it has a wide range of causes, from stress and sleep habits to blood vessel health and medications. Around 5% to 10% of men under 40 deal with this, and the numbers climb steadily with age: roughly 22% of men at 40 have moderate to complete difficulty, rising to 49% by age 70. Whatever your age, understanding why it’s happening is the first step toward fixing it.

How Erections Actually Work

An erection is fundamentally a blood flow event. When you’re aroused, nerves in the penis release a chemical signal (nitric oxide) that tells the smooth muscle lining the penile arteries to relax. That relaxation opens up the blood vessels, allowing blood to rush in and fill two sponge-like chambers called the corpora cavernosa. As those chambers expand, they compress the veins that would normally drain blood away, trapping it inside. The result is a firm erection.

This entire process depends on a chain reaction: nitric oxide triggers the production of a second messenger molecule (cyclic GMP), which is the direct signal that relaxes the smooth muscle. Anything that disrupts nitric oxide production, damages blood vessels, or interferes with nerve signaling can weaken or prevent this process. That’s why erection problems rarely have a single cause. They sit at the intersection of your cardiovascular system, nervous system, hormones, and mental state.

The Most Common Physical Causes

Blood vessel damage is the leading physical reason men lose the ability to get hard. The same process that narrows arteries in your heart, atherosclerosis, narrows the smaller arteries in the penis first. Because penile arteries are much narrower than coronary arteries, restricted blood flow shows up there before it causes chest pain or other cardiac symptoms. Research shows erection problems can appear two to four years before a major heart attack or other cardiovascular event. This makes erectile difficulty an early warning signal worth taking seriously, not just a bedroom frustration.

High blood sugar is another major contributor. Prolonged elevated glucose damages both the small blood vessels and the nerves responsible for triggering the nitric oxide release that starts an erection. Diabetes is one of the strongest risk factors, though even prediabetic blood sugar levels can begin causing subtle damage over time.

Low testosterone plays a role for some men, though less often than people assume. The American Urological Association uses a total testosterone level below 300 ng/dL as the threshold for deficiency. Low testosterone alone doesn’t always cause erection problems, but when combined with other symptoms like fatigue, reduced sex drive, or loss of muscle mass, it can be a significant factor. A simple morning blood test can check this.

Medications That Interfere

A surprisingly long list of common medications can cause or worsen erection difficulties. If your problems started around the time you began a new prescription, that’s worth investigating.

  • Antidepressants and anti-anxiety medications: SSRIs like fluoxetine and sertraline are well-known culprits, along with older tricyclic antidepressants and benzodiazepines.
  • Blood pressure medications: Thiazide diuretics (water pills) are the most common cause of erection problems among blood pressure drugs, followed by beta blockers. Alpha blockers are less likely to cause issues.
  • Antihistamines: Both allergy medications like diphenhydramine and heartburn drugs like cimetidine and ranitidine can contribute.
  • Hair loss treatments: Finasteride, used for male pattern baldness and prostate enlargement, lists sexual side effects.
  • Opioid painkillers: These suppress testosterone production and directly affect arousal pathways.

If you suspect a medication, don’t stop taking it on your own. There are often alternative drugs in the same class that don’t carry the same sexual side effects. A doctor can usually find a swap that works.

Why Stress and Anxiety Make It Worse

Your nervous system has two competing modes that directly control erections. The parasympathetic system (your “rest and digest” mode) is one of the main excitatory pathways that triggers the nitric oxide release needed for an erection. The sympathetic system (your “fight or flight” mode) does the opposite: it actively inhibits erections. This isn’t a metaphor. Adrenaline and stress hormones physically prevent the smooth muscle in the penis from relaxing, which means blood can’t flow in regardless of how aroused you feel mentally.

This is why performance anxiety creates a vicious cycle. You fail to get hard once, which makes you anxious the next time, which activates your sympathetic nervous system, which prevents the erection, which increases the anxiety further. The biology works against you in real time. It’s also why many men can get hard alone or while half-asleep but struggle with a partner: the added pressure of performing switches on the part of the nervous system that blocks the process.

Sleep deprivation, work stress, relationship conflict, and depression all keep the sympathetic system chronically elevated. Addressing these isn’t a soft suggestion. It’s targeting the actual physiological mechanism.

How Exercise and Lifestyle Changes Help

Physical activity is one of the most effective non-drug interventions. In the Massachusetts Male Aging Study, men who remained sedentary had the highest risk of developing erection problems, while those who stayed active or even started exercising in midlife had the lowest risk. Regular moderate to vigorous aerobic exercise improves the health of blood vessel linings, increases nitric oxide production, lowers blood pressure, and improves insulin sensitivity, all of which directly support the erection mechanism.

Smoking damages blood vessel walls and accelerates atherosclerosis. While one large study found that changes in smoking status didn’t correlate with short-term changes in erection quality, the long-term vascular damage from smoking is well-established. Excess body fat, particularly around the midsection, increases inflammation and converts testosterone to estrogen, compounding the problem. Losing even a modest amount of weight can produce noticeable improvements.

Alcohol deserves a mention too. A drink or two may reduce anxiety and help in the short term, but regular heavy drinking suppresses testosterone, damages nerves, and impairs liver function in ways that make erection problems worse over time.

What Treatment Looks Like

The first-line medical treatment is a class of oral medications that work by blocking the enzyme that breaks down cyclic GMP, the molecule responsible for keeping penile smooth muscle relaxed. By slowing the breakdown, these drugs amplify your body’s natural arousal response. They don’t create an erection from nothing; you still need arousal and stimulation for them to work.

Success rates are solid. In pooled clinical trial data, men who responded successfully on their first attempt went on to have intercourse success rates of 82% to 86% on subsequent attempts, compared to 65% for placebo. Even men who didn’t succeed on the first try still saw success rates of 53% to 56% with continued use. These medications work best when the underlying blood flow and nerve pathways aren’t too severely damaged, which is another reason earlier intervention matters.

For men whose problems are primarily psychological, cognitive behavioral therapy or sex therapy can break the anxiety cycle effectively. Some men benefit from a combination of medication and therapy: the medication restores confidence, the therapy addresses the underlying pattern, and eventually the medication becomes unnecessary.

When oral medications aren’t enough, other options exist, including vacuum devices, injectable treatments, and surgical implants. But the vast majority of men find relief well before reaching that point.

When It’s Occasional vs. a Real Problem

Every man occasionally fails to get or keep an erection. Fatigue, alcohol, distraction, or a stressful day can all interfere without signaling anything wrong. The clinical definition of erectile dysfunction is the consistent or recurrent inability to get or maintain an erection sufficient for sexual satisfaction. If it’s happening more often than not over a period of weeks or months, that pattern is worth investigating, both for your sexual health and because of what it may reveal about your cardiovascular system.

A doctor will typically ask about the pattern (does it happen with all partners, during masturbation, or only in certain situations?), check blood pressure and blood sugar, and order a testosterone level. If you’re waking up with morning erections or can get hard during masturbation but not with a partner, that’s a strong clue the issue is more psychological than vascular. If erections have gradually weakened across all situations, a physical cause is more likely.