What Coffee Does to Your Gut: The SmartPill Study
By Coffee Studies Editorial·Published November 15, 2026·10 min read
Quick answer
Figure
Gut bacteria in frequent coffee drinkers, as a multiple of rare drinkers
Values in times the median abundance in rare drinkers
Fifty people swallowed a capsule the size of a large vitamin pill, went about their week, and let it radio back the acidity, pressure and temperature of their gut as it passed through. That is the part of the 2026 University of Copenhagen coffee study that made the headlines, and it deserves them: nobody had put a motility capsule and a stool microbiome next to a careful record of how much coffee each person actually drank. Here is what they measured, what they found, and how far you should let the findings reach. [1] [2]
61
healthy Danish adults, 43 women and 18 men, mean age 39, who logged eight days of weighed food and drink and gave urine and stool daily[1]
50
of them swallowed a SmartPill, a 27 mm wireless capsule that records pH, pressure and temperature as it moves through the gut[1]
344 mL
mean daily coffee in the frequent group, against 18 mL in the rare group; frequent meant coffee on more than three of the eight days[1]
What did the researchers actually do?
They borrowed a study that was never about coffee, which matters for how you read it. The PRIMA trial ran in Copenhagen from April to December 2021 to study how gut physiology shapes the microbiome, and it collected an unusually complete picture of 61 healthy adults over nine days: weighed food diaries every day, a first-morning urine sample most days, a stool sample every day, and two clinic visits with fasting bloods. At the first visit, after a standard breakfast, 50 of the volunteers swallowed the SmartPill. Because the diaries recorded coffee by the millilitre and the urine recorded caffeine and its breakdown products, the team could later go back and ask what habitual coffee drinking, the kind you do without thinking, lined up with. [1]
The capsule is the new instrument here, and the reason you are reading about this study at all. It works out where it is by watching the numbers change: a jump of three pH units marks the exit from the stomach into the small intestine, a drop in temperature marks the exit from the body, and in between it logs pressure spikes, which are the gut wall contracting around it. From that you get transit time through each segment, the pH of each segment, and a count of contractions, in a person going about a normal day rather than lying in a scanner. Nobody has measured your gut that way before. [1]
Coffee intake was scored two ways, and you would have landed in one of two groups. The diaries gave millilitres per day, which ranged from zero to 720 mL. The number of days with any coffee split the group into rare drinkers, who drank it on fewer than three of the eight days, and frequent drinkers, who drank it on more than three. The urine confirmed the diaries, which is how you know the groups are real: paraxanthine, caffeine's main breakdown product, rose with reported intake, and the seven people who logged no coffee still had low but detectable caffeine, which the authors put down to tea. [1]
| Rare drinkers | Frequent drinkers | |
|---|---|---|
| People | 13 | 48 |
| Coffee, mean per day | 18 mL | 344 mL |
| Women | 69 percent | 71 percent |
| Age, mean | 33 | 41 |
| BMI, mean | 22.4 | 24.0 |
| Fasting glucose, mmol/L | 5.0 | 5.2 |
| Energy, fibre, protein, fat, carbohydrate | no difference | no difference |
Two notes on that table before you lean on it. The frequent drinkers were older and heavier on average, though neither difference quite reached statistical significance, and their fasting glucose was higher, though both groups were well inside the normal range. Thirteen people is a small comparison group, and you should carry that number through everything below. [1]
What did coffee drinkers' gut bacteria look like?
Richer, and tilted toward a few specific families, which is probably close to what you would find in your own if you drink coffee most days. Frequent drinkers had more distinct bacterial types in their stool than rare drinkers, a measure the paper calls observed richness. The broader Shannon diversity index leaned the same way without reaching significance, and the total number of bacteria per gram of stool was the same in both groups, although it rose with every caffeine metabolite in urine. The overall community composition did not differ between the groups. In other words, if you drink coffee most days you likely carry the same kind of microbiome as someone who does not, with more species in it, not a different one. [1]
Then the specific bacteria. Three groups were more abundant in frequent drinkers, and the chart shows you how much more, as the multiple of the rare drinkers' median.
Read the caption before you read the bars. The four differences did not survive the correction researchers apply when they test many bacteria at once, which means any one of them could be chance. What keeps them in the paper is the supporting evidence: the more coffee a person drank, the more Lawsonibacter and Eggerthellaceae they carried, and frequent drinkers were three to five times as likely to have each of the three taxa detectable at all. [1]
Lawsonibacter is the one for you to remember, because it is not new. A 2024 analysis of 22,867 people in the US and UK, pooled with 211 further cohorts, found coffee to be the single food most strongly linked to the microbiome, and Lawsonibacter asaccharolyticus the species behind the link: four and a half to eight times more abundant in people drinking more than three cups a day than in never-drinkers, with the pattern holding for decaf, and the bacterium growing on coffee in the lab. Our coffee and the gut microbiome page covers that study. The Copenhagen team found the same genus with a different method in a different country. [4]
Slackia and its Eggerthellaceae cousin are newer to the coffee story. Bacteria in that family break down plant phenolics, including the hydroxybenzoic acids in coffee, which gives the association a plausible mechanism. A 2026 trial from University College Cork, which compared 31 coffee drinkers with 31 non-drinkers and then took the drinkers off coffee for two weeks, found two Eggerthella species more abundant in the drinkers as well. The same study found that some stool chemistry shifted back during the coffee-free fortnight and that bringing coffee back changed the microbiome whether or not the coffee had caffeine in it. [3]
What did the capsule find?
Two things, one firmer than the other. The firm one is acidity, and it is the one you can take home. The small intestine was more acidic in frequent coffee drinkers than in rare drinkers, and across all 50 capsule carriers, the more coffee a person drank, and the more caffeine and paraxanthine they excreted, the lower their small-bowel pH. The stomach showed nothing: no link between coffee or caffeine and stomach pH, which you should know given how often coffee gets blamed for stomach acid. [1]
The softer one is movement, the thing you probably care about most. Caffeine's breakdown products in urine tracked with more frequent contractions in the colon, and caffeine itself with more contractions in the stomach. But the frequent and rare groups did not differ on colon contractions when compared head to head, and nothing about coffee predicted how fast the capsule moved through the colon or the whole gut. The authors read that as coffee stirring the contents rather than pushing them along, and they point to two other findings that fit: frequent drinkers had slightly drier stool and slightly more energy left in it. [1]
| Capsule measure | Linked to coffee or caffeine? | How strong |
|---|---|---|
| Small-intestine pH | yes, lower with more coffee | correlation minus 0.42; lower in frequent drinkers, p = 0.02 |
| Duodenal pH | lower with more urinary caffeine | correlation minus 0.30 |
| Stomach pH | no | |
| Colon contractions | more with more caffeine metabolites | correlations 0.31 to 0.38; no group difference |
| Stomach contractions | more with more urinary caffeine | correlation 0.31 |
| Colon transit time | no | |
| Whole-gut transit time | no |
These are Spearman correlations on 50 people without correction for multiple testing, which the authors chose deliberately because the measures overlap, and which you should read as leads rather than proof. If you are not used to the scale, a correlation of 0.3 to 0.4 is a real but modest relationship. [1]
Why would transit be unchanged if coffee makes you go?
Because this study measured a different thing from the one you notice. The urge you may feel within minutes of a cup is an acute reflex: a 1990 study recorded increased activity in the lower colon within four minutes of drinking coffee, and found it with decaf too. The Copenhagen capsule recorded nine days of habitual patterns in people who were not asked to drink coffee at any particular time. More contractions over the week, no change in how long your food takes to get through, and an acute urge after a cup can all be true of you at once. Our does coffee make you poop page covers the reflex. [5] [1]
The Cork trial adds a small data point from the other direction, and you may recognise it. Its coffee drinkers reported slightly firmer stool than non-drinkers at the start, and their stool scores rose during the two coffee-free weeks. That is self-reported, and it is one trial, but it points the same way as the drier stool in Copenhagen. [3]
How much should you make of it?
Less than the headlines did, and more than nothing, so hold both in your head. The senior author, Henrik Munch Roager, told the university's press office there are "good reasons to believe that what we are seeing is not merely coincidence," pointing to the older evidence that coffee acts on the digestive system, and in the same breath said the study cannot establish that coffee caused any of it. The team's stated next step is an intervention trial that controls how much coffee people drink and watches gut physiology with and without it. [2]
The limits are the usual ones for a study like this, and the paper lists them for you. It was not designed to test coffee. It did not record what kind of coffee anyone drank, and filter, espresso and instant differ a lot in what reaches the colon. Tea and other caffeine sources muddy the urine markers. The rare group was 13 people. The bacterial differences did not survive correction. And whether a lower small-intestinal pH is good, bad or neither is, in the researchers' own words, not something they can yet say. [1] [2]
What the study does well, and why you are hearing about it, is join three things that are usually measured apart: how much coffee people really drink, checked against their urine; what lives in their stool; and what their gut is physically doing, recorded from the inside. The pattern it found, more kinds of bacteria, a particular coffee-loving genus, a more acidic small intestine and a colon that contracts more when caffeine is around, is consistent with the 2024 and 2026 studies around it. That consistency is the finding you can trust. [1] [4] [3]
What to do
- Drink coffee and wondered what it does inside you? Now you have a measured answer for the habitual part: more bacterial variety, a more acidic small intestine, more colon contractions with caffeine, no change in transit.
- Tempted to drink more for your gut? Do not. The study measured people's existing habits and shows links, not benefits, and the researchers are the first to say so.
- Get the urge after a cup? That is a separate, acute effect, and it happens with decaf too. The capsule study did not measure it.
- Blame coffee for stomach acid? This study found no link between coffee and stomach pH. If coffee bothers your stomach, our coffee on an empty stomach page is the better place to look.
- Want to watch the story? The controlled trial the team describes is the one that would settle cause. Until then, treat every "coffee reshapes your gut" headline as a description of this one observational study.
The short version
Sixty-one healthy Danes logged eight days of coffee, 50 swallowed a sensor capsule, and the frequent drinkers, the group you probably belong to, had more kinds of gut bacteria, more of a coffee-associated genus called Lawsonibacter, and a more acidic small intestine. Caffeine breakdown products tracked with more colon contractions, but transit was no faster and stomach pH was unchanged. The bacterial differences did not survive statistical correction, the study is observational, and the researchers want a controlled trial before anyone, you included, calls it cause.
Frequently asked questions
- What did the coffee SmartPill study find?
- In 61 healthy Danish adults, the 48 who drank coffee on more than three of eight days had more kinds of bacteria in their stool and a lower pH in the small intestine than the 13 who drank it less often. Among the 50 who swallowed the capsule, caffeine breakdown products in urine tracked with more contractions in the colon, but not with faster transit. Three bacterial groups, Lawsonibacter, Slackia and an unclassified member of the Eggerthellaceae, were more abundant in the frequent drinkers, though those differences did not hold up after correction for multiple testing.
- Does coffee make your gut more acidic?
- In this study the small intestine, not the stomach, was more acidic in frequent coffee drinkers, and the more coffee a person drank the lower their small-bowel pH tended to be. Stomach pH showed no link to coffee at all. The researchers say they cannot tell yet whether a lower small-intestinal pH is good, bad or neutral; it does change how digestive enzymes work and which bacteria thrive.
- Does coffee speed up digestion?
- Not in the sense of moving food through faster. Caffeine metabolites were linked to more frequent contractions in the colon and caffeine itself to more stomach contractions, but whole-gut and colonic transit times were no different. The authors read that as more mixing rather than more pushing, which also fits their finding that frequent drinkers had slightly drier stool.
- Why does coffee make you go to the bathroom if transit was not faster?
- The urge most people notice is an acute effect within minutes of a cup, and older studies showed it with both regular and decaf coffee. This study measured habitual patterns over nine days, not the hour after a cup, so it did not test that reflex. The two findings do not contradict each other; they describe different timescales.
- Is this good news for coffee drinkers?
- It is interesting news, not a verdict. The study is observational, small, in healthy adults, and most of the bacterial differences did not survive statistical correction. More kinds of gut bacteria is often read as a marker of a resilient gut, and more colon contractions is plausibly useful for anyone who tends toward constipation, but the researchers themselves say a controlled trial is the next step before anyone draws conclusions.
- Which bacteria does coffee feed?
- The one that keeps turning up is Lawsonibacter asaccharolyticus. A 2024 analysis of 22,867 people found it four to eight times more abundant in heavy coffee drinkers than in never-drinkers and showed it grows on coffee in the lab, with or without caffeine. The Copenhagen study found the same genus more abundant and more often detectable in frequent drinkers, and added Slackia and a relative in the Eggerthellaceae family, bacteria known to break down plant phenolics like the ones in coffee.
References
Every factual claim in this article is drawn from the sources below. See the source library for how we grade evidence.
- [1]Habitual coffee consumption is linked to differences in gut microbiota and gut physiologyGut Microbiology (Elsevier), volume 3, article 100018 · 2026 · Observational study · Tier 2 · Moderate
- [2]Coffee appears to change how your gut functions (press release, 10 November 2026)University of Copenhagen, via Ritzau · 2026 · Reference work · Tier 3 · Contextual
- [3]Habitual coffee intake shapes the gut microbiome and modifies host physiology and cognitionNature Communications · 2026 · Controlled trial · Tier 2 · Moderate
- [4]Coffee consumption is associated with intestinal Lawsonibacter asaccharolyticus abundance and prevalence across multiple cohortsNature Microbiology · 2024 · Observational study · Tier 2 · Moderate
- [5]Effect of coffee on distal colon functionGut · 1990 · Observational study · Tier 2 · Moderate
Related reading
- Caffeine & HealthCoffee and Gout: Does Caffeine Affect Uric Acid?→
- Caffeine & HealthDoes Coffee Cause Bloating? Gut Effects Explained→
- Caffeine & HealthCaffeine Headache: Why Coffee Both Causes and Cures Them→
- Caffeine & HealthCaffeine Overdose: Symptoms, Amounts and What to Do→
- Caffeine & HealthCoffee Addiction: Are You Actually Addicted?→
- Caffeine & HealthCoffee and Iron Absorption: How Much Does It Block?→