Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

The impact of carbohydrate quality on gut health: Insights from the NHANES

  • Lanshuo Hu ,

    Roles Conceptualization, Data curation, Software, Validation, Visualization, Writing – original draft

    ☯ Lanshuo Hu and Xuanchun Huang contributed equally to this work and share first authorship.

    Affiliations Institute of Digestive Diseases, Xiyuan Hospital of China Academy of Chinese Medical Sciences, Beijing, China, Graduate School of Beijing University of Chinese Medicine, Beijing, China

  • Xuanchun Huang ,

    Roles Conceptualization, Software, Validation, Visualization, Writing – original draft

    ☯ Lanshuo Hu and Xuanchun Huang contributed equally to this work and share first authorship.

    Affiliation Guang’anmen Hospital, China Academy of Traditional Chinese Medicine, Beijing, China

  • Shan Liu,

    Roles Investigation, Supervision, Validation, Visualization

    Affiliation Institute of Digestive Diseases, Xiyuan Hospital of China Academy of Chinese Medical Sciences, Beijing, China

  • Lihui Fang,

    Roles Investigation, Supervision, Validation, Visualization

    Affiliations Institute of Digestive Diseases, Xiyuan Hospital of China Academy of Chinese Medical Sciences, Beijing, China, Graduate School of Beijing University of Chinese Medicine, Beijing, China

  • Jiaqi Zhang ,

    Roles Data curation, Funding acquisition, Investigation, Supervision, Validation, Writing – review & editing

    txdly@sina.com (XT); zjq405@163.com (JZ)

    Affiliation Institute of Digestive Diseases, Xiyuan Hospital of China Academy of Chinese Medical Sciences, Beijing, China

  • Xudong Tang

    Roles Data curation, Funding acquisition, Investigation, Supervision, Writing – review & editing

    txdly@sina.com (XT); zjq405@163.com (JZ)

    Affiliation Institute of Digestive Diseases, Xiyuan Hospital of China Academy of Chinese Medical Sciences, Beijing, China

Abstract

Background

High- and low-quality carbohydrate diets are linked to gut health. However, their specific relationship with constipation or diarrhea is unclear. This study uses 2005–2010 NHANES data to examine the relationship between carbohydrate quality and constipation and diarrhea, and to identify suitable populations for different carbohydrate diets.

Methods

Chronic constipation was defined as BSFS types 1 and 2, and chronic diarrhea as types 6 and 7. Dietary intake data were provided by the FPED, using data from the NHANES database. Subjects recalled foods and beverages consumed in the past 24 hours, and intake was averaged and divided into quartiles (Q). After adjusting for covariates, associations between high- and low-quality carbohydrate diets and constipation or diarrhea were assessed using weighted RCS curves and multivariate logistic regression. Results were expressed as weighted ORs and 95% CIs, with subgroup analyses performed.

Results

A total of 11,355 people participated, with 10,488 in the constipation group and 10,516 in the diarrhea group. Multiple regression showed that high-quality carbohydrates were negatively associated with constipation (OR: 0.852, 95% CI: 0.796–0.912, P = 0.0001). Low-quality carbohydrates were positively associated with constipation (OR: 1.010, 95% CI: 1.002–1.018, P = 0.0295). There was no significant direct association between carbohydrate quality and diarrhoea (P = 0.5189, P = 0.8278). Segmented regression results showed a non-significant association between low quality carbohydrate intake above 40.65 servings/day and constipation, while quality carbohydrate intake above 3.84 servings/day was not significantly associated with diarrhoea. Subgroup analyses showed differences in carbohydrate quality and constipation or diarrhoea across populations.

Conclusions

High-quality carbohydrates lowered constipation risk by 33.7% and reduced diarrhea risk with intake up to 3.84 servings/day. In contrast, low-quality carbohydrates increased constipation risk by 83.4%, with risk stabilizing beyond 40.65 servings/day. These effects varied across groups, suggesting that better carbohydrate quality supports gut health, especially in sensitive individuals.

1. Introduction

Chronic Constipation (CC) and Chronic Diarrhoea (CD) are two of the most common intestinal disorders and are most commonly seen in gastrointestinal outpatient clinics, accounting for approximately one-fifth of the world’s population, with an even higher prevalence in women and the elderly [14]. Traditionally, it is believed that CC and CD are primarily associated with poor dietary choices, and therefore dietary therapy is the first line of treatment for CC and CD [5,6].

Carbohydrates are an important part of people’s daily diet, and incorrect consumption of carbohydrates is thought to be an important cause of the development of many diseases in the 21st century. Current evidence suggests that the quality of carbohydrates is a key factor in the ability to achieve healthy outcomes [7,8]. Carbohydrate quality is determined by four key dimensions: dietary fiber intake, whole grain intake, free sugar content, and glycemic index/load. High-quality carbohydrate sources include foods rich in fiber, whole grains, and those low in free sugars and refined starch. These foods—such as whole grains, fruits, and non-starchy vegetables—are digested slowly, resulting in a longer gastrointestinal transit time and stable blood glucose levels [9]. They also provide essential nutrients, including vitamins, minerals, and fiber, which help regulate blood sugar, support cardiovascular health, and meet the body’s nutritional needs. In contrast, low-quality carbohydrates—such as refined grains, potatoes, fruit juices, added sugars, and non-potato root vegetables—are digested quickly and absorbed rapidly, causing spikes in blood glucose [10]. Overconsumption of these foods has been linked to endocrine imbalances, particularly hyperinsulinemia, which can increase appetite, reduce energy expenditure, and elevate the risk of cardiovascular diseases like heart attack, stroke, and even mortality.

Previous carbohydrate quality studies have mostly focused on associations with obesity, diabetes, all-cause mortality and hypertension, while large cross-sectional studies on gut health are lacking [11]. Vitamins and minerals contained in high-quality carbonated water have been found to promote intestinal smooth muscle peristalsis and calcium absorption, with the high fibre also contributing to gut microbial homeostasis, suggesting a potential role of high-quality carbohydrate diets for gut health [1214]. In contrast, long-term consumption of refined grains and starchy tubers in low-quality carbohydrates may replace dietary fibre, leading to a reduction in intestinal volume and obstruction of stool passage, which can lead to symptoms such as abdominal pain, bloating, constipation, and painful defecation, implying that low-quality carbohydrates may be detrimental to intestinal health [4,1516]. However, the specific association between carbohydrate quality and the gut is unclear. In addition, the extent to which different quality carbohydrates improve or exacerbate symptoms in different populations with CC or CD is unclear. For example, symptoms of constipation or diarrhoea in diabetic patients may be associated with autonomic neuropathy [1719], and further research evidence is still needed to determine whether diets with different qualities of carbohydrates can affect the symptoms of CC and CD in this mechanism.

