Coffee — сan you drink it with gastritis, heartburn, and irritable bowel syndrome?

Coffee — сan you drink it with gastritis, heartburn, and irritable bowel syndrome?

October 2, 2026

Does coffee harm the stomach? Can you drink it on an empty stomach, with gastritis, acid reflux, or irritable bowel syndrome (IBS)?

For many people, morning coffee is a small and enjoyable ritual. But as soon as stomach discomfort or heartburn appears, coffee is often one of the first things people decide to give up.

Does coffee really cause gastritis? Can you drink it on an empty stomach? Why does coffee make you want to go to the bathroom? Do you need to give up your favorite drink if you have GERD (gastroesophageal reflux disease) or irritable bowel syndrome?

In short — coffee is not considered a cause of gastritis or ulcers and is well tolerated by most people, but it can worsen certain symptoms. It all depends on individual tolerance.

Does Coffee Cause Gastritis?

Coffee itself does not cause gastritis and does not “eat away” at the stomach. Coffee may temporarily increase the production of stomach acid, but this does not mean that it damages the stomach lining.
The main causes of gastritis and peptic ulcer disease include:

  • Helicobacter pylori infection;
  • excessive use of nonsteroidal anti-inflammatory drugs (NSAIDs), such as ibuprofen, diclofenac, and others;
  • much less commonly, autoimmune and other diseases.
    Studies have not shown an association between coffee consumption and an increased risk of gastric or duodenal ulcers. Therefore, having a diagnosis of gastritis does not, by itself, mean that you need to stop drinking coffee.
    Some people experience burning, nausea, pain, or a feeling of heaviness in the upper abdomen after drinking coffee. This may be related not to damage to the stomach, but to increased sensitivity. In this situation, it may help to reduce the portion size, choose a less strong coffee, or drink it after a meal.

Can You Drink Coffee on an Empty Stomach?

If drinking coffee on an empty stomach does not cause any unpleasant symptoms, there is no need to avoid doing so. There is no evidence that coffee damages a healthy stomach or causes ulcers.
However, in people with functional dyspepsia or increased stomach sensitivity, coffee on an empty stomach may sometimes cause:

  • burning or discomfort;
  • nausea;
  • a feeling of heaviness in the upper abdomen;
  • a sensation of “hunger pain.”
    In this case, you do not necessarily need to give up coffee completely. Try drinking it after breakfast and see whether this makes a difference.

Can You Drink Coffee If You Have Heartburn or GERD?

For some people, coffee can indeed worsen heartburn, belching, or the sensation of fluid coming up into the throat, but this does not happen to everyone.
Current research has found only a small increase in the likelihood of GERD among people who consume coffee. Therefore, coffee does not need to be automatically eliminated in people with GERD. It is reasonable to avoid it only if you notice that it actually makes your symptoms worse
You can try a simple experiment:

  1. Stop drinking coffee for 1–2 weeks.
  2. Monitor the frequency of heartburn and belching.
  3. Reintroduce a small amount of coffee.
  4. Compare how you feel.
    If your symptoms do not change, coffee is probably not your main trigger.

If you notice a clear connection, try:

  • reducing the volume and strength of the coffee;
  • avoiding coffee before bedtime;
  • avoiding it together with very fatty or heavy meals;
  • choosing decaffeinated coffee.

Why Does Coffee Make You Want to Go to the Bathroom?

This is a normal physiological response. Coffee can stimulate contractions of the colon, so some people may feel the urge to have a bowel movement within just a few minutes.
This effect can occur not only with regular coffee but also with decaffeinated coffee. This means that the effect is not caused exclusively by caffeine.
For people who tend to experience constipation, this can be a pleasant additional effect. However, coffee is not a treatment for chronic constipation and does not replace adequate fiber intake, fluids, physical activity, or laxative treatment prescribed by a doctor.
If coffee causes an urgent need to have a bowel movement, abdominal cramps, or loose stools, consider reducing the portion or switching to decaffeinated coffee.

