Topics » Nutrition Science » What Impact Does the Keto Diet Have on Gut Microbiome & Long Term Health?
T. Colin Campbell Center for Nutrition Studies

Previously in this series, I’ve discussed the origins of the ketogenic diet and the biological role of ketone bodies (Part 1), if ketosis is a normal and natural state (Part 2), ketogenic diets effects on weight loss, (Part 3) whether it is good for controlling insulin resistance and diabetes (Part 4), and whether ketogenic diets can cure cancer (Part 5). Now, let’s examine the impact of the high-fat, low-carbohydrate diet on the gut microbiome and the health implications of long-term ketogenic diets.

First, a short primer on the human gut and microbiome. The term gut means the entire gastrointestinal tract, from mouth to anus. The stomach harbors very few microorganisms under normal circumstances, due to its intense acidity, and the upper small intestine is also hostile due to high concentrations of bile and other digestive juices. The large intestine, however, is a different story. It provides an ideal environment for microorganisms: warm, moist, and full of food.

Our ‘microbial self’ thrives on a diverse array of carbohydrates – fiber, resistant starch and non-starch polysaccharides – found only in plants.

When we speak of the gut flora or microbiome, we’re primarily talking about the genetic material of the microorganisms that inhabit our large intestine, or colon[1]. The community of microorganisms themselves, about 100 trillion of them, is called microbiota and it is comprised of mostly bacteria but also viruses, fungi, and protozoa.[1] Their collective genome is enormous (about 3 million genes versus 23,000 genes in a human being) and it is important to us because they produce thousands of substances that can positively or negatively affect our health depending on what we feed them.

What Impact Does the Keto Diet Have on Gut Microbiome & Long Term Health?

While there is no consensus on the ideal composition of the human gut microbiota, there are particular patterns of dysbiosis—underrepresentation of certain bacterial species, and overrepresentation of others—which are strongly linked with a heightened risk of various diseases. Inflammatory bowel disease, obesity, type 2 diabetes, cardiovascular disease, and cancer are just some of the diseases that have been linked to imbalanced gut microbiota[2].

The overall diversity and specific composition of our gut microbiota are affected by numerous dietary components, including total protein and proportions of protein from animal vs plant sources; total fat and proportion of saturated vs unsaturated fat; fiber; resistant starch; polyphenols; and sugar.

Keto Diet

High-Fat Diets

A high-fat diet has been found to reduce colon bacteria overall[3], while increasing total anaerobic microflora and Bacteroides counts[4]. Bacteroides are normally beneficial organisms, but overgrowth is associated with inflammatory bowel disease, severe antibiotic-resistant infections[5], and colorectal cancer[6].

The ketogenic diet is characterized by being high in fat, very low in carbohydrates, and low to moderately high in protein (depending on whether it is a classical or modified ketogenic diet—see Part 1).

A small study of people suffering from Glucose Transporter 1 Deficiency Syndrome (GLUT1 DS—a cause of epileptic seizures) found that after three months on a ketogenic diet, there was a significant increase in a group of bacteria known to produce hydrogen sulfide—a gas which causes gut inflammation and is linked to the development of inflammatory bowel disease[7].

In a study of people at high risk of metabolic syndrome, switching from a diet high in saturated fat (typical of the ketogenic diet) to a low-fat diet increased the numbers of beneficial Bifidobacterium, and this correlated with reduced fasting glucose and total cholesterol[8]—in other words, a reversal of metabolic syndrome.

A high-fat diet increases intestinal permeability—that is, it causes leaky gut, by turning off the genes that code for proteins that comprise tight junctions, the “seals” between neighboring intestinal cells[9]. Tight junctions are intended to stop unwanted or dangerous gut contents—such as undigested proteins and bacterial toxins—from leaking through the gut wall and into the bloodstream[10]. One of those toxins is endotoxin, a component of the cell walls of gram-negative bacteria. Saturated fat intake, in particular, increases the absorption of endotoxin from the gut into the bloodstream and the resulting endotoxemia triggers inflammation[11], and is associated with reduced glucose tolerance (which can eventually lead to diabetes), weight gain, and oxidative stress[12].

