Contents

Keto Diet and Immune System: What You Need to Know

  • 19 minute read
Keto diet and the immune system - what you need to know. The word Keto is spelled out with food

We all know that different diets can have an impact on our waistline, but did you know certain diets can also influence your immune system?

The ketogenic diet is one such eating pattern, with research showing that it may have the potential to reduce inflammation, help with viral infections, alter the gut microbiome, and more. That said, it's not the easiest diet plan to follow, and not all of its influence is positive.

Let's find out more about it and discuss what you need to know about the keto diet and immune system.

Key Takeaways

  • The keto diet is very low in carbs, moderate in protein, and high in fat, helping the body switch to burning fat for energy.
  • Ketone bodies produced during ketosis may boost adaptive immune responses, especially in T-cells, and support better immune memory.
  • Keto can reduce inflammation by lowering certain pro-inflammatory cytokines and promoting anti-inflammatory pathways.
  • However, a strict keto diet may negatively affect gut microbiome diversity, especially by reducing fiber-loving beneficial bacteria like Bifidobacterium.
  • Supplementing with MCT oil (like Performance Lab’s) supports ketone production, may ease keto flu symptoms, and helps maintain stable energy during ketosis.
Performance Lab® MCT Energy Oil supports clean ketone production — pure C8 + C10 from coconuts.
Rapid-conversion fats to help sustain ketosis.
Helps reduce ‘keto flu’ symptoms by boosting energy.
Ultra-pure with no additives — gentle on digestion.
Performance Lab® MCT Energy Oil

Introduction to the Ketogenic Diet

Introduction to the ketogenic diet. A book show the macronutrient levels of the keto diet

The ketogenic diet or keto diet is a high fat and low carbohydrate diet. And when we’re talking low carbs, we mean very low carbs!

Don’t confuse this diet with a generic low carb diet, because the latter typically still involves more carbohydrates than are allowed on keto.

There isn’t just one version of the keto diet so it’s a little hard to give exact recommended macronutrient intakes, but a typical keto diet restricts carbohydrate intake to less than 50g a day. Some versions state 30g a day.

Protein is also kept fairly moderate compared to other low carb diets as it can kick you out of ketosis, the desired result of the keto diet. However, it is important to ensure adequate protein to maintain nutritional balance and support metabolic processes while on a ketogenic diet.

A typical ketogenic diet, therefore, may look something like the below.

A typical keto diet includes:

  • 5-10% carbohydrates

  • 10-20% protein

  • 70-80% fat.

Why so few carbs? Because people following a keto diet want to alter the way their body produces and uses energy. They want to enter a metabolic state called ketosis.

What is Ketosis?

What is ketosis? A word map of ketosis

Here’s what normally happens when you eat carbs - and what happens when you restrict them on the keto diet:

  1. When you eat carbohydrates such as sugars or starchy foods, the body breaks them down into glucose, the body’s preferred source of energy.

  2. If you don’t need the glucose immediately, it is stored in the liver and muscles as glycogen, ready for future use.

  3. When you restrict your carbs and glycogen stores drop, the body will burn stored fat for energy instead. During this process, stored fat is broken down into fatty acids, which are then used as an energy source.

  4. This metabolic state is known as ketosis. Acids called ketones - a by-product of ketosis - build up in the blood and can be used as alternate fuel sources by most tissues in the body, including the brain.

Why do keto dieters want this? Mainly for weight loss. But there are other potential benefits to a keto diet, including an influence on your immune system. (1-4)

Health Benefits of a Keto Diet

It’s probably fair to say that while the diet was originally developed for people with epilepsy back in 1921, most people now follow a ketogenic diet for weight loss reasons.

However, studies have also suggested a ketogenic diet may offer several other health benefits. Such as:

  • A ketogenic diet can potentially reduce inflammation

  • According to meta studies, a low carb keto diet has shown promise for longer term weight loss than a low fat diet. (5) Notably, participants in these studies often vary in body mass index (BMI), which can influence the observed outcomes.

  • The keto diet has also shown positive effects on glycemic control, insulin resistance, and lipid markers.

  • A 2004 study showed the keto diet significantly reduced weight, body mass index, and LDL or ‘bad’ cholesterol among obese participants over 24 weeks. All risk factors for heart disease. A small number of other studies have mimicked this fall in bad cholesterol.

