# Caffeine and Erectile Dysfunction: Does Coffee Help or Hurt?

> Does coffee help or hurt erections? What large studies show about caffeine and ED, why it isn't a treatment, and how much is too much.

By The Invigor Editorial Team · Published January 27, 2022 · Updated December 3, 2026

## The short answer

Coffee does not seem to cause ED, and it is not a treatment for it either. One U.S. survey linked moderate caffeine intake with fewer reports of ED, but larger studies that followed men over time found no clear effect either way. Too much caffeine, especially from energy drinks, can raise your heart rate and blood pressure. If you have ED, see a doctor rather than relying on coffee.

Most men drink some caffeine every day, whether it is coffee, tea, soda or an energy drink. So it is a fair question: is your morning coffee helping your sex life, hurting it, or doing nothing at all?

The short version is that caffeine does not seem to cause ED, and it is not a treatment for it. Here is what the research actually shows.

## Why people think coffee might help

An erection depends on blood flowing into the penis. ED pills such as [sildenafil and tadalafil](https://tryinvigor.com/sildenafil-vs-tadalafil) work by helping the blood vessels there relax. Some people assume caffeine might have a similar effect. That has not been shown, and caffeine is not a treatment for ED.

## What the studies show

### A survey that found a possible link

A U.S. study used national survey data (NHANES) from 3,724 men [1]. Men who took in a moderate amount of caffeine, roughly 85 to 303 mg a day, were less likely to report ED than men who took in almost none [1]. The authors estimated the possible benefit at about 170 to 375 mg a day, or roughly two to three cups of coffee [1].

But there are big limits. This kind of study looks at one moment in time, so it cannot show cause and effect. ED was measured with a single question, and caffeine intake was estimated from what men remembered eating and drinking in the past day [1]. The link also did not show up in men with diabetes [1]. The authors themselves called for longer studies to check it.

### Larger studies found no clear effect

When researchers followed men over years, the picture changed.

- A study of more than 21,000 men aged 40 to 75 followed them for years. Men who drank four or more cups of coffee a day had about the same risk of developing ED as men who drank none [2].
- A 2024 analysis that pooled four studies with more than 51,000 men found no significant link between coffee and ED risk [3].
- A 2024 study using genetics, a way of testing cause and effect, also found no link between coffee or caffeine and ED [4].

Put together, the best evidence suggests that coffee neither causes nor prevents ED. If you enjoy it, there is no strong reason to stop for the sake of your erections. And there is no good reason to start drinking more to fix them.

## Energy drinks and too much caffeine

The bigger risk is overdoing it. The FDA says that for healthy adults, 400 mg a day, about two to three 12-ounce cups of coffee, is not generally associated with negative effects [5].

Energy drinks vary a lot. The FDA notes they generally contain 54 to 328 mg of caffeine per 16 ounces [5]. Two large cans can put you past 400 mg before you count coffee.

Too much caffeine can cause [5]:

- A faster or pounding heartbeat
- Higher blood pressure
- Trouble sleeping
- Anxiety and jitters
- Upset stomach, nausea and headaches

Several of these can work against your sex life. Anxiety is a known cause of ED, and poor sleep leaves you tired [6]. The FDA also warns that pure or highly concentrated caffeine powders can be dangerous, and that some medical conditions and medicines can make you more sensitive to caffeine [5].

**If you take a prescribed medicine,** ask your doctor or pharmacist whether caffeine is a problem with it. Do not stop or change a prescribed medicine on your own.

## Things that do matter for ED

The NIDDK lists the main causes of ED, and caffeine is not one of them [6]. Things that are:

- Diabetes, heart disease, high blood pressure and obesity
- Low testosterone and other hormone problems
- Smoking, drinking too much alcohol and not getting enough exercise
- Anxiety, depression and stress
- Some medicines, including some blood pressure medicines and antidepressants

Working on the lifestyle items above may help your overall health and your erections.

## When to see a doctor

See a doctor if:

- You have trouble getting or keeping an erection most of the time
- ED started suddenly or is getting worse
- You also have diabetes, high blood pressure, heart disease or chest pain
- You have a racing heart, chest pain or feel faint after caffeine

ED can be an early sign of other health problems, so it is worth checking even if it seems minor. If you take a stimulant medicine for ADHD, see [Adderall and erectile dysfunction](https://tryinvigor.com/adderall-and-erectile-dysfunction-is-there-a-connection), and if your ED came on with an illness, see [can being sick cause erectile dysfunction](https://tryinvigor.com/can-being-sick-cause-erectile-dysfunction).

## Getting ED treatment through Invigor

If erection problems are sticking around after the cause above has been looked at, Invigor can help you explore treatment. Start with a free online assessment. A licensed U.S. provider reviews your health history and your medicines and decides whether a treatment such as [sildenafil](https://tryinvigor.com/medications/sildenafil) or [tadalafil](https://tryinvigor.com/medications/tadalafil) is appropriate for you. If it is prescribed, your medication ships from a state-licensed U.S. pharmacy.

## Frequently asked questions

### Does coffee help erectile dysfunction?

Probably not in a way you would notice. One survey linked moderate caffeine with fewer reports of ED [1], but larger long-term studies found no clear effect [2][3].

### Can caffeine cause ED?

There is no good evidence that it does. Men who drank four or more cups of coffee a day had about the same ED risk as men who drank none [2].

### Are energy drinks bad for erections?

They are not a known direct cause, but they can pack a lot of caffeine [5]. Too much caffeine can cause anxiety, poor sleep and a racing heart, which can all get in the way of sex.

### How much caffeine is too much?

The FDA says up to 400 mg a day is not generally associated with negative effects for healthy adults [5]. Some people are more sensitive, including people with certain conditions or on certain medicines.

### Should I drink coffee before sex?

There is no evidence it helps erections. If it makes you jittery or anxious, it may do more harm than good.

## Sources

1. [Role of Caffeine Intake on Erectile Dysfunction in US Men: Results from NHANES 2001-2004](https://doi.org/10.1371/journal.pone.0123547), PLOS ONE, 2015
2. [Coffee Intake and Incidence of Erectile Dysfunction](https://doi.org/10.1093/aje/kwx304), American Journal of Epidemiology, 2018
3. [Association between caffeine intake and erectile dysfunction: a meta-analysis of cohort studies](https://doi.org/10.1186/s41043-024-00645-w), Journal of Health, Population and Nutrition, 2024
4. [Potential genetic association between coffee/caffeine consumption and erectile dysfunction: a Mendelian randomization study and meta-analysis](https://doi.org/10.3389/fendo.2024.1400491), Frontiers in Endocrinology, 2024
5. [Spilling the Beans: How Much Caffeine is Too Much?](https://www.fda.gov/consumers/consumer-updates/spilling-beans-how-much-caffeine-too-much), U.S. Food and Drug Administration, 2024
6. [Symptoms & Causes of Erectile Dysfunction](https://www.niddk.nih.gov/health-information/urologic-diseases/erectile-dysfunction/symptoms-causes), National Institute of Diabetes and Digestive and Kidney Diseases (NIH), 2017

---

This article is for education only. It is not medical advice, and it is not a diagnosis or a prescription. Where a clinician is named as its reviewer, they reviewed it for medical accuracy. Talk to your own clinician before you start, stop or change any treatment.
