How to Get Hard and Stay Hard: What Actually Works

Strong erections depend on healthy blood flow, hormone levels, and nervous system signaling all working together. When any one of those systems is off, getting hard or staying hard becomes difficult. The good news is that most of the factors involved are modifiable, meaning changes to your habits, fitness, and stress levels can make a real difference. About 16% of men aged 40 to 60 experience erectile difficulties, and that number rises to nearly 57% in men aged 60 to 80, so this is one of the most common health concerns men face.

How Erections Actually Work

An erection is fundamentally a blood flow event. When you’re aroused, your brain sends signals through your nervous system that trigger the release of nitric oxide inside the penis. Nitric oxide relaxes the smooth muscle tissue lining the blood vessels of the erectile chambers, allowing them to expand and fill with blood. As pressure builds, small veins that normally drain blood away get compressed, trapping blood inside and creating rigidity.

Anything that interferes with this chain, from damaged blood vessels to low nitric oxide production to excess stress hormones, can weaken the process. That’s why erection quality is often called a barometer of cardiovascular health. The same plaque buildup and vessel stiffness that leads to heart disease also restricts blood flow to the penis, and because the arteries there are smaller, problems often show up years before they appear in the heart.

Exercise Is the Single Best Lifestyle Change

Regular aerobic exercise improves erection quality more reliably than almost any other non-pharmaceutical intervention. It strengthens the cardiovascular system, increases nitric oxide production, lowers blood pressure, and reduces body fat, all of which directly support the blood flow mechanics behind an erection.

Clinical trials lasting 2 to 24 months have shown significant improvements in erectile function scores with moderate aerobic activity. The effective range in these studies included cycling three times per week for 45 to 60 minutes, moderate exercise five times per week for at least 30 minutes, or brisk walking five times per week for 30 to 45 minutes. You don’t need to train like an athlete. Consistent, moderate-intensity cardio is what moves the needle.

Resistance training helps too, particularly because it supports testosterone production and improves body composition. Combining cardio with two or three days of strength training per week covers both bases.

What You Eat Affects Blood Flow

A Mediterranean-style diet rich in vegetables, fruits, whole grains, olive oil, nuts, and fish has been shown to significantly slow the deterioration of sexual function compared to standard low-fat diets. The mechanism is straightforward: these foods reduce inflammation, improve cholesterol ratios, and protect the lining of blood vessels.

Specific foods earn their reputation for a reason. Leafy greens and beets are high in dietary nitrates, which your body converts into nitric oxide. Fatty fish provides omega-3s that keep arteries flexible. Berries and dark chocolate contain flavonoids that improve circulation. You don’t need to follow a rigid plan. Shifting your overall pattern toward whole, unprocessed foods and away from refined sugar, excess alcohol, and fried foods will improve vascular function over weeks and months.

Pelvic Floor Strength Matters More Than You Think

The muscles at the base of your pelvis play a direct role in maintaining erections. They help trap blood inside the penis once you’re hard, so weakness there can cause erections that fade too quickly. Strengthening these muscles through Kegel exercises is one of the simplest interventions available.

To find the right muscles, try stopping your urine stream midflow. The muscles you squeeze to do that are your pelvic floor. Once you can identify them, practice contracting and holding for three seconds, then relaxing for three seconds. Work up to 10 to 15 repetitions per set, three sets per day. These can be done sitting, standing, or lying down, and nobody will know you’re doing them. Consistent practice over several weeks typically produces noticeable improvements in erection firmness and control.

Sleep and Stress Are Underrated Factors

Chronic stress keeps your body in a state of heightened sympathetic nervous system activity, the “fight or flight” mode that is essentially the opposite of what’s needed for an erection. Arousal requires your parasympathetic nervous system to take over, relaxing blood vessels and allowing blood to flow in. When stress hormones like cortisol remain persistently elevated, this relaxation response is suppressed, making it harder to get or maintain an erection even when you’re mentally aroused.

Sleep deprivation compounds the problem. Testosterone production peaks during deep sleep, and consistently getting fewer than six or seven hours reduces your baseline testosterone levels over time. Poor sleep also raises cortisol and impairs mood, both of which work against erectile function. Prioritizing seven to nine hours of quality sleep and finding ways to manage stress (whether through exercise, meditation, therapy, or simply reducing obligations) can produce noticeable changes in erection quality within weeks.

