Does Coffee Help Heartburn or Make It Worse?

Coffee does not help heartburn. It actually makes it worse through two separate mechanisms: relaxing the valve that keeps stomach acid out of your esophagus, and increasing the amount of acid your stomach produces. That said, how much worse it makes things depends on the type of coffee, how you brew it, and your individual sensitivity.

How Coffee Triggers Heartburn

At the bottom of your esophagus sits a ring of muscle that acts like a one-way gate, letting food into your stomach but keeping acid from splashing back up. Coffee weakens this gate. In healthy volunteers, drinking a small cup of coffee dropped the resting pressure of that muscle from about 19 mmHg down to 14 mmHg. In people who already had reflux disease, the effect was even more dramatic: pressure fell from roughly 9 mmHg to as low as 5 mmHg, which is barely enough to keep the gate closed at all.

Coffee also ramps up acid production in the stomach. Caffeine and other compounds in coffee, mainly polyphenols, stimulate the release of gastrin, a hormone that tells your stomach to make more hydrochloric acid. More acid in the stomach, combined with a weaker barrier, means a higher chance of that burning sensation creeping up your chest.

These two effects peak about 45 to 60 minutes after drinking coffee, especially when consumed alongside a meal. The combination of food and coffee pushed that valve pressure to its lowest point in studies, hitting around 5 mmHg in reflux patients after 45 minutes.

Coffee’s Acidity Matters Too

Beyond what coffee does inside your body, the acidity of the drink itself plays a role. Coffee with a lower pH (more acidic) caused a larger and longer-lasting drop in that esophageal valve pressure compared to coffee adjusted to a neutral pH. Both versions weakened the valve, but the more acidic coffee was measurably worse. This means the type of coffee you choose can shift your risk.

Why Decaf Isn’t a Complete Fix

Switching to decaf does help, but it doesn’t eliminate the problem. One study found that decaffeinating coffee significantly reduced reflux compared to regular coffee. However, the same study found something surprising: adding pure caffeine to water did not trigger reflux the way coffee did. This means caffeine alone isn’t the full story. Other compounds in coffee, ones that survive the decaffeination process, also contribute to reflux. Decaf is gentler on your esophagus, but it’s not neutral.

Caffeinated ground coffee does produce higher levels of gastrin in the blood than decaf, which translates to more stomach acid. So removing caffeine reduces the acid load, even if it doesn’t eliminate the other irritant compounds.

Cold Brew and Dark Roast Are Easier on the Stomach

If you’re trying to keep coffee in your routine while managing heartburn, brewing method and roast level both make a measurable difference.

Cold brew coffee is consistently less acidic than hot brew. Across light, medium, and dark roasts, cold brew measured 0.2 to 0.34 pH units higher (less acidic) than its hot-brewed equivalent. That might sound small, but pH is a logarithmic scale, so even a fraction of a unit represents a meaningful reduction in acidity.

Darker roasts are also gentler. A dark roast cold brew measured a pH of 5.75, compared to 4.80 for a light roast hot brew. That’s nearly a full pH unit of difference. Dark roasting also generates a compound called N-methylpyridinium, which actually inhibits stomach acid production. This compound doesn’t exist in green coffee beans; it forms only during roasting, with higher levels in darker roasts. So a dark roast cold brew gives you the least acidic cup with the most built-in acid-suppressing activity.

What the Guidelines Actually Say

The American College of Gastroenterology’s clinical guidelines take a cautious position. They note that in lab settings, coffee had little to no effect on esophageal valve pressure, but acknowledge it can still irritate the esophagus and provoke symptoms without necessarily increasing measurable reflux. Their recommendation is to avoid personal “trigger foods,” including coffee, for symptom control.

Data from the large, long-running Nurses’ Health Study found that six servings of coffee per day was associated with increased reflux symptoms compared to zero servings. Replacing just two daily servings of coffee with water was linked to a decrease in symptoms. Interestingly, milk and juice were not associated with increased reflux symptoms, despite some of those beverages being acidic themselves.

Practical Ways to Reduce Coffee-Related Heartburn

You don’t necessarily have to quit coffee entirely. Several adjustments can lower your risk:

  • Choose dark roast over light roast. You get more of the acid-inhibiting compounds formed during roasting, along with lower overall acidity in the cup.
  • Try cold brew. It’s measurably less acidic than hot brew at every roast level.
  • Cut back on volume. The data linking six daily servings to symptoms, and showing benefit from replacing even two servings with water, suggests that quantity matters as much as the coffee itself.
  • Switch to decaf for some cups. It won’t eliminate reflux triggers entirely, but it reduces both gastrin release and overall acid production.
  • Avoid drinking coffee with large meals. The combination of food and coffee drives esophageal valve pressure to its lowest point, peaking around 45 to 60 minutes after the meal.

Individual tolerance varies widely. Some people drink multiple cups a day with no heartburn at all, while others feel it after a single serving. If coffee consistently causes symptoms for you, the physiology is clear: it’s weakening the barrier between your stomach and esophagus while increasing the acid behind it. No brewing trick fully reverses that, but darker roasts, cold brewing, lower volume, and decaf can each take the edge off.