According to research reviewed by Gram, people who consumed the most gut-friendly foods had 13% lower risk of developing IBS over 12 years compared to those eating the least, based on a study of 175,103 UK adults. For every point increase in a gut-friendly diet score, IBS risk dropped by 3%.

Researchers studied over 175,000 people to see if eating foods that are good for gut bacteria could help prevent irritable bowel syndrome (IBS). They created a simple scoring system based on 14 foods and nutrients known to support healthy gut bacteria. People who ate the most gut-friendly foods had about 13% lower chances of developing IBS over 12 years compared to those who ate the least. This suggests that making smart food choices now might help protect your digestive health in the future.

Key Statistics

In a 12.5-year observational study of 175,103 UK Biobank participants, people with the highest gut-friendly diet scores had 13% lower risk of developing IBS compared to those with the lowest scores.

A Gram Research analysis of dietary data found that for every single point increase in the Dietary Index for Gut Microbiota (DI-GM) score, irritable bowel syndrome risk decreased by 3% among study participants.

Over the 12.5-year follow-up period, approximately 2,980 out of 175,103 participants developed IBS, with the protective effect of gut-friendly diets remaining consistent across different demographic groups.

The Quick Take

  • What they studied: Whether eating foods that support healthy gut bacteria can help prevent irritable bowel syndrome (IBS), a condition that causes stomach pain and digestive problems.
  • Who participated: 175,103 adults from the UK Biobank study who didn’t have IBS at the start and provided detailed food records. Researchers followed them for an average of 12.5 years.
  • Key finding: People who scored highest on the gut-friendly diet had 13% lower risk of developing IBS compared to those who scored lowest. For every point increase in the diet score, IBS risk dropped by 3%.
  • What it means for you: Eating more foods that feed good gut bacteria—like fiber-rich foods, whole grains, and fermented foods—may help reduce your chances of developing IBS. However, this study shows a link, not proof that diet causes the difference, so talk to your doctor about your individual situation.

The Research Details

This was a long-term observational study, meaning researchers followed real people over time rather than conducting an experiment. They used data from the UK Biobank, a large health study with detailed information about what people eat. At the beginning, all participants were healthy and didn’t have IBS. Researchers created a scoring system called the Dietary Index for Gut Microbiota (DI-GM) based on 14 foods and nutrients that scientists know support healthy gut bacteria. Each food or nutrient was scored as either 0 or 1 based on whether people ate more or less than the average amount. The total score ranged from 0 to 14, with higher scores meaning a more gut-friendly diet. Researchers then tracked who developed IBS over the next 12 years and compared IBS rates between people with different diet scores.

This research approach is valuable because it follows real people in their everyday lives rather than testing them in a lab. This makes the findings more relevant to how people actually eat and live. The large number of participants (175,000+) and long follow-up period (12+ years) make the results more reliable and trustworthy than smaller, shorter studies.

This study has several strengths: it’s very large, follows people for a long time, and carefully measured what people ate using detailed food records. However, it shows that diet and IBS risk are connected, not that diet definitely causes IBS. People who eat healthier diets often have other healthy habits too, which could also affect IBS risk. The study was also done in the UK, so results might be slightly different in other countries with different food cultures.

What the Results Show

Over 12.5 years, about 2,980 people developed IBS out of the 175,103 participants. People in the highest group for gut-friendly eating had 13% lower IBS risk than those in the lowest group. This difference was statistically significant, meaning it’s unlikely to be due to chance. Additionally, for every single point increase in the diet score, IBS risk decreased by 3%. This pattern held true even when researchers adjusted for other factors like age, weight, exercise, and smoking that could affect IBS risk. The relationship between diet quality and IBS risk was consistent across different groups of people, suggesting the finding is robust.

When researchers looked at different groups separately—such as men versus women, different age groups, and people with different body weights—the protective effect of a gut-friendly diet remained consistent. This suggests the benefit isn’t limited to just one type of person. The findings were also stable when researchers used different statistical methods to analyze the data, which increases confidence in the results.

