Is Coffee Good for ED? What the Research Shows

Coffee may offer a modest benefit for erectile function, but the evidence is mixed. A large U.S. national health survey found that men who consumed roughly 2 to 3 cups of coffee per day (about 85 to 303 mg of caffeine) were around 40% less likely to report erectile dysfunction compared to men who consumed almost no caffeine. However, a more recent meta-analysis pooling data from over 51,000 men across multiple studies found no statistically significant link between coffee intake and ED risk overall. The honest answer is that coffee probably helps somewhat through real biological mechanisms, but it’s not a reliable treatment on its own.

How Caffeine Affects Blood Flow to the Penis

Erections depend on blood flow. When you become aroused, smooth muscle tissue in the penis relaxes, allowing blood to fill the spongy chambers (the corpus cavernosum) and create firmness. Caffeine promotes this process in a way that’s surprisingly similar to how ED medications work.

Prescription ED drugs block a specific enzyme that breaks down a signaling molecule your body uses to keep blood vessels relaxed. Caffeine does the same thing, just less powerfully. It’s a nonselective version of the same type of enzyme blocker, which means it can raise levels of that relaxation signal in penile tissue. In animal studies, caffeine also reduced calcium flow into smooth muscle cells, which further relaxes the tissue lining the blood vessels and chambers of the penis. The net effect is improved penile blood flow.

This isn’t just theoretical. In diabetic rats with measurably impaired erectile function, caffeine consumption improved erections by boosting the key signaling molecule in penile tissue. The mechanism is real, but the question is whether the amount of caffeine in your morning coffee is enough to make a noticeable difference in humans.

What the Largest Studies Found

The most cited research on this topic comes from a large analysis of U.S. national health data (NHANES) covering 2001 to 2004. Researchers grouped men by how much caffeine they consumed daily and compared their rates of ED. Men in the middle ranges of intake, roughly 85 to 303 mg per day, had significantly lower odds of reporting ED compared to men who consumed almost none. Specifically, men consuming 85 to 170 mg daily had 42% lower odds, and those consuming 171 to 303 mg daily had 39% lower odds.

That’s roughly the caffeine in one to three standard cups of brewed coffee. Interestingly, men in the highest intake group (304 to 700 mg per day) did not show the same clear benefit, suggesting more is not necessarily better.

A 2024 meta-analysis, however, tempered the enthusiasm. Pooling four cohort studies with over 51,000 participants, researchers found no statistically significant relationship between coffee consumption and ED risk overall (the pooled relative risk was 0.88, but the confidence interval crossed 1.0, meaning the result could be due to chance). The authors noted that the limited number of available studies makes it hard to draw firm conclusions either way.

Why It Seems to Help Some Men More Than Others

One of the more interesting findings from the NHANES analysis is that caffeine’s apparent benefit held up for men who were overweight, obese, or had high blood pressure. These are groups where blood vessel function is often compromised, so a mild vasodilator like caffeine could plausibly make a meaningful difference.

For men with diabetes, though, the association disappeared entirely. Diabetes causes ED through a more complex set of mechanisms, including nerve damage and more severe blood vessel dysfunction, that a cup of coffee likely can’t overcome. This is an important distinction: if your ED is related to weight or blood pressure, caffeine might offer a small edge. If it’s related to diabetes, the evidence suggests it won’t help.

Coffee Doesn’t Boost Testosterone

One common assumption is that coffee might help ED by raising testosterone levels. A study from Johns Hopkins looking at caffeinated beverage consumption and sex hormone levels in U.S. men found no association between caffeine intake and testosterone or estrogen concentrations. Coffee was mildly linked to higher levels of a protein that binds to sex hormones, but that association faded when researchers accounted for other factors. Whatever benefit coffee provides for erectile function, it’s not working through hormones.

When Coffee Could Make Things Worse

Caffeine is a stimulant, and too much of it can work against erectile function. Above roughly 400 mg per day (about four cups of coffee), many people experience anxiety, sleep disruption, or temporary spikes in blood pressure. All three of these can contribute to ED.

Anxiety is particularly relevant. Performance anxiety is one of the most common psychological contributors to erectile problems, and caffeine directly activates the “fight or flight” branch of your nervous system. Some men notice jitters, restlessness, or a vascular tightness that works in the opposite direction of what they’re hoping for. If you’re someone who’s sensitive to stimulants or already deals with anxiety around sexual performance, high caffeine intake could genuinely make the problem worse.

Sleep quality matters too. Poor sleep is strongly linked to lower sexual function, and late-day caffeine consumption is one of the most common causes of disrupted sleep. A pattern of heavy coffee drinking that cuts into your rest could easily cancel out any vascular benefit.

A Realistic Take on Coffee and ED

If you’re already a moderate coffee drinker (2 to 3 cups a day), you may be getting a small vascular benefit that supports erectile function, particularly if you’re carrying extra weight or managing blood pressure issues. There’s a plausible biological mechanism and some supporting data from large surveys. But the effect is mild at best, and the most rigorous pooled analyses haven’t been able to confirm it’s statistically real.

Coffee is not a substitute for addressing the underlying causes of ED, which most often involve cardiovascular health, metabolic health, psychological factors, or some combination. If you enjoy coffee, there’s no reason to stop, and keeping your intake in the 2 to 3 cup range is a reasonable sweet spot where the potential upside is highest and the downsides (anxiety, poor sleep, blood pressure spikes) are lowest. Going beyond that in hopes of better erections is unlikely to help and could backfire.