A new study published in Nature Communications reveals that both caffeinated and decaffeinated coffee can alter gut microbiota and influence brain function through the gut-brain axis. The research, conducted by APC Microbiome Ireland at University College Cork and sponsored by the Institute for Scientific Information on Coffee (ISIC), found that coffee consumption is associated with measurable changes in gut bacteria and metabolites, which in turn may affect stress, depression, impulsivity, learning, and attention.
What Happened in the Study
The study involved 62 participants: 31 regular coffee drinkers (defined as consuming 3–5 cups per day, a moderate amount according to the European Food Safety Authority) and 31 non-coffee drinkers. Participants completed psychological assessments and maintained records of caffeine intake and diet. Stool and urine samples were collected to analyze gut microbes and metabolites.
Participants first stopped drinking coffee for two weeks. During this period, researchers observed significant shifts in the gut metabolite profiles of coffee drinkers compared to non-drinkers. After the coffee withdrawal, participants were reintroduced to coffee—half received decaffeinated coffee, and half received caffeinated coffee—without knowing which version they were consuming.
After reintroduction, all participants reported lower levels of perceived stress, depression, and impulsivity. Notably, only those drinking decaffeinated coffee showed improved learning and memory performance. Meanwhile, caffeinated coffee was linked to reduced anxiety and enhanced attention and vigilance.
Key Findings and Biological Mechanisms
- Coffee consumption was associated with increased abundance of specific gut bacteria, including Eggertella sp. and Cryptobacterium curtum. These microbes are involved in acid secretion and bile acid metabolism, which may help maintain a healthy gut environment.
- Firmicutes bacteria—previously linked to positive emotional states in females—were found in higher levels among coffee drinkers.
- Metabolites produced by gut microbes, such as short-chain fatty acids, showed measurable changes in coffee drinkers, suggesting active microbial metabolism in response to coffee components.
- Decaf coffee was uniquely associated with better cognitive performance, particularly in learning and memory, suggesting the role of non-caffeine compounds like polyphenols.
- Caffeinated coffee was linked to reduced anxiety and improved attention, consistent with known effects of caffeine on central nervous system activity.
How the Gut-Brain Axis Works
The gut-brain axis is a bidirectional communication system that links the digestive system with the central nervous system. Signals travel between the gut and brain via nerves, hormones, immune activity, and microbial metabolites. Gut microbes produce compounds that can influence brain function through the bloodstream or via neural pathways.
For example, certain bacterial metabolites—such as butyrate—can cross the blood-brain barrier and influence neuroinflammation and mood regulation. The study suggests that coffee may act as a dietary modulator of this axis, altering microbial composition and the resulting metabolite profile.
While coffee contains over 1,000 chemical compounds, the study highlights that both caffeine and non-caffeine components—such as polyphenols—may play distinct roles in shaping gut health and cognitive function.
Why This Matters for Public Health
As public interest in gut health grows, understanding how everyday foods like coffee influence mental and emotional well-being becomes increasingly relevant. This study adds to evidence that coffee should not be viewed solely as a source of caffeine.
For individuals concerned about stress, anxiety, or cognitive performance, the findings suggest that coffee may offer benefits beyond alertness. For example:
- Decaf coffee may support memory and learning, especially for those with cognitive concerns.
- Caffeinated coffee may help manage anxiety and improve focus, particularly in high-stress environments.
- Both forms may contribute to a healthier gut microbiome, which has been linked to long-term mental health outcomes.
These insights could inform dietary recommendations for mental health and support the growing field of microbiome-based interventions.
Limitations and Open Questions
The study has several important limitations:
- It involved only 62 participants, a relatively small sample size, which limits generalizability to broader populations.
- The study did not establish a causal relationship between coffee consumption and observed mental or cognitive changes—only correlations were found.
- Participants were not randomly assigned to coffee types, and self-reported data on intake may introduce bias.
- Long-term effects of coffee on gut microbiota and brain function remain unknown.
Additionally, the study does not rule out that other dietary or lifestyle factors—such as overall diet, physical activity, or sleep—may also influence the gut-brain axis.
What to Watch Next
Future research should explore:
- Longitudinal studies to assess how sustained coffee consumption affects gut microbiome stability and mental health over time.
- Randomized controlled trials to determine whether specific coffee compounds—like polyphenols—can independently improve cognitive function or reduce anxiety.
- How individual differences in microbiome composition affect responses to coffee, potentially leading to personalized dietary recommendations.
As the science of the gut-brain axis advances, coffee may emerge as a key dietary factor in mental wellness. For now, the findings offer a more nuanced view of coffee’s role in human health—one that goes beyond caffeine.
Original source: Scientists just discovered what coffee really does to your gut and brain
For more on how gut health influences brain function, see Glucosamine Linked to Faster Alzheimer’s Progression in New Study and Lead in Ancient Ink Could Unlock Lost Roman Texts.

