The foods that do the most for your gut microbiome are high-fiber plants and fermented foods. Fruits, vegetables, legumes, whole grains, nuts, and fermented options like yogurt, kimchi, and kefir all feed or introduce beneficial bacteria. People who eat 30 or more different plant foods per week have measurably more diverse gut microbes than those who eat fewer than 10.
Why Variety Matters More Than Any Single Food
Your gut bacteria are diverse, and different species thrive on different compounds. A large analysis from the American Gut Project found that the number of distinct plant foods you eat each week is one of the strongest predictors of microbial diversity. Participants eating 30 or more types of plants per week had not only more varied gut microbes but also a richer mix of metabolic compounds in their systems compared to those eating fewer than 10. The number 30 sounds high, but it includes fruits, vegetables, legumes, whole grains, nuts, seeds, herbs, and spices. A handful of walnuts, a sprinkle of cumin, and a side of broccoli each count as separate plants.
The practical takeaway: rather than fixating on one “superfood,” rotate what you eat. Swap your usual apple for a pear, alternate between lentils and chickpeas, try a different leafy green each week. This constant rotation exposes your gut bacteria to a wider range of fibers and plant compounds, giving more species the fuel they need to flourish.
Fiber-Rich Foods That Feed Good Bacteria
Most of the benefit from plant foods comes from fibers your own body can’t digest. These fibers pass through to your large intestine, where bacteria ferment them into short-chain fatty acids, particularly one called butyrate. Butyrate is the primary energy source for the cells lining your colon and plays a key role in reducing inflammation throughout the body.
The best sources of fermentable fiber include:
- Fruits: apples, pears, bananas, kiwi, raspberries, apricots
- Vegetables: artichokes, asparagus, broccoli, carrots, garlic, onions, leafy greens, turnip greens
- Legumes: chickpeas, lentils, beans, green peas
- Whole grains: oats, barley, whole wheat
Legumes are particularly potent. They contain 4 to 10 grams of resistant starch per 100 grams, the highest of any food category. Resistant starch acts like fiber: it resists digestion in the small intestine and becomes food for bacteria in the colon. Whole grains like barley and oats provide 3 to 7 grams per 100 grams, while potatoes and yams contribute 2 to 5 grams.
The Cooking and Cooling Trick
Here’s something useful: cooking and then cooling starchy foods increases their resistant starch content. When potatoes, rice, or pasta cool down after cooking, some of their starch crystallizes into a form that resists digestion. This means cold potato salad, leftover rice added to a stir-fry the next day, or chilled pasta salad all deliver more fuel to your gut bacteria than the same foods eaten hot off the stove. Green bananas and plantains are also rich in resistant starch, especially when eaten before they fully ripen.
Fermented Foods Lower Inflammation
Fermented foods introduce live microorganisms into your gut and have one of the most well-documented effects on microbial diversity. A Stanford University study found that people who increased their intake of fermented foods over 10 weeks showed greater overall microbial diversity, with stronger effects from larger servings. Just as notable, four types of immune cells showed less activation in the fermented-food group, and levels of 19 inflammatory proteins in their blood decreased. One of those proteins, interleukin 6, is linked to rheumatoid arthritis, Type 2 diabetes, and chronic stress.
The fermented foods used in the study included yogurt, kefir, fermented cottage cheese, kimchi, other fermented vegetables, vegetable brine drinks, and kombucha. The key is choosing products that contain live cultures. Many commercially pickled foods are made with vinegar and pasteurized, which kills the beneficial organisms. Look for labels that say “live and active cultures” or find products in the refrigerated section.
Polyphenol-Rich Foods Act as Prebiotics
Polyphenols are compounds found in colorful and bitter plant foods that do double duty in your gut. They encourage the growth of beneficial bacterial families while suppressing harmful species. Berries are especially well studied: their polyphenols boost populations of several beneficial bacteria, including strains associated with reduced inflammation and stronger gut barrier function, while decreasing potentially harmful species.
Other strong sources include cocoa and dark chocolate, which are among the richest food sources of a subclass of polyphenols called flavanols. Red grapes and red wine promote the growth of several beneficial bacterial groups. Nuts contribute too, with walnuts and chestnuts providing one type of polyphenol, while pistachios, almonds, hazelnuts, and pecans are rich in another. Even tea, coffee, and olive oil add meaningful amounts of these compounds.
What makes polyphenols interesting is that only about 5 to 10 percent are absorbed in your small intestine. The rest travel to your colon, where gut bacteria break them down. In the process, the bacteria produce smaller compounds your body can absorb, creating a beneficial cycle: you feed the bacteria polyphenols, and they convert those polyphenols into forms that reduce inflammation and support your health.
Sourdough and Other Whole Grain Breads
Not all bread is equal when it comes to your microbiome. Sourdough bread, in particular, has been shown to increase beneficial bacterial families that specialize in fermenting complex carbohydrates into short-chain fatty acids. The sourdough fermentation process increases resistant starch content and creates a more complex mix of carbohydrates that gut bacteria can access. Whole grain breads and pasta generally contain 2 to 6 grams of resistant starch per 100 grams, making them a reasonable daily source of microbiome fuel, especially when chosen over refined white flour products.
How Quickly Your Microbiome Responds
One encouraging finding: dietary changes alter your gut microbiome fast. A study published in Nature found that detectable shifts in gut microbial communities appeared just one day after new foods reached the large intestine. Participants eating different experimental diets for five consecutive days showed clear, diet-specific changes in their bacterial populations. This means you don’t need months of perfect eating to start seeing results. Your gut bacteria begin responding to what you feed them almost immediately.
That said, building a resilient, diverse microbiome is a long-term project. The rapid shifts observed in short studies also mean your microbiome can swing back just as quickly if you return to a low-fiber, low-variety diet.
Foods That Harm Your Microbiome
Ultra-processed foods are consistently associated with reduced microbial diversity and increased inflammation. The damage comes from multiple directions. These foods are typically low in fiber, starving beneficial bacteria of their primary fuel source. But they also contain synthetic additives that actively disrupt the gut environment.
Emulsifiers are among the worst offenders. These are ingredients added to processed foods to improve texture and shelf life, and they include compounds listed on labels as carboxymethylcellulose, polysorbate 80, carrageenan, and various gums. These emulsifiers reduce populations of beneficial anti-inflammatory bacteria while promoting the growth of opportunistic, inflammation-driving species. They also damage the mucus layer that protects your intestinal wall, increasing gut permeability, sometimes called “leaky gut.”
Artificial sweeteners like sucralose and aspartame, even at low concentrations, can increase the permeability of the intestinal barrier by reducing proteins that hold gut lining cells together. High-fat diets without adequate fiber shift bacterial populations toward pro-inflammatory species and increase inflammatory signaling molecules. The common thread is that these foods either starve the bacteria you want or actively feed the ones you don’t.
Putting It Into Practice
The simplest framework: eat a wide variety of whole plant foods and add fermented foods regularly. Count your weekly plant variety and aim to push it higher over time. Stock your kitchen with legumes, which are cheap, shelf-stable, and among the most potent microbiome foods available. Eat berries, nuts, and dark chocolate for their polyphenol content. Make extra rice or potatoes and refrigerate them for the next day. Replace some ultra-processed snacks with whole food alternatives, even imperfectly.
Your gut bacteria respond to what you eat within a day. Every meal is a chance to shift the balance.

