There are around 40 trillion bacteria in your body, most of which are in your intestines.

Collectively, they are known as your gut microbiota, and they are hugely important for your health. However, certain types of bacteria in your intestines can also contribute to many diseases.

Interestingly, the food that you eat greatly affects the types of bacteria that live inside you. Here are 10 science-based ways to improve your gut bacteria.

There are hundreds of species of bacteria in your intestines. Each species plays a different role in your health and requires different nutrients for growth.

Generally speaking, a diverse microbiota is considered to be a healthy one. This is because the more species of bacteria you have, the greater number of health benefits they may be able to contribute to (1, 2, 3, 4).

A diet consisting of different food types can lead to a diverse microbiota (5, 6, 7).

Unfortunately, the Western diet is not very diverse and is rich in fat and sugar. In fact, it is estimated that 75% of the world's food is produced from only 12 plant and 5 animal species (5).

However, diets in certain rural regions are more diverse and rich in different plant sources.

A few studies have shown that gut microbiota diversity is much greater in people from rural regions of Africa and South America than those from Europe or the US (8, 9).

Bottom Line: Eating a diverse diet rich in whole foods can lead to a diverse microbiota, which is beneficial for your health.

Fruits and vegetables are the best sources of nutrients for a healthy microbiota.

They are high in fiber, which can't be digested by your body. However, fiber can be digested by certain bacteria in your gut, which stimulates their growth.

Beans and legumes also contain very high amounts of fiber.

Some high-fiber foods that are good for your gut bacteria include:

  • Raspberries
  • Artichokes
  • Green peas
  • Broccoli
  • Chickpeas
  • Lentils
  • Beans (kidney, pinto and white)
  • Whole grains

One study found that following a diet high in fruits and vegetables prevented the growth of some disease-causing bacteria (10).

Apples, artichokes, blueberries, almonds and pistachios have all been shown to increase Bifidobacteria in humans (11, 12, 13, 14).

Bifidobacteria are considered beneficial bacteria, as they can help prevent intestinal inflammation and enhance gut health (15).

Bottom Line: Many fruits and vegetables are high in fiber. Fiber promotes the growth of beneficial gut bacteria, including Bifidobacteria.

Fermented foods are foods altered by microbes.

The process of fermenting usually involves bacteria or yeasts converting the sugars in food to organic acids or alcohol. Examples of fermented foods include:

  • Yogurt
  • Kimchi
  • Sauerkraut
  • Kefir
  • Kombucha
  • Tempeh

Many of these foods are rich in lactobacilli, a type of bacteria that can benefit your health.

People who eat a lot of yogurt appear to have more lactobacilli in their intestines. These people also have fewer Enterobacteriaceae, a bacteria associated with inflammation and a number of chronic diseases (16).

Similarly, a number of studies have shown that yogurt consumption can beneficially modify intestinal bacteria and improve symptoms of lactose intolerance in both infants and adults (17, 18, 19).

Certain yogurt products may also reduce the abundance of certain disease-causing bacteria in people with irritable bowel syndrome.

Two studies showed that yogurt also enhanced the function and composition of the microbiota (20).

However, it is important to note that many yogurts, especially flavored yogurts, contain high levels of sugar.

Therefore, the best yogurt to consume is plain, natural yogurt. This kind of yogurt is made only of milk and bacteria mixtures, which are sometimes referred to as "starter cultures."

Furthermore, fermented soybean milk may promote the growth of beneficial bacteria, such as Bifidobacteria and lactobacilli, while decreasing quantities of some other disease-causing bacteria. Kimchi may also benefit the gut flora (21, 22).

Bottom Line: Fermented foods, particularly plain, natural yogurt, can benefit the microbiota by enhancing its function and reducing the abundance of disease-causing bacteria in the intestines.

Artificial sweeteners are widely used as replacements for sugar. However, some studies have shown that they can negatively affect the gut microbiota.

One study in rats showed that aspartame, an artificial sweetener, reduced weight gain, but it also increased blood sugar and impaired insulin response (23).

The rats fed aspartame also had higher Clostridium and Enterobacteriaceae in their intestines, both of which are associated with disease when present in very high numbers.

Another study found similar results in mice and humans. It showed changes in the microbiota made artificial sweeteners have negative effects on blood sugar levels (24).

Bottom Line: Artificial sweeteners may negatively affect blood sugar levels due to their effects on the gut microbiota.

Prebiotics are foods that promote the growth of beneficial microbes in the gut.

They are mainly fiber or complex carbs that can't be digested by human cells. Instead, certain species of bacteria break them down and use them for fuel.

Many fruits, vegetables and whole grains contain prebiotics, but they can also be found on their own.

Resistant starch can also be prebiotic. This type of starch is not absorbed in the small intestine. Rather, it passes into the large intestine where it is broken down by the microbiota.

Many studies have shown that prebiotics can promote the growth of many healthy bacteria, including Bifidobacteria.