People suffering from major depressive disorder have been found to have higher levels of serum antibodies against endotoxin than non-depressed people, indicating leaky gut and an immune response to endotoxemia could be related to depression[13].

High fat intake also increases the amount of bile secreted by the gallbladder into the small intestine. This increases the relative abundance of bacterial species that use bile as a food source. High counts of these bacteria are associated with increased inflammation[14]. High counts of Bilophila wadsworthia have been linked to increased incidence and severity of colitis[15] and colorectal cancer and colorectal cancer[16], while Alistipes was found to be overrepresented in people suffering from major depressive disorder[17].

Keto Diet

Not All Carbs Are Created Equal

Proponents of ketogenic diets tend to lump all carbohydrate-containing foods together, presenting them as the root cause of the chronic diseases that plague Westernized countries.

However, when it comes to the gut microbiome, all carbohydrates are not created equal. Unrefined or minimally-processed carbohydrate-rich foods, such as whole grains, starchy vegetables, legumes, and fruits, contain non-digestible carbohydrates including fiber, resistant starch, and non-starch polysaccharides—dubbed microbiota accessible carbohydrates (MACs) by researchers.

Unlike simple starches and sugars, these non-digestible carbohydrates are not broken down by human digestive enzymes in the small intestine[18] and don’t serve as a food source for us. Instead, they make it all the way down to the large intestine where our gut microbiota ferment them, producing not only an energy source for themselves but a host of compounds that are beneficial for their hosts—us.

A diet low in MACs reduces total bacterial abundance—one of the major indicators of healthy microbiota—and the richness of their microbiome[19]. As leading gut microbiome researchers, Erica and Justin Sonnenburg put it, eating a low carbohydrate diet equates to “starving our microbial self“[20].

The consequences of this impoverishment in total numbers and diversity of gut bacteria are not yet understood, but it’s worth noting that humans who live a more ‘primitive’ hunter-gatherer lifestyle, such as the Hadza of northern Tanzania, have far greater microbial richness and biodiversity than typical Westerners—a characteristic linked to their high consumption of fibrous plant foods[21], and strongly correlated with their freedom from typical Western diseases including obesity, diabetes, and colorectal cancer.

One of the products of bacterial fermentation of MACs—specifically resistant starches and dietary fiber—is butyrate. Butyrate has an astonishingly diverse suite of benefits, including[22]:

  • Providing the major fuel source to colonocytes (the cells lining the large intestine)
  • Maintaining the integrity of the gut lining (preventing and healing leaky gut)
  • Reducing mucosal inflammation
  • Reducing visceral sensitivity
  • Modulating intestinal motility
  • Preventing and inhibiting colorectal cancer
  • Reducing serum cholesterol
  • Reducing insulin resistance
  • Assisting with weight loss
  • Preventing stroke
  • Increasing brain derived neurotrophic factor (BDNF), which stimulates the growth of new nerve cells and connections between existing ones.

Even ketogenic diets that are high in fiber-rich but low-carbohydrate vegetables cannot hope to achieve the quantity and diversity of MACs needed to cultivate a healthy and diverse gut microbiome. Non-fiber MACs such as resistant starch and non-starch polysaccharides are found most abundantly in whole grains, legumes, and fruits, not vegetables.

The American Gut Project—a massive citizen science project that uses “big data” to help fill in knowledge gaps about the complex links between our diet and lifestyle habits, gut microbiota, and health status—recently reported that the single greatest predictor of microbial diversity is the number of different plant foods eaten per week.[23] Participants who reported eating more than 30 different plant foods had the most diverse microbiota. It’s easy to eat this many different plant foods on a whole food, plant-based diet, but virtually impossible on a ketogenic diet that excludes most fruits, starchy vegetables, whole grains, and legumes.

Whole grain consumption is consistently linked with improved health – including decreased risk of type 2 diabetes, cardiovascular disease, and weight gain[24]–and many of the benefits of whole grain consumption are likely mediated through their effects on gut microbes.