Previous research has shown that individual foods and nutrients affect gut bacteria and digestive health, but this is one of the first large studies to combine multiple dietary factors into one simple score and track IBS development over many years. The results align with smaller studies suggesting that fiber, certain nutrients, and fermented foods support gut health, but this study provides stronger evidence by following a much larger group of people for longer.

This study shows that better diet scores are linked with lower IBS risk, but it cannot prove that diet causes the difference. People who eat healthier diets often exercise more, manage stress better, and have other healthy habits that could also protect against IBS. The study included mostly people from the UK, so results might differ in other countries. Additionally, people reported their own food intake, which can be inaccurate. The study also couldn’t account for all possible factors that might influence IBS risk.

The Bottom Line

Based on this research, eating more foods that support gut bacteria appears to be beneficial for digestive health. Focus on: whole grains, vegetables, fruits, legumes (beans and lentils), nuts, seeds, and fermented foods like yogurt and sauerkraut. Aim to increase fiber gradually and drink plenty of water. This is a moderate-confidence recommendation based on observational evidence. Consult your healthcare provider before making major dietary changes, especially if you already have digestive issues.

This research is relevant for anyone wanting to prevent IBS or improve digestive health. It’s especially important for people with a family history of IBS or those experiencing early digestive symptoms. If you already have IBS, talk to your doctor or a dietitian about whether these dietary changes might help your specific situation. People with certain food allergies or intolerances should adapt these recommendations to their needs.

Changes in gut bacteria can happen within days to weeks of dietary changes, but improvements in IBS symptoms typically take several weeks to months to become noticeable. The protective effect shown in this study developed over years, so think of this as a long-term investment in your digestive health rather than a quick fix.

Frequently Asked Questions

Can eating foods that support gut bacteria help prevent IBS?

Research on 175,103 people found that those eating the most gut-friendly foods had 13% lower IBS risk over 12 years. While this shows a strong link, it doesn’t prove diet causes the difference, as healthier eaters often have other protective habits too.

What specific foods should I eat to support my gut bacteria and prevent IBS?

Focus on whole grains, vegetables, fruits, legumes, nuts, seeds, and fermented foods like yogurt and sauerkraut. Increase fiber gradually and drink plenty of water. Consult your healthcare provider before making major dietary changes.

How much does improving your diet score reduce IBS risk?

Each point increase in the gut-friendly diet score reduced IBS risk by 3%. People scoring highest on the diet had 13% lower risk than those scoring lowest over a 12-year period.

Who should pay special attention to this gut-friendly diet research?

This is especially relevant for people with family history of IBS, those experiencing early digestive symptoms, or anyone wanting to prevent IBS. If you already have IBS, consult a doctor or dietitian about dietary changes.

Want to Apply This Research?

  • Track daily intake of the 14 foods/nutrients in the DI-GM score: whole grains, vegetables, fruits, legumes, nuts, seeds, fish, fermented foods, fiber intake, and specific nutrients. Create a weekly checklist to ensure you’re hitting diverse food groups that support gut health.
  • Set a goal to add one new gut-friendly food to your diet each week. For example: Week 1 add more beans, Week 2 add fermented yogurt, Week 3 add whole grain bread. Use the app to log these additions and track consistency over time.
  • Calculate your personal DI-GM score monthly by reviewing your food logs. Track digestive symptoms (bloating, discomfort, regularity) alongside diet scores to see if improvements correlate with better eating patterns. Create a 3-month trend report to visualize progress and identify which foods seem most beneficial for your individual digestive health.

This research shows an association between diet quality and IBS risk but does not prove that diet changes will prevent or cure IBS. Individual results vary significantly. If you have symptoms of IBS or digestive concerns, consult with a healthcare provider or registered dietitian before making dietary changes. This information is for educational purposes and should not replace professional medical advice. People with existing IBS or food sensitivities should work with a healthcare provider to develop a personalized dietary plan.

This research translation is published by Gram Research, the science division of Gram, an AI-powered nutrition tracking app.

Source: Dietary index for gut microbiota and risk of incident irritable bowel syndrome: a large-scale prospective cohort study.Nutrition journal (2025). PubMed 41068897 | DOI