Difficulty getting or keeping an erection is one of the most common sexual health issues men face, affecting roughly half of all men between 40 and 70 to some degree. The good news: most causes are well understood, and a combination of lifestyle changes, mental strategies, and medical options can make a real difference. Here’s what actually works, and why.
What Has to Happen Physically
An erection is fundamentally a blood flow event. When you’re aroused, nerve signals trigger cells in the penis to release nitric oxide, a chemical messenger. Nitric oxide relaxes the smooth muscle inside the erectile tissue, allowing blood to rush in and fill two sponge-like chambers. Those chambers expand and compress the veins that would normally drain blood away, which is what keeps the erection firm.
Anything that disrupts this chain, whether it’s reduced nitric oxide production, damaged blood vessels, hormone imbalances, nerve problems, or psychological stress, can make it harder to get or stay hard. That’s why the solutions below work on different links in that chain.
Exercise Is Surprisingly Effective
Regular aerobic exercise is one of the most reliable ways to improve erections without medication. A review of 11 randomized controlled trials involving over 1,000 men found that those who exercised 30 to 60 minutes, three to five times per week, saw meaningful improvement in erectile function compared to men who didn’t exercise. Walking, running, and cycling were the most common activities studied.
The reason is straightforward: cardiovascular exercise improves blood vessel health throughout your body, including the penis. It boosts nitric oxide production, lowers blood pressure, reduces inflammation, and helps with weight management. All of these directly support the blood flow mechanics behind an erection. If you’re currently sedentary, even starting with brisk walks makes a difference over weeks and months.
Pelvic Floor Exercises
Kegel exercises aren’t just for women. Strengthening the pelvic floor muscles helps maintain blood flow to the penis during an erection and can improve rigidity. These are the muscles you’d use to stop urinating midstream or hold back gas.
The protocol is simple: squeeze those muscles for three seconds, relax for three seconds, and repeat. Work up to 10 to 15 repetitions per set, three sets per day. Focus on isolating just the pelvic floor. Don’t flex your abs, thighs, or glutes, and keep breathing normally. Most men notice improvement within a few weeks of consistent practice.
What You Eat Matters
A Mediterranean-style diet, heavy on vegetables, fruits, whole grains, fish, nuts, and olive oil, is consistently linked to better erectile function. In a clinical trial following over 200 people with type 2 diabetes for eight years, those on a Mediterranean diet experienced significantly less decline in sexual function compared to those on a standard low-fat diet. The likely mechanism is that this eating pattern reduces inflammation and improves the health of blood vessel linings, which are essential for producing nitric oxide.
You don’t need to overhaul your diet overnight. Swapping processed foods for whole foods, eating more fish and fewer red meats, and cooking with olive oil instead of butter are meaningful starting points.
Managing Performance Anxiety
For many men, especially younger men, the problem isn’t physical at all. Anxiety about sexual performance creates a self-reinforcing cycle: you worry about not getting hard, the worry triggers a stress response that constricts blood vessels, and the resulting difficulty confirms the fear. This is sometimes called psychogenic erectile dysfunction, and it responds well to specific psychological techniques.
Cognitive behavioral therapy adapted for sexual health (sometimes called CBST) uses several practical tools. Cognitive restructuring involves identifying and challenging the specific negative thoughts that show up during sex, like “I’m going to lose it” or “she’s going to be disappointed.” You learn to recognize these as automatic thoughts rather than facts, and replace them with more realistic ones.
Sensate focus exercises, originally developed by sex researchers Masters and Johnson, take the pressure off entirely. You and your partner start with non-sexual touching, with no expectation of intercourse, and gradually progress over multiple sessions. The goal is to shift your attention from performance to physical sensation. Mindfulness during intimacy works on a similar principle: staying focused on what you’re feeling right now rather than monitoring your erection or worrying about what happens next.
Supplements With Actual Evidence
L-arginine is the supplement with the strongest research behind it for erectile function. It’s an amino acid your body uses to produce nitric oxide. A meta-analysis of 10 randomized controlled trials covering 540 men found that arginine supplements at doses of 1,500 to 5,000 mg per day significantly improved erectile function compared to placebo. Improvements showed up not just in erection quality but also in satisfaction and orgasm. Side effects were mild and uncommon (about 8% of men, with no serious adverse events).
That said, the evidence supports arginine for mild to moderate difficulty. It’s not a substitute for medication in more severe cases, and it works best alongside the lifestyle factors above.
When Medication Makes Sense
Prescription ED medications all work the same way: they block the enzyme that breaks down the chemical (cGMP) responsible for keeping erectile tissue relaxed and full of blood. They don’t create arousal on their own. You still need stimulation for them to work.
The three main options differ mostly in how long they last. Sildenafil (Viagra) works for about four hours. Vardenafil (Levitra) lasts four to six hours and is roughly ten times more potent by dose, meaning you take a smaller pill. Tadalafil (Cialis) has a much longer window of around 17.5 hours, which is why it’s sometimes called “the weekend pill.” Some men prefer the longer-acting option because it removes the need to time the dose precisely.
One critical safety point: these medications must never be combined with nitrate drugs, which are commonly prescribed for chest pain or heart conditions (nitroglycerin patches, isosorbide tablets, and similar medications). The combination can cause a sudden, severe, and potentially fatal drop in blood pressure. If you take any heart medication, this is a conversation to have with your prescriber before trying ED drugs.
Check Your Testosterone
Low testosterone is a treatable cause of erectile difficulty, though it’s less common than vascular or psychological causes. The American Urological Association defines low testosterone as a total level below 300 ng/dL, confirmed by two separate blood draws taken in the early morning, when levels are highest. Symptoms beyond erectile problems typically include fatigue, reduced sex drive, loss of muscle mass, and mood changes.
If your testosterone is genuinely low and you have symptoms, replacement therapy can help. But testosterone alone doesn’t fix erections if the underlying issue is blood flow or anxiety. It’s one piece of the puzzle, not a standalone solution.
Erections as a Heart Health Signal
The arteries supplying the penis are significantly smaller than the ones supplying the heart. This means that if plaque buildup or blood vessel damage is developing, erectile problems often show up years before any chest pain or other cardiac symptoms. Persistent erectile difficulty, particularly in men over 40, is worth mentioning to a doctor not just for sexual health but because it can be an early warning sign of cardiovascular disease.
Low-Intensity Shockwave Therapy
This newer, non-drug option uses sound waves applied to the penis to stimulate new blood vessel growth. Sessions typically happen once or twice per week over three to six weeks. Results from multiple randomized controlled trials are promising: in one trial, 70% of men in the treatment group improved significantly at six months compared to 10% in the sham group. Another found 71% of treated men achieved erections sufficient for intercourse versus 9.5% with sham treatment. It’s not yet universally available or covered by insurance, but the evidence is growing.

