What Foods Help Erectile Dysfunction and Which Hurt?

Certain foods like pistachios, watermelon, and leafy greens support blood flow and may ease erectile dysfunction, while others can make it worse.

Erectile dysfunction shares much of its underlying biology with heart disease, and the foods that protect your arteries tend to protect erectile function too. The connection runs through the lining of your blood vessels: a healthy endothelium produces nitric oxide, which relaxes smooth muscle and allows blood flow, while a damaged endothelium does the opposite. Diets rich in fruits, vegetables, nuts, and olive oil consistently show up in the research as protective, while heavily processed foods, excess sugar, and large amounts of alcohol push in the wrong direction.

Why Diet Matters for Erections in the First Place

An erection is fundamentally a vascular event. The penis fills with blood when smooth muscle in its arteries relaxes, and that relaxation depends on nitric oxide released by endothelial cells. When the endothelium is damaged or inflamed, nitric oxide production drops, and blood flow suffers. This is the same process that narrows coronary arteries in heart disease, and ED is often an early warning sign of broader cardiovascular trouble. Because ED and atherosclerosis share this mechanism, anything that improves or harms endothelial health tends to move erectile function in the same direction. That is why dietary choices, which shape inflammation, oxidative stress, and nitric oxide availability over time, have a meaningful influence.

The Mediterranean Diet Has the Strongest Track Record

If one eating pattern has earned its reputation here, it is the Mediterranean diet. A large study following tens of thousands of health professionals found that men under 60 who scored highest on Mediterranean diet adherence had roughly a 22% lower risk of developing ED compared to men with the lowest scores. The benefit held in older age groups too, with men aged 60 to 69 seeing about an 18% reduction. Reviews of the available research confirm that the pattern of olive oil, vegetables, fruits, whole grains, nuts, fish, and moderate wine intake is associated with both lower risk and lower severity of ED, particularly in men with type 2 diabetes.

There is also direct trial evidence. In a randomized controlled trial of men with metabolic syndrome, those assigned to a Mediterranean-style diet for two years saw improvements in endothelial function and drops in the inflammatory marker C-reactive protein. By the end, significantly more men on the Mediterranean diet had restored normal erectile function scores compared to the control group. The diet was not combined with any medication, so the effect appears to come from the food itself.

Flavonoid-Rich Foods Stand Out Among Individual Nutrients

Within the Mediterranean pattern and beyond it, flavonoids deserve special attention. These are plant compounds found heavily in berries, citrus fruits, red grapes, cherries, apples, and tea. A study of over 25,000 men found that higher habitual intake of three specific flavonoid subclasses was linked to reduced ED incidence: flavanones (found in citrus), anthocyanins (the pigments in berries and red wine), and flavones (found in parsley, celery, and chamomile tea). Separately, research comparing young men with and without ED found that those consuming more than 50 mg of flavonoids per day had about a 32% lower risk, with flavones appearing to contribute the most to healthy erectile function.

The practical takeaway is that a couple of servings of blueberries, strawberries, or citrus fruit a day puts you in the range that the research associates with benefit. You do not need exotic supplements to hit these numbers. Regular fruit consumption does the job.

Leafy Greens, Beets, and the Nitrate Connection

Green leafy vegetables like spinach, arugula, and lettuce, along with beetroot, are naturally rich in inorganic nitrate. Your body converts dietary nitrate into nitrite and then into nitric oxide through a pathway that does not depend on the enzyme that ED medications target. This gives you a second route to the same molecule your blood vessels need. Research has demonstrated that dietary nitrate reduces blood pressure, improves endothelial function, and inhibits platelet clumping. While these studies measured general vascular effects rather than erections specifically, the mechanism is directly relevant. Blood flow is blood flow, and the penile vasculature responds to nitric oxide the same way other vessels do.

Watermelon and L-Citrulline

Watermelon has gotten a lot of popular attention as a natural remedy because it contains L-citrulline, an amino acid your body converts into L-arginine, which is the raw material for nitric oxide production. There is clear evidence that L-citrulline consumption does increase circulating L-arginine levels. The catch is that the short-term improvement in actual nitric oxide production and blood vessel dilation has been inconsistent in studies. Chronic supplementation appears more promising, with longer-term intake linked to increased nitric oxide synthesis and reduced blood pressure. In other words, eating watermelon once is unlikely to work like a pill, but making it a regular part of your diet could support vascular health over time.

