ORIGINAL RESEARCH article

Front. Psychol., 01 July 2026

Sec. Health Psychology

Volume 17 - 2026 | https://doi.org/10.3389/fpsyg.2026.1815958

The gut-brain axis and anxiety: investigating associations with diet, vigorous activity, and prior adversity

  • Department of Psychological and Brain Sciences, University of North Florida, Jacksonville, FL, United States

Abstract

Introduction:

The current study investigated associations between different stressors (e.g., poor diet, vigorous activity, and prior adversity), GI symptoms, and anxiety.

Methods:

We collected survey data from a sample of university students and community participants (N = 209).

Results:

Key findings included: (a) vigorous activity was a significant moderator of the relationship between stress and GI symptoms; (b) GI symptoms significantly mediated the relationships between stress and anxiety and prior adversity and anxiety; (c) stress and GI symptoms were significant serial mediators of the relationships between diet quality and anxiety and prior adversity and anxiety.

Discussion:

Our findings suggest that factors such as adversity, diet, and physical activity levels should be considered when examining gut-brain relations specific to stress, anxiety, and GI symptoms. Future research should investigate the directionality of these relationships more clearly through longitudinal and experimental study designs.

Introduction

The gut has been found to have a complex bidirectional relationship with the brain through multiple pathways (Asadi et al., 2022; Góralczyk-Bińkowska et al., 2022). Recent work has investigated this bidirectional relationship to further determine what aspects of each system affect one another, incorporating variables such as diet, exercise, mental health, and stress. While the current literature shows a general understanding of connections between the gut and the brain when taking these variables into consideration, there are additional complexities between these variables that need to be understood with respect to implications for better gut-brain relationships. Specifically, it is important to understand the ways in which variables such as stressors, lifestyle behaviors, and the gut-brain axis interact with each other to know how to move forward in treating related negative symptoms.

Stress and the gut-brain axis

Stress processes play a large role in the bidirectional nature of the gut-brain connection. Stress hormones are regulated in the body through the hypothalamic–pituitary–adrenal axis (HPA axis) in a negative feedback loop (Hill et al., 2008; Leistner and Menke, 2020). When presented with a stressor, the sympathetic system triggers the HPA axis to release the stress hormone cortisol, and the parasympathetic system, activated by the vagus nerve, reduces the release of cortisol. While the HPA axis is meant to regulate the physiological responses of these stressors, excessive levels of stress may lead to dysregulation in this bodily function (Bonaz et al., 2018; Herman et al., 2016).

Although dysregulation in the HPA axis can come from experiencing stress chronically, it may also be triggered by inflammation in the gut, further explaining a bidirectional relationship between the gut and the brain. Some external signs of gut inflammation include diarrhea, stomach pain, loss of appetite, and fatigue (Mayo Foundation for Medical Education and Research, 2024). Inflammation may occur through excessive and chronic stress, triggering the overgrowth of inflammatory bacteria within the gut (De Punder and Pruimboom, 2015). The vagus nerve connects the gut and the central nervous system and is responsible for triggering the parasympathetic response in the body. Inflammation may lead to dysregulation of the vagus nerve, making the parasympathetic response inaccessible, which guts the negative-feedback loop of the HPA axis (Bonaz et al., 2018).

Thus, the current literature shows that gut issues and external stressors are two potential mechanisms for dysregulated cortisol release, both with the ability to make the other worse, mimicking a positive feedback loop (Bonaz et al., 2018; De Punder and Pruimboom, 2015). Therefore, it is important to identify potential causes of inflammation and chronic stressors. Considering prior literature, some preventative factors may include a balanced, fiber-rich, low-processed diet (Bailey and Holscher, 2018; Madison and Kiecolt-Glaser, 2019; Perler et al., 2023), balanced levels of physical activity (Anderson and Wideman, 2017; Gottschall et al., 2020), and stress-relieving practices such as mindfulness (Allexandre et al., 2016; Gardi et al., 2022). Examining the relations between dietary factors, physical activity, and mental health may deepen understanding of the gut-brain axis.

Dietary factors and the gut-brain axis

Previous studies have found that the Western diet and lifestyle, consisting of high-fat consumption, processed foods, and high animal protein is harmful for the gut microbiome and stress (Madison and Kiecolt-Glaser, 2019). Specifically, the Western diet may contribute to systemic inflammation (Malesza et al., 2021), and maintaining a poor diet contributes to gut dysbiosis and harmful changes in microbiota (Campaniello et al., 2022; de Wit et al., 2012; Tomasello et al., 2016). However, a Mediterranean diet may be beneficial for gut-health and inflammation (Leeuwendaal et al., 2022; Perler et al., 2023). A Mediterranean diet consists of a well-balanced, diverse diet with healthy oils (e.g., extra-virgin olive oil, wild-caught salmon, avocado), vegetables high in fiber and proteins, and minimal red meats and processed foods (Kiani et al., 2022). This diet supports anti-inflammatory effects (Perler et al., 2023), which may be beneficial in one’s ability to regulate stress.

Two influential factors in the Mediterranean diet that improve gut-health are high fiber intake and low consumption of saturated fat relative to unsaturated fats (Bailey and Holscher, 2018). Specifically, foods such as extra-virgin olive oil, seeds, nuts, non-starchy vegetables and fruits, fish, and legumes, which are rich in fiber and unsaturated fats, are main components of the Mediterranean diet (Kiani et al., 2022). In contrast, Western diets consisting of high levels of saturated fats and low fiber are associated with gut dysbiosis and lower microbial diversity (de Wit et al., 2012). Because of the interconnectedness of the gut and brain, gut dysbiosis may be harmful in terms of inflammation and dysregulated cortisol release.

High dietary fiber, which mainly comes from low-starch vegetables and fruits, has been shown to enrich beneficial gut microbes and decrease gut pathogens (Chen et al., 2023). Consumption of these foods is beneficial because fiber cannot be digested, so it is fermented within the large intestine to produce these bacteria (Holscher, 2017). Thus, fiber helps in maintaining a healthy gut microbiome, supporting anti-inflammation within the gut. Given the relationship between gut inflammation, stress, and regulation of the HPA axis, it would be expected that a poor diet, low in fiber and high in saturated fats, has the potential to dysregulate stress responses through inflammation. However, few studies have investigated the impact of poor diet on stress regulation through indications of gut-health.