For example, diets rich in whole grain and wheat bran are linked to an increase in the bacteria Bifidobacteria and Lactobacilli, while whole grain barley and resistant starches increase the abundance of butyrate-producing bacteria. People with advanced colorectal cancer were found to have a lower fiber intake, reduced levels of butyrate and other short-chain fatty acids, and lower counts of fiber-loving bacteria than cancer-free controls[25].

Keto Diet

High Protein Diets

While the classic ketogenic diet contains less protein than fat, some variants are relatively heavy on protein—almost invariably animal proteins, since plant proteins come packaged with carbohydrates.

Bile-tolerant anaerobes increase with the consumption of animal-based protein[26], while the beneficial bacteria are depleted by high-protein, low-carbohydrate diets—and consequently, lower butyrate production is observed in people following such diets[27].

Fewer butyrate-producing bacteria are found in the feces of inflammatory bowel disease patients than in healthy control patients[28]. And high animal protein intake has been found to significantly increase the risk of developing this bowel disease[29].

The dysbiotic pattern of increased Bacteroides and diminished butyrate-producing bacteria has also been identified in colorectal cancer patients[30].


High-fat, low-carbohydrate ketogenic diets cause major disruptions to our microbiota, triggering leaky gut and systemic inflammation. Since the study of our microbiota is still in its infancy, the long-term consequences of the dysbiosis induced by ketogenic diets are unknown, but strong links are already evident with many chronic diseases including inflammatory bowel disease and colorectal cancer.

Our microbial self thrives on a diverse array of carbohydrates—fiber, resistant starch, and non-starch polysaccharides—found only in plants. If you want a healthy gut microbiome, and all the benefits that flow from it, the solution is simple: eat more plants.