Coffee and Irritable Bowel Syndrome

Coffee does not cause irritable bowel syndrome (IBS), but in some people it may worsen:

  • abdominal rumbling;
  • cramps;
  • the urge to have a bowel movement;
  • diarrhea.
    This is particularly noticeable in people with diarrhea-predominant IBS.
    There is no universal ban on coffee. If you tolerate coffee well, there is no reason to eliminate it “just in case.” If you suspect that coffee is contributing to your symptoms, try changing only one factor at a time, such as the amount of coffee you drink. This makes it easier to understand its actual effect.
    The problem may not be the coffee itself. Sometimes unpleasant symptoms are caused by what is added to the coffee.

For example:

  • regular milk may cause bloating and diarrhea in people with lactose intolerance;
  • cream and full-fat milk may worsen heaviness and heartburn;
  • some sweeteners and syrups can cause gas and loose stools.

If you tolerate black coffee well but experience symptoms after drinking a latte or a raf, it may be worth paying attention to the added ingredients.

Is Coffee Good for the Liver?

Perhaps the most convincing potential health benefits associated with coffee relate to the liver.

Observational studies have found that regular coffee consumption is associated with a lower risk of:

  • advanced liver fibrosis and cirrhosis;
  • complications of chronic liver diseases;
  • hepatocellular carcinoma, the most common primary liver cancer.

Similar associations have been observed with ground coffee, instant coffee, and decaffeinated coffee.

It is important not to overinterpret these findings. Coffee is not a medication and does not replace weight loss in people with metabolic liver disease, physical activity, limiting alcohol consumption, or treatment prescribed by a doctor.

There is no need to start drinking coffee specifically “for your liver.” However, if you enjoy coffee and tolerate it well, liver disease is generally not a reason to give it up.

How Much Coffee Can You Drink Per Day?

For most healthy adults, consuming up to 400 mg of caffeine per day is considered safe. Depending on the type of coffee, preparation method, and serving size, this is approximately 2–4 cups of coffee. However, the amount of caffeine can vary considerably even between drinks of the same volume.
During pregnancy, it is recommended to limit total caffeine intake to 200 mg per day.
Keep in mind that tea, chocolate, cola, and some medications also contain caffeine.
You should consider reducing your coffee intake if you experience:

  • palpitations or tremors;
  • anxiety;
  • sleep disturbances;
  • headaches;
  • significant heartburn;
  • abdominal pain or diarrhea.
    The best amount of coffee is the amount you can enjoy without experiencing unpleasant symptoms and without exceeding the recommended safe caffeine intake.

Regular Coffee or Decaf?

Decaffeinated coffee can be a good option if regular coffee causes palpitations, anxiety, insomnia, or worsens heartburn.
Decaf coffee still contains a small amount of caffeine and may also stimulate bowel activity. Therefore, it is better to focus not only on the type of coffee but also on how your body responds to it.

The Bottom Line: Coffee and the Digestive System

Coffee:

  • does not cause gastritis or ulcers;
  • does not need to be avoided on an empty stomach if it does not cause symptoms;
  • may worsen heartburn, but not in everyone;
  • stimulates bowel activity;
  • may sometimes worsen diarrhea and cramps in people with IBS;
  • is associated with a lower risk of several liver diseases;
  • does not need to be eliminated “just in case.”
    If you feel well after drinking coffee, there is no reason to give it up. If coffee regularly causes unpleasant symptoms, try reducing the portion, drinking it after a meal, or choosing a decaffeinated option.
    And if heartburn, abdominal pain, nausea, or changes in bowel habits persist regardless of coffee consumption, it is better to discuss your symptoms with a doctor. In many cases, the goal is not to create a long list of dietary restrictions, but to identify the actual cause of the symptoms while maintaining a varied and comfortable diet.

We use cookies to improve your experience on our website. By continuing to use the site, you agree to our cookie policy.