This study introduces a novel approach to understanding the relationship between carbohydrate quality and gut health by utilizing large-scale cross-sectional data from the National Health and Nutrition Examination Survey (NHANES). It addresses limitations in current guidelines, which focus on free sugars and starchy vegetables as low-quality carbohydrates without accounting for the complexity of dietary patterns. By implementing strict dietary controls to reduce confounding factors like fat and energy intake, and conducting subgroup analyses across diverse populations, we overcome the inadequacy of single indicators in measuring carbohydrate quality. Our research questions the assumption that unrestricted intake of high-quality carbohydrates is always beneficial and explores whether a threshold effect exists for gut health improvements. The study’s primary aim is to validate the association between carbohydrate quality and digestive conditions such as constipation and diarrhea, while the secondary goal is to identify specific populations that could benefit from dietary adjustments, emphasizing the clinical relevance of our findings.

2. Materials and methods

2.1. Study population

The data for this study were sourced from NHANES, operated by the Centers for Disease Control and Prevention (CDC). NHANES is a nationally representative cross-sectional survey conducted by the National Center for Health Statistics (NCHS) using a stratified, multistage probability sampling method to collect health and nutrition data from the U.S. civilian non-institutionalized population. The survey is conducted every two years, and six years (2005–2006, 2007–2008, and 2009–2010) included bowel health information. The Research Ethics Review Board authorized this survey and verified that all participants provided informed consent.

In these three cycles, a total of 31,034 participants were included. However, individuals under 20 years old (n =  13,902), those missing Bowel Health Questionnaire (n =  2,513), and Dietary Questionnaire (n =  1,860) data were excluded. Additionally, 1,404 participants were excluded due to missing other covariates, including marital status (n =  7), PIR (n =  893), education level (n =  6), smoking (n =  2), alcohol consumption (n =  11), BMI (n =  100), PHQ-9 (n =  12), and underlying disease (n =  373).

Overall, 11,355 participants were included, with 10,488 in the constipation group and 10,516 in the diarrhea group. Detailed statistics can be found at https://www.cdc.gov/nchs/nhanes/. The flowchart is shown in Fig 1. The study protocol was approved by the Research Ethics Review Committee of the National Center for Health Statistics at the Centers for Disease Control and Prevention (CDC), and all NHANES processes were approved by the NCHS Research Ethics Review Board (ERB), besides, participants provided written informed consent. However, as this text involves secondary analysis of data already published in the NHANES database and does not involve patient privacy and safety, it does not require renewed informed consent from participants or ethical approval from the ERB.

2.2. Dietary information

All dietary intake data were sourced from the Food Patterns Equivalents Database (FPED). The FPED provides nutritional values of foods, including quantities of fruits, vegetables, grains, protein foods, dairy, oils, added sugars, solid fats, and alcoholic beverages. The first dietary recall interview was conducted at a Mobile Examination Center (MEC), and the second interview was conducted via telephone 3–10 days later. Participants were asked to recall all food and beverages consumed in the past 24 hours (from midnight to midnight). The average food intake over these two days was calculated.

To better explore the relationship between dietary carbohydrates and symptoms of constipation and diarrhea, daily carbohydrate intake was divided into high-quality and low-quality carbohydrate intake. The daily intake of high-quality and low-quality carbohydrates was calculated by summing specific food groups from the Food Patterns Equivalents Database (FPED). High-quality carbohydrate intake includes whole grains, legumes, whole fruits, and non-starchy vegetables, while low-quality carbohydrate intake includes refined grains, fruit juices, starchy vegetables, and added sugars. Each carbohydrate type is measured in FPED using specific units based on its category: whole grains and refined grains are measured in “ounce equivalents”; legumes, whole fruits, juices, non-starchy vegetables, and starchy vegetables are measured in “cup equivalents”; and added sugars are measured in “teaspoon equivalents.” Detailed intake amounts are provided in S1 Table.

2.3. Bowel health questionnaire

Participants’ chronic diarrhea or constipation status was determined based on their responses to the Bowel Health Questionnaire. Researchers presented participants with a card featuring color images and descriptions of the Bristol Stool Form Scale (BSFS, types 1–7) for reference. Consistent with previous studies, participants whose usual or most common stool type was classified as BSFS type 1 (separate hard lumps, like nuts) or BSFS type 2 (sausage-like but lumpy) were categorized as having chronic constipation. Those whose usual or most common stool type was classified as BSFS type 6 (fluffy pieces with ragged edges, a mushy stool) or BSFS type 7 (watery, no solid pieces) were categorized as having chronic diarrhea. The remaining participants were classified as having normal bowel habits.

2.4. Covariates

We adjusted for risk factors associated with chronic diarrhea and chronic constipation [20,21]. Covariates included in this study were age, sex, race/ethnicity (non-Hispanic white, non-Hispanic black, and other races), education level (≤high school, >high school), marital status (living alone, married or living with a partner), poverty income ratio (PIR; range 0–5, measuring socioeconomic status, categorized as PIR < 2 or ≥2), smoking status (never smoked or smoked <  100 cigarettes in their lifetime, smoked ≥ 100 cigarettes and currently smoking), alcohol consumption (defined as drinking if a person consumes at least 12 drinks per year), and vigorous physical activity (in the 2005–2006 cycle, defined as engaging in at least 10 minutes of vigorous activity in the past 30 days that caused heavy sweating or a significant increase in breathing or heart rate. From 2007–2010, those who answered “yes” to the question “Does your work involve vigorous physical activity that causes a significant increase in breathing or heart rate, such as carrying or lifting heavy loads, digging, or construction work for at least 10 minutes?” were considered to engage in vigorous physical activity). Body mass index (BMI) was calculated as weight in kilograms divided by height in meters squared, classified as underweight/normal (<25 kg/m²), overweight (25–30 kg/m²), and obese (≥30 kg/m²). Diabetes status was defined by a doctor’s diagnosis, HbA1c > 6.5%, fasting glucose >  7.0 mmol/l, random glucose ≥11.1 mmol/l, 2-hour OGTT glucose ≥11.1 mmol/l, or current medication use. Hypertension was defined by current use of antihypertensive medication, a doctor’s diagnosis, systolic blood pressure over 130 mmHg, or diastolic blood pressure over 80 mmHg. Other variables included coronary heart disease, hyperlipidemia, cancer, and depression (Patient Health Questionnaire-9 (PHQ-9) score ≥10, a validated measure for depression), and dietary intake assessed by trained interviewers for total fiber, fat, water, and energy intake.

