According to Gram Research analysis, eating foods that support healthy gut bacteria can reduce your risk of developing fatty liver disease by 22%, according to a 2026 study of 168,456 people. Researchers created a scoring system based on 12 foods and nutrients that feed beneficial gut bacteria, and found that people with the highest scores had significantly lower risk of metabolic dysfunction-associated steatotic liver disease compared to those with the lowest scores. This protective effect worked regardless of genetic risk factors, suggesting that diet choices matter for everyone.
A major study of over 168,000 people found that eating foods that are good for your gut bacteria can significantly lower your risk of getting a fatty liver disease. Researchers created a simple scoring system based on 12 foods and nutrients that help beneficial gut bacteria thrive. People who scored highest on this “gut-friendly diet” had 22% lower risk of developing metabolic dysfunction-associated steatotic liver disease (MASLD) compared to those with the lowest scores. The good news: this protective effect worked regardless of your genetics, meaning everyone can benefit from eating gut-friendly foods.
Key Statistics
A 2026 prospective cohort study of 168,456 UK Biobank participants found that people with the highest dietary index for gut microbiota scores had a 22% lower risk of metabolic dysfunction-associated steatotic liver disease compared to those with the lowest scores (HR = 0.78, 95% CI = 0.68-0.90).
According to research reviewed by Gram, the protective effect of a gut microbiota-beneficial diet against fatty liver disease persisted regardless of genetic risk factors, suggesting that dietary choices can overcome genetic predisposition to liver disease.
A 2026 analysis of 168,456 adults identified five key mechanisms through which gut-friendly diets reduce liver disease risk: slowing biological aging, reducing obesity, improving metabolic health, decreasing inflammation, and altering blood metabolite patterns.
The dietary index for gut microbiota includes 12 foods and nutrients: whole grains, vegetables, fruits, legumes, nuts, fish, olive oil, yogurt, cheese, coffee, tea, and moderate red wine consumption, according to the 2026 UK Biobank study.
The Quick Take
- What they studied: Whether eating foods that support healthy gut bacteria can reduce the risk of developing fatty liver disease and other chronic liver conditions
- Who participated: 168,456 adults from the UK Biobank, a large health study tracking people over time. Participants had varying diets and health backgrounds, representing a diverse population
- Key finding: People who ate the most gut-friendly foods had a 22% lower risk of fatty liver disease compared to those who ate the least. This means if 100 people with poor gut-friendly diets developed the disease, only about 78 people with excellent diets would develop it
- What it means for you: You may be able to reduce your liver disease risk by eating more foods that feed beneficial gut bacteria, like fiber-rich foods, whole grains, and fermented foods. This works even if you have genetic risk factors. However, this study shows association, not proof of cause-and-effect, so consult your doctor before making major diet changes
The Research Details
This was a prospective cohort study, meaning researchers followed real people over time and tracked what they ate and their health outcomes. The team created a new scoring system called the Dietary Index for Gut Microbiota (DI-GM) by measuring how much people consumed of 12 specific foods and nutrients known to support healthy gut bacteria. They then used advanced statistical methods to identify which blood chemicals (metabolites) were associated with eating this way, creating a metabolic signature—essentially a fingerprint of what happens in your body when you eat gut-friendly foods.
The researchers tracked participants for years, recording who developed fatty liver disease and other chronic liver conditions. They used a statistical method called Cox proportional hazards regression to calculate how much lower the disease risk was for people with high DI-GM scores compared to low scores. They also performed mediation analyses to understand the pathways through which diet affects liver health—essentially asking: does diet work by reducing inflammation, helping with weight loss, slowing aging, or something else?
This approach is important because it bridges the gap between what we eat and what happens inside our bodies. Rather than just asking “did people get sick?”, the researchers also measured the biological changes occurring in people who ate gut-friendly diets. This helps explain the mechanism—the “why” behind the protection. The study also tested whether genetic risk factors could override the benefits of a good diet, which is crucial information for understanding whether diet recommendations apply to everyone
This study has several strengths: it included a very large number of participants (168,456), followed them over time rather than just taking a snapshot, and was conducted in a well-established health database. The researchers adjusted their analysis for many confounding factors—things that could muddy the results like age, smoking, and exercise. However, because this is an observational study (watching what people naturally eat rather than randomly assigning them to diets), we cannot prove that the diet caused the lower disease risk—only that they’re associated. The study also relied on people’s memory of what they ate, which can be imperfect
What the Results Show
The main finding was striking: participants with the highest DI-GM scores (6 or higher) had a 22% lower risk of developing metabolic dysfunction-associated steatotic liver disease (MASLD, commonly called fatty liver disease) compared to those with the lowest scores (0-3). This protective effect was statistically significant, meaning it’s unlikely to be due to chance.
The researchers also found that a metabolic signature—a pattern of blood chemicals reflecting a gut-friendly diet—was independently associated with lower MASLD risk. This suggests that eating this way creates measurable biological changes that protect the liver. Similar protective associations were found for other chronic liver diseases beyond just fatty liver disease.
Interestingly, the protective effect of eating a gut-friendly diet held true regardless of people’s genetic risk for liver disease. This means that even if you have genes that increase your liver disease risk, eating well for your gut bacteria may still help protect you. The study identified five key mechanisms through which diet appears to work: by slowing biological aging, reducing obesity, improving metabolic health, decreasing inflammation, and altering the mix of chemicals in your blood.
The mediation analyses revealed that the diet’s protective effect works through multiple pathways simultaneously. The strongest mediators were phenotypic age (a measure of biological aging), body mass index (weight), metabolic score, inflammatory markers, and the metabolic signature itself. This suggests that a gut-friendly diet doesn’t work through just one mechanism—it’s more like a multi-pronged approach that improves several aspects of health at once. The fact that no significant interactions were found between diet and genetic risk means the benefits appear consistent across different genetic backgrounds
This study is among the first to prospectively examine the relationship between a gut microbiota-focused dietary index and liver disease risk in such a large population. Previous research has shown that gut bacteria influence liver health, and that diet shapes gut bacteria composition, but this study directly connects all three: diet → gut bacteria → liver health. The findings align with smaller studies suggesting that fiber and plant-based foods protect liver health, but this research provides stronger evidence through its large scale and long-term follow-up. The identification of a metabolic signature adds a new dimension by showing that we can measure biological changes associated with this dietary pattern
The study has several important limitations. First, it’s observational, meaning we can see associations but cannot prove causation—people who eat gut-friendly diets may differ in other healthy behaviors we didn’t measure. Second, dietary information came from questionnaires asking people to remember what they ate, which can be inaccurate. Third, the study population was primarily from the UK, so results may not apply equally to other populations with different genetic backgrounds or food availability. Fourth, the study couldn’t measure actual gut bacteria composition in most participants, so we’re inferring gut health from diet rather than directly measuring it. Finally, while the sample size was large, the number of people who actually developed liver disease was smaller, which could affect the precision of estimates
The Bottom Line
Based on this research, consider increasing your intake of foods known to support gut bacteria: whole grains, legumes (beans and lentils), vegetables, fruits, nuts, and fermented foods like yogurt and sauerkraut. The study suggests aiming for a higher DI-GM score by eating more of these 12 food categories. However, this is observational evidence, so think of it as a strong suggestion rather than a guarantee. Confidence level: Moderate to High for the association, but we cannot yet say with certainty that changing your diet will prevent liver disease. Consult with your doctor or dietitian before making significant dietary changes, especially if you have existing liver disease
Everyone should care about these findings, particularly people with risk factors for liver disease (obesity, metabolic syndrome, diabetes, or family history of liver disease). The good news is that the protective effect appears to work regardless of genetic risk, so even people with genetic predisposition can benefit. People with existing liver disease should discuss these findings with their healthcare provider. Those without liver disease can use this as motivation to eat more gut-friendly foods as a preventive measure
Changes in gut bacteria composition can begin within days to weeks of dietary changes, but measurable improvements in metabolic markers and inflammation typically take 4-12 weeks. Significant reductions in liver fat content may take 3-6 months of consistent dietary adherence. However, this study followed people over years, so the full protective benefit against developing liver disease likely accumulates over longer periods. Don’t expect overnight results, but consistent eating habits over months and years appear to matter
Frequently Asked Questions
Can changing my diet actually prevent fatty liver disease?
This study shows a strong association: people eating gut-friendly foods had 22% lower risk of fatty liver disease. However, this is observational evidence, not proof of prevention. The findings suggest diet matters significantly, but you should discuss prevention strategies with your doctor for personalized advice
What are the best foods to eat for a healthy gut and liver?
The study identified 12 key foods: whole grains, vegetables, fruits, legumes, nuts, fish, olive oil, yogurt, cheese, coffee, tea, and moderate red wine. Focus on increasing fiber-rich foods, fermented products, and plant-based options while reducing processed foods
Does it matter if I have a family history of liver disease?
Good news: this study found that eating a gut-friendly diet reduced liver disease risk regardless of genetic factors. Even if family members had liver disease, following these dietary patterns may still protect you
How long does it take to see health benefits from changing my diet?
Gut bacteria can change within days to weeks, but measurable improvements in metabolic markers typically take 4-12 weeks. Significant reductions in liver fat may take 3-6 months of consistent adherence to see on imaging
Is this diet safe for people who already have liver disease?
While the study suggests these foods are protective, people with existing liver disease should consult their healthcare provider before making dietary changes, as individual conditions vary and some foods may need modification based on liver function
Want to Apply This Research?
- Track daily servings of the 12 foods/nutrients in the DI-GM index: whole grains, vegetables, fruits, legumes, nuts, fish, olive oil, yogurt, cheese, coffee, tea, and red wine (in moderation). Set a goal to eat at least 8-10 of these categories daily and log your adherence percentage weekly
- Start by adding one gut-friendly food category you currently eat least of. For example, if you rarely eat legumes, add beans or lentils to one meal per day. Use the app to set reminders for meals containing these foods and track which categories you’re hitting. Gradually work toward including more categories throughout your week
- Create a weekly scorecard showing which DI-GM food categories you consumed and how many days you achieved high adherence. Set monthly goals to increase your average DI-GM score. If possible, track secondary health markers like weight, energy levels, and digestion quality to see if dietary changes correlate with feeling better. Share trends with your healthcare provider at annual checkups
This article summarizes research findings and should not be considered medical advice. The study shows associations between diet and liver disease risk, but does not prove that dietary changes will prevent liver disease in any individual. People with existing liver disease, metabolic conditions, or taking medications should consult their healthcare provider or registered dietitian before making significant dietary changes. This research is observational and cannot establish causation. Individual results may vary based on genetics, overall lifestyle, and other health factors. Always seek professional medical guidance for diagnosis and treatment of liver disease.
This research translation is published by Gram Research, the science division of Gram, an AI-powered nutrition tracking app.