Nuts, Especially Pistachios

A small trial asked men with existing ED to eat 100 grams of pistachios daily for three weeks. Their erectile function scores improved substantially, and ultrasound measurements of penile blood flow also improved. Their cholesterol profiles got better at the same time, with decreases in total and LDL cholesterol and a rise in HDL. This was a small, uncontrolled study, so the results should be taken as suggestive rather than definitive. A larger randomized trial of mixed nuts (almonds, hazelnuts, and walnuts) in healthy men found no significant change in erectile function scores, though it did find improvements in orgasmic function and sexual desire. Nuts are a cornerstone of the Mediterranean diet and provide healthy fats, arginine, and antioxidants, so including them makes sense even if they are not a standalone fix.

Dark Chocolate and Cocoa

Cocoa flavanols have been shown to improve endothelial function and lower blood pressure in human studies. Both single doses and habitual intake increase a measure of arterial dilation called flow-mediated dilation, and the effect appears to be dose-dependent: more cocoa flavanols, more dilation. The mechanism is increased nitric oxide availability, the same thing driving the benefits of leafy greens and flavonoid-rich fruits. The important caveat is that this applies to dark chocolate or minimally processed cocoa, not sugary milk chocolate bars. The sugar and extra fat in most candy chocolate could easily offset the vascular benefit.

Plant-Based Diets and What “Plant-Based” Actually Means

Research on plant-based eating and ED reveals an important distinction. Not all plant foods are equal. Studies differentiate between a “healthy” plant-based diet index (emphasizing whole grains, fruits, vegetables, nuts, and legumes) and an “unhealthy” plant-based index (emphasizing refined grains, potatoes, sugary drinks, and sweets). Higher adherence to the healthy plant-based pattern was associated with about an 18% lower risk of ED in men aged 60 to 69. But men under 60 who scored highest on the unhealthy plant-based index actually had a 27% higher risk of ED.

Cross-sectional data from China found a similar pattern: men with ED had significantly lower healthy plant-diet index scores, and within the ED group, erectile function scores rose as adherence to healthy plant foods increased. The lesson is that going “plant-based” by swapping meat for french fries and white bread will not help. The quality of the plant foods matters enormously.

Foods That Hurt

Ultra-Processed Foods

A controlled feeding study that directly compared ultra-processed and unprocessed diets in men found that the ultra-processed diet altered markers of inflammation and oxidative stress, decreased follicle-stimulating hormone, and showed a trend toward lower testosterone. Sperm quality also trended downward, with reduced motility. These hormonal and inflammatory shifts work against erectile function. Ultra-processed foods include things like packaged snack cakes, frozen pizza, instant noodles, and many fast-food items. They tend to combine refined carbohydrates, industrial fats, and chemical additives in ways that no whole-food diet replicates.

Excess Sugar and Advanced Glycation End-Products

Chronic high sugar intake leads to the formation of advanced glycation end-products, or AGEs, compounds that accumulate when sugars bond to proteins. Research has found a significant link between elevated AGE levels and ED severity. AGEs appear to quench nitric oxide directly, interfere with the enzyme that produces it, generate oxidative stress, and promote fat buildup in vessel walls. This helps explain why diabetes is one of the strongest risk factors for ED. But you do not need to be diabetic for chronically high blood sugar to cause damage. The endothelium accumulates AGE-related injury over years.

Alcohol in Excess

Moderate alcohol consumption, particularly red wine with its polyphenol content, features in the Mediterranean diet research without apparent harm to erectile function. Heavy drinking is a different story. In a study of men with alcohol dependence, roughly 72% had at least one sexual dysfunction, with ED among the most common, and the amount consumed was the strongest predictor of sexual problems. Chronic heavy alcohol use damages nerves, suppresses testosterone, and harms the liver’s ability to regulate hormones. The dose-response relationship is steep: a glass or two of wine does not appear harmful in the data, but escalation beyond that brings real risk.

The Low-Fat Diet Trap

Men sometimes adopt very low-fat diets for heart health or weight loss, not realizing the potential downside for testosterone. A systematic review and meta-analysis of intervention studies found that low-fat diets produced statistically significant decreases in total testosterone, free testosterone, and dihydrotestosterone compared to higher-fat diets. The effect appeared stronger in men of European ancestry. Meanwhile, research on specific fat types found that after adjusting for confounders like age and energy intake, no single fat type was clearly linked to androgen levels in a straightforward way. The practical message is not to load up on saturated fat, but to avoid going so low in total dietary fat that hormonal production suffers. Healthy fats from olive oil, avocados, nuts, and fatty fish thread the needle.