2.5. Statistical analysis

We used R (version 4.4.0, 2024, R Foundation; http://www.r-project.org). Using NHANES census data from 2005 to 2010, we examined baseline characteristics of study individuals through descriptive analysis, stratified by the presence of constipation and diarrhea. Continuous variables were presented as weighted means ±  standard errors (SE), while categorical variables were presented as counts (weighted percentages, %). Categorical variables were analyzed using weighted chi-square statistics, and continuous variables were analyzed using analysis of variance (ANOVA). We calculated six-year weights based on the Bowel Health Questionnaire. Multivariable logistic regression models estimated the odds ratios (ORs) and 95% confidence intervals (CIs) between high or low-quality carbohydrate intake and chronic diarrhea and constipation. We constructed three models: the crude model (unadjusted), Model 1 adjusted for age, sex, race, marital status, PIR, and educational level, and Model 2 further adjusted for smoking, drinking, BMI, and physical activity. Model 3 included additional adjustments for diabetes, hypertension, CHD, hyperlipidemia, cancer, depression, dietary fiber intake (g/day), total fat intake (g/day), and total water intake (g/day). We used restricted cubic splines (RCS) with spline smoothing functions to assess dose-response relationships between high or low-quality carbohydrate intake and the risk of chronic diarrhea and constipation. Finally, we conducted subgroup analyses and interaction tests to explore potential differences across various populations. All significance tests were two-sided, with p <  0.05 considered statistically significant.

3. Results

3.1. Basic characteristics of the study population

When analyzing constipation as the outcome, 10,488 participants were included after excluding various factors. Among them, 839 had constipation, while 9,649 were healthy. The average age of those with constipation was 46.071 years, and the average high-quality carbohydrate intake was 2.766 ±  0.050 servings per day.

When analyzing diarrhea as the outcome, 10,516 participants were included, with 867 having diarrhea and 9,649 being healthy. The average age of those with diarrhea was 50.597 ±  0.748 years. Their average high-quality carbohydrate intake was 2.595 ±  0.124 servings per day, and the average low-quality carbohydrate intake was 23.887 ±  0.755 servings per day.

The overall prevalence of constipation was 8.0%, and the overall prevalence of diarrhea was 8.2%. In the constipation group, compared to healthy individuals, those with constipation were more likely to be non-Hispanic Black, female, have lower income, lower education levels, or be depressed. They also had lower energy intake, lower water consumption, did not engage in vigorous physical activity, had lower fiber intake, and tended to consume alcohol.

The univariate analysis of the diarrhea group showed that, compared to healthy individuals, those with diarrhea were more likely to be female, older, have lower income, lower education levels, not engage in vigorous physical activity, be obese, consume alcohol, smoke, be depressed, have diabetes, hypertension, hyperlipidemia, or cancer. Table 1 summarizes the characteristics of the participants.

thumbnail
Table 1. Based on the baseline characteristics of the study population ascertained.

https://doi.org/10.1371/journal.pone.0315795.t001

3.2. Relationship between high or low quality carbohydrates and gut health

3.2.1. Relationship between high/low quality carbohydrates and constipation.

Table 1 shows a association between high-quality carbohydrate intake and constipation. To explore this relationship further, a multivariable logistic regression analysis was conducted. After multiple adjustments, it was found that a diet high in quality carbohydrates was negatively associated with constipation (OR: 0.852, 95% CI: 0.796, 0.912, P =  0.0001).

Moreover, when using high-quality carbohydrate intake as a stratified variable (quartiles), further analysis in the fully adjusted model indicated that individuals in the highest quartile (Q4) had a lower risk of constipation compared to those in the lowest quartile (Q1) (OR: 0.663, 95% CI: 0.508, 0.864, P =  0.0061, P for trend =  0.0006). This reinforces the beneficial link between high-quality carbohydrates and reduced constipation risk.

Conversely, low-quality carbohydrate intake was significantly positively associated with the risk of constipation. After similar adjustments, low-quality carbohydrates were found to have a positive association with constipation risk (OR: 1.010, 95% CI: 1.002, 1.018, P =  0.0295). Furthermore, individuals in the highest quartile (Q4) of low-quality carbohydrate intake had a significantly higher risk of constipation compared to those in the lowest quartile (Q1) (OR: 1.834, 95% CI: 1.381, 2.435, P =  0.0004, P for trend =  0.0008).

Trend tests revealed that with each additional serving of high-quality carbohydrates, there was a statistically significant decrease in constipation risk. Conversely, increased intake of low-quality carbohydrates was associated with a statistically significant increase in constipation risk (see Table 2 for details).

thumbnail
Table 2. Adjusted OR [95% confidence interval (CI)] for the association between constipation and carbohydrate mass quartiles.

https://doi.org/10.1371/journal.pone.0315795.t002

3.2.2. Relationship between high/low quality carbohydrates and diarrhoea.

After adjusting for the weighted data in the crude model, this study found no direct association between high or low-quality carbohydrate diets and diarrhea (High-quality carbohydrates: 95% CI: 0.890, 1.060, P =  0.5189; Low-quality carbohydrates: 0.999, 95% CI: 0.990, 1.008, P =  0.8278). However, trend tests showed a statistically significant decrease in diarrhea with each additional serving of high-quality carbohydrates (P for trend =  0.0100). In contrast, increased intake of low-quality carbohydrates did not show a significant trend with diarrhea (P for trend =  0.9644) (see Table 3 for details).

thumbnail
Table 3. Adjusted OR [95% confidence interval (CI)] for the association between diarrhoea and carbohydrate mass quartiles.

https://doi.org/10.1371/journal.pone.0315795.t003

3.3. Restrictive cubic spline curves between high or low quality carbohydrates and constipation/diarrhoea

In Table 3, dietary carbohydrate quality is significantly associated with constipation, though there might be a non-linear relationship between the quality of dietary carbohydrates and the severity of constipation. To further explore the specific relationship between high or low-quality carbohydrates and constipation, we used weighted restricted cubic splines (RCS) to assess the associations between high/low-quality carbohydrates and constipation and diarrhea. The variables in Model II in Table 3 were also adjusted.

The RCS results (Fig 2) indicate a negative association between a high-quality carbohydrate diet and constipation, but no significant non-linear relationship (overall P-value =  0.0002, non-linear P-value =  0.2713). Conversely, low-quality carbohydrates showed a positive association with constipation symptoms, with a significant non-linear relationship (overall P-value <  0.0001, non-linear P-value =  0.0007). The relationship between low-quality carbohydrates and constipation was found to be an inverted U-shape, with segmented regression revealing a significant positive association when the intake of low-quality carbohydrates was less than 40.65 servings/day (OR: 1.022, 95% CI: 1.011, 1.033, P =  0.0008), but it flattened out beyond 40.65 servings/day.

thumbnail
Fig 2. Restricted Cubic Spline Analysis of High- and Low-Quality Carbohydrate Intake and Symptoms of Constipation and Diarrhea.

(A) Relationship between high-quality carbohydrate intake and constipation. (B) Relationship between low-quality carbohydrate intake and constipation. (C) Relationship between high-quality carbohydrate intake and diarrhea. (D) Relationship between low-quality carbohydrate intake and diarrhea.

https://doi.org/10.1371/journal.pone.0315795.g002

A high-quality carbohydrate diet was negatively correlated with diarrhea and exhibited a significant non-linear relationship (overall P-value =  0.0001, non-linear P-value <  0.0001), whereas the intake of low-quality carbohydrates did not show a significant relationship with diarrhea (overall P-value =  0.8046). Since the RCS curve for high-quality carbohydrates was U-shaped, further segmented regression found that the significant negative association was present up to a daily intake of 3.84 servings (OR: 0.853, 95% CI: 0.741, 0.981, P =  0.0360), but it flattened out beyond 3.84 servings/day (see Tables 4 and 5 for details).

thumbnail
Table 4. Threshold Effects Between Low-Quality Carbohydrates and Constipation.

https://doi.org/10.1371/journal.pone.0315795.t004

thumbnail
Table 5. Threshold Effects Between High-Quality Carbohydrates and Diarrhea.

https://doi.org/10.1371/journal.pone.0315795.t005

The horizontal axis represents dietary intake, and the vertical axis represents the relationship (β coefficient) between carbohydrate quality and symptoms of constipation and diarrhea.

3.4. Subgroup analysis of high/low quality carbohydrates and constipation

The above results show a significant association between high/low-quality carbohydrates and constipation. To further understand whether the effects of high or low-quality carbohydrates on constipation vary significantly among different subgroups (such as age, gender, BMI, etc.), and to better control and adjust for potential confounding factors to ensure the accuracy and reliability of the study results, a subgroup analysis was conducted (see Figs 36).

thumbnail
Fig 3. Subgroup analysis of categorical variables related to high-quality carbohydrates and constipation.

https://doi.org/10.1371/journal.pone.0315795.g003

thumbnail
Fig 4. Subgroup analysis of continuous variables related to high-quality carbohydrates and constipation.

https://doi.org/10.1371/journal.pone.0315795.g004

thumbnail
Fig 5. Subgroup analysis of categorical variables related to low-quality carbohydrates and constipation.

https://doi.org/10.1371/journal.pone.0315795.g005

thumbnail
Fig 6. Subgroup analysis of continuous variables related to low-quality carbohydrates and constipation.

https://doi.org/10.1371/journal.pone.0315795.g006

The subgroup analysis showed that the negative association between high-quality carbohydrates and constipation was consistent across various subgroups categorized by gender, race, age, BMI, education level, smoking, drinking, diabetes, vigorous activity, coronary heart disease, hyperlipidemia, cancer, depression, energy intake, total water intake, total fat intake, and total fiber intake. However, this negative association was not significant in subgroups with low education levels, non-drinkers, individuals with diabetes, coronary heart disease, depression, those older than 60 years, PIR <  2, BMI >  30, medium to high energy intake, medium fiber intake, and those with very low or very high fat and water intake.

The positive association between low-quality carbohydrates and constipation was generally consistent across all subgroups, but was less pronounced in subgroups of women, non-Hispanic Blacks and other races, those with high education levels, never or former smokers, non-drinkers, individuals with diabetes, non-hypertensive individuals, those with coronary heart disease, cancer, depression, those older than 45 years, PIR <  2, BMI >  25, those with very high or very low energy intake, low to medium fiber intake, and those with excessive water intake. Overall, the model was robust and minimally affected by specific populations.

3.5. Sensitivity analyses

To address the potential impact of other dietary components on gut health, we conducted a sensitivity analysis on the relationship between carbohydrate quality and the incidence of constipation and diarrhea. Specifically, we controlled for factors such as fat, protein, and energy intake in addition to the original covariates. The results indicated that the statistical effect of carbohydrate quality on diarrhea and constipation remained highly significant. For further details, please refer to Table 6.

thumbnail
Table 6. Sensitivity analysis of the impact of carbohydrate quality on gut health.

https://doi.org/10.1371/journal.pone.0315795.t006

4. Discussion

This study was based on the NHANES large cross-sectional data and included a total of 11,355 participants whose intake was assessed for its association with bowel health by carbohydrate quality score. The results of multivariate logistic regression showed that high-quality carbohydrate intake was negatively associated with constipation; while low-quality carbohydrate intake was positively associated with constipation and was significant at low-quality carbohydrate intake of less than 40.65 servings/day. High-quality carbohydrate intake was negatively associated with diarrhoea and was significant until high-quality carbohydrate intake was less than 3.84 servings/day. It is evident that high quality carbohydrates (whole grains and fibre) have a bi-directional modulatory effect on gut health [22,23] and the effect of different quality carbohydrates within a given intake on gut health is significant [24].

The effects of high or low quality carbohydrate diets on the gut may be achieved through several mechanisms: (1) Influence on fiber intake: High-quality carbohydrates are rich in dietary fiber, which are fermented in the colon by the microbiota to produce gas and short-chain fatty acids (SCFAs) [25], such as butyrate. Butyrate is not only an important source of energy for the colonic mucosa, but also increases intestinal peristalsis [2628]. Low-quality carbohydrates exacerbate constipation because they are usually deficient in dietary fibre, and insufficient fibre leads to reduced intestinal peristalsis and dry stools that are difficult to pass. At the same time, loss of dietary fibre, which reduces the production of SCFAs, increases the permeability of the colonic mucus barrier, triggering inflammation and pathogen invasion [29,30]. (2) Altering water content: faecal consistency is closely related to water content, and small changes in water content can significantly affect faecal movement and emptying [31]. High-quality carbohydrates (vegetables and fruits) contain more water, and fibre also retains water and increases faecal hydration, thereby promoting defecation [32]. In addition, excess fibre absorbs large amounts of water in the gut, further exacerbating the symptoms of diarrhoea, which may explain the limited value of the positive effect of high quality carbohydrates on diarrhoea. (3) Anti-inflammatory effects: high-quality carbohydrate diets have been associated with lower levels of inflammation. High-fibre diets reduce inflammation by altering intestinal pH and permeability [33,34]. There is a association between dietary inflammatory potential and the composition of the gut microbiota, and higher grain and fibre intake may reduce chronic inflammation, whereas low-quality carbohydrates, such as over-refined sugars, increase oxidative responses and promote the persistence of chronic inflammation [35]. (4) Adjusting amino acid and vitamin intake: high-quality carbohydrates are rich in folate and other vitamins, nutrients that are essential for neurological health, and amino acids such as tryptophan help regulate mood and well-being [36]. Deficiencies in these nutrients may increase the risk of depression, affect gut health in the context of the gut-brain axis, and develop functional intestinal disorders [37]. (5) Alteration of gut microbial communities: the type of carbohydrate can shape different gut microbial communities. High-quality carbohydrates support beneficial flora by providing fibre, whereas low-quality carbohydrates (high in free sugars) disturb the flora balance and shift the metabolism of the gastrointestinal microbiota towards the production of harmful metabolites, leading to constipation and diarrhoea [38,39].

In this study, we further understood the effects of high or low quality carbohydrates on constipation in different subgroups of the population, and subgroup analyses revealed that the association between different quality carbohydrates and constipation was not significant in PIR < 2, middle-aged and elderly populations, non-drinking alcohol, obesity, diabetes mellitus, coronary artery disease, depression, and excessive water intake populations.

The reasons for this may be the lack of nutritional knowledge in low-income populations, the inability to access sufficient high-quality food resources, and the poor understanding and implementation of a healthy diet, which affects the effectiveness of high-quality carbohydrate intake. Additionally, there may be a lack of resources or capacity for constipation management and treatment due to poor medical care, resulting in the problem of constipation relying more on improvements in lifestyle habits rather than just adjustments in dietary composition [40]. Furthermore, low-income populations might be more likely to consume low-quality carbohydrates because they often opt for cheaper, calorie-dense foods to satisfy hunger. These foods, such as fried chicken, fries, and potatoes, are typically more affordable but nutritionally inferior compared to high-quality food options. This dietary pattern can contribute to a higher intake of low-quality carbohydrates and exacerbate issues like constipation.. Compared to younger people, middle-aged and older adults may have more underlying diseases, weakened digestive system, reduced intestinal motility, and possibly a slower response to carbohydrates [41]. Drinking behaviour may lead to deranged energy metabolism, and carbohydrates are an important energy supplement for drinkers and have a marked effect on them. However, non-drinkers may have a relatively balanced energy intake and a healthier digestive system, which in turn diminishes the effect of carbohydrate mass on constipation [42,43]. People who are overweight or obese may influence gut health through a number of factors, including high-fat and high-protein diets, and the accompanying metabolic disorders and chronic inflammatory states in obese patients may influence the role of carbohydrate mass on gut health [44]. Gut motility in diabetic patients may be affected by autonomic neuropathy, and when autonomic neuropathy leads to slowing of gut motility, on the one hand, it is prone to small intestinal bacterial overgrowth, which leads to bile salt catabolism, fat malabsorption, and thus diarrhoea; on the other hand, the slowing of gut motility may weaken or eliminate gastrocolic reflexes after eating, which slows down the rate of colonic transit, leading to constipation, and thus weakening the the potential benefits of high-quality carbohydrates on gut health, while the role for the effects of low-quality carbohydrates thus becomes more ambiguous [45,46]. Patients with coronary artery disease are often accompanied by multiple chronic conditions, and medication and the condition itself may have a complex impact on bowel function, such as the use of diuretics and calcium channel blockers, which often interfere with normal faecal excretion, mitigating the effects of carbohydrates [47]. Depression exists with altered dietary habits and may choose foods that are high in sugar, fat and low in fibre, which often bring euphoria but tend to lead to constipation. Depression is often associated with low physical activity, which also slows down bowel motility, while psychological factors influence the imbalance of the intestinal flora and affect the function of the digestive system. Side effects of certain antidepressants such as sertraline and citalopram include constipation [48,49].

In addition, the association between low-quality carbohydrates and constipation was not significant in female, race, or cancer populations. Women may be more concerned with healthy eating, even when consuming low-quality carbohydrates, and they may alleviate constipation through other dietary modifications [50,51]. There are differences in gut microbiota and dietary habits across races, and geographic/racial differences in microbiome structure attributed to differences in host genetics and innate/adaptive immunity influence the role of low-quality carbohydrates on constipation [52]. While cancer patients’ diets are carefully modified and they may take more anticancer drugs to meet specific nutritional and therapeutic needs and mitigate the effect of low-quality carbohydrates on constipation, high-quality carbohydrates are significantly negatively correlated with constipation in cancer populations, probably because high-quality carbohydrates help metabolise toxins from the faeces and reduce their negative effects [53]. In terms of energy intake, this study found that too high or too low energy intake may lead to adjustments in other dietary structures (e.g., protein and fat intake) to counteract the negative effects of low-quality carbohydrates [54]. People with moderate fibre intake did not achieve optimal fibre intake, affecting the ameliorative effect of high-quality carbohydrates on constipation. Inadequate fibre intake may contribute to constipation, but the effects of low quality carbohydrates may be masked by other dietary factors [55].

The FODMAP diet, which stands for fermentable oligosaccharides, disaccharides, monosaccharides, and polyols, includes carbohydrates that are difficult to absorb in the small intestine and ferment in the large intestine, producing gas and attracting water, leading to bloating, abdominal pain, and diarrhea [56]. The FODMAP diet is well-supported by evidence for treating Irritable Bowel Syndrome (IBS). IBS patients often experience constipation and diarrhea. Reducing the intake of easily fermentable carbohydrates can lower intestinal gas and osmolality, improving gastrointestinal function. These fermentable polysaccharides are often seen as low-quality carbohydrates, negatively affecting intestinal health. In contrast, low FODMAP foods rich in fiber and high-quality carbohydrates can significantly alleviate IBS-C symptoms, aligning with this study’s recommendations. The quality of carbohydrates also relates to individual tolerance to different FODMAPs, with varying tolerance levels among individuals [57]. This aligns with the subgroup analyses in this paper, where dietary treatments are both generalized and specific. For patients with multiple dietary restrictions, such as vegetarians or diabetics, creating a balanced and nutritious diet is clinically important [58].

In conclusion, our study is the first to elucidate the significant relationship between carbohydrate quality and digestive issues such as constipation and diarrhea. We found that high-quality carbohydrates—rich in dietary fiber and whole grains, and low in free sugars and glycemic index—are more crucial for gut health than merely reducing carbohydrate intake. This challenges the conventional endorsement of low-carb or ketogenic diets, which often lead to gut imbalances. Our findings advocate for a dietary shift towards high-quality carbohydrates to prevent gut issues and support weight management, offering a balanced alternative to restrictive diets. Additionally, high-quality carbohydrates can alleviate both constipation and diarrhea, benefiting individuals with mixed-type IBS. These insights have profound clinical implications, particularly in enteral nutrition therapy, where soluble fibers and SCFAs are essential for preventing and treating diarrhea. This research paves the way for more effective nutritional strategies to enhance gut health, leading to improved decision-making in clinical settings and a reduction in societal health burdens. Our study emphasizes the importance of carbohydrate quality in both clinical and everyday dietary practices.

However, there are some limitations to our study. Firstly, there are many potential factors affecting diet, the systemic physiological effects of high and low quality carbohydrates are not yet fully understood, and although we included covariates such as hypertension, diabetes mellitus, hyperlipidaemia, and cancer, we were unable to exclude the effects of all potential confounders, and therefore the findings need to be validated in subsequent studies. Second, cross-sectional studies, although useful in initial exploration and hypotheses, cannot provide causal evidence and lack external validation, which may lead to biased results. Future studies should adopt more longitudinal designs or experimental methods for a deeper understanding of the problem. Finally, there are significant differences in genetic backgrounds, lifestyles, healthcare levels, and socioeconomic conditions across countries and regions, and the findings of this study may not be fully applicable to other countries. Therefore, caution is needed when applying these results to other regions of the globe, taking into account unique environmental and demographic characteristics. Future studies should expand the sample to cover more countries and cultures to enhance the generalisability and applicability of the results.

5. Conclusions

High-quality carbohydrates positively impact gut health by reducing risks of constipation and diarrhea. In the top quartile of high-quality carbohydrate intake, constipation risk was 33.7% lower, showing a linear negative trend. Low-quality carbohydrates, however, increased constipation risk by 83.4% in the highest intake group, with a U-shaped trend where risk rose below 40.65 servings/day but stabilized beyond. For diarrhea, high-quality carbohydrates showed a protective effect up to 3.84 servings/day, while low-quality carbohydrates had no significant association. Enhancing carbohydrate quality appears to be an effective strategy to support gut health, especially for sensitive populations.

Supporting information

S1 Table. Per reference unit of high-quality carbohydrates and low-quality carbohydrates.

https://doi.org/10.1371/journal.pone.0315795.s001

(XLSX)

S2 Table. Primary data on the relationship between constipation and carbon and water quality.

https://doi.org/10.1371/journal.pone.0315795.s002

(CSV)

S3 Table. Primary data on the relationship between diarrhea and carbon and water quality.

https://doi.org/10.1371/journal.pone.0315795.s003

(CSV)

Acknowledgments

We acknowledge NHANES databases for providing their platforms and contributing meaningful datasets.

References

  1. 1. Mayer EA, Naliboff BD, Craig ADB. Neuroimaging of the brain-gut axis: from basic understanding to treatment of functional GI disorders. Gastroenterology. 2006;131(6):1925–42. pmid:17188960
  2. 2. Bharucha AE, Dorn SD, Lembo A, Pressman A; American Gastroenterological Association. American Gastroenterological Association medical position statement on constipation. Gastroenterology. 2013;144(1):211–7. pmid:23261064
  3. 3. Peppas G, Alexiou VG, Mourtzoukou E, Falagas ME. Epidemiology of constipation in Europe and Oceania: a systematic review. BMC Gastroenterol. 2008;85. pmid:18269746
  4. 4. Suares NC, Ford AC. Prevalence of, and risk factors for, chronic idiopathic constipation in the community: systematic review and meta-analysis. Am J Gastroenterol. 2011;106(9):1582–91. PMID: 21606976
  5. 5. Camilleri M, Ford AC, Mawe GM, Dinning PG, Rao SS, Chey WD, et al. Chronic constipation. Nat Rev Dis Primers. 2017;14(3):17095.
  6. 6. Slavin JL. Dietary fiber and body weight. Nutrition. 2005;21(3):411–8. pmid:15797686
  7. 7. Rao SS, Rattanakovit K, Patcharatrakul T. Diagnosis and management of chronic constipation in adults. Nat Rev Gastroenterol Hepatol. 2016;13(5):295–305.
  8. 8. Rehm CD, Peñalvo JL, Afshin A, Mozaffarian D. Dietary intake among US adults, 1999-2012. JAMA. 2016;315(23):2542–53. pmid:27327801
  9. 9. Thomson CA, Wertheim BC, Hingle MD, et al. Alcohol consumption and body weight change in postmenopausal women: results from the Women’s Health Initiative. Int J Obes (Lond). 2012;36(9):1158–64. pmid:28839072
  10. 10. Smits SA, Leach J, Sonnenburg ED, Gonzalez CG, Lichtman JS, Reid G, et al. Seasonal cycling in the gut microbiome of the Hadza hunter-gatherers of Tanzania. Science. 2017;357(6353):802–6. pmid:22689071
  11. 11. Anderson JW, Baird P, Davis RH Jr, et al. Health benefits of dietary fiber. Nutr Rev. 2009;67(4):188–205.
  12. 12. Chey WD, Kurlander J, Eswaran S. Irritable bowel syndrome: a clinical review. JAMA. 2015;313(9):949–58. pmid:25734736
  13. 13. Tazzyman S, Richards N, Trueman AR, Evans AL, Grant VA, Garaiova I, et al. Vitamin D associates with improved quality of life in participants with irritable bowel syndrome: outcomes from a pilot trial. BMJ Open Gastroenterol. 2015;2(1):e000052. pmid:26719813
  14. 14. Cui W, Nagano Y, Morita S, Tanoue T, Yamane H, Ishikawa K, et al. Diet-mediated constitutive induction of novel IL-4+ ILC2 cells maintains intestinal homeostasis in mice. J Exp Med. 2023;220(8):e20221773.
  15. 15. Barber TM, Kabisch S, Pfeiffer AFH, Weickert MO. The health benefits of dietary fibre. Nutrients. 2020;12(10):3209. PMID: 33096647
  16. 16. Eswaran S, Muir J, Chey WD. Fiber and functional gastrointestinal disorders. Am J Gastroenterol. 2013;108(5):718–27.
  17. 17. Hillestad EMR, van der Meeren A, Nagaraja BH, Bjørsvik BR, Haleem N, Benitez-Paez A, et al. Gut bless you: The microbiota-gut-brain axis in irritable bowel syndrome. World J Gastroenterol. 2022;28(4):412–31. pmid:35125827
  18. 18. Bharucha AE, Dorn SD, Lembo A, Pressman A. American gastroenterological association medical position statement on constipation. Gastroenterology. 2013;144(1):211–7.
  19. 19. Knowles SR, Apputhurai P, Palsson OS, Bangdiwala S, Sperber AD, Mikocka-Walus A. The epidemiology and psychological comorbidity of disorders of gut-brain interaction in Australia: results from the Rome foundation global epidemiology study. Neurogastroenterol Motil. 2023;35(6):e14594.
  20. 20. Mahmoud M, Ballouz T, Lahoud C, Adnan J, Habib PA, Saab R, et al. Late presentations and missed opportunities among newly diagnosed HIV patients presenting to a specialty clinic in Lebanon. Sci Rep. 2024;14(1):8296. PMID: 38594292
  21. 21. Makol A, Grover M, Whitehead WE. Fecal incontinence in women: causes and treatment. Womens Health (Lond). 2008;4(5):517–28. pmid:19072490
  22. 22. Ballou S, Katon J, Singh P, Rangan V, Lee HN, McMahon C, et al. Chronic diarrhea and constipation are more common in depressed individuals. Clin Gastroenterol Hepatol. 2019;17(13):2696–703.
  23. 23. Hawkins MAW, Keirns NG, Helms Z. Carbohydrates and cognitive function. Curr Opin Clin Nutr Metab Care. 2018;21(4):302–7. pmid:29851417
  24. 24. Berger PK, Plows JF, Demerath EW, Fields DA. Carbohydrate composition in breast milk and its effect on infant health. Curr Opin Clin Nutr Metab Care. 2020;23(4):277–81. pmid:32304397
  25. 25. Schwingshackl L, Hoffmann G, Lampousi AM, Knüppel S, Iqbal K, Schwedhelm C, et al. Food groups and risk of type 2 diabetes mellitus: a systematic review and meta-analysis of prospective studies. Eur J Epidemiol. 2017;32(5):363–75.
  26. 26. Dalile B, Van Oudenhove L, Vervliet B, Verbeke K. The role of short-chain fatty acids in microbiota-gut-brain communication. Nat Rev Gastroenterol Hepatol. 2019;16(8):461–78. PMID: 31123355
  27. 27. Koh A, De Vadder F, Kovatcheva-Datchary P, Bäckhed F. From dietary fiber to host physiology: short-chain fatty acids as key bacterial metabolites. Cell. 2016;165(6):1332–45. pmid:27259147
  28. 28. de Vos WM, Tilg H, Van Hul M, Cani PD. Gut microbiome and health: mechanistic insights. Gut. 2022;71(5):1020–32. pmid:35105664
  29. 29. Blaak EE, Canfora EE, Theis S, Frost G, Groen AK, Mithieux G, et al. Short chain fatty acids in human gut and metabolic health. Benef Microbes. 2020;11(5):411–55. pmid:32865024
  30. 30. Sivaprakasam S, Prasad PD, Singh N. Benefits of short-chain fatty acids and their receptors in inflammation and carcinogenesis. Pharmacol Ther. 2016;164:144–51.
  31. 31. Pandopulos AJ, Simpson BS, White JM, Bade R, Gerber C. Partitioning of phytocannabinoids between faeces and water - Implications for wastewater-based epidemiology. Sci Total Environ. 2022:805150269. pmid:34536871
  32. 32. Jalanka J, Major G, Murray K, Singh G, Nowak A, Kurtz C, et al. The effect of psyllium husk on intestinal microbiota in constipated patients and healthy controls. Int J Mol Sci. 2019;20(2):433.
  33. 33. Costa LM, Mendes MM, Oliveira AC, Magalhães KG, Shivappa N, Hebert JR, et al. Dietary inflammatory index and its relationship with gut microbiota in individuals with intestinal constipation: a cross-sectional study. Eur J Nutr. 2022;61(1):341–55.
  34. 34. Swann OG, Kilpatrick M, Breslin M, Oddy WH. Dietary fiber and its associations with depression and inflammation. Nutr Rev. 2020;78(5):394–411. PMID: 34351455
  35. 35. Lu Z, Xie Z, Shen K, Wu X, Feng E. Association of dietary inflammatory index with immune-inflammatory biomarkers in rheumatoid arthritis patients: results from NHANES 1999-2018. Front Nutr. 2024;11:1353964.
  36. 36. Clarke G, Grenham S, Scully P, Fitzgerald P, Moloney RD, Shanahan F, et al. The microbiome-gut-brain axis during early life regulates the hippocampal serotonergic system in a sex-dependent manner. Mol Psychiatry. 2013;18(6):666–73. pmid:22688187
  37. 37. Kelly JR, Borre Y, O’ Brien C, Patterson E, El Aidy S, Deane J, et al. Transferring the blues: Depression-associated gut microbiota induces neurobehavioural changes in the rat. J Psychiatr Res. 2016;82:109–18.
  38. 38. Gillespie KM, Kemps E, White MJ, Bartlett SE. The impact of free sugar on human health-a narrative review. Nutrients. 2023;15(4):889. pmid:36839247
  39. 39. Hills RD Jr, Pontefract BA, Mishcon HR, Black CA, Sutton SC, Theberge CR. Gut microbiome: profound implications for diet and disease. Nutrients. 2019;11(7):1613. pmid:31315227
  40. 40. Nutbeam D. Health literacy as a public health goal: a challenge for contemporary health education and communication strategies into the 21st century. Health Prom Int. 2000;15(3):259–67.
  41. 41. Liu X, Li M, Jian C, Wei F, Liu H, Li K, et al. Astragalus polysaccharide alleviates constipation in the elderly via modification of gut microbiota and fecal metabolism. Rejuvenation Res. 2022;25(6):275–90. pmid:36205566
  42. 42. Muir JG, Gibson PR. Validation of an algorithm for the low FODMAP diet by analysis of dietary intake. Dig Dis Sci. 2013;58(4):1239–42.
  43. 43. Kiecolt-Glaser JK, Wilson SJ, Bailey ML, Andridge R, Peng J, Jaremka LM, et al. Marital distress, depression, and a leaky gut: Translocation of bacterial endotoxin as a pathway to inflammation. Psychoneuroendocrinology. 2018;9852–60. pmid:30098513
  44. 44. Mukai R, Handa O, Naito Y, Takayama S, Suyama Y, Ushiroda C, et al. High-fat diet causes constipation in mice via decreasing colonic mucus. Dig Dis Sci. 2020;65(8):2246–53.
  45. 45. Dimidi E, Christodoulides S, Scott SM, Whelan K. Mechanisms of action of probiotics and the gastrointestinal microbiota on gut motility and constipation. Adv Nutr. 2017;8(3):484–94. PMID: 28507013
  46. 46. Wang Y, Hu FB. Dietary patterns and hypertension among US adults: NHANES 1999-2004. Hypertension. 2008;51(3):705–11.
  47. 47. Davies MJ, Aroda VR, Collins BS, Gabbay RA, Green J, Maruthur NM, et al. Management of Hyperglycemia in Type 2 Diabetes, 2022. A Consensus Report by the American Diabetes Association (ADA) and the European Association for the Study of Diabetes (EASD). Diabetes Care. 2022;45(11):2753–86. pmid:36148880
  48. 48. Kroenke K, Spitzer RL, Williams JB. The PHQ-9: validity of a brief depression severity measure. J Gen Intern Med. 2001;16(9):606–13.
  49. 49. Firth J, Marx W, Dash S, Carney R, Teasdale SB, Solmi M, et al. The effects of dietary improvement on symptoms of depression and anxiety: a meta-analysis of randomized controlled trials. Psychosom Med. 2019;81(3):265–80. PMID: 30720698
  50. 50. Maughan RJ, Watson P, Cordery PA, Walsh NP, Oliver SJ, Dolci A, et al. A randomized trial to assess the potential of different beverages to affect hydration status: development of a beverage hydration index. Am J Clin Nutr. 2016;103(3):717–23.
  51. 51. Du C, Adjepong M, Zan MCH, Cho MJ, Fenton JI, Hsiao PY, et al. Gender differences in the relationships between perceived stress, eating behaviors, sleep, dietary risk, and body mass index. Nutrients. 2022;14(5):1045. PMID: 35268020
  52. 52. Gupta VK, Paul S, Dutta C. Geography, ethnicity or subsistence-specific variations in human microbiome composition and diversity. Front Microbiol. 2017;8:1162.
  53. 53. Rock CL, Thomson CA, Sullivan KR, Howe CL, Kushi LH, Caan BJ, et al. American Cancer Society nutrition and physical activity guideline for cancer survivors. CA Cancer J Clin. 2022;72(3):230–62.
  54. 54. Blüher M. Obesity: global epidemiology and pathogenesis. Nat Rev Endocrinol. 2019;15(5):288–98. PMID: 30814686
  55. 55. Ruszkiewicz K, Jagielski P, Traczyk I. Glycemic control and awareness among diabetic patients of nutrition recommendations in diabetes. Rocz Panstw Zakl Hig. 2020;71(2):191–6.
  56. 56. Algera JP, Demir D, Törnblom H, Nybacka S, Simrén M, Störsrud S. Low FODMAP diet reduces gastrointestinal symptoms in irritable bowel syndrome and clinical response could be predicted by symptom severity: a randomized crossover trial. Clin Nutr. 2022;41(12):2792–800. PMID: 36384081
  57. 57. Shang Z, Pai L, Patil S. Unveiling the dynamics of gut microbial interactions: a review of dietary impact and precision nutrition in gastrointestinal health. Front Nutr. 2024;11:1395664.
  58. 58. Biniszewska O, Jacenik D, Tarasiuk A, Fichna J. Current and future pharmacotherapies for the management of constipation-predominant irritable bowel syndrome. Expert Opin Pharmacother. 2024;25(8):1039–49. pmid:38856704