Why does coffee cause stomach pain?

Coffee can be comfortable one day and cause burning, cramping or an urgent trip to the toilet the next. That variation is not unusual. The cause is rarely one simple property called "acidity". Coffee can stimulate gastric secretion and colon activity, while caffeine dose, serving size, milk, sweeteners, an empty stomach, stress and an existing digestive condition can all change the response.

An occasional mild reaction can often be investigated by changing one variable at a time. Recurrent or severe pain, bleeding, difficulty swallowing, unexplained weight loss or persistent vomiting needs medical assessment, not a different roast.

What the evidence supports #

The current evidence is more nuanced than either "coffee is bad for the stomach" or "coffee helps digestion".

  • Coffee does not appear to slow stomach emptying in most studies. The sensation that it is "sitting in the stomach" is real, but delayed emptying is not the usual explanation found in the research.
  • Coffee stimulates gastric acid secretion. That can contribute to burning or discomfort in a susceptible person, but it does not mean coffee causes reflux disease in everyone.
  • Coffee stimulates colon activity in some people. Decaffeinated coffee can do this too, so caffeine is not the only mechanism.
  • A dark roast is not automatically harsher. One small trial measured less gastric-acid stimulation after a dark-roast blend than after a medium-roast blend, but this did not establish a universal "stomach-friendly" roast.
  • "Low acid" and "slow roasted" are not medical guarantees. Brewing chemistry, sensory acidity and digestive tolerance are related only imperfectly.

The main scientific overview used here is a 2022 narrative review of coffee and the gastrointestinal tract. A narrative review can map the available evidence, but it does not give every finding the same certainty as a large systematic review or a clinical guideline. Several digestive questions remain unsettled.

Match the symptom to a useful test #

What you notice Possible contributors One change to test first
Burning or acid coming up Personal reflux trigger, large serving, coffee on an empty stomach Drink a smaller portion after food
Cramp or urgent bowel movement Stimulation of colon motility Reduce the serving and compare regular with decaf
Bloating or gas Milk, cream, sweetener, plant drink or the accompanying meal Test the same coffee black, then with lactose-free milk
Nausea or heaviness Concentrated coffee, empty stomach, stress or a large volume Dilute it or choose a smaller serving after breakfast
Recurrent or severe pain A digestive condition that needs assessment Stop self-testing and seek medical advice

Two drinks with the same volume need not have the same effect. A large filter coffee can contain more caffeine than a small espresso, while a concentrated espresso may feel harsher to one person. Record the actual drink, dose and context rather than relying only on the brewing-method name.

Does coffee make digestion slower? #

The idea that coffee "blocks digestion" is not supported by the main body of evidence. The gastrointestinal review found that most studies did not show coffee slowing or accelerating gastric emptying. One caffeine study found faster emptying, but an isolated result is not enough to predict an individual's symptoms.

Coffee does affect other digestive functions. It can stimulate gastrin and gastric-acid secretion, and it can trigger contractions in the colon. A feeling of heaviness may therefore reflect irritation, sensitivity, meal composition or functional dyspepsia rather than food remaining mechanically trapped in the stomach.

Functional dyspepsia is a disorder of gut-brain interaction that can cause upper-abdominal pain, burning, early fullness, bloating or nausea without an identified structural cause. Coffee is a trigger for some people, not for all. If symptoms persist, a clinician should evaluate the pattern rather than assuming coffee is the diagnosis.

Why coffee can trigger an urgent bowel movement #

In one small study discussed in the review, 29 per cent of participants reported an urge to defecate after coffee. Among these responders, colon activity increased within minutes. That figure describes the study sample and should not be treated as an exact prevalence for the entire population.

Regular and decaffeinated coffee both stimulated colon activity in experimental work. Caffeine therefore cannot explain the whole response. Neural signalling and digestive hormones such as gastrin have been proposed, but the precise contribution of each coffee compound remains unclear.

An urge without other symptoms can be a normal physiological response. Repeated watery diarrhoea, severe cramps, blood, black stools, fever or weight loss is different and should not be dismissed as "just coffee".

Coffee, reflux and stomach acid #

Coffee is commonly reported as a personal reflux trigger. The US National Institute of Diabetes and Digestive and Kidney Diseases lists coffee and other caffeine sources among drinks that some people with gastro-oesophageal reflux disease find aggravating. Its advice is to identify and reduce the foods or drinks that worsen the individual's symptoms, not to impose the same exclusion list on everyone.

Population research is less clear-cut. Meta-analyses summarised in the gastrointestinal review did not find a consistent association between coffee consumption and reflux disease across populations. These statements can both be true:

  • coffee may not be a major cause of reflux disease at population level;
  • coffee may reliably trigger symptoms in a particular person who already has reflux.

Decaf is worth testing when caffeine seems to be part of the problem, but it does not solve every case. Coffee contains many compounds, and studies have reported effects on the lower oesophageal sphincter with both regular and decaffeinated coffee. Meal size, lying down soon after eating, alcohol, smoking and body weight may also be important in reflux.

Three different meanings of acidity #

