Erectile dysfunction is highly treatable, and most men see meaningful improvement through a combination of lifestyle changes, targeted exercises, and, when needed, medical options. The approach that works best depends on what’s driving the problem, which can range from poor blood flow and low hormones to stress, sleep issues, or a combination of several factors at once.
Erections depend on a chain reaction: nerve signals trigger the release of a signaling molecule in the blood vessels of the penis, which causes smooth muscle to relax and allows blood to flow in. Anything that disrupts blood vessel health, hormone levels, nerve function, or psychological arousal can weaken that chain. That also means there are multiple points where you can intervene.
Diet and Cardiovascular Health
Because erections are fundamentally a blood flow event, the same things that damage your arteries and heart also damage erectile function. High blood pressure, high cholesterol, insulin resistance, and obesity all impair the blood vessels’ ability to dilate on demand. Improving cardiovascular health is one of the most reliable ways to improve erections over time.
A Mediterranean-style diet, rich in vegetables, fruits, whole grains, olive oil, nuts, and fish, has the strongest evidence behind it. In a randomized trial following 106 men with type 2 diabetes for over eight years, those eating a Mediterranean diet retained significantly better erectile function scores compared to those on a standard low-fat diet. The benefit likely comes from improved blood vessel lining health, reduced inflammation, and better blood sugar control, all of which support the signaling pathway that produces erections.
Weight loss alone can make a substantial difference. Excess body fat, especially around the midsection, drives inflammation and converts testosterone into estrogen, compounding the problem from two directions. Even modest weight loss of 5 to 10 percent of body weight improves blood vessel function and hormone balance in ways that translate to better erections.
Exercise That Targets ED Directly
Aerobic exercise improves erectile function through the same cardiovascular mechanisms as diet: healthier blood vessels, better blood flow, improved hormone profiles. Aim for at least 150 minutes per week of moderate-intensity activity like brisk walking, cycling, or swimming. Resistance training also helps by supporting healthy testosterone levels.
Pelvic floor exercises (Kegels) target the muscles at the base of the penis that help trap blood during an erection and maintain rigidity. These muscles can weaken with age or inactivity. The protocol recommended by Mayo Clinic is straightforward: squeeze the pelvic floor muscles for three seconds, relax for three seconds, and repeat. Work up to 10 to 15 repetitions per set, three sets per day. To find the right muscles, try stopping your urine stream midflow. The muscles you engage are the ones you want to train. Most men notice improvement within a few weeks to a couple of months of consistent practice.
Sleep and Hormones
Poor sleep quietly undermines erectile function in several ways. Testosterone production peaks during deep sleep, so consistently short or fragmented sleep lowers testosterone over time. Obstructive sleep apnea is an especially common culprit: roughly half of men with sleep apnea also have erectile dysfunction, and roughly half of men with ED have undiagnosed sleep apnea.
Treating sleep apnea with a CPAP machine can help, but the benefit depends on actually using it consistently. In a randomized trial, men who were adherent with CPAP use showed improved erectile function scores, sexual desire, and overall sexual satisfaction compared to those using a sham device. Men who used the machine inconsistently didn’t see the same gains. If you snore heavily, wake up gasping, or feel exhausted despite a full night’s sleep, getting evaluated for sleep apnea could be one of the most impactful steps you take.
Low testosterone is worth checking if you have ED along with other symptoms like fatigue, reduced sex drive, loss of muscle mass, or mood changes. The American Urological Association uses a total testosterone level below 300 ng/dL as the diagnostic threshold, confirmed by two separate morning blood draws. Testosterone levels are highest in the early morning and can fluctuate day to day, which is why repeat testing matters. If levels are genuinely low and symptoms match, testosterone replacement can improve desire and, in some cases, erectile function directly.
The Psychological Side
Performance anxiety creates a vicious cycle: one episode of difficulty leads to worry about the next encounter, which triggers a stress response that constricts blood vessels and makes the problem worse. Over time, this pattern can become self-sustaining even when there’s no underlying physical issue. Stress, depression, and relationship conflict all contribute through similar pathways.
Cognitive behavioral sex therapy (CBST) directly addresses these patterns by identifying and replacing the anxious thought loops that interfere with arousal. A pilot study found that 8 to 12 weeks of CBST produced improvements in erectile function comparable to medication for men with psychologically driven ED. The therapy was more effective at reducing anxiety scores than medication alone, which makes sense given that it targets the root cause rather than working around it. Shorter courses of four to six weeks were less effective, suggesting that meaningful change takes some time.
If your ED is situational, meaning you can get erections during sleep, in the morning, or during masturbation but not with a partner, psychological factors are likely playing a significant role.
Supplements Worth Knowing About
L-citrulline is one of the few supplements with clinical trial support for ED. Your body converts it into L-arginine, which is then used to produce the signaling molecule that relaxes blood vessels in the penis. Taking L-arginine directly is less effective because most of it gets broken down in the gut and liver before reaching the bloodstream. L-citrulline bypasses that problem.
In a clinical trial, men with mild ED who took 1.5 grams of L-citrulline daily for one month reported improved erection hardness with no adverse effects. The improvement was modest, so this is best suited for mild cases or as a complement to other strategies rather than a standalone fix for moderate or severe ED.
Most other supplements marketed for ED (horny goat weed, maca, tribulus) have far weaker evidence. Some may offer marginal benefits, but none match the reliability of the lifestyle and medical approaches covered here.
Medical Treatments
PDE5 inhibitors (the class of medication that includes the well-known ED pills) work by blocking the enzyme that breaks down the molecule responsible for keeping blood vessels in the penis relaxed. This amplifies your body’s natural erectile response, which is why sexual arousal is still required for them to work. These medications are effective for the majority of men and remain the first-line medical treatment.
For men who don’t respond to oral medication, low-intensity shockwave therapy is a newer option with growing evidence. The treatment delivers focused sound waves to the penile shaft, which stimulates new blood vessel growth and improves blood flow. A meta-analysis of 10 randomized trials found that shockwave therapy improved erectile function scores significantly more than sham treatment, with patients 8.5 times more likely to achieve a clinically meaningful improvement. In a trial specifically studying men who hadn’t responded to medication, 70% in the shockwave group improved at six months compared to just 10% receiving sham treatment. Patients with diabetic nerve damage also responded well, with 71% achieving erections sufficient for intercourse after treatment versus under 10% in the control group. Treatment typically involves multiple sessions over several weeks and is noninvasive.
Putting It Together
ED rarely has a single cause, which is why the most effective approach usually layers several strategies. A man who improves his diet, starts exercising, addresses poor sleep, and adds pelvic floor training is attacking the problem from multiple angles simultaneously. Each change may produce a modest benefit on its own, but together they can add up to a significant improvement.
If lifestyle changes aren’t enough, medication and newer options like shockwave therapy can fill the gap. And if anxiety or stress is part of the picture, addressing the psychological component alongside the physical one produces better results than treating either alone.