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.
Updated 5 min read

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 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, and if your ED came on with an illness, see 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 or tadalafil is appropriate for you. If it is prescribed, your medication ships from a state-licensed U.S. pharmacy.
Frequently asked questions
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].
Sources & references
- Role of Caffeine Intake on Erectile Dysfunction in US Men: Results from NHANES 2001-2004. PLOS ONE. 2015
- Coffee Intake and Incidence of Erectile Dysfunction. American Journal of Epidemiology. 2018
- Association between caffeine intake and erectile dysfunction: a meta-analysis of cohort studies. Journal of Health, Population and Nutrition. 2024
- Potential genetic association between coffee/caffeine consumption and erectile dysfunction: a Mendelian randomization study and meta-analysis. Frontiers in Endocrinology. 2024
- Spilling the Beans: How Much Caffeine is Too Much?. U.S. Food and Drug Administration. 2024
- Symptoms & Causes of Erectile Dysfunction. National Institute of Diabetes and Digestive and Kidney Diseases (NIH). 2017
Contributors
Written by
Editorial team
The team that writes, edits and fact-checks articles on Try Invigor.
View profile
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.