Vigorous activity and the gut-brain axis

Moderate levels of exercise, about 30 to 60 min, 3 to 5 days per week (Garber et al., 2011), have been shown to reduce cortisol release over time. That is, it creates a spike of cortisol during physical activity, then allows the body to better regulate the stress hormone (Anderson and Wideman, 2017). However, exercise that is strenuous and consistent may cause HPA axis dysregulation. One study that measured salivary levels of cortisol suggested that individuals who regularly exercise should not surpass 4–9% of their training being above 90% maximum heart rate to avoid symptoms of overreaching (Gottschall et al., 2020). The relations with high-intensity exercise and higher cortisol levels (Hill et al., 2008; Vanbruggen et al., 2011) suggest that athletes who take part regularly in high-intensity cardiovascular forms of physical activity may be at risk for dysregulation of stress.

Contrary to consistent moderate exercise, previous research has also shown levels of vigorous activity to be associated with higher levels of gut permeability, allowing more pathogens to enter the bloodstream (Clauss et al., 2021). These pathogens may increase the levels of inflammation within the gut, potentially leading to dysregulation in the HPA axis (Bertollo et al., 2025; Fukui, 2016). Multiple studies have also shown a relationship between consistent vigorous activity and gastrointestinal (GI) distress, a sign of inflammation in the gut (Clark and Mach, 2016; Wilson, 2018). This research poses interesting questions about the interplay of gut-health and physical activity with stress levels, given that both gut systems and physical activity can trigger the release of cortisol. Specifically, is vigorous activity associated with GI distress, and if so, what effects does that have on one’s mental health?

Gut-health and anxiety

There is a well-established connection between stress and anxiety, and as discussed, a well-established connection between stress and differing aspects of gut-health. Anxiety, which is often comorbid with depression, is associated with higher levels of stress (Mihić et al., 2023), which may potentially be explained by external or bodily stressors. Specifically, greater prior adversity is associated with higher anxiety levels (Goodman et al., 2022; Kim et al., 2023), and gut inflammation and anxious behaviors have been linked in non-human subjects (Zou et al., 2023). As discussed, bodily inflammation may be triggered by external stressors, but also poor diet or strenuous physical activity. Because of the associations between anxiety, stress, and gut-health, one might expect to see the relationship between stress and anxiety be altered through differing levels of gut-health, which may be explained through diet or physical activity. Alternatively, it may be expected that differing perceived stress levels alter the relationship between gut-health and anxiety.

Given the bidirectional nature of the relationship between the gut and the brain, it is important to note that interventions could target external stressors to improve digestive health. As discussed above, external stressors may impact the gut through inflammation of the vagus nerve and dysregulation in the HPA axis. However, symptoms of depression and anxiety may also worsen GI symptoms in similar ways. Research has found high inflammation in depressed individuals (Bremner et al., 2020), and one study showed that depressed individuals had an overactive HPA axis compared to non-depressed participants (Peirce and Alviña, 2019). Additionally, anxiety was found to be positively correlated with GI distress in runners, and, interestingly, perceived exertion was also positively correlated with GI distress (Wilson, 2018). These prior findings suggest there are connections between gut-health, mental health, and stress. The current study seeks to piece together these pathways, investigating specific antecedents related to anxiety through the autonomic nervous system.

Current study

The background literature shows a bidirectional relationship between stress and the gut, in that high levels of external stress may lead to gut dysbiosis and inflammation, and gut inflammation and dysbiosis may lead to high levels of bodily stress through dysregulation of the vagus nerve and HPA axis (Bonaz et al., 2018; De Punder and Pruimboom, 2015). However, there is a lack of literature that examines the relationships of diet and physical activity level with mental health through GI symptoms and stress. Previous literature suggests that the relationship between diet/physical activity and mental health exists (Wilson, 2018; Zhao et al., 2020), as well as pointing out their relationships with gut-health and stress (Bonaz et al., 2018; De Punder and Pruimboom, 2015). However, sparse literature bridges the gaps between these two areas of study.

The current study aimed to examine the relationships between stress, GI symptoms, and anxiety to better understand how mental health is related to the stressors discussed. Based on prior literature, we hypothesized that (1) vigorous activity and diet would moderate the relationship between stress and anxiety and stress and GI symptoms (i.e., stronger associations when vigorous activity is high and diet is poor); (2) GI symptoms would mediate the associations between variables of interest (i.e., diet, stress, physical activity, prior adversity) and anxiety; and (3) perceived stress and GI symptoms would serially mediate the associations of diet, physical activity, and prior adversity with anxiety.

Method

Participants

Participants were recruited via the Sona System (n = 177) and a community participant pool (n = 32) in the southeastern United States (see Table 1). Individuals recruited through the Sona System were students from a university who received class credit for participation. Community pool participants were community members who opted to be contacted for potential research opportunities. They received $5 for their participation. All participants completed informed consent, and all measures and procedures were approved by the university Institutional Review Board.

Table 1

M (SD)n (%)
Age24.03 (10.67)
Biological sex
Male33 (15.8)
Female176 (84.2)
Gender
Male29 (13.9)
Female173 (82.8)
Non-Binary6 (2.9)
Race/Ethnicity
American Indian/Alaska Native2(0.9)
Asian12 (5.7)
Black/African American32 (15.1)
Hispanic/Latinx14 (6.6)
White123 (58.0)
Mixed Race/Ethnicity26 (12.3)
BMI26.09 (6.30)

Demographics of the current sample (N = 209).

Materials

Diet

Diet was assessed with the Short Form Food Frequency Questionnaire (SFFFQ) (Cleghorn et al., 2016), developed in the United Kingdom. This questionnaire is a short form developed from the Food Frequency Questionnaire (FFQ) (Cade et al., 2004), which is a widely used questionnaire to assess diet quality. Cleghorn et al. (2016) found the SFFFQ and FFQ to not significantly differ from each other in terms of dietary quality score (DQS). Because the scale was used with an American sample, some modifications were made to ensure participants understood questions (e.g., ‘chicken twizzlers’ → ‘chicken nuggets’; ‘crisps’ → ‘chips’; ‘tinned’ → ‘canned’). The measure includes questions regarding typical frequency of food and beverage consumption over a week during the past month. Scoring for dietary quality was split into five different categories representing intake of fruit, vegetables, oily fish, fat, and sugar. Each of those categories was scored by either a 1, 2, or 3, representing low, moderate, or high-quality intake for each category. Additionally, an overall diet quality score, which was comprised of the categories mentioned, was calculated.

