Getting and keeping a firm erection depends on healthy blood flow, the right hormonal balance, and a nervous system that isn’t fighting against you. When any of those three things is off, erections suffer. The good news is that most of the factors involved are within your control, and small changes can produce noticeable results within weeks.
How Erections Actually Work
An erection is, at its core, a blood flow event. When you become aroused, your brain sends signals through the nervous system that trigger the release of nitric oxide, a gas molecule produced inside the blood vessels of the penis. Nitric oxide relaxes the smooth muscle tissue in the two cylindrical chambers that run the length of the shaft, allowing blood to rush in and fill them. As those chambers expand, they compress the veins that would normally drain blood away, trapping it in place. That’s what creates firmness.
Anything that reduces nitric oxide production, restricts blood flow, lowers testosterone, or ramps up your stress response will make erections weaker or harder to maintain. That’s why the fixes below target those specific mechanisms.
Exercise Is the Single Best Fix
Regular physical activity improves erection quality through multiple pathways at once: it increases nitric oxide production, lowers blood pressure, reduces body fat (which lowers estrogen in men), and improves cardiovascular fitness so your heart can pump blood where it needs to go. A 2025 meta-analysis in the Journal of Men’s Health found that even low-intensity exercise over a period of zero to three months significantly improved erectile function, and that this short, moderate approach was actually more effective than longer or more intense protocols.
You don’t need to train like an athlete. Brisk walking, cycling, swimming, or light jogging for 30 minutes most days of the week is enough to start seeing changes. The key is consistency over weeks, not intensity in a single session.
Pelvic Floor Training
The muscles at the base of your pelvis play a direct role in trapping blood inside the penis during an erection. Strengthening them gives you more control over firmness and can help you maintain erections longer. These are the same muscles you’d use to stop urinating midstream or hold back gas.
The protocol recommended by Mayo Clinic is straightforward: squeeze those muscles and hold for three seconds, then relax for three seconds. Work up to 10 to 15 repetitions per set, and aim for at least three sets spread throughout the day. Keep your abs, thighs, and glutes relaxed while you do them, and breathe normally. Most men notice improvement within four to six weeks of daily practice. You can do these sitting at your desk, lying in bed, or standing in line. Nobody will know.
What You Eat Matters More Than You Think
A Mediterranean-style diet, heavy on vegetables, fruits, whole grains, olive oil, nuts, and fish, has been shown in clinical trials to slow the deterioration of sexual function compared to standard low-fat diets. In one trial involving people with newly diagnosed type 2 diabetes, those following a Mediterranean diet maintained significantly better erectile function scores over time. The likely reason is that this eating pattern reduces inflammation, improves blood vessel health, and supports nitric oxide production.
You don’t need to overhaul your diet overnight. Adding more leafy greens, berries, fatty fish, and nuts while cutting back on processed food and sugar moves the needle. Foods rich in nitrates, like beets, arugula, and spinach, directly support the nitric oxide pathway your body uses to produce erections. Moderate alcohol consumption (one to two drinks) appears to carry a lower risk of erectile problems than either heavy drinking or total abstinence, though the relationship is complex.
Sleep Protects Your Testosterone
Testosterone follows a circadian rhythm. Levels start rising when you fall asleep, typically peak during your first cycle of deep sleep, and stay elevated until you wake up. This is why morning erections happen, and why they’re a useful indicator of overall erectile health.
A meta-analysis examining sleep and testosterone found that going 24 hours or more without sleep significantly reduced testosterone levels. Even 40 to 48 hours of total sleep deprivation caused a further drop. Partial sleep restriction over a few nights had a smaller, non-significant effect, but chronic sleep debt compounds over time. If you’re regularly getting fewer than six hours, your testosterone is likely lower than it should be. Prioritizing seven to eight hours of sleep is one of the simplest ways to support the hormonal environment that erections depend on.
Alcohol and Smoking Work Against You
Alcohol impairs erections through several mechanisms at once. It interferes with the brain signals needed to initiate arousal, inhibits the part of the nervous system responsible for relaxing penile smooth muscle, and dilates blood vessels throughout the body in a way that temporarily drops blood pressure and diverts blood away from the penis. That’s the acute effect of a few too many drinks.
Long-term heavy drinking does deeper damage. It suppresses testosterone production, raises prolactin levels (which further reduce testosterone and sexual drive), hardens arteries, contributes to high blood pressure, depletes B vitamins needed for nerve function, and worsens depression and anxiety. All of these independently contribute to erectile problems. If you drink regularly and notice weaker erections, cutting back is likely to help more than any supplement.
Smoking damages blood vessels directly, reducing the flexibility of arteries and impairing nitric oxide signaling. Since erections are entirely dependent on rapid blood vessel dilation, even moderate smoking habits can measurably reduce firmness over time.
Managing Performance Anxiety
If your erections work fine when you’re alone but disappear with a partner, the issue is almost certainly psychological. Performance anxiety creates a vicious cycle: you worry about losing your erection, that worry activates your stress response, adrenaline constricts the blood vessels in your penis, and the erection fades, which confirms the fear and makes it worse next time.
Several evidence-based strategies break this cycle. Cognitive-behavioral techniques involve catching and reframing the catastrophic thoughts (“I’m going to lose it again”) with more realistic ones (“Occasional difficulty is normal and doesn’t mean anything is wrong”). Randomized trials have shown this approach improves both erectile function and sexual anxiety.
Sensate focus exercises, originally developed by Masters and Johnson, involve progressing through stages of physical intimacy with a partner while deliberately removing any pressure to perform. You start with non-sexual touching and gradually work toward genital contact, with the explicit agreement that erections and orgasm are not the goal. This shifts your attention from monitoring your body to actually experiencing pleasure, which is what allows arousal to happen naturally.
Mindfulness and deep breathing techniques also help by lowering the sympathetic nervous system activation that kills erections. Even a few slow, deep breaths before or during sexual activity can reduce the adrenaline spike that anxiety produces. Practicing erections during solo masturbation with a focus on sensation rather than outcome can also rebuild confidence through repeated positive experiences.
Supplements That Have Some Evidence
L-arginine is the most studied supplement for erection quality. Your body converts it into nitric oxide, the molecule that triggers the smooth muscle relaxation needed for blood to fill the penis. A meta-analysis found that arginine supplements at doses between 1,500 and 5,000 mg per day significantly improved erectile function compared to placebo. L-citrulline, a related amino acid, converts to arginine in the body and may produce more sustained levels because it bypasses first-pass metabolism in the liver.
These supplements work best for mild cases and in men whose nitric oxide production is suboptimal due to age, diet, or cardiovascular risk factors. They’re not a replacement for the lifestyle factors above, and they won’t override the effects of heavy drinking, poor sleep, or unmanaged anxiety.
When Medication Makes Sense
Prescription medications for erectile difficulty all work by the same basic mechanism: they block an enzyme that breaks down the chemical signal produced by nitric oxide, effectively amplifying your body’s natural erection process. They don’t create arousal on their own. You still need stimulation.
The three main options differ primarily in how long they last. Sildenafil (Viagra) has a half-life of about four hours, meaning it’s active for roughly that window after you take it. Vardenafil (Levitra) lasts four to six hours. Tadalafil (Cialis) has a half-life of 17.5 hours, which allows for a much more spontaneous experience without needing to time the dose closely around sexual activity. Some men take a low daily dose of tadalafil so it’s always in their system.
These medications are effective for the majority of men who try them, and they work well alongside the lifestyle changes described above. In fact, men who exercise regularly and eat well tend to respond better to them than men who rely on the medication alone.

