Hard Flaccid Research
Menu
Check my symptoms Struggling? Support and crisis lines

Does Caffeine Cause ED? Coffee, Energy Drinks and Erections

In short

  • Caffeine doesn't appear to cause erectile dysfunction.
  • A large US study found that men who had moderate amounts of caffeine, about the amount in two or three cups of coffee a day, were less likely to report ED than men who had very little.
  • But large amounts, energy drinks, late-day caffeine that disturbs sleep, and caffeine that triggers anxiety can all get in the way of erections and pelvic floor relaxation in some men.

Caffeine doesn't appear to cause erectile dysfunction (ED), the ongoing trouble getting or keeping an erection firm enough for sex. In fact, a large US study found that men who had moderate amounts of caffeine, about as much as in two or three cups of coffee a day, were less likely to report ED than men who had almost none.

That doesn't mean more caffeine is always better. Large amounts, energy drinks, and caffeine late in the day can raise heart rate and anxiety, disturb sleep and irritate the bladder, which may get in the way of erections and pelvic floor relaxation in some men. This page explains what the research shows, when caffeine might help or hurt, and how to find a sensible amount.

By the numbers: of the 6,026 men who shared their experiences with hard flaccid syndrome, 2,661 described their symptoms, and 926 of them described weaker or lost erections.

Cover reading 'Coffee, energy drinks and erections: Does Caffeine Cause ED?'. A simple drawing of a café. A young man sits at a small round table by a window holding a cup of coffee, looking relaxed, with a plant and a pastry on the table.
Moderate coffee isn't linked to erection problems. Lots of caffeine, late in the day, can disturb sleep and raise anxiety. Illustration: Hard Flaccid Research, hardflaccidresearch.com.

Key facts

  • A large US study found that men with moderate caffeine intake were less likely to report ED than men who had very little.
  • The link was seen in overweight and obese men and in men with high blood pressure, but not in men with diabetes.
  • The study shows a link, not proof that caffeine prevents ED.
  • Very large amounts of caffeine, and energy drinks, can raise heart rate and anxiety.
  • Caffeine late in the day can disturb sleep, and poor sleep affects erections and testosterone.
  • Caffeine can irritate the bladder and make urinary symptoms worse in some men.
  • For most healthy men, moderate coffee or tea is fine.

What does the research show?

The main study used data from a national US health survey of several thousand men. Men reported what they ate and drank over a day, and answered a question about erections.

  • Men whose caffeine intake was moderate, roughly the amount in two to three cups of coffee a day, were less likely to report ED than men with the lowest intake.
  • The same pattern was seen in overweight and obese men and in men with high blood pressure.
  • It wasn't seen in men with diabetes, a strong risk factor for ED.

The study took a snapshot in time, so it can't prove that caffeine prevents ED. Coffee drinkers may differ from non-drinkers in other ways. But it's reassuring: moderate caffeine isn't linked to more erection problems.

Related: Does Cialis Help Hard Flaccid? 76% of Men Said Yes »

How could caffeine affect erections?

Possible benefits

Researchers have suggested caffeine might relax the smooth muscle in the arteries and erectile tissue of the penis, helping blood flow. This isn't proven in people.

Possible downsides

  • Anxiety and jitters. In large amounts, caffeine switches on the stress response, which works against erections. Men prone to anxiety may feel this more.
  • Sleep. Caffeine stays in the body for hours. Late-day caffeine can cut sleep quality, and poor sleep lowers energy, mood and testosterone.
  • The bladder. Caffeine can irritate the bladder and make you need to pee more often, which can add to urinary symptoms and pelvic tension in some men.
  • Energy drinks. These often combine large amounts of caffeine with sugar and other stimulants, and are easy to overdo.
A diagram titled 'Caffeine and erections: what matters' with four boxes: moderate coffee, which a large study linked to lower odds of ED; large amounts and energy drinks, which can raise heart rate and anxiety; caffeine late in the day, which can disturb sleep; and the bladder and pelvic floor, where caffeine can irritate the bladder and add to pelvic tension in some men.
How much caffeine, what kind and when you have it matter more than caffeine itself. Simplified. Illustration: Hard Flaccid Research, hardflaccidresearch.com. Tap to see it full size. About this illustration

How much caffeine is sensible?

For most healthy adults, moderate amounts of coffee or tea through the morning are fine. A cup of brewed coffee has much more caffeine than a cup of tea, and energy drinks and pre-workout supplements can contain a lot. Signs you may be having too much include jitters, a racing heart, anxiety, trouble sleeping and frequent urination. If you notice these, cut back and avoid caffeine after early afternoon.