Physical activity

Physical activity was measured using the International Physical Activity Questionnaire–Short Form (IPAQ-SF), which has been shown to have acceptable internal reliability and validity (Craig et al., 2003). This questionnaire asks questions about physical activity in the last 7 days to gauge levels of activity in a typical week. The questionnaire asks frequency questions regarding the time spent doing sedentary, moderate, or vigorous activity, asking days per week, hours, and minutes. Scores are computed by getting individual scores for walking, moderate, and vigorous categories. For the purpose of this study, we utilized the vigorous activity measure, with higher scores indicating higher frequency of vigorous activity in 1 week. Along with the scale’s reliability and validity, the vigorous activity subscale was chosen due to the feasibility of a continuous score created to measure the amount of vigorous activity over a week. As discussed above, vigorous activity specifically has been shown to have different effects on the HPA-axis, as compared to moderate or sedentary activity. Therefore, a composite score for overall physical activity would not align with the current study aims. It is important to note that this scale was validated as a composite measure, so the use of the vigorous activity subscale should be further validated. However, this subscale is built to effectively capture the amount of vigorous activity an individual performs in 1 week.

GI symptoms

GI symptoms were measured using the Gastrointestinal Symptom Rating Scale (GSRS) (Kulich et al., 2008). The GSRS has shown acceptable test–retest reliability and internal consistency reliability. This scale includes 15 items that ask about the level of discomfort for different GI symptoms over the past week (i.e., heartburn, acid reflux, gas, constipation). Level of discomfort is measured on a 7-level scale from no discomfort at all to very severe discomfort. Responses from each item were summed, and higher scores were representative of higher GI symptoms.

Anxiety

The Beck Anxiety Inventory (BAI) was used to measure anxiety in the past month (Beck et al., 1988). The scale includes 21 items that ask questions indicating how much the individual has been bothered by listed symptoms (e.g., heart pounding/racing, hands trembling, fear of losing control). Each item was scored from 0 (not at all) to 3 (severely), and items were summed to form a scale score. Scores from 0–21 are considered low anxiety, 22–35 moderate anxiety, and 36 + potentially concerning levels of anxiety. The scale has demonstrated good internal reliability and validity, correlating moderately with the Hamilton Anxiety Rating Scale and Hamilton Depression Rating Scale (r = 0.51, r = 0.25) (Beck et al., 1988).

Stress

The 10-item Perceived Stress Scale (PSS) was used to measure perceptions of stress (Cohen and Williamson, 1988). This scale assesses thoughts and feelings during the last month that pertain to feelings of stress. Questions are rated on a scale from 0 (never) to 4 (very often). The items were summed to form a scale score. High PSS scores are correlated with failure to quit smoking, vulnerability to a prior stressful event eliciting depressive symptoms, and more colds (Cohen and Williamson, 1988).

Prior adversity

The Adverse and Traumatic Experiences Scale (Dale et al., 2020) was used to measure prior adversity. This scale was created using a combination of items from other measures regarding traumatic history and prior life events (i.e., ACES, Felitti et al., 1998; Trauma History Questionnaire, Hooper et al., 2011; Brief Trauma Questionnaire, Schnurr et al., 1999; Life Events Checklist for DSM-5, Weathers et al., 2013). The scale includes 30 items and is split into seven different categories: childhood adverse experiences, childhood maltreatment, intimate partner maltreatment, other person maltreatment, life-threatening situations, sudden losses, and personal health situations. The response scale ranges from 0 (did not occur) to 4 (big impact on my life). Scores for each item were summed together, and higher scores were suggestive of higher prior adversity.

Analysis plan

Power analysis

Power analyses were performed to set a target sample size. GPower was used to establish the sample size needed to detect an R2 increase of 0.03 due to an interaction (e.g., diet quality x stress → anxiety). To achieve 80% power, we would need 256 participants. The pwr2ppl package in R was used to estimate the sample size needed to investigate mediation effects. Based on prior literature (e.g., Goodman et al., 2022; Hilimire et al., 2015; Lee and Kim, 2019; Wilson, 2018), we expected associations between predictors, mediators, and outcomes (e.g., diet → gut-health → anxiety; adversity → stress → anxiety) in the small to medium range (r’s 0.2 to 0.6). To achieve 80% power to detect simple mediation with associations of r = 0.3, we would need 150 participants. To achieve 80% power to detect simple mediation with associations of r = 0.2, we would need 310 participants.

Hypothesis 1: We used multiple linear regression through SPSS Process Model 1 to examine physical activity and diet as separate moderators of the association between stress and anxiety. Additionally, we used the same procedure to examine physical activity and diet as separate moderators of the association between stress and GI symptoms.

Hypothesis 2: We analyzed associations between various predictors (e.g., diet, stress, physical activity, prior adversity) and anxiety through GI symptoms using SPSS Process Model 4. We examined the direct and indirect relationships to determine the effect size of GI symptoms as a mediator for the various predictors and anxiety.

Hypothesis 3: We examined perceived stress and GI symptoms as serial mediators of the associations of diet, physical activity, and prior adversity with anxiety. Specifically, we used SPSS Process Model 6 to separately examine serial mediations with stress as the initial mediator, followed by GI symptoms, with either diet, physical activity, or prior adversity as the antecedent variable, and anxiety as the outcome variable.

Results

Moderating effects of physical activity and diet

Diet did not moderate either the relationship between stress and anxiety or the relationship between stress and GI symptoms. Additionally, vigorous activity did not moderate the relationship between stress and anxiety. However, vigorous activity was a significant moderator of the relationship between stress and GI symptoms, Δ = 0.037, p = 0.003. Conditional effects were examined at ± 1 SD. The association of perceived stress with GI symptoms was stronger at higher levels of vigorous activity, b = 1.44, p < 0.001, compared to lower levels of vigorous activity, b = 0.72, p < 0.001. Procedures specified by Bodner (2017) were used to make standardized comparisons of the conditional effects. The effects at each level of vigorous physical activity can be interpreted similarly to a partial correlation. At lower levels of vigorous physical activity, the standardized association between perceived stress and GI symptoms was 0.28; at higher levels of vigorous physical activity, the standardized association was 0.57.

