Here's a plot twist for your Tuesday: the path to clearer thinking might run through your intestines, and specifically through the trillions of bacteria living there. A study in Gut found that alternate-day fasting improves cognitive function in people with obesity, and the effect seems to work through changes in the gut microbiome that then influence the brain. It's a three-step chain reaction: skip some meals, your gut bacteria change, your brain works better.
Welcome to the increasingly weird world of the gut-brain axis.
The Experiment: Three Diets, One Clear Winner for Brainpower
Researchers recruited 96 participants with obesity and put them on one of three diets: Mediterranean (lots of vegetables, fish, olive oil, generally considered healthy), ketogenic (high fat, very low carb), or alternate-day fasting (exactly what it sounds like, eating normally one day and consuming very little the next).
All three diets helped with metabolic markers. Blood sugar improved. Inflammation went down. And weight loss? Pretty similar across all three groups. If the story ended there, you'd conclude that any reasonable diet works about as well as any other.
But the story didn't end there. When researchers tested cognitive function, the alternate-day fasting group came out on top. These participants showed improvements in memory and thinking tasks that exceeded what the other diet groups experienced.
This is where it gets interesting. If the brain benefits came purely from losing weight or improving metabolic health, all three groups should have improved similarly. They didn't. Something specific to the fasting pattern was boosting cognition beyond what the other diets achieved.
The Bacteria Did It
The researchers dug into what made the fasting group different and landed on the gut microbiome. The pattern of bacterial species in the intestines of fasting participants shifted in ways that correlated with their cognitive improvements.
Correlation is nice, but causation is better. So the team ran a separate experiment with mice. They took gut bacteria from mice that had been fasting and transplanted those bacteria into germ-free mice, animals raised in sterile conditions that have no bacteria of their own.
The recipient mice got smarter. Not metaphorically smarter. Actually smarter on tests of learning and memory. The bacteria themselves were sufficient to improve brain function, even without the fasting.
This is the kind of result that makes you sit up and pay attention. It's not just that fasting happens to correlate with both microbiome changes and cognitive improvements. The microbiome changes appear to be causally doing something to the brain.
How Do Gut Bacteria Talk to Your Brain?
This is the obvious question, and the answer involves a brain cell type you might not have heard of: microglia.
Microglia are the brain's resident immune cells. They patrol around looking for trouble, cleaning up cellular debris, responding to damage, and managing inflammation. When things go well, they're the cleanup crew that keeps the brain running smoothly. When things go poorly, they can become overactivated and contribute to neuroinflammation and cognitive decline.
The fasting-induced microbiome changes appear to influence microglia in beneficial ways. The cells became better at clearing debris while producing less inflammation. It's like the gut bacteria were sending signals that told the brain's maintenance staff to work more efficiently.
This makes sense when you consider that the gut and brain are in constant communication through multiple channels: the vagus nerve, immune system signals, and molecules produced by bacteria that can reach the brain. What happens in your intestines doesn't stay in your intestines.
The Not-So-Fun Part
Let's be honest about what alternate-day fasting actually entails. It means not eating, or eating very little, every other day. For most people, that's not a casual lifestyle modification. It's difficult, uncomfortable, and for many people, unsustainable long-term.
The Mediterranean diet is pretty easy to stick with. Eat more vegetables, some fish, olive oil, fewer processed foods. Most people can manage that without radical changes to their daily experience. Alternate-day fasting, on the other hand, means spending half your days genuinely hungry. That's a hard sell.
The good news is that if the cognitive benefits work through the microbiome, we might eventually be able to achieve similar effects without the fasting itself. Maybe specific probiotics could shift the microbiome in the right direction. Maybe certain prebiotic fibers that feed beneficial bacteria would help. Maybe there are drugs that could mimic the signals the bacteria send.
Understanding the mechanism is what opens these doors. Once you know it's the bacteria doing the work, you can start looking for easier ways to achieve the same bacterial changes.
Why This Matters for Obesity and Cognitive Health
There's a well-documented relationship between obesity and cognitive decline. People with obesity are at higher risk for dementia and tend to perform worse on tests of memory and executive function. The reasons have been unclear, some combination of inflammation, metabolic dysfunction, and vascular problems.
This study suggests another player in the game: the gut microbiome. Maybe part of why obesity affects cognition is that the typical Western diet promotes a microbiome pattern that isn't good for the brain. And maybe interventions that target the microbiome could help address the cognitive problems even if they don't fully solve the obesity.
For the hundreds of millions of people worldwide dealing with obesity-related health issues, this is a genuinely new angle. Your brain fog might not just be in your head. It might start in your gut. And there might be ways to address it that don't require either extreme willpower or weight loss surgery.
The Big Picture
The gut-brain axis keeps revealing new surprises. We already knew gut bacteria affect mood, anxiety, and stress responses. Now we can add cognitive function to the list. The bacteria in your intestines influence what happens in your skull, and they do it through pathways that we're only beginning to understand.
Fasting has been around forever as a practice, whether for religious, cultural, or health reasons. But understanding why it might affect the brain, through specific bacterial changes that then influence brain immune cells, is new. And that understanding is what will eventually let us design better interventions.
For now, if you want the cognitive benefits, the evidence says alternate-day fasting works. Whether that's worth the discomfort is a personal decision. But at least you know what your gut bacteria are voting for.
Reference: Mela V, et al. (2025). Microbiota fasting-related changes ameliorate cognitive decline in obesity and boost ex vivo microglial function through the gut-brain axis. Gut. doi: 10.1136/gutjnl-2024-335254 | PMID: 40335161
Disclaimer: The image accompanying this article is for illustrative purposes only and does not depict actual experimental results, data, or biological mechanisms.