The Gut Microbiome Connection

An emerging area of research links ED to the gut. Certain gut bacteria produce trimethylamine from dietary choline and carnitine (found in red meat, eggs, and some fish), which the liver then converts to TMAO. Elevated serum TMAO has been associated with damage to vascular endothelial cells and smooth muscle, promoting atherosclerosis and oxidative stress, both of which hurt erectile function. In animal models of diabetes, gut dysbiosis drove TMAO levels up and triggered cell death in the smooth muscle tissue of the penis itself. Separately, researchers found that another gut-derived metabolite, lipopolysaccharide, was significantly elevated in men with vascular ED compared to men with non-vascular ED and healthy controls.

This is still a young field, and nobody is prescribing specific probiotics for ED. But it reinforces the case for a fiber-rich diet with plenty of plant diversity, which feeds the bacterial communities associated with lower TMAO and better vascular health.

Weight Loss Often Helps More Than Any Single Food

Dietary changes tend to come with weight loss, and separating the two effects is tricky. But the weight loss itself matters independently. In a landmark randomized trial, obese men who lost weight through lifestyle changes (diet plus exercise) saw their erectile function scores improve significantly over two years, while the control group stayed flat. Seventeen men in the intervention group recovered normal erectile function versus only three in the control group. A separate study found that diet-induced weight loss of about 10% was linked to increased testosterone, improved erectile function scores, and better insulin sensitivity in both diabetic and non-diabetic men, with the degree of weight loss correlating with the degree of improvement. If you carry significant excess weight, the single most impactful dietary change may simply be eating fewer calories in a nutrient-dense pattern, regardless of which specific foods you emphasize.

Coffee Gets a Cautious Green Light

Caffeine has a plausible mechanism for helping: it relaxes the smooth muscle in penile arteries and cavernosal tissue, which could increase blood flow. Analysis of a large U.S. health survey found that men consuming roughly two to three cups of coffee per day had lower odds of reporting ED, though the association was modest and the study was cross-sectional, meaning it cannot prove causation. Coffee also contains polyphenols with their own vascular benefits. If you already drink coffee, this is reassuring. If you do not, the evidence is not strong enough to suggest starting for this reason alone.

Vitamin D and Micronutrient Gaps

Vitamin D deficiency is widespread and has been epidemiologically linked to ED. Vitamin D appears to matter for endothelial function and for the endocrine and immune systems that support vascular health. Whether supplementing with vitamin D actually improves erectile function in men who are deficient has not been firmly established in large trials, but correcting a known deficiency is reasonable given the broader health benefits. Fatty fish, egg yolks, fortified dairy, and sunlight exposure are the standard dietary sources. Zinc, while not covered in depth here, is another micronutrient whose deficiency has been associated with low testosterone and impaired sexual function. Oysters, red meat, pumpkin seeds, and legumes are the richest food sources.

Heavy Metals You May Not Know You Are Eating

An analysis of U.S. health survey data found that exposure to certain heavy metals, particularly cobalt and antimony, was associated with increased odds of ED even after adjusting for standard risk factors. Men in the highest exposure quartile for cobalt had about 49% higher odds of ED, and those highest in antimony had about 53% higher odds. These metals enter the food supply through contaminated water, industrial processes, and certain supplements. You are unlikely to control for this through food choices alone, but it is one more reason to be cautious about unregulated supplements and to favor whole foods with known sourcing.

Why “Male Enhancement” Supplements Are a Bad Bet

The market for herbal erectile supplements is enormous and largely unregulated. An analysis of 91 purportedly natural sexual-enhancement supplements found that 81% contained undeclared pharmaceutical ingredients, mostly the active compounds in prescription ED drugs or their close chemical analogs. Eighteen of those products contained more than 110% of the highest approved dose of those drugs. In other words, these are often counterfeit medications sold as herbs, without medical oversight or dose control. For men taking nitrate medications for heart conditions, unknowingly consuming a hidden dose of sildenafil or tadalafil could cause a dangerous drop in blood pressure. The foods discussed in this article come without that risk and address the underlying problem rather than masking it.