Getting and keeping a strong erection depends on blood flow, nerve signaling, and hormones all working together. When any of those systems underperform, erections suffer. The good news is that most of the factors involved are within your control: exercise, diet, sleep, stress, and a few targeted habits can make a measurable difference.
How Erections Actually Work
An erection starts with a signal from your brain or from direct physical stimulation. That signal triggers nerve cells in the penis to release nitric oxide, a molecule that relaxes the smooth muscle lining the blood vessels inside the shaft. As those vessels relax and widen, blood rushes in and fills two sponge-like chambers called the corpora cavernosa. The expanding chambers press against the veins that normally drain blood away, trapping it inside. That’s what creates firmness.
The process has two phases. The initial surge of blood flow comes from nerve-driven nitric oxide production. Then, the increased blood flow itself activates a second source of nitric oxide from the blood vessel lining, which sustains the erection at full hardness. Both phases need to fire properly. Anything that reduces nitric oxide availability, restricts blood flow, or disrupts nerve signaling will weaken the result.
Aerobic Exercise Has the Biggest Impact
If you do one thing on this list, make it cardio. A review of 11 randomized controlled trials involving more than 1,000 men found that those who exercised for 30 to 60 minutes, three to five times a week, saw meaningful improvements in erectile function compared to men who stayed sedentary. Walking, running, and cycling were the most common activities studied. Harvard Health Publishing reported the effect was comparable to what some men get from medication.
The reason is straightforward: aerobic exercise improves the health of your blood vessel lining, which is the tissue responsible for producing nitric oxide. It also lowers blood pressure, reduces arterial stiffness, and improves cholesterol ratios. Since erections are fundamentally a blood flow event, cardiovascular fitness translates directly into erectile quality.
Pelvic Floor Exercises Add Firmness
Your pelvic floor muscles sit at the base of the penis and play a direct role in trapping blood during an erection. Strengthening them can improve both hardness and staying power. The Mayo Clinic recommends a simple routine: squeeze the muscles you’d use to stop urinating midstream, hold for three seconds, then relax for three seconds. 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 exercises are invisible to anyone around you, so you can do them at your desk, on the couch, or in bed. Consistency matters more than intensity. Most men notice results after several weeks of daily practice.
Foods That Support Blood Flow
The same eating pattern that protects your heart also protects your erections. A Mediterranean-style diet built around vegetables, fruits, whole grains, nuts, legumes, fish, and olive oil provides several compounds that directly boost nitric oxide production.
- Extra virgin olive oil contains polyphenols that stimulate nitric oxide production and have anti-inflammatory effects on blood vessel walls. It also helps lower blood pressure by inhibiting a compound that constricts arteries.
- Walnuts are rich in L-arginine, the amino acid your body converts into nitric oxide, along with plant-based omega-3 fats that reduce arterial stiffness.
- Fatty fish like salmon and sardines supply omega-3s that further support nitric oxide levels.
- Colorful fruits and vegetables deliver polyphenols (especially flavonoids) that enhance nitric oxide availability and protect blood vessels from oxidative damage.
You don’t need to overhaul your diet overnight. Swapping processed snacks for a handful of walnuts, cooking with olive oil instead of butter, and adding a few more servings of vegetables each week moves the needle over time.
L-Citrulline as a Supplement
L-citrulline is an amino acid your body converts into L-arginine, which then becomes nitric oxide. Taking citrulline rather than arginine directly is more effective because citrulline survives digestion better and produces a more sustained increase in arginine levels.
In a clinical study of 24 men with mild erectile difficulties, 1.5 grams of L-citrulline daily for one month improved erection hardness scores from “mild difficulty” to “normal” in half the men, compared to just 8% on placebo. That’s a significant jump for a single, well-tolerated supplement. You can find L-citrulline as a standalone powder or capsule. No serious side effects were reported in the trial.
How Alcohol Undermines Erections
A drink or two might lower inhibitions, but alcohol works against you mechanically. It dilates blood vessels throughout your body, causing a temporary drop in blood pressure that reduces the force pushing blood into the penis. The result: softer erections or none at all.
Chronic heavy drinking does longer-term damage. It promotes atherosclerosis, a hardening and narrowing of arteries that permanently reduces blood flow to the penis. If you notice that erections are weaker on nights you drink, that’s not a coincidence. Cutting back, especially avoiding more than two drinks in a session, removes one of the most common and easily fixable causes of erection problems.
Sleep Protects Your Testosterone
Testosterone is essential for sex drive and plays a supporting role in the erection process. Your body produces most of its testosterone during sleep, and skipping it has real consequences. A meta-analysis of 18 studies found that going without sleep entirely for 24 hours or more significantly reduced testosterone levels. Even 40 to 48 hours of total sleep deprivation drove testosterone down further.
Interestingly, short-term partial sleep loss (sleeping fewer hours than ideal for a night or two) didn’t significantly lower testosterone in the same analysis. The takeaway isn’t that poor sleep is harmless. It’s that occasional late nights won’t tank your hormones, but a pattern of severely restricted or missed sleep will. Aim for consistent, full nights of sleep rather than obsessing over a single bad night.
Managing Performance Anxiety
Erections require your nervous system to be in a relaxed, parasympathetic state. Anxiety triggers the opposite: a fight-or-flight response that constricts blood vessels and diverts blood away from the penis. The cruel irony is that worrying about losing your erection is one of the fastest ways to lose it.
Breaking the cycle usually involves three things. First, open communication with your partner removes the pressure of performing in silence. Simply acknowledging that you feel anxious can reduce its grip. Second, shifting your focus from the outcome (staying hard) to the physical sensations you’re experiencing in the moment interrupts the anxiety loop. Third, if the pattern persists, a therapist who specializes in sexual health can help you identify and reframe the thoughts that trigger the response. Performance anxiety is extremely common, and it responds well to these approaches.
When Medication Makes Sense
Prescription erectile dysfunction medications work by blocking an enzyme that breaks down the chemical signal responsible for keeping blood vessels in the penis relaxed. They don’t create arousal on their own. They amplify the natural process once it starts.
The most well-known option typically takes effect within 30 to 60 minutes and lasts about four hours. A longer-acting alternative can work for up to 36 hours, which some men prefer for its flexibility. These medications are effective for most men, but they work best alongside the lifestyle factors above rather than as a replacement for them. A prescription requires a conversation with a healthcare provider, who can also rule out underlying conditions like cardiovascular disease or diabetes that often show up as erection problems first.
Putting It Together
Erection quality is a proxy for overall vascular health. The interventions that improve it (regular cardio, a plant-rich diet, quality sleep, moderate alcohol intake, stress management) are the same ones that reduce your risk of heart disease, stroke, and metabolic problems. Pelvic floor exercises and L-citrulline supplementation add targeted support on top of that foundation. Most men who address several of these factors simultaneously notice improvement within a few weeks to a few months.