IN CONTRAST: While studies generally agree that a keto diet can help you lose weight, at least in the short term, they don't all agree that it can reduce LDL cholesterol. In fact, in many studies the opposite is true.

They have seen LDL cholesterol rise. This may be because of the exact make-up of the diet - the type of fats eaten, for instance. Or it may be that a keto diet helps to reduce LDL cholesterol in certain groups of people, but not all. (6-9)

A WARNING ON HEART HEALTH

A keto diet promotes a high-fat diet, which could impact heart health negatively. The American Heart Association recommends we limit saturated fats in particular to less than 6%.

Saturated fats are typically solid at room temperature, and can be found in meat, poultry (especially skin), butter, cheese, ice cream and more. If you try the keto diet, be sure to research heart-healthy sources of fat. (10)

The Ketogenic Diet and the Immune System

Here’s what we really want to know from this article - can a ketogenic diet influence our immune system? And how? Positively, or negatively?

Research has shown that distinct immune responses are triggered by different dietary interventions, such as vegan and ketogenic diets.

It turns out that a keto diet can both help and hinder different elements of the human immune system. Various immune cells, including T cells, B cells, and others, appear to be influenced by a keto diet, highlighting the complexity of immune modulation by diet.

Before we get into this subject in depth, however, allow me to give you a brief Immune System 101.

Immune System 101

Immune system 101. A virus among red blood cells

We all know the immune system acts as the body’s defense system, protecting us from germs, viruses, bacteria and more. We may not know, however, just what that entails - and that several organs and elements support or make up the immune system.

We’re talking bone marrow, the spleen, lymphatic system and many more - plus white blood cells, antibodies, immune cells etc…

For our purposes here today, however, we really need to know that there are two ‘sections’ or subsystems of the immune system with specialized roles that together form a distinct immune system:

  1. Innate immune system (non-specific) - this is the first part of the immune system to respond to invaders, reacting in the same way to all. It includes a range of specialized white blood cells, such as Natural Killer (NK) cells.

  2. Adaptive immune system (specific) - this is the part of the immune system that produces antibodies, that recognises or ‘remembers’ pathogens or harmful substances the body has seen before. You might hear this referred to as the ‘acquired’ or learned immune response. This includes T and B cells, as well as antibodies.

The innate immune system responds first, while adaptive immunity is slower but tends to be more accurate because it has the power to ‘remember’ germs. This is the reason that you may become ‘immune’ to certain illnesses once you’ve had them once in your life. (11)

Why is this important? Because studies show that a keto diet has the potential power to influence your adaptive immunity.

Let’s examine that…

Keto Diet 'Rewired Adaptive Immune System' in Two Weeks

A small study published in Nature magazine examined more than one diet, specifically comparing vegan and ketogenic diets, and claimed that a ketogenic diet positively ‘rewired’ the adaptive immune system in a fortnight.

Scientists closely monitored participants' immune responses and metabolic changes throughout the study.

"Our data revealed that overall, a ketogenic diet was associated with a significant upregulation of pathways and enrichment in cells associated with the adaptive immune system" - study authors. (12)

If you’re interested, a vegan diet in contrast showed potential influence on the innate immune system.

It should be noted that this study involved just 20 people, so further wider research is welcome.

The Keto Diet and Viral Infection

These findings followed earlier reports that the ketogenic diet increased γδ T cells (gamma delta T cells, a sub-section of T cells) responses in mice. This expansion of γδ T cells in the lungs aided anti-viral protection, and was shown to protect mice against the Influenza A virus.

What was particularly interesting about this research is that the authors showed that just providing ketone bodies (bypass ketogenesis) or following a general high-fat/high-carb diet didn’t give the same protection. Suggesting that the metabolic adaptation from a true ketogenic diet is important. (13, 14)

