How to Improve Gut Bacteria: Foods and Habits That Work

The most effective way to improve your gut bacteria is to eat a wide variety of plants, add fermented foods to your diet, and protect the microbes you already have by sleeping well and moving regularly. These aren’t vague lifestyle tips. Each one has measurable effects on the number and variety of bacterial species living in your digestive tract, and variety is the single best indicator of a healthy gut.

Eat 30 Different Plants Per Week

The American Gut Project, one of the largest citizen-science studies of the human microbiome, found that people who ate 30 or more different types of plants per week had significantly greater microbial diversity than those who ate fewer than 10. That number, 30, sounds high, but it counts everything: fruits, vegetables, whole grains, legumes, nuts, seeds, herbs, and spices. A handful of walnuts, a squeeze of lemon, a sprinkle of cumin, and a side of brown rice already gets you to four.

The reason variety matters more than volume is that different plant fibers feed different bacterial species. Asparagus, artichokes, bananas, oats, leeks, and beans are all rich in prebiotics, the specific types of fiber that beneficial bacteria like Bifidobacterium thrive on. When these bacteria break down prebiotic fiber, they produce short-chain fatty acids, particularly butyrate, which fuels the cells lining your colon and helps regulate inflammation throughout the body.

Current dietary guidelines recommend 14 grams of fiber per 1,000 calories you eat. For most adults, that works out to somewhere between 25 and 35 grams a day. Most people fall well short of that. Increasing your intake gradually, rather than all at once, gives your gut bacteria time to adjust and minimizes bloating.

Add Fermented Foods Daily

A 10-week clinical trial at Stanford found that people who ate a diet high in fermented foods saw a measurable increase in overall microbial diversity, with stronger effects from larger servings. The same group also showed decreased levels of 19 inflammatory proteins in their blood, including interleukin 6, a marker linked to rheumatoid arthritis, type 2 diabetes, and chronic stress.

The fermented foods that produced these results were yogurt, kefir, fermented cottage cheese, kimchi, other fermented vegetables, vegetable brine drinks, and kombucha. What they all share is live microbial cultures that introduce new bacterial species into your gut. This is different from foods that are technically fermented but heat-treated afterward (like sourdough bread or most shelf-stable pickles), which no longer contain living microbes.

You don’t need to eat all of these. Even one or two servings a day of any live-culture fermented food can shift the balance. Start with whatever you actually enjoy eating, since consistency matters more than hitting some ideal combination.

Include Polyphenol-Rich Foods

Polyphenols are compounds found in deeply colored fruits, vegetables, coffee, tea, and red wine. They do something unusual in the gut: most of them aren’t absorbed in your small intestine, so they travel intact to your colon, where bacteria feed on them. Research published by the American Diabetes Association found that grape polyphenols dramatically increased levels of a bacterium called Akkermansia muciniphila, a species associated with a healthier gut lining and improved metabolic function. In that study, Akkermansia went from roughly 6% of gut bacteria to nearly 50% in the supplemented group.

You don’t need supplements to get polyphenols. Berries, grapes, cherries, dark chocolate, green tea, coffee, and extra-virgin olive oil are all rich sources. Red wine also qualifies. A small study of 10 men who drank about 9 ounces of red wine daily found increased growth of Bifidobacteria and Bacteroides in their stool samples. That said, alcohol carries its own risks, so this isn’t a reason to start drinking if you don’t already.

What Hurts Your Gut Bacteria

Some of the biggest impacts on your microbiome come not from what you add, but from what you avoid. Artificial sweeteners, particularly sucralose, have been shown in animal research to alter the composition of gut bacteria even at levels considered safe by the FDA. A six-month study in mice found that sucralose shifted 14 bacterial genera, including decreases in beneficial species like Akkermansia and Roseburia. The treated mice also showed increased markers of liver inflammation. While human data is still limited, the pattern is consistent enough that reducing your intake of artificial sweeteners is a reasonable precaution.

Antibiotics are the most dramatic disruptor of gut bacteria. A study of nearly 15,000 adults found that certain antibiotics can alter gut bacterial communities for years. The worst effects showed up in the first year after use, but for some antibiotics, even a single course was linked to reduced bacterial diversity four to eight years later. Common penicillins were much gentler, with effects that faded relatively quickly. None of this means you should refuse antibiotics when you need them, but it does mean the recovery period afterward deserves attention. Loading up on fermented foods and diverse plant fiber during and after a course of antibiotics can help your gut rebuild faster.

Sleep Quality Directly Affects Your Microbiome

Poor sleep doesn’t just make you tired. It changes the composition of your gut bacteria in ways that mirror the patterns seen in metabolic disease. Research in mice found that repeated sleep disruption reduced populations of Lactobacillus and Bifidobacterium, two of the most commonly recognized beneficial genera, while increasing Clostridia. Sleep-disrupted animals also showed altered bile acid metabolism and reduced bile salt hydrolase activity, an enzyme produced by gut bacteria that plays a role in fat digestion and cholesterol regulation.

These shifts appeared within two days of disrupted sleep and persisted even after recovery sleep. For humans, this means that chronic short sleep or irregular sleep schedules can undermine your gut health regardless of how well you eat. Prioritizing consistent sleep timing, not just total hours, helps maintain the circadian rhythms your gut bacteria depend on.

Exercise Boosts Butyrate Production

Regular aerobic exercise increases the abundance of bacteria that produce butyrate, the short-chain fatty acid most closely linked to gut health. An eight-week study using treadmill exercise in mice found that aerobic training significantly increased fecal butyrate levels by expanding the populations of butyrate-producing species. This translated to improved fat metabolism and reduced metabolic toxicity in the liver.

The exercise doesn’t need to be intense. Moderate aerobic activity like brisk walking, cycling, or swimming, done consistently, appears to be enough to shift microbial composition in a favorable direction. The key word is consistently. The benefits come from regular movement over weeks and months, not from occasional intense workouts.

Putting It Together

If you want a practical starting point, focus on three changes: count your weekly plant variety and push toward 30, add one serving of a live-culture fermented food each day, and protect your existing gut bacteria by sleeping on a consistent schedule. These three habits address the most impactful levers, which are diversity of incoming fiber, introduction of new microbial species, and preservation of the communities you already have. Layer in regular movement and cut back on artificial sweeteners, and you’re covering the major factors that shape your gut ecosystem.