
The best foods for erectile dysfunction (ED) are the ones that make up healthy eating patterns, such as plant-based or Mediterranean-style diets. These patterns support your heart and blood vessels and are linked to lower ED risk, but no single fruit, nut, or vitamin has been shown to treat ED.
A 2024 review pooled 14 studies of 27,389 men from seven countries. Plant-based diets, low-fat diets, and diets rich in fruit, vegetables, and nuts were all linked to lower odds of ED (Yang et al., 2024).
Blood flow problems are a major cause of ED, but nerve problems, hormones, some medicines, and mental health can all play a part too. Diet mainly helps with the blood flow side, so it works best alongside a check-up if erection problems keep happening.
An erection starts with arousal signals from your brain. These signals tell the blood vessels in the penis to relax and fill with blood. It's also normal for an erection to fade sometimes during sex and come back.
Because erections depend on healthy blood vessels, foods that support your heart and blood vessels may support your erections too (Cassidy et al., 2016). Want the fuller picture of how erectile dysfunction happens? We cover it in more detail there.
The strongest evidence is for healthy eating patterns, such as plant-based or Mediterranean-style diets. Evidence for single foods and nutrients is weaker. Some of it shows a link with ED, and some only shows a benefit for heart health or hormone levels.
| Food or eating pattern | What the study measured | What it found | Type of evidence | Source |
|---|---|---|---|---|
| Mediterranean-style diet | Erectile function in men with ED and metabolic syndrome | Erectile function scores improved more than in the control group | Direct (ED). Clinical trial | Esposito et al., 2006 |
| Plant-based, low-fat, and produce- and nut-rich diets | ED risk across 14 studies | Linked to lower odds of ED | Direct (ED). Review of studies, mostly showing links | Yang et al., 2024 |
| Flavonoid-rich fruit and berries | New cases of ED over 10 years | 9–11% lower rate of ED with the highest flavonoid intake | Direct (ED). Observational, shows a link only | Cassidy et al., 2016 |
| Folic acid supplements | Erectile function in men with blood-vessel-related ED | Scores improved, but there was no comparable untreated ED group | Direct (ED). Supplements, not food. Limited design | Elshahid et al., 2020 |
| Zinc | Testosterone levels | Correcting a zinc shortfall raised low testosterone | Indirect (hormones). Erections not measured | Prasad et al., 1996 |
| Nuts (almonds, walnuts, pistachios) | Cholesterol levels | Modest drop in LDL and total cholesterol | Indirect (heart health). Erections not measured | Nishi et al., 2025 |
A Mediterranean-style diet means whole grains, fruit, vegetables, nuts, and olive oil, with less red meat and processed food. In one trial, men who already had ED and metabolic syndrome followed this diet for two years. Their erectile function scores improved more than the control group's (Esposito et al., 2006).
That trial only included men with both ED and metabolic syndrome, so the results may not apply to all men. In the wider 2024 review, plant-based diets were linked to about 29% lower odds of ED (Yang et al., 2024). A link like this doesn't prove the diet itself prevented ED, but it fits with what the trial found.
One study followed more than 25,000 men for 10 years. Men who ate the most flavonoids, found in berries, citrus fruit, and red wine, had a 9–11% lower rate of ED than men who ate the least. Eating more fruit overall was linked to a 14% lower risk (Cassidy et al., 2016).
This was an observational study, which means it shows a link between eating habits and ED. It doesn't prove that fruit or flavonoids prevented ED, and no single fruit has been shown to treat it.
Zinc and folate are important for your general health. Neither has been shown to treat ED when you get them from food.
Zinc helps your body make testosterone. In one study, correcting zinc deficiency raised testosterone in men who were low to begin with (Prasad et al., 1996). That study measured testosterone, not erections, and higher testosterone doesn't automatically mean better erections.
Folate, also called vitamin B9, helps control a substance in the blood called homocysteine. High homocysteine has been linked to problems with blood vessels, so this may be one way low folate could play a part in ED.
One study gave 50 men whose ED was linked to blood vessel problems a daily folic acid supplement for 3 months, and their erectile function scores improved (Elshahid et al., 2020). The study had no comparable untreated group of men with ED, so the improvement can't be pinned on folic acid alone. It also tested supplements, not folate-rich food.
Nuts like almonds, walnuts, and pistachios can modestly lower LDL and total cholesterol, which supports heart health (Nishi et al., 2025). That review didn't measure erections, so it's indirect evidence.
The 2024 review of 14 diet studies also linked eating more nuts with lower odds of ED, though again that's a link rather than proof (Yang et al., 2024). Curious which nuts are best for erectile dysfunction? We've broken it down separately.
Extra body fat can affect erections in two ways: through your hormones, and through your heart and metabolic health.
Obesity can lower testosterone through several hormonal and metabolic changes. One possible contributor is an enzyme in fat tissue called aromatase, which turns testosterone into estrogen. Men with more body fat tend to have higher aromatase activity in their fat tissue, and lower testosterone in their blood (Ahmed et al., 2025).
Extra body fat is also linked to heart and blood vessel problems, which can affect blood flow to the penis. Diet and weight management are one part of this picture, alongside other lifestyle factors that affect erections.
Some common claims about these don't hold up against current evidence.
You might have heard that coffee raises stress hormones and harms erections. Current research doesn't support that, and it doesn't show that coffee protects erections either.
A 2024 review combined four long-term studies of 51,665 men in the US and Finland. It found no clear link between coffee and ED risk (Karimi et al., 2024).
An earlier US survey of more than 3,700 men linked 2–3 cups of coffee a day with lower odds of ED (Lopez et al., 2015). That survey looked at coffee and ED at one point in time, so it can't show that coffee prevents ED.
Some articles claim sugar damages the nerves involved in arousal. Nerve damage is linked to high blood sugar over a long time, especially in people with diabetes. It isn't an established result of eating sugar now and then.
Others claim dehydration directly causes ED. Staying hydrated supports healthy blood pressure and circulation, which is good for your overall health, but no study has shown dehydration causes ED on its own.
Alcohol can make it harder to get or keep an erection, especially when you drink a lot. It works in more than one way, including through your brain and your blood vessels.
Alcohol affects the brain signals your body needs for arousal (Rubin & Henson, 1976). It can also interfere with the physical erection response. That's why a few drinks can lower inhibitions but still make erections harder.
If erection problems keep happening, see a doctor or other healthcare provider. ED can sometimes be an early sign of heart, metabolic, or hormone problems, so changing your diet shouldn't delay a check-up. A doctor can help work out the cause and what to try.
A qualified nutrition professional, like a registered dietitian, can help you look at your eating habits and risks like high cholesterol or blood sugar. They can't check for every medical or psychological cause of ED, so it's best to see them as well as your doctor.
Up to 30% of men under 40 have experienced erection difficulties, and the causes vary a lot: psychological, blood-flow-related, weight-related, hormonal, or a mix (Nguyen et al., 2017).
Diet sits alongside the psychological side of erectile dysfunction and other erectile dysfunction treatment options. If you want to work through the whole pattern behind your erections, beyond what's on your plate, Mojo's Erection Reset is built for that.
It can play a supporting role. Healthy eating patterns, such as plant-based or Mediterranean-style diets, are linked to lower ED risk (Yang et al., 2024), and one trial found a Mediterranean-style diet improved erectile function in men with metabolic syndrome (Esposito et al., 2006). Evidence for single foods is weaker, and if ED keeps happening, see a doctor as well.
Current evidence suggests it probably doesn't. A 2024 review of four long-term studies found no clear link between coffee and ED in either direction (Karimi et al., 2024). So coffee isn't known to cause ED or to prevent it.
No vitamin has been proven to treat ED. Correcting a zinc shortfall can raise low testosterone (Prasad et al., 1996), and folic acid supplements improved erection scores in one study that had no untreated comparison group (Elshahid et al., 2020). Neither shows that zinc- or folate-rich food treats ED.
One trial gave prescription-level niacin (vitamin B3), up to 1,500 mg a day, to men with ED and high cholesterol, and erectile function improved modestly (Ng et al., 2011). Doses this high can cause significant side effects. This isn't evidence for taking over-the-counter vitamins or eating more B3 to treat ED, so talk to a doctor before taking any high-dose supplement.
There's no solid research showing Brazil nuts, or the selenium in them, boost testosterone or libido in the general population. It's a common claim online, but we couldn't trace it to a real study, so we're not repeating it here.
Not directly, based on current evidence. Staying hydrated supports healthy blood pressure and circulation, which matters for your overall health, but no study has shown dehydration causes ED on its own.
Mojo aims to provide useful wellbeing resources to its users; however, you should not solely rely on opinions or advice available on the Website or given by the Community. Always seek advice from a qualified medical doctor or other healthcare professional before acting.

A neurobiologist and science communicator, Paula turns research on the brain, behaviour and health into clear, evidence-based education about mental, physical, and sexual well-being.