Other animal studies have shown that being in ketosis or giving ketone bodies helped the animals handle viral or brain-related infections better. For example, in mice with herpes-related infections, ketosis reduced how sick they became, and it also changed how their immune cells (like T cells) behaved. (15)

SUMMARY

There is promising mechanistic and animal evidence therefore that ketosis / ketone bodies can boost antiviral immune responses, but so far there are no large, convincing clinical trials proving this in humans. This is future research that we would like to see.

Let's look at T-cells in a bit more detail...

A Ketogenic Diet Strengthens T Cell Immune Responses

Researchers put healthy adults on a very low-carb diet (similar to keto) and looked at how their immune cells behaved. They found that when your body switches to burning fat and making ketones, your T cells - the immune cells that fight viruses and help coordinate your whole immune system - actually work better.

SPECIFICALLY...

  1. The T cells had more energy. Enhanced mitochondrial respiration and amino acid metabolism contributed to this increased energy, supporting T cell function.

  2. They responded more strongly

  3. They produced better “memory” cells (the ones that help you fight infections faster the next time), with amino acids serving as important metabolic substrates for these immune responses.

These changes are part of broader cellular processes linked to immune cell activation and function.

All of which suggests they would be better at defending you. (16)

Ketones May Reduce Inflammation

I mentioned earlier that a keto diet may reduce inflammation. That’s because ketones have anti-inflammatory benefits and can potentially modulate the inflammatory response in the brain and elsewhere.

Chronic inflammation is a major driver behind many chronic diseases and immune-related disorders. Chronic inflammatory diseases and neurological diseases, such as Alzheimer's, Parkinson's, and multiple sclerosis, are often characterized by persistent neuroinflammation.

By shifting the body’s metabolism, keto diets decrease the production of pro-inflammatory cytokines like TNF-α and IL-6, while boosting anti-inflammatory molecules such as transforming growth factor β (TGF-β). This anti-inflammatory effect not only supports enhanced immunity but may also lower the risk of infectious diseases and chronic inflammatory conditions.

STUDIES

  • A large review of 44 high-quality studies found that the ketogenic diet lowered important inflammation markers in the body - specifically TNF-α and IL-6 - more than control diets. (17)

  • In aging mice, a cyclic ketogenic diet reduced neuroinflammation - the brain’s version of inflammation, when immune cells in the brain become activated and create swelling or irritation in response to stress, injury, or disease.

  • A six-month study investigated the effects of a ketogenic diet among participants with stable, relapsing remitting MS (Multiple Sclerosis). They found that the diet helped the immune system become less inflamed by shifting the balance of immune cells in a healthier direction.

  • Studies have examined the role of BHB in particular (a ketone your body makes during a ketogenic diet) on microglia, the immune cells that live in your brain. When these brain cells were exposed to BHB, they shifted into a calmer, anti-inflammatory mode, reducing mitochondrial stress. This was in a lab setting (not in humans), but it suggests ketones may directly “dial down” brain inflammation at the cellular level. (18-20)

Keto Diet Alters the Gut Microbiome

Keto diet alters the gut microbiome. A woman holds her stomach with a virtual intestines on top

The gut microbiome in our intestines is home to trillions of bacteria and microorganisms that help digest our food, produce essential vitamins, protect against harmful microbes - and support the immune system.

70% of our immune cells are located in our gut, so this is an important aspect of our immunity. The gut microbiome communicates with the Central Nervous System to help regulate immune responses.

The impact of a ketogenic diet on our gut microbiome is complex. We can't just say it is positive or negative; it's much more nuanced than that.

For instance:

REDUCTION IN BENEFICIAL BACTERIA

Many human studies report rapid changes in microbe composition, with reduced microbial diversity after the keto diet.

Specifically, it may reduce the amount of beneficial bacteria in our gut, particularly the fiber-loving Bifidobacterium. This is likely because the keto diet typically reduces dietary fiber and carbohydrates.

