Why Coffee Causes Heartburn

If your morning cup is followed by a burning feeling behind your breastbone, you are not imagining it and you are not unusual. Coffee is one of the most commonly reported heartburn triggers there is. What is less commonly explained is why — and that matters, because the reason determines which fixes actually work and which ones waste your money.

The short answer: it is not one thing. Coffee sets off heartburn through at least four separate mechanisms, which is why switching beans often does nothing.

What heartburn actually is

Heartburn is stomach acid moving somewhere it does not belong.

Between your oesophagus and your stomach sits a ring of muscle called the lower oesophageal sphincter. It opens to let food down and then closes. Your stomach lining is built to sit in acid. Your oesophagus is not. When that ring relaxes at the wrong moment, acid washes upward and you feel it as burning.

So anything that either relaxes that ring or increases the acid available to move makes heartburn more likely. Coffee does both.

The four things in coffee that trigger it

1. Coffee is genuinely acidic

Brewed coffee typically lands around pH 4.8 to 5.1. That is roughly a hundred times more acidic than water, which sits at a neutral 7. The scale is logarithmic, so each whole number is a tenfold difference.

That acidity comes mostly from chlorogenic acids and quinic acid, which develop during roasting. They are also a large part of what makes coffee taste like coffee, which is the central problem with most solutions — strip them out and you change the cup.

2. Caffeine relaxes the valve

Caffeine is a smooth-muscle relaxant. The lower oesophageal sphincter is smooth muscle. For people already prone to reflux, that relaxation is often enough to let acid through.

This is the mechanism most people have heard of, and it is why "just drink decaf" is the standard advice. It is also why that advice disappoints so many people.

3. Coffee tells your stomach to make more acid

Coffee stimulates gastric acid secretion. More acid in the stomach means more acid available to reflux upward if the valve does relax.

Crucially, this effect is not driven by caffeine alone. Other compounds in coffee do it too — which brings us to the decaf problem.

4. How and when you drink it

Mechanism aside, habit matters. Coffee on an empty stomach, large volumes in one sitting, very hot liquid, or lying down shortly afterwards all raise the odds. So does pairing it with the other classic triggers: citrus, chocolate, fatty or fried food.

Why decaf often does not help

This is the single most useful thing to understand, because it explains a lot of frustrated experimentation.

If caffeine were the only culprit, decaf would solve it. For many people it does not. Removing the caffeine leaves the chlorogenic acids, the quinic acid and the compounds that stimulate acid secretion exactly where they were. You have addressed one of four mechanisms.

If you have tried decaf and still get symptoms, that is not a sign you did it wrong. It is a sign your trigger was never mainly the caffeine.

Why dark roast is sometimes gentler

Roasting breaks down chlorogenic acids, so a darker roast is measurably less acidic than a light one. Dark roasts also carry more N-methylpyridinium, a compound formed during roasting that appears to blunt the stomach's acid response.

So switching to dark roast is a real intervention, not a myth. It is just a small one — it moves the pH a little, and it costs you the brightness and fruit that light roasts are prized for. People who love a light Ethiopian do not usually consider this a solution.

The same logic applies to cold brew. Steeping without heat extracts fewer acids, so cold brew often reads as smoother. But the difference is modest, and it only works if you want your coffee cold.

What actually reduces the acid in your cup

There are three honest options.

Change what you drink. Low-acid beans, dark roasts, cold brew. These work, partially, and they ask you to give up the coffee you chose on purpose.

Change your stomach's response. Antacids and acid blockers are effective and are the right answer for diagnosed reflux disease. They are also a medical intervention with a doctor attached, not a daily lifestyle choice for mild discomfort.

Change the cup itself. Adding an alkalizing agent raises the pH of the coffee before it reaches your stomach. Because pH is logarithmic, a modest shift upward is a large change in acid concentration.

This is the approach behind Alkalizing DIRT — a plant-based coffee acid reducer made from alkaline minerals and organic spices. Half a teaspoon stirred into the coffee you already drink. No new beans, no new machine, nothing to give up.

When it is worth seeing a doctor

Occasional heartburn after coffee is common. Some things are not, and are worth a professional opinion rather than a product:

  • Symptoms more than twice a week, or most days
  • Difficulty or pain when swallowing
  • Unexplained weight loss
  • Vomiting, or vomit that looks like coffee grounds
  • Chest pain you are not certain is heartburn — especially with breathlessness, sweating, or pain spreading to the arm or jaw

Persistent reflux is a diagnosable condition with real treatments. Nothing on this page is a substitute for that conversation.

The short version

Coffee causes heartburn through four mechanisms, not one: it is acidic, its caffeine relaxes the valve that holds acid down, it prompts your stomach to produce more acid, and the way most of us drink it makes all three worse.

That is why single-variable fixes disappoint. Decaf addresses one mechanism. Dark roast addresses another, partially. Raising the pH of the cup addresses the acidity directly while leaving the coffee you like intact.

More on this in our frequently asked questions.