Mediating effects of gastrointestinal symptoms

GI symptoms did not significantly mediate the relationship between diet and anxiety or the relationship between vigorous activity and anxiety. However, GI symptoms indirectly linked perceived stress and anxiety. The standardized indirect effect through GI symptoms was b = 0.14 [0.08, 0.20]. The standardized direct effect of stress with anxiety was b = 0.39, p < 0.001. The standardized pathway coefficients are depicted in Figure 1.

Figure 1

GI symptoms also mediated the relationship between prior adversity and anxiety. The standardized indirect effect through GI symptoms was b = 0.20 [0.12, 0.28]. The standardized direct effect of prior adversity with anxiety was b = 0.18, p = 0.007. The standardized pathway coefficients are depicted in Figure 2.

Figure 2

Stress and GI as serial mediators

Stress and GI symptoms did not serially mediate the relationship between vigorous activity and anxiety. However, the indirect pathway through GI symptoms alone was significant, b = 0.06, [0.01, 0.14]. Stress and GI symptoms acted as serial mediators of the relationship between diet quality and anxiety. The standardized indirect effect of the serial pathway from diet quality to stress to GI symptoms to anxiety was b = −0.017, [−0.039, −0.0002]. The indirect pathway through stress alone was also significant, b = −0.05, [−0.11, −0.001]. The standardized pathway coefficients are depicted in Figure 3.

Figure 3

Perceived stress and GI symptoms also served as serial mediators of the relationship between prior adversity and anxiety. The standardized indirect effect of the serial pathway from prior adversity to stress to GI symptoms to anxiety was b = 0.02, [0.01, 0.05]. There were also indirect effects of perceived stress as the sole mediator, b = 0.11, [0.06, 0.16], and GI symptoms as the sole mediator, b = 0.13, [0.06, 0.20]. The standardized pathway coefficients are depicted in Figure 4.

Figure 4

Discussion

The present study aimed to investigate the gut-brain axis and multiple environmental stressors, including diet quality, physical activity levels, and prior adversities. Specifically, we focused on ways in which diet and physical activity, being external physical stressors, may moderate the relationship between perceived stress and anxiety, as well as the relationship between perceived stress and GI symptoms. We also aimed to research GI symptoms as a mediator between various stressors and anxiety. We further investigated GI symptoms in a serial mediation model with perceived stress and GI symptoms as links between external stressors and anxiety.

Diet and gut-brain axis

While diet has shown relations with the gut-brain axis in previous literature (Madison and Kiecolt-Glaser, 2019; Malesza et al., 2021; Tomasello et al., 2016), little was found in our analyses. Diet was not shown to be related to anxiety and was not directly related to stress or GI symptoms. Additionally, diet did not moderate the relationships between stress and anxiety or stress and GI symptoms, which did not support our initial hypotheses. There was also no mediation found between diet and anxiety through GI symptoms, which contrasts previous literature that suggested probiotics in the diet are associated with better mental health outcomes (Hilimire et al., 2015; Ma et al., 2021; Nobile and Puoci, 2023; Tillisch et al., 2013). However, the literature is mixed when it comes to certain diet supplementations such as probiotics. For example, Slykerman et al. (2022) found that supplementation of a probiotic was not associated with mental health outcomes.

However, our hypothesis of the serial mediation from diet quality to stress to GI symptoms to anxiety was supported. This finding is in support of previous literature that has found low diet quality to be related to poor gut microbiomes, stress levels, and systemic inflammation (Madison and Kiecolt-Glaser, 2019; Malesza et al., 2021; Tomasello et al., 2016). As measured in the diet quality questionnaire, good quality diet towards promoting a healthy gut includes high fiber intake and low consumption of saturated fats in balance with unsaturated fats (Bailey and Holscher, 2018). Given that stress and GI symptoms have been shown to be related to anxiety (Hilimire et al., 2015; Mihić et al., 2023; Zou et al., 2023), we expected that diet and stress would be associated with gut-related issues, which in turn would be associated with anxiety scores.

Our results support the predicted relationships between stress, GI symptoms, and anxiety, but direct relations with diet were not found. The overall serial mediation effect was significant but small, which could have been due to the nature of our diet quality results. This may reflect limited variability within the sample, given a college student population, or the ability of the SFFFQ to detect necessary variations in diet. For example, 86.6% of our participants fell below the threshold of a good quality diet, which may have affected the power of our results. However, with the serial mediation being supported, potential implications of this research may be to promote healthier eating habits and education surrounding nutrition at college campuses to potentially improve mental health outcomes. Additionally, the small effect may suggest that clinicians should consider diet as a potential factor when evaluating patients for anxiety-related mental health issues. However, research with a more generalizable sample and alternative dietary measures could further elucidate these findings.

Vigorous activity and gut-brain axis

Based on prior literature (Clauss et al., 2021; Gottschall et al., 2020; Hill et al., 2008; Vanbruggen et al., 2011), we predicted that high vigorous activity would strengthen the associations of stress with anxiety and stress with GI symptoms. Our results found that vigorous activity moderated the relationship between stress and GI symptoms but not the relationship between stress and anxiety. The finding of vigorous activity’s moderation of the relationship between stress and GI symptoms supports the research findings of Clauss et al. (2021), which found level of exercise to be associated with higher gut permeability. Higher gut permeability may lead to increased pathogens in the gut that may cause the inflammation associated with GI issues. These results also support the findings of Wilson (2018), which found perceived exertion in runners to be correlated with GI distress, along with anxiety being correlated with this GI distress. While stress is associated with GI issues through the processes of the autonomic nervous system (De Punder and Pruimboom, 2015), our results suggest that the addition of high vigorous activity strengthens this relationship.