Coffee discussions often mix up three concepts:

  1. Sensory acidity is the bright, fruity or citrus-like quality perceived in the cup.
  2. pH measures chemical acidity at a particular point.
  3. Titratable acidity measures how much base is needed to neutralise acids and reflects a different property from pH.

None of these measurements alone predicts whether one person will develop heartburn or pain. A bright Ethiopian coffee may taste very acidic without automatically being the worst digestive choice. A dark, bitter coffee may still feel uncomfortable when it is concentrated or consumed on an empty stomach.

Cold brew is often sold as "less acidic". A laboratory study in Scientific Reports found broadly similar pH values in the hot and cold brews tested, while hot brews had greater titratable acidity. The study measured beverage chemistry, not reflux or stomach pain in patients. Cold brew may taste smoother and suit some people, but it is not a medical treatment and a concentrate can still deliver substantial caffeine.

Does roast level make a difference? #

A small trial in healthy volunteers compared coffees with similar caffeine levels but different roast-related compounds. The dark-roast blend produced less stimulation of gastric-acid secretion than the medium-roast blend. The researchers discussed a possible role for N-methylpyridinium and other compounds altered during roasting.

This finding is interesting, not definitive. It measured acid secretion in a limited sample, not long-term symptom relief in people with reflux or dyspepsia. If a medium-dark roast tastes comfortable, it is reasonable to keep it. There is no sound basis for promising that every dark roast will be gentler.

Marketing terms such as "slow roasted" are also insufficient on their own. A study described in the 2022 review found no symptom advantage for an unusually long roasting process compared with a short process under the tested conditions. Bean, final roast degree, brewing recipe and serving size matter, while the phrase on the packet may not define any consistent process.

Brewing method and serving size #

The method changes concentration, oils, fine particles, caffeine per serving and sensory profile. It does not create one universally safest cup.

Espresso #

Espresso is concentrated but small. One single shot after food may be easier for a person to tolerate than a large mug. Several shots, a very bitter extraction or coffee on an empty stomach may produce a different result. If flavour is sharply sour, dry or harsh, first correct the grind size for the brewing method rather than assuming that sour taste proves unusually low pH.

Filter coffee #

A paper filter produces a relatively clear cup and retains much of the suspended material and coffee oils. The main trap is portion size. A large mug may bring a higher total caffeine dose and a larger volume into the stomach. Test a smaller serving made with a balanced recipe.

French press #

French press coffee contains more oils and fine particles than paper-filtered coffee. Some drinkers enjoy its body, while others find the texture heavy. Coarse, even grounds and decanting after brewing reduce sediment and avoid prolonged contact with the grounds.

Moka pot #

A moka pot makes an intense drink. Do not tamp the basket and remove the pot from the heat before violent spluttering. Overheating creates a harsh, bitter flavour, although bitterness itself is not a diagnosis of digestive irritation.

The coffee may not be the only trigger #

Bloating after a cappuccino or latte can come from lactose, a large amount of milk, high-fat cream, sweeteners, flavoured syrup or a plant drink rather than from coffee alone. Sugar alcohols and some thickeners can cause gas or loose stools in susceptible people.

Compare one variable at a time over several days:

  1. a small black coffee after food;
  2. the same coffee with lactose-free milk;
  3. the same coffee with the usual addition.

Keep coffee dose and preparation stable. If only one addition reproduces the symptom, changing the milk or sweetener is more informative than changing the bean.

A practical tolerance test #

For mild, occasional discomfort without warning signs:

  1. Stop drinking coffee on an empty stomach for one week.
  2. Reduce a large or double serving to one small coffee.
  3. Keep the method constant and compare regular coffee with decaf.
  4. If needed, compare arabica with a robusta-rich blend, since robusta generally contains more caffeine.
  5. Record time, dose, food, milk, stress, sleep and symptoms.
  6. Change only one factor every few days.
  7. Avoid drinking it scalding hot.

The International Agency for Research on Cancer classifies drinking beverages above 65°C as probably carcinogenic to humans because of the temperature, while it found no conclusive evidence that coffee itself causes cancer. Let the drink cool to a comfortable temperature. This is a long-term precaution about repeatedly drinking very hot beverages, not an explanation for every episode of stomach pain.

The guide to daily caffeine intake can help distinguish a coffee-specific reaction from a high total dose across coffee, tea and other products.

When to seek medical care #

According to the NIDDK, indigestion accompanied by certain symptoms requires prompt medical attention. Seek medical advice for persistent symptoms, and urgent assessment for:

  • severe and constant abdominal pain;
  • chest, jaw, neck or arm pain, or shortness of breath;
  • difficulty or pain when swallowing;
  • frequent vomiting or blood in vomit;
  • black, tarry stools or visible blood;
  • unexplained weight loss or loss of appetite;
  • persistent abdominal swelling or yellowing of the skin or eyes.

Coffee may reveal or aggravate a sensitivity, but it should not be used to explain every digestive symptom. For mild discomfort, a smaller serving after food and a structured comparison are reasonable. When pain persists, intensifies or comes with warning signs, the useful next step is clinical assessment.

Sources #