Bifidobacterium helps to reduce cholesterol, so this may have a knock-on effect to your cholesterol levels, among other issues. (21-23)

CONTEXT MATTERS: In epilepsy and some neuroinflammatory models, however, a keto diet and microbiome changes may be beneficial. Ketones are believed to confer anticonvulsant benefits, and may protect against seizures, though the exact mechanism is still being debated.

For this reason, a therapeutic ketogenic diet may be recommended by doctors in patients with drug-resistant epilepsy. (24)

In short, a keto diet may offer anti-seizure and/ or neuroprotective benefits, but in otherwise healthy adults, it may carry gut-health trade-offs.

You can support your gut microbiome by...

  1. Preserving non-starchy vegetables, nuts, seeds, and low-carb fibrous foods in your diet.

  2. Taking a quality prebiotic (though be careful that its fiber content doesn't kick you out of ketosis). A prebiotic like Performance Lab Prebiotic with Inulin-FOS, for instance, may help to boost levels of Bifidobacterium in your gut and offers a 2g dose via three Nutricaps a day.

    This allows you to decide how many capsules you want to take. When on a keto diet, it's advisable to start with 1-2g of prebiotic a day, and to test and keep track of your ketones.

Performance Lab® Prebiotic

Support digestive health, regularity & gut comfort.

Shop Now
80 reviews
Image of Performance Lab® Prebiotic

How MCT Oil can Help

How MCT oil can help. A bottle of Performance Lab MCT Energy Oil lays on its side

MCT oils are specifically well-suited for ketogenic diets.

Performance Lab’ MCT Energy Oil, for instance, is made from pure C8 and C10 medium-chain triglycerides (“good MCTs”). These are absorbed quickly and sent to your liver, where they’re efficiently converted into ketones - the fuel your body uses on a keto diet instead of glucose.

Because of this, taking this MCT oil gives you a fast, clean source of energy. It can help support your brain (better focus, reduced “keto brain fog”), boost your metabolism, and help you stay in ketosis or deepen it.

Finally, because it’s ultra-pure (organic coconuts, no additives) and mostly C8/C10, it’s less likely to cause digestive issues than lower-quality MCT oils, making it an attractive option to include in your keto routine.

Shop Performance Lab® MCT Oil

Limitations of the Keto Diet

Limitations of the keto diet. Dice spell out High and Low Carb

For all of the promising research, there are some limitations and potential drawbacks of the keto diet. Some of these may be mitigated by the use of a quality MCT oil, such as Performance Lab MCT Energy Oil.

They are:

  1. It’s a Major Lifestyle Commitment. Yes, guidelines are clear but there is little flexibility and it may be tough to sustain it long term.

  2. Lack of Research. Most research into a ketogenic diet examines its short term impact and has either been carried out on animals, done in a lab setting or includes just small groups of human participants. More longer term research is needed to recreate the potential benefits of keto with more people from diverse backgrounds.

  3. Testing your ketones is the only sure way to determine if you are in ketosis, and this requires a testing kit.

  4. The diet is not suitable for anyone who has a history of disordered eating.

  5. You may experience ‘keto flu’ when first trying the keto diet. More on that below…

Keto Flu

While a ketogenic diet may have its benefits, initial entry into ketosis can have some side effects as your body adjusts to the new normal. These side effects, known as the Keto Flu, are usually mild and short-term, but they can still be unpleasant.

You may experience headaches, nausea, fatigue, brain fog, dizziness, insomnia or more, but symptoms usually resolve in a few days to a few weeks.

Using a quality MCT oil may help reduce keto symptoms by providing a quick energy source and helping to speed up time to ketosis. We recommend Performance Lab MCT Energy Oil.

It usually takes around 72 hours for the body to enter ketosis.

TO NOTE

Note that ketosis is not the same as ketoacidosis, a life-threatening condition where excessive ketones are produced, affecting blood pH. (25, 26)

Sign up for emails to get unique insights, advice and exclusive offers. Direct to your inbox.
image of Performance Lab® capsules

Keto Warnings

As I mentioned above, more research needs to be done on the health impact of following a long-term keto diet.

Potential complications could include kidney stones, low blood pressure, nutrient deficiencies, electrolyte imbalances, digestive issues, muscle loss, and an increased risk of heart disease, the latter potentially depending on the type of fat you eat.

The diet is not recommended for anyone who has conditions or problems with the thyroid, gallbladder, liver or pancreas. Anyone with diabetes should first see a doctor before trying the ketogenic diet as complications may occur if medication is not appropriately adjusted. (27)

Final Thoughts

The central nervous system is deeply intertwined with the immune system, and the ketogenic diet offers a unique way to influence both.

Keto diets tend to boost adaptive immunity, increasing T cell activity and reducing inflammatory pathways. Its ability to modulate immune response means it has been considered as a therapeutic nutritional intervention for several health conditions.

Before you consider a ketogenic diet, however, you should do your research and make sure you still eat healthily, avoiding too many saturated fats and choosing appropriate foods to limit any damage to your gut microbiome.

As I mentioned, a quality prebiotic like Performance Lab Prebiotic may help with this by encouraging beneficial bacteria.

A top notch MCT oil is also a good idea. It can potentially help you enter ketosis quicker and - hopefully - reduce the side effects of the keto flu. We recommend Performance Lab MCT Energy Oil.

References

  1. Glycogen, Cleveland Clinic. https://my.clevelandclinic.org/health/articles/23509-glycogen
  2. What to know about ketosis, Medical News Today. https://www.medicalnewstoday.com/articles/180858
  3. Jensen, N. J., Wodschow, H. Z., Nilsson, M., & Rungby, J. “Effects of Ketone Bodies on Brain Metabolism and Function in Neurodegenerative Diseases.” *International Journal of Molecular Sciences*, vol. 21, no. 22, 2020, p. 8767.
  4. Hartman, A. L., Gasior, M., Vining, E. P., & Rogawski, M. A. “The Neuropharmacology of the Ketogenic Diet.” *Pediatric Neurology*, vol. 36, no. 5, 2007, pp. 281–292.
  5. Bueno, N. B., de Melo, I. S., de Oliveira, S. L., & da Rocha Ataide, T. “Very-Low-Carbohydrate Ketogenic Diet v. Low-Fat Diet for Long-Term Weight Loss.” *British Journal of Nutrition*, vol. 110, no. 7, 2013, pp. 1178–1187. https://doi.org/10.1017/S0007114513000548
  6. Dashti, H. M., Mathew, T. C., Hussein, T., et al. “Long-Term Effects of a Ketogenic Diet in Obese Patients.” *Experimental and Clinical Cardiology*, vol. 9, no. 3, 2004, pp. 200–205.
  7. Barrea, L., Verde, L., Vetrani, C., et al. “VLCKD: A Real Time Safety Study in Obesity.” *Journal of Translational Medicine*, vol. 20, no. 1, 2022, p. 23. https://doi.org/10.1186/s12967-021-03221-6
  8. Patikorn, C., Saidoung, P., Pham, T., et al. “Effects of Ketogenic Diet on Health Outcomes: An Umbrella Review.” *BMC Medicine*, vol. 21, 2023, p. 196. https://doi.org/10.1186/s12916-023-02874-y
  9. Masood, W., Annamaraju, P., Khan Suheb MZ, et al. “Ketogenic Diet.” *StatPearls*, 2025. https://www.ncbi.nlm.nih.gov/books/NBK499830/
  10. Saturated fat, American Heart Association. https://www.heart.org/en/healthy-living/healthy-eating/eat-smart/fats/saturated-fats
  11. Informed Health. “In Brief: The Innate and Adaptive Immune Systems.” IQWiG. https://www.ncbi.nlm.nih.gov/books/NBK279396/
  12. Link, V. M., Subramanian, P., Cheung, F., et al. “Differential Peripheral Immune Signatures Elicited by Vegan versus Ketogenic Diets in Humans.” *Nature Medicine*, vol. 30, 2024, pp. 560–572.
  13. Goldberg, E. L., Molony, R. D., Kudo, E., et al. “Ketogenic Diet Activates Protective γδ T Cell Responses Against Influenza Virus Infection.” *Science Immunology*, vol. 4, no. 41, 2019. https://doi.org/10.1126/sciimmunol.aav2026
  14. Goldberg, E. L., et al. “Ketogenesis Activates Metabolically Protective γδ T Cells in Visceral Adipose Tissue.” *Nature Metabolism*, vol. 2, 2020, pp. 50–61.
  15. Shan, T., Huang, Y., Zhao, Z., et al. “Ketogenic Diet Restrains Herpes Simplex Encephalitis via Gut Microbes.” *Microbes and Infection*, vol. 25, no. 3, 2023. https://doi.org/10.1016/j.micinf.2023.105061
  16. Hirschberger, S., Strauß, G., Effinger, D., et al. “Very-Low-Carbohydrate Diet Enhances Human T-Cell Immunity.” *EMBO Molecular Medicine*, vol. 13, 2021, e14323. https://doi.org/10.15252/emmm.202114323
  17. Ji, J., Fotros, D., Sohouli, M. H., et al. “The Effect of a Ketogenic Diet on Inflammation-Related Markers.” *Nutrition Reviews*, vol. 83, no. 1, 2025, pp. 40–58. https://doi.org/10.1093/nutrit/nuad175
  18. Polito, R., La Torre, M. E., Moscatelli, F., et al. “The Ketogenic Diet and Neuroinflammation: The Action of Beta-Hydroxybutyrate in a Microglial Cell Line.” *International Journal of Molecular Sciences*, vol. 24, no. 4, 2023, p. 3102. https://doi.org/10.3390/ijms24043102
  19. Jin, L. W., Di Lucente, J., Ruiz Mendiola, U., et al. “The Ketone Body β-Hydroxybutyrate Shifts Microglial Metabolism and Suppresses Aβ-Induced Inflammation.” *FASEB Journal*, vol. 37, no. 11, 2023. https://doi.org/10.1096/fj.202301254R
  20. Keto diet alters immune cell function, MS-UK. https://ms-uk.org/news/keto-diet-alters-immune-cell-function/
  21. Ketogenic Diet reduces friendly gut bacteria and raises cholesterol levels, University of Bath. https://www.bath.ac.uk/announcements/ketogenic-diet-reduces-friendly-gut-bacteria-and-raises-cholesterol-levels/#
  22. David, L. A., et al. “Diet Rapidly and Reproducibly Alters the Human Gut Microbiome.” *Nature*, vol. 505, 2014, pp. 559–563.
  23. Rew, L., Harris, M. D., & Goldie, J. “The Ketogenic Diet: Its Impact on Human Gut Microbiota.” *Gastroenterology and Hepatology From Bed to Bench*, vol. 15, no. 4, 2022, pp. 326–342. https://doi.org/10.22037/ghfbb.v15i4.2600
  24. McNally, M. A., & Hartman, A. L. “Ketone Bodies in Epilepsy.” *Journal of Neurochemistry*, vol. 121, no. 1, 2012, pp. 28–35. https://doi.org/10.1111/j.1471-4159.2012.07670.x
  25. Luong, T. V., Abild, C. B., Bangshaab, M., et al. “Ketogenic Diet and Cardiac Substrate Metabolism.” *Nutrients*, vol. 14, no. 7, 2022.
  26. Harvey, C. J. D. C., Schofield, G. M., Williden, M., & McQuillan, J. A. “The Effect of Medium Chain Triglycerides on Time to Nutritional Ketosis.” *Journal of Nutrition and Metabolism*, 2018. https://doi.org/10.1155/2018/2630565
  27. Ketogenic diet: What are the risks? UChicago Medicine. https://www.uchicagomedicine.org/forefront/health-and-wellness-articles/ketogenic-diet-what-are-the-risks

No comments yet. Be the first to comment!

Leave a Comment