Learn more about the ketogenic diet from our keto article series:

  1. What Is the Ketogenic Diet?
  2. Is the Ketogenic Diet Natural for Humans?
  3. Does the Ketogenic Diet Really Work for Weight Loss?
  4. Can the Ketogenic Diet Reverse Type 2 Diabetes?
  5. Can the Ketogenic Diet Cure Cancer? What Does the Science Say?


  1. Valdes AM, Walter J, Segal E, Spector TD. Role of the gut microbiota in nutrition and health. BMJ (Clinical research ed). 2018;361:k2179.
  2. Singh, R.K., Chang, H.W., Yan, D., et al. (2017), Influence of diet on the gut microbiome and implications for human health. J Transl Med.;15(1):73.
  3. Fava, F., Gitau, R., Griffin, B.A., Gibson, G.R., et al, (2013), The type and quantity of dietary fat and carbohydrate alter faecal microbiome and short-chain fatty acid excretion in a metabolic syndrome ‘at-risk’ population. Int J Obes (Lond).;37(2):216-23.
  4. Singh, R.K., Chang, H.W., Yan D, et al. (2017). Influence of diet on the gut microbiome and implications for human health. J Transl Med.;15(1):73.
  5. Wexler, H.M. (2007), Bacteroides: the good, the bad, and the nitty-gritty. Clin Microbiol Rev.;20(4):593-621.
  6. Wu, N., Yang, X., Zhang, R., Li, J. et al, (2013), Dysbiosis signature of fecal microbiota in colorectal cancer patients. Microb Ecol.;66(2):462-70.
  7. Tagliabuea, A., Ferraris, C., Uggeri, F., Trentani, C. et al (2017), Short-term impact of a classical ketogenic diet on gut microbiota in GLUT1 Deficiency Syndrome: A 3-month prospective observational study. Clin Nutr ESPEN;17: 33-37.
  8. Fava, F., Gitau, R., Griffin, B.A., Gibson, G.R. et al (2012), The type and quantity of dietary fat and carbohydrate alter faecal microbiome and short-chain fatty acid excretion in a metabolic syndrome ‘at-risk’ population. Int J Obes (Lond).;37(2):216-23.
  9. Cani, P.D., Bibilonim R., Knauf, C., Waget, A. et al (2008), Changes in gut microbiota control metabolic endotoxemia-induced inflammation in high-fat diet-induced obesity and diabetes in mice. Diabetes;57(6):1470-81. doi: 10.2337/db07-1403.
  10. Mani, V., Hollis, J.H. & Gabler, N.K. (2013), Dietary oil composition differentially modulates intestinal endotoxin transport and postprandial endotoxemia. Nutr Metab (Lond).;10(1):6.
  11. Cani et al 2008, ibid
  12. Cani, P.D., Osto, M., Geurts, L. & Everard, A. (2012), Involvement of gut microbiota in the development of low-grade inflammation and type 2 diabetes associated with obesity. Gut Microbes.;3(4):279-88.
  13. Maes, M., Kubera, M. & Leunis, J.C., (2008), The gut-brain barrier in major depression: intestinal mucosal dysfunction with an increased translocation of LPS from gram negative enterobacteria (leaky gut) plays a role in the inflammatory pathophysiology of depression. Neuro Endocrinol Lett;29(1):117-24.
  14. Singh, R.K., Chang, H.W., Yan, D., et al (2017), Influence of diet on the gut microbiome and implications for human health. J Transl Med.;15(1):73.
  15. Dalal, S.R. & Chang, E.B. (2014), The microbial basis of inflammatory bowel diseases. J Clin Invest.;124(10):4190-6.
  16. Yazici, C., Wolf, P.G., Carroll, T.P., Mutlu, E. et al (2015), 511 Bilophila wadsworthia Is More Abundant in the Colonic Microbiome of Colorectal Cancer Cases Compared to Healthy Controls. Gastroenterology;148(4):Suppl 1,S-100,
  17. Jiang, H., Ling, Z., Zhang, Y., Mao, H. et al (2015), Altered fecal microbiota composition in patients with major depressive disorder. Brain, Behavior, and Immunity;48:186-194.
  18. Singh R.K et al 2017, ibid
  19. Sonnenburg, E.D. & Sonnenburg, J.L. (2014), Starving our microbial self: the deleterious consequences of a diet deficient in microbiota-accessible carbohydrates. Cell Metab.;20(5):779-786.
  20. ibid
  21. Schnorr, S,L,, Candela, M., Rampelli, S., Centanni, M. et al (2014), Gut microbiome of the Hadza hunter-gatherers. Nat Commun.;5:3654.
  22. Canani, R.B., Costanzo, M.D., Leone, L., Pedata, M. et al (2011), Potential beneficial effects of butyrate in intestinal and extraintestinal diseases. World J Gastroenterol.;17(12):1519-28.
  23. McDonald, D., Hyde, D.E., Debelius, J.W., Morton, J.T. et al (2018), American Gut: an Open Platform for Citizen Science Microbiome Research. mSystems, 3(3) e00031-18.
  24. Aune, D., Keum, N., Giovannucci, E., et al (2016), Whole grain consumption and risk of cardiovascular disease, cancer, and all cause and cause specific mortality: systematic review and dose-response meta-analysis of prospective studies. BMJ.;353:i2716.
  25. Singh R.K et al 2017, ibid
  26. Singh R.K et al 2017, ibid
  27. Russell, W.R., Gratz, S.W., Duncan, S.H., Holtrop, G. et al (2011), High-protein, reduced-carbohydrate weight-loss diets promote metabolite profiles likely to be detrimental to colonic health. Am J Clin Nutr.;93(5):1062-72.
  28. Machiels, K., Joossens, M., Sabino, J., De Preter, V. et al (2014), A decrease of the butyrate-producing species Roseburia hominis and Faecalibacterium prausnitzii defines dysbiosis in patients with ulcerative colitis. Gut.;63(8):1275-83.
  29. Jantchou, P., Morois, S., Clavel-Chapelon, F. Boutron-Ruault, M.C. & Carbonnel, F. (2010), Animal protein intake and risk of inflammatory bowel disease: The E3N prospective study. Am J Gastroenterol.;105(10):2195-201.
  30. Wu et al 2013, ibid.

Copyright 2024 Center for Nutrition Studies. All rights reserved.

Program Overview

  • 23,000+ students
  • 100% online, learn at your own pace
  • No prerequisites
  • Continuing education credits