Check Your Testosterone

Testosterone alone doesn’t cause erections, but it plays a supporting role in libido, nitric oxide production, and overall sexual responsiveness. The American Urological Association defines low testosterone as a total level below 300 ng/dL, though other medical societies use thresholds ranging from 230 to 350 ng/dL. If your levels fall below this range and you’re experiencing symptoms like low sex drive, fatigue, and difficulty with erections, testosterone replacement therapy may help.

That said, testosterone is often blamed when it isn’t the real issue. Many men with normal testosterone still have erection problems because the root cause is vascular, neurological, or psychological. Getting a blood test is worthwhile if you suspect low T, but don’t assume it’s the answer before ruling out other factors.

How to Tell If It’s Physical or Psychological

This distinction matters because it changes the approach. Physical (organic) erectile dysfunction tends to come on gradually, gets worse over time, and affects all situations equally, including morning erections. Risk factors include diabetes, heart disease, high blood pressure, smoking, heavy alcohol use, and certain medications.

Psychological ED tends to arrive suddenly, often in connection with a stressful life event, relationship problems, anxiety, or depression. The key clue: if you still get firm erections when you wake up, during sleep, or when masturbating, but lose them with a partner, the underlying hardware is likely working fine. Performance anxiety is one of the most common causes and creates a vicious cycle where worrying about losing your erection is exactly what causes you to lose it. Therapy, particularly cognitive behavioral approaches, is highly effective for breaking this pattern.

Supplements That Have Some Evidence

L-arginine is the most studied supplement for erection quality. It’s the raw material your body uses to produce nitric oxide, the molecule that triggers smooth muscle relaxation and blood inflow. A meta-analysis of clinical trials found that arginine supplements at daily doses ranging from 1,500 to 5,000 mg significantly improved erectile function compared to placebo. The effect was meaningful, with treated men roughly three times more likely to see improvement.

L-citrulline, a related amino acid, is sometimes preferred because it converts to arginine in the body but with better absorption and fewer digestive side effects. A typical effective dose is 1,500 to 3,000 mg per day. Neither supplement works as fast or as dramatically as prescription medications, but for mild cases or as part of a broader strategy, they can help.

Be cautious with other supplements marketed for sexual performance. Most lack clinical evidence, and the supplement industry is poorly regulated. Products sold as “natural Viagra” sometimes contain undisclosed pharmaceutical ingredients that can interact dangerously with other medications.

When Medication Makes Sense

PDE5 inhibitors (the class that includes sildenafil and tadalafil) remain the most effective pharmaceutical option. They work by enhancing the nitric oxide pathway, essentially amplifying your body’s natural erection mechanism. They don’t create arousal on their own; you still need stimulation.

Sildenafil is typically taken about 60 minutes before sexual activity and works best on an empty stomach. Its effects last roughly four to six hours. Tadalafil has a much longer window, up to 36 hours in many men, and can also be taken at a low daily dose so you don’t have to plan around it. Both are effective for the majority of men with erectile difficulties, regardless of whether the cause is physical or psychological.

These medications aren’t a permanent fix on their own, but they can be useful while you work on the underlying factors. Many men find that once they’ve improved their cardiovascular fitness, sleep, and stress levels, they no longer need medication, or need a lower dose.

Habits That Quietly Make Things Worse

Smoking damages blood vessel walls and reduces nitric oxide availability. It’s one of the strongest modifiable risk factors for erectile dysfunction, and quitting produces measurable improvements in vascular function within months. Heavy alcohol use depresses nervous system signaling and lowers testosterone over time. A drink or two rarely causes problems, but regular heavy drinking is a common and overlooked contributor.

Recreational drugs, particularly cocaine and amphetamines, constrict blood vessels acutely. Anabolic steroids used for bodybuilding suppress your body’s natural testosterone production and can cause lasting hormonal disruption even after you stop. Excess body fat, especially visceral fat around the midsection, converts testosterone to estrogen and promotes chronic inflammation. Losing even 5 to 10% of your body weight, if you’re carrying extra, can meaningfully improve erection quality.

Porn-related concerns are common but nuanced. There’s limited clinical evidence that pornography directly causes erectile dysfunction, but some men develop a pattern where they need increasingly specific visual stimulation to become aroused, which can make partnered sex more difficult. If you notice this pattern, reducing consumption and refocusing on physical sensation during sex is a reasonable step.