Many of these studies were conducted in healthy people, but some studies have shown that prebiotics can be beneficial for those with certain diseases.

For example, certain prebiotics can reduce insulin, triglycerides and cholesterol levels in people who are obese (25, 26, 27, 28, 29, 30, 31).

These results suggest that prebiotics may reduce the risk factors for many diseases associated with obesity, including heart disease and diabetes.

Bottom Line: Prebiotics promote the growth of beneficial bacteria, especially Bifidobacteria. This may help reduce symptoms of metabolic syndrome in obese people.

A baby's microbiota begins to properly develop at birth. However, some recent studies suggest that babies may be exposed to some bacteria before birth (32).

During the first two years of life, an infant's microbiota is continuously developing and rich in beneficial Bifidobacteria, which can digest the sugars in breast milk (33).

Many studies have shown that infants who are formula fed have an altered microbiota that has fewer Bifidobacteria than infants who are breastfed (33, 34, 35).

Breastfeeding is also associated with lower rates of allergies, obesity and other diseases that may be due to differences in the gut microbiota (36).

Bottom Line: Breastfeeding helps an infant develop a healthy microbiota, which may help protect against certain diseases in later life.

Whole grains contain lots of fiber and non-digestible carbs, such as beta-glucan.

These carbs are not absorbed in the small intestine and instead make their way to the large intestine.

In the large intestine, they are broken down by the microbiota and promote the growth of certain beneficial bacteria.

Whole grains can promote the growth of Bifidobacteria, lactobacilli and Bacteroidetes in humans (37, 38, 39, 40, 41).

In these studies, whole grains also increased feelings of fullness and reduced inflammation and heart disease risk factors.

Bottom Line: Whole grains contain non-digestible carbs that can promote the growth of beneficial bacteria within the gut microbiota. These changes to the gut flora may improve certain aspects of metabolic health.

Diets containing animal-based foods promote the growth of different types of intestinal bacteria than plant-based diets do (42, 43).

A number of studies have shown that vegetarian diets may benefit the gut microbiota. This may be due to their higher fiber contents.

One small study found that a vegetarian diet led to reduced levels of disease-causing bacteria in obese people, as well as reduced weight, inflammation and cholesterol levels (44).

Another study found that a vegetarian diet significantly decreased disease-causing bacteria, such as E. coli (45).

However, it is unclear if the benefits of a vegetarian diet on the gut microbiota are simply due to a lack of meat intake. Also, vegetarians tend to lead healthier lifestyles than omnivores.

Bottom Line: Vegetarian and vegan diets may improve the microbiota. However, it is unclear if the positive effects associated with these diets can be attributed to a lack of meat intake.

Polyphenols are plant compounds that have many health benefits, including reductions in blood pressure, inflammation, cholesterol levels and oxidative stress (46).

Polyphenols can't always be digested by human cells. Given that they aren't absorbed efficiently, most make their way to the colon, where they can be digested by gut bacteria (47, 48).

Good sources of polyphenols include:

  • Cocoa and dark chocolate
  • Red wine
  • Grape skins
  • Green tea
  • Almonds
  • Onions
  • Blueberries
  • Broccoli

Polyphenols from cocoa can increase the quantity of Bifidobacteria and lactobacilli in humans, as well as reduce the quantity of Clostridia.

Furthermore, these changes in the microbiota are associated with lower levels of triglycerides and C-reactive protein, a marker of inflammation (49).

The polyphenols in red wine have similar effects (50).

Bottom Line: Polyphenols can't be digested efficiently by human cells, but they are efficiently broken down by the gut microbiota. They may improve health outcomes related to heart disease and inflammation.

Probiotics are live microorganisms, usually bacteria, which exert a specific health benefit when consumed.

Probiotics don't permanently colonize the intestines in most cases. However, they may benefit your health by changing the overall composition of the microbiota and supporting your metabolism (51).

A review of seven studies found that probiotics have little effect on the gut microbiota composition of healthy people. However, there is some evidence to suggest that probiotics may improve the gut microbiota in certain diseases (52).

A review of 63 studies found mixed evidence regarding the efficacy of probiotics in altering the microbiota. However, their strongest effects appeared to be restoring the microbiota to a healthy state after being compromised (53).

Some other studies have also shown that probiotics don't have a big effect on the overall balance of bacteria in the intestines of healthy people.

Nevertheless, some studies have shown that probiotics can improve how certain gut bacteria function, as well as the types of chemicals they produce (54).

Bottom Line: Probiotics do not significantly alter the composition of the microbiota in healthy people. However, in sick people, they may improve microbiota function and help restore the microbiota to good health.

Your gut bacteria are extremely important for many aspects of health.

Many studies have now shown that a disrupted microbiota can lead to numerous chronic diseases.

The best way to maintain a healthy microbiota is to eat a range of fresh, whole foods, mainly from plant sources like fruits, veggies, legumes, beans and whole grains.