Gut bacteria eat mainly dietary fiber: the parts of plant foods that your own stomach and small intestine cannot digest. Feed them a varied, fiber-rich diet and they reward you with compounds that protect your gut and support your immune system. Starve them, and some will start feeding on the protective mucus that lines your colon.
Why you are feeding two digestive systems
The bacteria in the large intestine have evolved over thousands of years to extract nutrients from the fiber our primary digestive system leaves behind. You could call them scavengers, but it is more accurate to say that every time we eat, we are feeding two digestive systems:
- Our own, which handles proteins, fats and simple carbohydrates.
- Our gut bacteria, which handle complex carbohydrates, mostly fiber.
If you are new to the idea, start with What Is the Gut Microbiome?
What gut bacteria do with their food
If our gut bacteria did not do anything useful, it might not matter whether we fed them. But they are vital to our health:
- They make short chain fatty acids. Fermenting fiber produces butyrate, acetate and propionate. Butyrate is the main fuel for the cells lining the colon and helps keep the gut barrier strong.
- They screen incoming bacteria. Friendly bacteria that can live in the oxygen-free colon get a chance to join the community, while harmful ones are crowded out.
- They train the immune system. Constant contact with gut bacteria helps the immune system learn what to tolerate and what to attack.
- They influence metabolism and appetite. Some fermentation products act as signals that affect how we process energy and when we feel full.
What happens when gut bacteria go hungry
Over the past century, Western diets have shifted toward more fat, sugar and refined carbohydrates, and much less fiber. That leaves our gut bacteria undernourished.
When fiber runs short, some gut bacteria switch to another source of complex carbohydrates: the mucus layer that lines the colon. That mucus is there to keep bacteria at a safe distance from the gut wall. In a well-known study on mice, a fiber-free diet led gut bacteria to erode this mucus layer, which made the mice more vulnerable to a gut infection (Desai et al., 2016).
The losses may also add up over time. In another mouse study, a low-fiber diet reduced the variety of gut bacteria, and some species did not come back after fiber was restored. The losses grew larger over several generations (Sonnenburg et al., 2016).
Researchers are still working out how closely these findings apply to people. But a weakened gut barrier and less diverse microbiome have both been linked to inflammatory bowel conditions and other health problems. I explore this in The Microbiome and the Rise of Western Diseases.
The best foods to feed your microbiome
The good news is that fiber is what gut bacteria prefer. Different bacteria like different kinds of fiber, so variety matters as much as quantity. Many people aim for 30 different plant foods a week.
| Food group | Examples | What it provides |
|---|---|---|
| Legumes | lentils, chickpeas, black beans, peas | resistant starch and fermentable fiber |
| Whole grains | oats, barley, brown rice, whole wheat | beta-glucan and other fermentable fiber |
| Vegetables | onions, garlic, leeks, asparagus, artichokes | inulin, a well-studied prebiotic fiber |
| Fruit | bananas (slightly green), apples, berries | pectin and resistant starch |
| Nuts and seeds | almonds, flaxseed, chia | fiber and polyphenols |
| Cooked and cooled starches | potatoes, rice or pasta cooked then chilled | resistant starch |
| Fermented foods | yogurt, kefir, sauerkraut, kimchi | live bacteria (see What About Probiotics?) |
Fiber that specifically feeds helpful bacteria is often called prebiotic fiber. Foods that contain live bacteria are probiotic foods. A healthy diet includes both.
How much fiber do you need?
The U.S. Food and Drug Administration sets the Daily Value for dietary fiber at 28 grams a day on a 2,000-calorie diet (FDA). Most Americans eat far less than that.
If you eat much less fiber today, increase it gradually over a few weeks and drink plenty of water. A sudden jump can cause gas and bloating while your gut bacteria adjust.
For more practical steps, see What Can I Do to Improve My Microbiome?
Frequently asked questions
What is the best food for gut bacteria? There is no single best food. A wide variety of plant foods, especially legumes, whole grains, onions, garlic and fruit, feeds the widest range of bacteria.
Do gut bacteria eat sugar? Very little sugar reaches them. Simple sugars are mostly absorbed in the small intestine before they reach the colon.
Is a fiber supplement as good as food? A supplement adds one or two kinds of fiber. Whole foods provide many types of fiber plus other nutrients, so they feed a more diverse community.
Sources
- Desai MS et al. A Dietary Fiber-Deprived Gut Microbiota Degrades the Colonic Mucus Barrier and Enhances Pathogen Susceptibility. Cell, 2016.
- Sonnenburg ED et al. Diet-induced extinctions in the gut microbiota compound over generations. Nature, 2016.
- U.S. Food and Drug Administration. Dietary Fiber, Interactive Nutrition Facts Label.
Originally published September 2015. Last updated December 2026.