Our research focused on the variable of perceived stress rather than physiological stress, which is often the stress variable associated with high-intensity activity. As discussed, physiological stress is related to the secretion of cortisol, which is why high cortisol levels are observed in response to vigorous activity (Gottschall et al., 2020; Hill et al., 2008; Vanbruggen et al., 2011). While the current study does not measure the physical outcomes of physiological stress, we expected to see similar results reflected in perceived stress when participants had higher vigorous activity. Our prediction was not supported, suggesting that perceived stress is a more chronic, long-term measure of stress as compared to physiological stress. This may not have been captured, given that our study was not longitudinal, and vigorous activity was only collected via self-report over a span of 1 week. Future research may want to examine perceived stress and physiological stress separately in the context of physical activity and anxiety. It is also important to note that high vigorous activity was not significantly correlated with anxiety, also indicating that the measure of perceived stress may not be related to vigorous levels of physical activity.

Relatedly, we aimed to explore whether adding GI symptoms would mediate the relationship between vigorous activity and anxiety, given relations found between vigorous activity and GI symptoms (Clauss et al., 2021) and GI issues with anxiety (Hilimire et al., 2015). The hypothesis that GI symptoms would mediate this relationship was not supported. Furthermore, serial mediation from vigorous activity to anxiety through stress and GI issues was also not significant.

Prior adversity and gut-brain axis

As predicted, the relationship between prior adversity and anxiety was mediated by GI symptomology, in that higher levels of prior adversity were associated with higher levels of GI symptomology, which were associated with higher levels of anxiety. These findings support previous literature that has related prior adversity to anxiety (Kim et al., 2023; Goodman et al., 2022), as well as relations found between prior adversity and the autonomic nervous system (Kolacz et al., 2020). This relationship was further supported in a serial mediation from prior adversity to anxiety through stress and GI symptoms, in that greater prior adversity was associated with greater perceived stress, which was associated with greater GI symptoms, which in turn was related to increased anxiety. This further supports research relating prior adversities to stress and anxiety (Goodman et al., 2022; Kim et al., 2023), stress to GI symptoms (De Punder and Pruimboom, 2015), and GI symptoms to anxiety (Zou et al., 2023).

The findings of the serial mediation allow for a further understanding of potential directional relationships between these variables of the gut-brain axis in relation to prior adversity. The utilized scale captured prior adversity from childhood to adulthood, which may have encompassed both chronic and acute stressors, depending on the stressor and when it occurred. Our results suggest that experiencing prior adverse life events may be related to mental health through autonomic nervous system functioning. Relating prior adversity to the gut-brain axis allows for potential clinical implications for anxiety that is seemingly related to gut-health issues. Treating impacts of prior adversity through treatments related to trauma, such as mindfulness practices, cognitive behavioral therapy, or dialectical behavioral therapy, may be helpful in lessening anxiety and gut issues. More research is needed in this area to better understand ways in which treatments of prior adversity may impact these outcomes.

Limitations

While the study results are potentially influential, it is important to point out the limitations. Notably, the final sample (N = 209) fell below the targeted sample size indicated by our power analyses surrounding moderation effects (N = 256) and small-effect mediation (N = 310). Failing to meet the target sample sizes reduced the study’s ability to detect small mediation and moderation effects. With that, our non-significant findings could be subject to type II error, particularly our findings regarding diet. Future studies should recruit larger samples to clarify associations between diet, stress, GI symptoms, and anxiety. We did, however, reach beyond our target sample size for detecting simple mediation with associations of r = 0.3 (N = 150), suggesting sufficient power for detecting effects of this magnitude.

Additionally, the sample was majority white, female, and young (Table 1). Most of the participants in this study were recruited from undergraduates at a southeastern university in the United States, which impacts the generalizability of our study. The processes of the gut-brain axis are multifaceted, suggesting that gender, racial, and age differences could impact results. Specifically, previous literature has found differences in gut microbiome composition depending on biological sex (Kim et al., 2020), race (Mallott et al., 2023), and age (Badal et al., 2020). It is important to acknowledge that individual differences could have played a role in gut composition and access to different types of food and physical activity resources.

Additionally, recruiting mainly from a college population may have had an impact on the diet quality scores overall. As mentioned above, 86.6% of the participants in our study fell below the threshold of a good quality diet. Our largely null results related to diet could be due to this lack of variability in the diet quality measure. College students may not be well educated on nutrition or may not be financially able to access healthy, nutrient-dense meals. Outside of the perspective of college students, we may also have seen low diet quality scores due to the study taking place in the United States where western diets are more common. As discussed in the background literature, the typical Western diet is harmful towards the gut microbiome due to the consumption of inflammatory foods and low fiber intake (Malesza et al., 2021). It may also be that the effects of diet would be more apparent in older populations as the chronic effects of diet may impact health outcomes over time (Chen et al., 2019; Govindaraju et al., 2018; Mao et al., 2024).

It is also important to acknowledge that our study was based on self-report survey data and is purely correlational. While directional analyses were used, the study cannot claim causation of the direction of these predictions. These correlations are suggestions as to the directional relationships of these variables.

Future directions

The study has provided further insight into the relationships of physiological and environmental stressors with the gut-brain axis. However, the observed relationships need to be studied longitudinally to better understand the directional influence over time. This is especially true when examining dietary implications and chronic physical activity level implications. Future studies should focus on aspects of stressors, like components of diet and physical activity, separately and experimentally, to better understand relations with the gut-brain axis. This may be in the form of feeding studies or exercise studies in which participants are put on a schedule to record eating and physical activity habits.

With diet specifically, there are many components that could relate to one’s gut-brain axis through inflammation. Inflammation may not look the same for every participant given food sensitivities, autoimmune disorders, or allergies. Likewise, it may be beneficial to examine differing food groups and their associations with the gut-brain axis, such as a diet high in pre- and probiotic promoting foods that are fermented or rich in fiber. While the Mediterranean diet was emphasized in the background literature, it is also important to acknowledge that there may be other combinations of diet that are beneficial in promoting healthy gut microbiomes.

Concerning physical activity, future studies should focus further on the component of vigorous activity, as our study suggests it may be associated with GI symptoms. Specifically, it would be beneficial to research the gut-brain axis in endurance athletes as they are likely to be under the impact of chronic strenuous activity. Conversely, research is needed on sedentary lifestyles and their relation to the gut-brain axis and mental health outcomes.

Conclusion

