Researchers at the University of Copenhagen decided not to judge gut function solely by indirect tests. Most studies rely on questionnaires and stool samples, leaving real-time activity inside the stomach, small intestine, and colon out of view. Doctoral researcher Francesca Bucci and her colleagues went further: they recruited 61 healthy adults in Denmark, tracked them for 8–9 days, and convinced 50 volunteers to swallow a wireless SmartPill electronic capsule.
As this 'spy pill' traveled naturally through the digestive tract, it recorded transit speed, temperature, acidity (pH), and gut wall contractions in real time. Meanwhile, participants kept food and drink diaries and provided stool and urine samples. The team tested urine for caffeine metabolites—compounds the body produces when breaking down coffee. That proved sharper than any questionnaire: it's easy to forget yesterday's Americano in a diary, whereas urine shows exactly how much coffee went in. Everyone was then grouped into those who drank coffee more than three times a week and those who drank it less often. The findings appeared in Gut Microbiology.
A More Diverse Microbiome and Why the Morning Effect Happens
Frequent coffee drinkers had a noticeably more diverse microbiome (the community of bacteria and other microbes living in the gut). The higher their caffeine metabolite levels, the more bacterial species showed up in their samples.
It helps to picture the gut as a large workplace. When many different specialists are on staff, tasks stay balanced: some break down fiber, others support immunity, and others take up space to keep aggressive microbes in check. When few species are present, the system becomes fragile. That sounds encouraging, though it's too early to celebrate—high bacterial diversity alone doesn't guarantee a clean bill of gut health.
The sensor's second finding matched something you have probably noticed without electronics. With higher caffeine metabolite levels, SmartPill recorded more frequent contractions in the large intestine. These wave-like muscle movements, called peristalsis, push contents forward. The familiar 'drink coffee, head to the bathroom' routine got direct confirmation from the inside. For a sluggish gut, that nudge can support regularity.
There is a catch, though. This was an observational study, not a randomized trial where one group gets scheduled coffee and another gets a placebo. Coffee lovers often differ from non-drinkers across their whole lifestyle: they eat different breakfasts, move differently, and choose different foods. On a sample of 61 people, it is impossible to separate the effect of the cup itself from surrounding habits.
An Unexpected Shift: A More Acidic Small Intestine
The third result surprised even the researchers. Both regular coffee drinking and higher metabolite levels were linked to a lower pH in the small intestine. The pH scale runs opposite to everyday intuition: the lower the number, the more acidic the environment. Frequent coffee drinkers had a noticeably more acidic small intestine than rare drinkers.
To see why that caught attention, look at what each part of the digestive tract does:
| GI tract section | Usual environment and role | What was recorded in frequent coffee drinkers |
|---|---|---|
| Stomach | Strongly acidic to break down food and block bacteria | Starting point of the capsule's route (main differences appeared lower down) |
| Small intestine | Closer to neutral: enzymes work, nutrients absorb, few bacteria | Lower (more acidic) pH according to SmartPill data |
| Large intestine | Main home of the microbiome and stool formation zone | More frequent wall contractions and a more diverse microbiome |
Normally, the small intestine stays closer to neutral for a good reason: digestive enzymes work smoothly there, nutrients absorb properly, and bacteria don't overgrow. In theory, a more acidic pH could alter enzyme activity, nutrient absorption, and local microbes.
Whether this shift is helpful, harmful, or completely neutral, the Copenhagen team honestly says they don't know yet. Both the size of the effect and its long-term impact still need testing in larger studies. It's far too early to crown coffee a microbiome medicine or hide your French press out of worry for your small intestine. If your stomach handles coffee well, your sleep is fine, and your doctor hasn't limited caffeine, one observational study is no reason to change your routine.