If you have heart rhythm problems, high blood pressure, anxiety or bladder symptoms, ask your doctor what's right for you.

Related: Is Hard Flaccid Psychological? 84% of Men Say No »

What helps erections more than caffeine?

  • Regular exercise, which improves blood flow and mood.
  • Good sleep.
  • Not smoking or vaping.
  • Limiting alcohol.
  • A healthy weight and a balanced diet.
  • Managing stress and anxiety.
  • Seeing a doctor to check for causes such as diabetes, high blood pressure or low testosterone.

Where is caffeine found?

Caffeine isn't only in coffee. Common sources include:

  • Brewed coffee and espresso drinks, which are usually the biggest source.
  • Black and green tea, which have less per cup than coffee.
  • Cola and other soft drinks.
  • Energy drinks and energy shots, which can contain a lot.
  • Pre-workout powders and some weight-loss supplements.
  • Dark chocolate, in smaller amounts.
  • Some pain relievers and cold medicines.

Checking labels helps you see how much you're really having, especially if you use energy drinks or supplements.

Should I cut back on caffeine?

Consider cutting back if you notice:

  • Jitters, a racing heart or anxiety after caffeine.
  • Trouble falling asleep, or waking unrefreshed.
  • Needing to pee often or urgently.
  • Headaches or irritability when you miss your usual amount, a sign of dependence.

If you decide to cut back, do it gradually over a week or two, to avoid withdrawal headaches. Swap some cups for decaf or herbal tea, and keep caffeine to the morning.

Caffeine and hard flaccid syndrome

Hard flaccid syndrome is a firm, shrunken penis at rest, often with numbness, weaker erections and pelvic pain. There's no evidence that caffeine causes hard flaccid. But doctors think stress and a tense pelvic floor may help keep hard flaccid going, and in some men large amounts of caffeine add to anxiety, poor sleep and bladder irritation.

Of the 2,661 men who described their symptoms, 35% described weaker or lost erections (926 men) and 13% described urinary problems (337 men). In an April 2023 poll, 76% said they had anxiety before hard flaccid (94 of 123 men).

Our members' guide, Weak Erections With Hard Flaccid: The Gentle Way Back to Sex, covers daily habits that support erections.

What does the research not tell us?

The main study asked about caffeine over a single day and erections with a single question, at one point in time. It can't show that caffeine improves erections, and it didn't look at energy drinks separately. Men who drink coffee may also differ in other ways, such as activity levels or overall health. Until there are better studies, the sensible approach is moderation: enjoy coffee or tea if you like it, and avoid amounts that make you jittery or keep you awake.

When should I see a doctor?

See a primary care provider or a urologist if erection problems last more than a few weeks, come with other symptoms, or worry you. ED can be an early sign of heart disease, diabetes or high blood pressure.

Get urgent care straight away (call 911 or go to the emergency room) if you have:

  • Chest pain, pressure, a racing or irregular heartbeat, or shortness of breath.
  • An erection that lasts more than four hours, or a painful erection that won't go down.
  • Not being able to pee at all, or a painful, swollen bladder.
  • Sudden, severe pain in the penis, testicles or pelvis.

Frequently asked questions

Does coffee help erections?

A large study linked moderate coffee to lower odds of ED, but it doesn't prove coffee helps. It's fine to enjoy in moderation.

Can energy drinks cause ED?

There's little direct research. They often contain a lot of caffeine and sugar, which can raise anxiety and disturb sleep, both of which affect erections.

Does caffeine affect testosterone?

Research is limited and mixed. Poor sleep, which late caffeine can cause, is known to affect testosterone.

Should I stop caffeine before sex?

Not usually. If caffeine makes you anxious or jittery, having less before sex may help.

Can caffeine make pelvic floor tension worse?

In some men, large amounts may add to anxiety and bladder irritation, which can tighten the pelvic floor. Notice how you feel and adjust.

Is decaf better for erections?

For men sensitive to caffeine, decaf avoids jitters and sleep problems. There's no evidence it's better or worse for erections otherwise.

Does caffeine help with sex drive?

There's no good evidence that caffeine raises sex drive. It may make you feel more alert, but too much can make you anxious.

Is caffeine bad for the prostate?

Caffeine doesn't harm the prostate, but it can make urinary symptoms such as urgency feel worse in some men.