The previous literature and the unique findings of the current study suggest that factors such as diet and physical activity should be considered when examining gut-brain relations specific to stress, GI symptoms, and anxiety. With further investigation of these relationships, future clinicians may better understand how mental health interacts with factors of the autonomic nervous system through external stressors related to lifestyle (e.g., diet and physical activity) and adverse experiences. Future research should further investigate the directionality of these relationships more clearly through longitudinal study designs, especially given the bidirectional nature of the gut-brain axis.

Statements

Data availability statement

The datasets presented in this study can be found in online repositories. The names of the repository/repositories and accession number(s) can be found in the article/supplementary material.

Ethics statement

The studies involving humans were approved by Institutional Review Board for the Protection of Human Subjects, University of North Florida (UNF), Division of Academic and Student Affairs, Office of Research. The studies were conducted in accordance with the local legislation and institutional requirements. The participants provided their written informed consent to participate in this study.

Author contributions

JP: Conceptualization, Data curation, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – original draft. PF: Conceptualization, Data curation, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – review & editing.

Funding

The author(s) declared that financial support was received for this work and/or its publication. The research was supported by a Graduate Research Grant from the University of North Florida.

Conflict of interest

The author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The author(s) declared that Generative AI was not used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

References

  • 1

    AllexandreD.BernsteinA. M.WalkerE.HunterJ.RoizenM. F.MorledgeT. J. (2016). A web-based mindfulness stress management program in a corporate call center. J. Occup. Environ. Med.58, 254264. doi: 10.1097/JOM.0000000000000680,

  • 2

    AndersonT.WidemanL. (2017). Exercise and the cortisol awakening response: a systematic review. Sports Med. Open3:37. doi: 10.1186/s40798-017-0102-3,

  • 3

    AsadiA.Shadab MehrN.MohamadiM. H.ShokriF.HeidaryM.SadeghifardN.et al. (2022). Obesity and gut-microbiota-brain axis: a narrative review. J. Clin. Lab. Anal.36:e24420. doi: 10.1002/jcla.24420,

  • 4

    BadalV. D.VaccarielloE. D.MurrayE. R.YuK. E.KnightR.JesteD. V.et al. (2020). The gut microbiome, aging, and longevity: a systematic review. Nutrients12:3759. doi: 10.3390/nu12123759,

  • 5

    BaileyM. A.HolscherH. D. (2018). Microbiome-mediated effects of the Mediterranean diet on inflammation. Adv. Nutr.9, 193206. doi: 10.1093/advances/nmy013,

  • 6

    BeckA. T.EpsteinN.BrownG.SteerR. A. (1988). An inventory for measuring clinical anxiety: psychometric properties. J. Consult. Clin. Psychol.56, 893897. doi: 10.1037//0022-006x.56.6.893,

  • 7

    BertolloA. G.SantosC. F.BagatiniM. D.IgnácioZ. M. (2025). Hypothalamus-pituitary-adrenal and gut-brain axes in biological interaction pathway of the depression. Front. Neurosci.19:1541075. doi: 10.3389/fnins.2025.1541075,

  • 8

    BodnerT. E. (2017). Standardized effect sizes for moderated conditional fixed effects with continuous moderator variables. Front. Psychol.8:562. doi: 10.3389/fpsyg.2017.00562

  • 9

    BonazB.BazinT.PellissierS. (2018). The vagus nerve at the interface of the microbiota gut-brain axis. Front. Neurosci.12:336468. doi: 10.3389/fnins.2018.00049,

  • 10

    BremnerJ. D.MoazzamiK.WittbrodtM. T.NyeJ. A.LimaB. B.GillespieC. F.et al. (2020). Diet, stress and mental health. Nutrients12:2428. doi: 10.3390/nu12082428,

  • 11

    CadeJ.BurleyV.GreenwoodD. (2004). The UK women’s cohort study: comparison of vegetarians, fish-eaters and meat-eaters. Public Health Nutr.7, 871878. doi: 10.1079/PHN2004620,

  • 12

    CampanielloD.CorboM. R.SinigagliaM.SperanzaB.RacioppoA.AltieriC.et al. (2022). How diet and physical activity modulate gut microbiota: evidence, and perspectives. Nutrients14:2456. doi: 10.3390/nu14122456,

  • 13

    ChenL.LiuB.RenL.DuH.FeiC.QianC.et al. (2023). High-fiber diet ameliorates gut microbiota, serum metabolism and emotional mood in type 2 diabetes patients. Front. Cell. Infect. Microbiol.13:1069954. doi: 10.3389/fcimb.2023.1069954,

  • 14

    ChenX.MaguireB.BrodatyH.O’LearyF. (2019). Dietary patterns and cognitive health in older adults: a systematic review. J. Alzheimer's Dis67, 583619. doi: 10.3233/JAD-180468

  • 15

    ClarkA.MachN. (2016). Exercise-induced stress behavior, gut-microbiota-brain axis and diet: a systematic review for athletes. J. Int. Soc. Sports Nutr.13:43. doi: 10.1186/s12970-016-0155-6,

  • 16

    ClaussM.GérardP.MoscaA.LeclercM. (2021). Interplay between exercise and gut microbiome in the context of human health and performance. Front. Nutr.8:637010. doi: 10.3389/fnut.2021.637010,

  • 17

    CleghornC. L.HarrisonR. A.RansleyJ. K.WilkinsonS.ThomasJ.CadeJ. E. (2016). Can a dietary quality score derived from a short-form FFQ assess dietary quality in UK adult population surveys?Public Health Nutr.19, 29152923. doi: 10.1017/S1368980016001099,

  • 18

    CohenS.WilliamsonG. (1988). Perceived stress in a probability sample of the United States. The social psychology of health: Claremont Symposium on applied social psychology. eds. SpacapanS.OskampS. (Newbury Park, CA: Sage).

  • 19

    CraigC. L.MarshallA. L.SjöströmM.BaumanA. E.BoothM. L.AinsworthB. E.et al. (2003). International physical activity questionnaire: 12-country reliability and validity. Med. Sci. Sports Exerc.35, 13811395. doi: 10.1249/01.MSS.0000078924.61453.FB,

  • 20

    DaleL.P.DavidsonC.KolaczJ. (2020). Adverse Traumatic Experiences Scale.

  • 21

    De PunderK.PruimboomL. (2015). Stress induces endotoxemia and low-grade inflammation by increasing barrier permeability. Front. Immunol.6:223. doi: 10.3389/fimmu.2015.00223,

  • 22

    de WitN.DerrienM.Bosch-VermeulenH.OosterinkE.KeshtkarS.DuvalC.et al. (2012). Saturated fat stimulates obesity and hepatic steatosis and affects gut microbiota composition by an enhanced overflow of dietary fat to the distal intestine. Am. J. Physiol. Gastrointest. Liver Physiol.303, G589G599. doi: 10.1152/ajpgi.00488.2011,

  • 23

    FelittiV. J.AndaR. F.NordenbergD.WilliamsonD. F.SpitzA. M.EdwardsV.et al. (1998). Relationship of childhood abuse and household dysfunction to many of the leading causes of death in adults: the adverse childhood experiences (ACE) study. Am. J. Prev. Med.14, 245258. doi: 10.1016/S0749-3797(98)00017-8,

  • 24

    FukuiH. (2016). Increased intestinal permeability and decreased barrier function: does it really influence the risk of inflammation?Inflamm. Intest. Dis.1, 135145. doi: 10.1159/000447252,

  • 25

    GarberC. E.BlissmerB.DeschenesR.FranklinB. A.LamonteM. J.LeeI. M.et al. (2011). American College of Sports Medicine position stand. Quantity and quality of exercise for developing and maintaining cardiorespiratory, musculoskeletal, and neuromotor fitness in apparently healthy adults: guidance for prescribing exercise. Med. Sci. Sports Exerc.43, 13341359. doi: 10.1249/MSS.0b013e318213fefb,

  • 26

    GardiC.FaziaT.StringaB.GiommiF. (2022). A short mindfulness retreat can improve biological markers of stress and inflammation. Psychoneuroendocrinology135:105579. doi: 10.1016/j.psyneuen.2021.105579,

  • 27

    GoodmanM. L.BakerL.MaigalloA. K.ElliottA.KeiserP.Raimer-GoodmanL. (2022). Adverse childhood experiences, adult anxiety and social capital among women in rural Kenya. J. Anxiety Disord.91, 102614102616. doi: 10.1016/j.janxdis.2022.102614,

  • 28

    Góralczyk-BińkowskaA.Szmajda-KrygierD.KozłowskaE. (2022). The microbiota-gut-brain axis in psychiatric disorders. Int. J. Mol. Sci.23:11245. doi: 10.3390/ijms231911245,

  • 29

    GottschallJ. S.DavisJ. J.HastingsB.PorterH. J. (2020). Exercise time and intensity: how much is too much?Int. J. Sports Physiol. Perform.15, 808815. doi: 10.1123/ijspp.2019-0208,

  • 30

    GovindarajuT.SahleB. W.McCaffreyT. A.McNeilJ. J.OwenA. J. (2018). Dietary patterns and quality of life in older adults: a systematic review. Nutrients10:971. doi: 10.3390/nu10080971,

  • 31

    HermanJ. P.McKlveenJ. M.GhosalS.KoppB.WulsinA.MakinsonR.et al. (2016). Regulation of the hypothalamic-pituitary-adrenocortical stress response. Compr. Physiol.6, 603621. doi: 10.1002/cphy.c150015,

  • 32

    HilimireM. R.DeVylderJ. E.ForestellC. A. (2015). Fermented foods, neuroticism, and social anxiety: an interaction model. Psychiatry Res.228, 203208. doi: 10.1016/j.psychres.2015.04.023,

  • 33

    HillE. E.ZackE.BattagliniC.ViruM.ViruA.HackneyA. C. (2008). Exercise and circulating cortisol levels: the intensity threshold effect. J. Endocrinol. Investig.31, 587591. doi: 10.1007/BF03345606,

  • 34

    HolscherH. D. (2017). Dietary fiber and prebiotics and the gastrointestinal microbiota. Gut Microbes8, 172184. doi: 10.1080/19490976.2017.1290756,

  • 35

    HooperL. M.StocktonP.KrupnickJ. L.GreenB. L. (2011). Development, use, and psychometric properties of the trauma history questionnaire. J. Loss Trauma16, 258283. doi: 10.1080/15325024.2011.572035

  • 36

    KianiA. K.MedoriM. C.BonettiG.AquilantiB.VellutiV.MateraG.et al. (2022). Modern vision of the Mediterranean diet. J. Prev. Med. Hyg.63, E36E43. doi: 10.15167/2421-4248/jpmh2022.63.2S3.2745,

  • 37

    KimY.ParkA.MurphyJ. (2023). Patterns of adverse childhood experiences and mental health: evidence from college students in Korea. J. Interpers. Violence38, 30113029. doi: 10.1177/08862605221102487

  • 38

    KimY. S.UnnoT.KimB. Y.ParkM. S. (2020). Sex differences in gut microbiota. World J. Men’s Health38, 4860. doi: 10.5534/wjmh.190009,

  • 39

    KolaczJ.DaleL. P.NixE. J.RoathO. K.LewisG. F.PorgesS. W. (2020). Adversity history predicts self-reported autonomic reactivity and mental health in US residents during the COVID-19 pandemic. Front. Psych.11:577728. doi: 10.3389/fpsyt.2020.577728,

  • 40

    KulichK. R.MadischA.PaciniF.PiquéJ. M.RegulaJ.Van RensburgC. J.et al. (2008). Reliability and validity of the gastrointestinal symptom rating scale (GSRS) and quality of life in reflux and dyspepsia (QOLRAD) questionnaire in dyspepsia: a six-country study. Health Qual. Life Outcomes6:12. doi: 10.1186/1477-7525-6-12,

  • 41

    LeeE.KimY. (2019). Effect of university students’ sedentary behavior on stress, anxiety, and depression. Perspect. Psychiatr. Care55, 164169. doi: 10.1111/ppc.12296,

  • 42

    LeeuwendaalN. K.StantonC.O’TooleP. W.BeresfordT. P. (2022). Fermented foods, health and the gut microbiome. Nutrients14:1527. doi: 10.3390/nu14071527,

  • 43

    LeistnerC.MenkeA. (2020). “Hypothalamic-pituitary-adrenal axis and stress,” in Handbook of Clinical Neurology, vol. 175 (), 5564.

  • 44

    MaT.JinH.KwokL. Y.SunZ.LiongM. T.ZhangH. (2021). Probiotic consumption relieved human stress and anxiety symptoms possibly via modulating the neuroactive potential of the gut microbiota. Neurobiol. Stress14, 100294100210. doi: 10.1016/j.ynstr.2021.100294,

  • 45

    MadisonA.Kiecolt-GlaserJ. K. (2019). Stress, depression, diet, and the gut microbiota: human–bacteria interactions at the core of psychoneuroimmunology and nutrition. Curr. Opin. Behav. Sci.28, 105110. doi: 10.1016/j.cobeha.2019.01.011,

  • 46

    MaleszaI. J.MaleszaM.WalkowiakJ.MussinN.WalkowiakD.AringazinaR.et al. (2021). High-fat, Western-style diet, systemic inflammation, and gut microbiota: a narrative review. Cells10:3164. doi: 10.3390/cells10113164,

  • 47

    MallottE. K.SitarikA. R.LeveL. D.CioffiC.CamargoC. A.Jr.HasegawaK.et al. (2023). Human microbiome variation associated with race and ethnicity emerges as early as 3 months of age. PLoS Biol.21:e3002230. doi: 10.1371/journal.pbio.3002230,

  • 48

    MaoD.LiG.LiangM.WangS.RenX. (2024). Dietary patterns and multiple chronic diseases in older adults. Nutr. Metab21:36. doi: 10.1186/s12986-024-00814-y,

  • 49

    Mayo Foundation for Medical Education and Research (2024). Inflammatory Bowel Disease (IBD). Mayo Clinic. Available online at: https://www.mayoclinic.org/diseases-conditions/inflammatory-bowel-disease/symptoms-causes/syc-20353315

  • 50

    MihićL.JaničićB.MarchettiI.NovovićZ.SicaC.BottesiG.et al. (2023). Comorbidity among depression, anxiety and stress symptoms in naturalistic clinical samples: a cross-cultural network analysis. Clin. Psychol. Psychother.31:e2927. doi: 10.1002/cpp.2927

  • 51

    NobileV.PuociF. (2023). Effect of a multi-strain probiotic supplementation to manage stress during the COVID-19 pandemic: a randomized, double-blind, placebo-controlled, cross-over clinical trial. Neuropsychobiology82, 6171. doi: 10.1159/000527956,

  • 52

    PeirceJ. M.AlviñaK. (2019). The role of inflammation and the gut microbiome in depression and anxiety. J. Neurosci. Res.97, 12231241. doi: 10.1002/jnr.24476

  • 53

    PerlerB. K.FriedmanE. S.WuG. D. (2023). The role of the gut microbiota in the relationship between diet and human health. Annu. Rev. Physiol.85, 449468. doi: 10.1146/annurev-physiol-031522-092054

  • 54

    SchnurrP.VielhauerM.WeathersF.FindlerM. (1999) The Brief Trauma Questionnaire (BTQ). Available online at: http://www.ptsd.va.gov

  • 55

    SlykermanR. F.LiE.MitchellE. A. (2022). Probiotics for reduction of examination stress in students (PRESS) study: a randomized, double-blind, placebo-controlled trial of the probiotic Lacticaseibacillus rhamnosus HN001. PLoS One17:e0267778. doi: 10.1371/journal.pone.0267778,

  • 56

    TillischK.LabusJ.KilpatrickL.JiangZ.StainsJ.EbratB.et al. (2013). Consumption of fermented milk product with probiotic modulates brain activity. Gastroenterology144, 13941401.e4. doi: 10.1053/j.gastro.2013.02.043,

  • 57

    TomaselloG.MazzolaM.LeoneA.SinagraE.ZummoG.FarinaF.et al. (2016). Nutrition, oxidative stress and intestinal dysbiosis: influence of diet on gut microbiota in inflammatory bowel diseases. Biomed. Pap. Med. Fac. Univ. Palacky Olomouc Czech. Repub.160, 461466. doi: 10.5507/bp.2016.052

  • 58

    VanBruggenM. D.HackneyA. C.McMurrayR. G.OndrakK. S. (2011). The relationship between serum and salivary cortisol levels in response to different intensities of exercise. Int. J. Sports Physiol. Perform.6, 396407. doi: 10.1123/ijspp.6.3.396

  • 59

    WeathersF.W.BlakeD.D.SchnurrP.P.KaloupekD.G.MarxB.P.KeaneT.M. (2013) The Life Events Checklist for DSM-5 (LEC-5)

  • 60

    WilsonP. B. (2018). Perceived life stress and anxiety correlate with chronic gastrointestinal symptoms in runners. J. Sports Sci.36, 17131719. doi: 10.1080/02640414.2017.1411175,

  • 61

    ZhaoM.TuoH.WangS.ZhaoL. (2020). The effects of dietary nutrition on sleep and sleep disorders. Mediat. Inflamm.2020, 17. doi: 10.1155/2020/3142874,

  • 62

    ZouL.TianY.WangY.ChenD.LuX.ZengZ.et al. (2023). High-cholesterol diet promotes depression- and anxiety-like behaviors in mice by impact gut microbe and neuroinflammation. J. Affect. Disord.327, 425438. doi: 10.1016/j.jad.2023.01.122,

Summary

Keywords

anxiety, diet, GI symptoms, gut-brain axis, prior adversity, vigorous activity

Citation

Pennella JL and Fuglestad PT (2026) The gut-brain axis and anxiety: investigating associations with diet, vigorous activity, and prior adversity. Front. Psychol. 17:1815958. doi: 10.3389/fpsyg.2026.1815958

Received

23 February 2026

Revised

21 May 2026

Accepted

15 June 2026

Published

01 July 2026

Volume

17 - 2026

Edited by

Lina Begdache, Binghamton University, United States

Reviewed by

Apeksha Mewani, Lehman College, United States

Nilotpal Banerjee, Spandan Hospital, A Unit of Spandan Advance Medicare Pvt. Ltd., India

Updates

Copyright

*Correspondence: Jenna Louise Pennella, ; Paul T. Fuglestad,

Disclaimer

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics