How to Keep Your Dick Hard: Exercise, Diet & More

Erections depend on strong blood flow, and almost everything that improves your cardiovascular health also improves erection quality. About 18% of men over 20 experience erectile difficulties, so this is one of the most common sexual health concerns. The good news: most of the factors involved are within your control.

How Erections Actually Work

An erection is a hydraulic event. When you’re aroused, your brain signals blood vessels in the penis to release nitric oxide, a molecule that relaxes smooth muscle tissue inside the two spongy chambers that run the length of the shaft. As those chambers fill with blood, they expand and compress the veins that would normally drain blood away. That trapping mechanism is what keeps you hard. Anything that interferes with blood flow, nerve signaling, or nitric oxide production can weaken or shorten an erection.

This means erection quality is essentially a report card on your vascular system. The arteries supplying the penis are smaller than the ones feeding your heart, so they’re often the first place where circulation problems show up.

Cardio Exercise Has the Biggest Impact

Aerobic exercise is the single most effective lifestyle change for stronger erections. Men who exercise 30 to 60 minutes, three to five times a week, see measurable improvement in erectile function compared to men who don’t exercise. Walking, running, and cycling all work. Harvard Health has reported that regular aerobic activity can be as effective as medication for some men with erectile difficulties.

The reason is straightforward: cardio trains your blood vessels to produce more nitric oxide, lowers blood pressure, reduces arterial stiffness, and improves the efficiency of your heart. All of those translate directly into better blood flow to the penis. You don’t need to train like an athlete. Brisk walking counts, and benefits typically appear within a few weeks of consistent effort.

Strengthen 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 make it harder to stay fully rigid. Kegel exercises, often associated with women’s health, are equally useful for men.

To find the right muscles, try stopping your urine stream midflow or tightening the muscles you’d use to hold back gas. Once you’ve identified them, the routine is simple: squeeze for three seconds, relax for three seconds, and repeat. Work up to 10 to 15 repetitions per set, three sets a day. Keep your abs, thighs, and glutes relaxed while you do them, and breathe normally. These can be done sitting at your desk, driving, or lying in bed. Consistency over several weeks is what produces results.

Eat for Blood Flow

Your diet shapes your vascular health over time, and that directly affects erection quality. A pattern high in fruits, vegetables, nuts, whole grains, and fish, while low in red meat, processed meat, and refined grains, is consistently associated with better erectile function. This is essentially the Mediterranean diet, and it has the strongest evidence behind it.

In clinical trials, men with obesity or metabolic syndrome who followed a Mediterranean-style diet saw improvements in erectile function compared to control groups. Among men with type 2 diabetes, those with the highest adherence to this eating pattern had the lowest rates of erectile problems and were more likely to remain sexually active. The benefits come through multiple pathways: reduced inflammation, lower oxidative stress, improved cholesterol profiles, and better arterial flexibility. You don’t need to overhaul your diet overnight. Adding more leafy greens, berries, fatty fish, and olive oil while cutting back on processed food is a solid start.

Sleep Protects Your Testosterone

Testosterone production follows a daily rhythm that depends heavily on sleep. Levels start rising when you fall asleep, typically peak during your first cycle of deep sleep, and stay elevated until you wake. Missing an entire night of sleep significantly drops testosterone levels. A meta-analysis found that going 24 hours or more without sleep reliably reduces testosterone, and the effect gets worse the longer you stay awake.

Short-term partial sleep loss (sleeping a few hours less than normal for one night) doesn’t appear to cause a significant testosterone drop on its own. But chronically short sleep, the kind where you’re regularly getting five or six hours, chips away at hormonal balance over time. Aiming for seven to nine hours gives your body the time it needs to complete its hormonal cycles. If you’re doing everything else right but sleeping poorly, that alone could be undermining your erections.

Managing Performance Anxiety

Not all erection problems start below the belt. Anxiety, stress, and negative thought patterns around sex are common causes of erection loss, especially in younger men without underlying vascular issues. The cycle is predictable: you lose your erection once, start worrying about it happening again, and the worry itself makes it more likely. Your nervous system can’t simultaneously run a stress response and maintain strong blood flow to the penis.

Deep breathing before and during sex helps shift your nervous system out of fight-or-flight mode. Slow, diaphragmatic breaths (inhaling for four counts, exhaling for six) activate the same parasympathetic pathways that support erections. Therapy, particularly cognitive-behavioral approaches, helps identify the thought patterns driving the anxiety and replace them with more balanced perspectives. Couples counseling can also reduce the pressure by opening up communication about sex and creating a less performance-focused dynamic in the bedroom.

One practical tip: focus on physical sensation rather than monitoring your erection. Paying attention to what you feel, touch, smell, and hear keeps you grounded in the moment instead of spiraling into self-evaluation.

Supplements With Some Evidence

L-citrulline is an amino acid that your body converts into nitric oxide, the same molecule your blood vessels need to relax and allow blood flow. Supplementing with it may ease symptoms of mild to moderate erectile difficulties. It doesn’t work as well as prescription medications, but it appears to be safe and is available without a prescription. Dosages in studies have ranged up to 6 grams per day, though no optimal dose has been formally established.

Beyond citrulline, most supplements marketed for erections have thin or no clinical evidence. Be skeptical of anything promising dramatic results. Some over-the-counter “male enhancement” products have been found to contain undisclosed pharmaceutical ingredients, which can be dangerous if you take other medications.

When Medication Makes Sense

Prescription medications for erections work by amplifying nitric oxide’s effects, making it easier for blood vessels in the penis to relax and stay open. They’re typically taken 30 to 60 minutes before sex. Some formulations last four to six hours, while others can remain active for up to 36 hours, giving you a wider window. These medications don’t create arousal on their own. You still need stimulation for them to work.

They’re effective for the majority of men who try them and are worth discussing with a doctor if lifestyle changes alone aren’t enough. Men taking nitrate medications for heart conditions cannot safely use them, so disclosing your full medication list matters.

Habits That Quietly Cause Problems

Smoking damages blood vessel linings and reduces nitric oxide availability. Even in otherwise healthy men, smoking is one of the strongest modifiable risk factors for erectile problems. Quitting often leads to noticeable improvement within months.

Heavy alcohol use depresses nervous system signaling and impairs blood flow. A drink or two generally isn’t an issue for most men, but consistently drinking more than that raises your risk. Excess body fat, particularly around the midsection, promotes inflammation and hormonal changes that work against erection quality. Losing even a moderate amount of weight can produce meaningful improvements if you’re currently overweight.

Prolonged cycling on a narrow saddle can compress nerves and blood vessels in the perineum. If you ride frequently and notice numbness or weaker erections, switching to a wider, noseless, or cut-out saddle often resolves the issue.