Can caffeine withdrawal affect erections?

Withdrawal can cause headaches, tiredness and irritability for a few days, which may dampen interest in sex. Cutting back gradually helps.

Is tea better than coffee for erections?

There's no good evidence either way. Tea has less caffeine per cup, which may suit men who are sensitive to it.

Takeaway

Caffeine doesn't appear to cause ED, and moderate coffee has been linked to lower odds of erection problems. Large amounts, energy drinks and late-day caffeine can raise anxiety, disturb sleep and irritate the bladder.

Enjoy caffeine in moderation, earlier in the day, and focus on sleep, exercise and stress for erection health. Take our free self-check if you also notice changes in your penis at rest.

This article is for general information and isn't a substitute for advice from your own doctor. Hard Flaccid Research doesn't diagnose or treat. If you have new or worsening symptoms, see a qualified clinician. In an emergency, call 911.

Free tools that can help

The numbers behind this article

Every number in this article comes from what men with hard flaccid syndrome shared between December 2020 and October 2026, counted once per person, or from their polls. These are self-selected reports, not a clinical study. See hard flaccid syndrome statistics, the Hard Flaccid Syndrome Census and how we count.

35% of men who described their symptoms described weaker or lost erections

Share of the 2,661 men who described their symptoms. Each man is counted once.
  • Weaker or lost erections35%926 of 2,661 men, counted from what men wrote, Dec 2020 to Oct 2026
  • Urinary problems13%337 of 2,661 men, counted from what men wrote, Dec 2020 to Oct 2026

These are self-selected reports, not a clinical study.

Source: Hard Flaccid Research, hardflaccidresearch.com

Every number in this article, with its source
In this articleSource
35% of the men who described their symptoms described weaker or lost erections (926 of 2,661)926 of 2,661 men, counted
13% of the men who described their symptoms described urinary problems (337 of 2,661)337 of 2,661 men, counted
6,026 men shared their experiences, and 2,661 of them described their symptoms2,661 of 6,026 men, counted
76% said they had anxiety before hard flaccid (94 of 123 men)94 of 123 men, poll, Apr 2023

Medical sources

What this article says about medical research, guidelines and urgent care comes from these sources.

  1. Lopez DS, Wang R, Tsilidis KK, et al. Role of caffeine intake on erectile dysfunction in US men: results from NHANES 2001-2004. PLoS One. 2015;10(4):e0123547. https://doi.org/10.1371/journal.pone.0123547
  2. Burnett AL, Nehra A, Breau RH, et al. Erectile dysfunction: AUA guideline. J Urol. 2018;200(3):633-641. https://doi.org/10.1016/j.juro.2018.05.004
  3. Dean RC, Lue TF. Physiology of penile erection and pathophysiology of erectile dysfunction. Urol Clin North Am. 2005;32(4):379-395. https://doi.org/10.1016/j.ucl.2005.08.007
  4. Physiology, Erection. In: StatPearls. Treasure Island (FL): StatPearls Publishing. https://www.ncbi.nlm.nih.gov/books/NBK513278/
  5. MedlinePlus. Urination: difficulty with flow. US National Library of Medicine. https://medlineplus.gov/ency/article/003143.htm

How we made this article

We started from the question many men asked. Every number was checked against our data. Our editorial team edited it and Dr. Julian Reyes reviewed it medically. Read our editorial policy.

See more of us on Google

Add Hard Flaccid Research as a preferred source, and Google shows you our pages more often when you search.

Add as a preferred source

Cite and share this article

You're welcome to quote this article. Please name Hard Flaccid Research and link to this page, so others can find the full answer and the data behind it. To cite this page, use its link.

Citation

Hard Flaccid Research. (2026). Does Caffeine Cause ED? Coffee, Energy Drinks and Erections. Written by the Editorial Team, medically reviewed by Dr. Julian Reyes. https://hardflaccidresearch.com/articles/caffeine-erectile-dysfunction

Credit link for your article

Source: <a href="https://hardflaccidresearch.com/articles/caffeine-erectile-dysfunction">Hard Flaccid Research</a>

Wikipedia reference

<ref>{{cite web |url=https://hardflaccidresearch.com/articles/caffeine-erectile-dysfunction |title=Does Caffeine Cause ED? Coffee, Energy Drinks and Erections |website=Hard Flaccid Research |date=2026 |access-date=22 November 2026}}</ref>

How the data was collected: our methodology. Journalists and researchers: key numbers, data and contact.