Beata Lewis

We often think of fasting as a weight loss tool, but researchers are also studying how periods without food change the gut microbiome.

This matters for mental health because your gut and brain are deeply connected. Through the gut-brain axis, trillions of microbes in your digestive tract communicate with your nervous system, influence neurotransmitter production, and help regulate mood, focus, and emotional resilience.

When the gut is inflamed or out of balance, your brain can suffer too. Some early research suggests that eating patterns, including time-restricted eating, may influence microbial balance and gut inflammation, though effects on mood in people are not yet established.

Resetting the Gut with Fasting: How Microbiome Health Supports Your Mood

The Gut–Brain Connection: Why It Matters

The gut is more than a digestive organ—it’s a hub of immune activity and neurochemical production. About 90% of the body’s serotonin is made in the gut, by enterochromaffin cells, and gut bacteria help regulate that production. Gut serotonin does not cross into the brain, but the gut and brain communicate through the vagus nerve, immune signals and microbial metabolites. When the gut is in disarray—due to processed food, stress, medications, or infections—some people notice their mood shifts, too.

Functional medicine practitioners, like our team, increasingly look to the gut when addressing mental health symptoms like anxiety, brain fog, and depression. Georgie Ede, in her book Change Your Diet, Change Your Mind, discusses this connection and how diet changes may affect mood and cognition for some people.

How Fasting Supports Gut Health

Fasting gives your digestive system a break, and researchers are studying several ways it may affect the microbiome. Much of this work is in animals, so treat it as early.

Here’s how:

1. Fasting Encourages Microbial Diversity

During fasting, some bacteria temporarily die off or reduce in number—especially those that thrive on frequent sugar and carb intake. Some studies suggest this may shift the balance toward other microbes and, in some people, increase microbial diversity, which is associated with gut health.

Whether these shifts improve mood in people is not yet known.

2. Fasting Triggers Autophagy and Gut Repair

Autophagy is your body’s cellular cleanup system. It’s activated during fasts longer than 12–16 hours and helps remove damaged cells—including those lining the gut.

Researchers are studying whether this affects intestinal permeability (sometimes called “leaky gut”), which has been associated with depression in some studies. “Leaky gut” is not a standard diagnosis, and this link is still being researched.

3. Fasting Reduces Gut Inflammation

In some studies, fasting lowered certain markers of inflammation. Evidence that it corrects bacterial or yeast overgrowth in people is limited.

Much of this evidence comes from animal studies, and human trials are small and early, so it is too soon to say fasting improves mood through the gut.

Fasting and the Vagus Nerve: A Calm Mind Starts in the Gut

The vagus nerve connects your gut to your brain. A healthy gut sends calming signals upward; a disrupted gut sends stress signals instead.

Fasting may enhance vagal tone, the resilience of this nerve system, which is tied to mood regulation, heart rate variability, and emotional flexibility. Slow breathing has the clearest evidence for improving vagal tone; the effect of fasting is less certain.

Subscribe to our newsletter to get updates!

How to Use Fasting to Support the Gut–Brain Axis

If you and your clinician decide time-restricted eating is safe for you, here is a gentle approach:

1. Start with Gentle Time-Restricted Eating

Begin with a 12:12 schedule—12 hours of fasting, 12 hours of eating. Over time, many people move to a 14:10 or 16:8 approach.

This gives the gut time to rest and encourages the migrating motor complex (MMC), a cleansing wave that sweeps the intestines of debris and bacteria.

2. Break the Fast with Gut-Healing Foods

What you eat after fasting matters. Break your fast with simple, whole foods: bone broth, gently cooked vegetables, clean protein, and healthy fats. Avoid processed carbs or sugar, which can inflame the gut lining and feed harmful bacteria.

3. Use Fasting Cycles to Support Microbiome Rebalancing

Fasting beyond a day or two is not a psychiatric treatment, and claims that longer fasts produce microbial “resets” or gut lining repair in people are not established. Any fast longer than 24 hours needs medical supervision.

Anyone with a current or past eating disorder, who is underweight, pregnant or breastfeeding, has diabetes treated with medication, or takes lithium or other psychiatric medication must not fast without medical supervision. Talk with your prescriber before changing how you eat, and never skip medication to fast.

4. Track Mental and Digestive Symptoms

Some people notice changes in bloating, energy or focus with a regular eating schedule, and others feel worse. Keep a log of your mood, digestion, and energy levels, and stop and talk with your clinician if your mood, sleep or eating becomes harder.

Illustrative Example: Eating Patterns, Mood and Digestion

The following is an illustrative composite, not a single patient. Imagine someone with depression, fatigue and near-daily bloating whose antidepressant has brought only partial relief, and whose standard labs show mild insulin resistance.

Alongside her ongoing psychiatric treatment, her clinician might discuss a regular eating window, fewer processed foods and more fermented foods and fiber. Some people in this situation feel better; others don’t, and diet changes don’t replace treatment for depression.

Results vary. Working with the body’s natural rhythms and the gut-brain axis can be one part of a broader treatment plan.

Bottom Line

Your gut and brain are closely connected, and research on fasting and the microbiome is interesting but early. Gentle time-restricted eating may suit some people; it is not a treatment for depression or anxiety, and longer fasts need medical supervision.

At our clinic, we look at nutrition and eating patterns as part of a plan to restore gut and brain health—together.

Ready to Heal Your Gut and Support Your Mind?
Let’s find a nutrition approach that is safe for your biology, lifestyle, and mental health needs.

References:

  1. Kelly, J. R., et al. (2015). Breaking down the barriers: the gut microbiome, intestinal permeability and stress-related psychiatric disorders. Frontiers in Cellular Neuroscience, 9:392. https://doi.org/10.3389/fncel.2015.00392
Disclaimer
The information provided on this blog is for educational and informational purposes only. It is not intended to be a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding a medical condition.