How to Get a Good Erection: What Actually Works

Strong erections depend on healthy blood flow, adequate hormone levels, and a relaxed mental state. When any of those three factors is off, erection quality suffers. The good news is that each one responds to specific, practical changes you can start making today.

At a biological level, erections work like this: arousal triggers nerves in the penis to release nitric oxide, a chemical signal that relaxes the smooth muscle tissue inside the shaft. That relaxation lets blood rush in and fill the erectile tissue, creating rigidity. Oxygen levels in that tissue directly regulate how much nitric oxide gets produced, which is one reason that anything impairing your circulation (smoking, inactivity, poor diet) hits erection quality hard.

Exercise Is the Single Best Lifestyle Change

Regular aerobic exercise improves erections through multiple pathways at once: it strengthens your heart, lowers blood pressure, improves the flexibility of blood vessels, and boosts nitric oxide production. It also reduces belly fat, which matters because excess abdominal fat converts testosterone into estrogen.

The exercise doesn’t need to be extreme. Studies showing clear improvements in erectile function used routines like cycling three times a week for 45 to 60 minutes, brisk walking five times a week for 30 to 45 minutes, or moderate cardio five days a week for at least 30 minutes. Consistency matters more than intensity. If you’re currently sedentary, even starting with 20-minute walks and building from there will move the needle over a few months.

Resistance training helps too, particularly compound movements like squats and deadlifts that recruit large muscle groups and stimulate testosterone production. A mix of cardio and strength training covers the most ground.

What You Eat Directly Affects Blood Flow

The Mediterranean diet, built around vegetables, fruits, whole grains, olive oil, fish, and nuts, is the most studied dietary pattern for erectile health. A large prospective study of over 21,000 men found that strong adherence to this eating pattern was inversely associated with erectile dysfunction. In a two-year randomized trial, men who followed a Mediterranean diet showed significant improvements in both erectile function and blood vessel health compared to men on a different diet, along with lower markers of vascular inflammation.

The mechanism is straightforward. Foods rich in nitrates (leafy greens, beets), flavonoids (berries, dark chocolate, citrus), and healthy fats (olive oil, fatty fish) all support the nitric oxide pathway that makes erections happen. Processed foods, excess sugar, and refined carbohydrates do the opposite: they damage blood vessel linings and promote inflammation. You don’t need to overhaul your diet overnight. Swapping in more vegetables, cooking with olive oil instead of butter, and eating fish a couple times a week is a solid starting point.

Sleep More, Lose Less Testosterone

Sleep is when your body produces the bulk of its testosterone. Research from the University of Chicago found that healthy young men who slept less than five hours a night for just one week saw their testosterone drop by 10 to 15 percent. The researchers noted this decline was equivalent to aging 10 to 15 years. The lowest testosterone levels appeared in the afternoons and evenings on sleep-restricted days, which is often exactly when sexual activity happens.

Low testosterone is linked to reduced libido, fatigue, and difficulty maintaining erections. If you’re consistently getting six hours or less, improving your sleep may produce noticeable changes in erection quality before any other intervention. Aim for seven to nine hours. Keep your bedroom cool and dark, maintain a consistent wake time, and limit screens in the hour before bed.

Quit Smoking (Results Come Faster Than You Think)

Smoking damages the lining of blood vessels throughout your body, including the small arteries that supply the penis. Because those arteries are narrower than the ones feeding your heart, they’re often the first place vascular damage shows up. Erectile dysfunction is sometimes an early warning sign of cardiovascular disease for this reason.

Some improvement in erection quality can begin within a few weeks of quitting. Over the following months, continued abstinence allows blood vessels to heal and circulation to improve further. The longer you’ve smoked, the longer full recovery takes, but the trajectory starts pointing upward quickly.

Train Your Pelvic Floor

The muscles at the base of your pelvis play a direct role in trapping blood inside the penis during an erection. Weak pelvic floor muscles can lead to erections that don’t feel as firm or that fade too quickly. Kegel exercises strengthen these muscles, and the routine is simple.

To find the right muscles, try stopping your urine stream midflow. The muscles you squeeze to do that are the ones you’re targeting (don’t make a habit of doing this while urinating, it’s just for identification). Once you know the feeling, practice contracting and holding for a few seconds, then releasing. The Mayo Clinic recommends working up to three sets of 10 to 15 repetitions per day. You can do these sitting at your desk, lying in bed, or standing in line. Results typically take a few weeks of consistent practice to become noticeable.

Address the Mental Side

Performance anxiety is one of the most common causes of erection problems, especially in younger men. The pattern is self-reinforcing: you worry about losing your erection, the worry triggers a stress response that constricts blood vessels, and the erection falters, which confirms the fear and makes it worse next time.

Cognitive behavioral therapy designed for sexual issues (sometimes called CBST) is effective for this pattern. It works through a few core techniques. Cognitive restructuring helps you identify and challenge the catastrophic thoughts that fire during sex, things like “it’s going to happen again” or “my partner will be disappointed.” Replacing these with realistic, neutral thoughts interrupts the anxiety spiral.

Sensate focus exercises are another tool. These involve deliberately removing intercourse from the equation and instead practicing non-genital touch with your partner, gradually reintroducing sexual contact over several sessions. The goal is to rewire your brain’s association from “sex equals performance test” to “sex equals pleasurable sensation.” Practicing a few times a week in a low-pressure setting tends to produce significant shifts.

Mindfulness during intimacy also helps. This means staying focused on physical sensations rather than monitoring your erection. When anxious thoughts appear, you acknowledge them without engaging and redirect attention back to touch, warmth, or breathing. This is a skill that gets easier with practice.

When Lifestyle Changes Aren’t Enough

If you’ve addressed the basics (exercise, diet, sleep, stress) and still struggle, medications that enhance nitric oxide signaling are a well-established option. These work by amplifying your body’s natural erection mechanism, so arousal is still required. The most commonly prescribed options differ mainly in timing: some are taken about an hour before sexual activity and last several hours, while one longer-acting version can be taken well in advance and remain effective for up to 36 hours. A doctor can help you choose based on how spontaneous you want your sex life to be.

Other approaches include vacuum erection devices, which use suction to draw blood into the penis and a ring to keep it there, and penile injections that directly relax smooth muscle tissue. These are less commonly needed but worth knowing about. Current guidelines from the American Urological Association emphasize that there’s no required treatment ladder. You and your doctor can choose any option that fits your situation, whether that’s the least invasive or not.

Supplements: Limited but Worth Knowing

L-citrulline, an amino acid found in watermelon, converts to L-arginine in the body, which is a building block for nitric oxide. Some men use it as a mild erection booster. Doses used in studies go up to 6 grams daily, but optimal dosing hasn’t been established for erectile function specifically. The effect is modest compared to prescription options but may provide a small benefit alongside other lifestyle changes. Most other supplements marketed for erections lack solid clinical evidence, and some contain undisclosed pharmaceutical ingredients that can be dangerous.

Putting It Together

Erection quality is a reflection of your overall cardiovascular and hormonal health. The most effective approach combines several changes rather than relying on any single fix. Regular cardio, a diet rich in vegetables and healthy fats, seven-plus hours of sleep, not smoking, pelvic floor exercises, and managing stress or anxiety form the foundation. Medications work well when added to that foundation but work less effectively as a substitute for it.