Infection with Helicobacter pylori, the spiral-shaped bacterium that colonizes roughly half the world’s stomachs, is statistically linked to a more-than-doubled likelihood of anxiety symptoms according to a recent systematic review and meta-analysis. That finding alone is striking, but the relationship runs deeper and stranger than a simple correlation. H. pylori appears to alter stress hormones, reshape the gut microbiome, and potentially interfere with brain signaling through multiple overlapping pathways. Whether the bacterium directly causes anxiety, amplifies a vulnerability that already exists, or feeds a two-way loop where stress and infection worsen each other is the more complicated question worth digging into.
What the Population Data Actually Show
The strongest piece of evidence comes from a 2024 systematic review and meta-analysis that pooled results from multiple study designs. The analysis found a significant positive association between H. pylori infection and anxiety, with an odds ratio of about 2.5. That held up across both case-control and cross-sectional studies, and a similar trend appeared in cohort studies as well. The association remained consistent regardless of which anxiety screening tool was used.
1International Journal of Clinical Practice. Association of Helicobacter pylori Infection with Depression and Anxiety: A Systematic Review and Meta‐AnalysisWhat makes this particularly interesting is that the same meta-analysis did not find a significant link between H. pylori and depression. The confidence interval for depression crossed the line of no effect, meaning the data could not confirm a meaningful connection. Anxiety and depression often travel together, so the fact that only one showed a clear statistical relationship hints that something specific about H. pylori’s biological effects might be driving anxiety rather than a generalized mood disturbance. One community-based study from Ethiopia similarly found that H. pylori positivity was not associated with depression in their population.
2PubMed Central. Depression among people with dyspepsia and H. pylori infection: A community based cross-sectional study in EthiopiaAn odds ratio of 2.5 does not mean that half the people with H. pylori develop anxiety. It means that among people studied, those with the infection were roughly two and a half times more likely to report anxiety symptoms than those without it. Many infected people feel perfectly fine mentally. But across large groups, the pattern is hard to dismiss as coincidence.
Cortisol, Thyroid Hormones, and the Stress Response
One of the most direct routes by which a stomach infection could plausibly trigger anxiety involves the body’s stress hormone system. A study examining the hypothalamic-pituitary axis in adults found that H. pylori-positive participants had significantly higher serum cortisol levels and lower levels of thyroid-stimulating hormone (TSH) compared to uninfected controls. Among infected participants, there was also a notable inverse relationship between cortisol and TSH, meaning the more cortisol was elevated, the more suppressed TSH tended to be. That pattern did not appear in the uninfected group.
3PubMed Central. Helicobacter pylori infection and the hypothalamic–pituitary axis: association with cortisol and thyroid-stimulating hormone levels in adultsCortisol is the hormone most associated with the fight-or-flight response. When cortisol stays elevated chronically, it produces many of the hallmarks of anxiety: racing thoughts, disrupted sleep, muscle tension, hypervigilance. At the same time, suppressed thyroid function can cause fatigue, brain fog, and mood changes. A person whose cortisol is running high while their thyroid function dips could experience something that feels very much like an anxiety disorder, even if their brain itself is not generating the problem. The infection in their stomach is essentially tuning the hormonal thermostat to a setting that promotes stress.
The Brain-Gut Axis and Neuroinflammation
Beyond hormones, H. pylori appears to tamper with the communication network between the gut and brain more directly. Research on the brain-gut axis describes multiple ways this might happen. The bacterium may exert neurotoxic effects that alter signaling through the activation of neurogenic inflammatory processes. It can also create microelement deficiencies by damaging the stomach lining, which impairs absorption of nutrients the brain needs to function normally.
4PubMed Central. Brain-gut axis in the pathogenesis of Helicobacter pylori infectionMast cells play a role here as well. These immune cells act as key go-betweens in gut-brain communication. H. pylori infection is associated with changes in mast cell behavior in the digestive tract, which can alter the signals being sent along the vagus nerve to the brain. The vagus nerve is the main communication highway between your gut and your central nervous system. When inflammatory signals traveling along it change, your brain’s interpretation of what is happening in the body shifts accordingly, and that can include heightened anxiety and feelings of unease.
The bacterium also uses a modified form of lipopolysaccharide, a molecule found on its surface, that is specifically structured to dampen the immune system’s response. This helps H. pylori survive long-term, but it also means the infection can persist for years while continuously sending low-grade inflammatory signals throughout the body.
5PubMed Central. Structural modifications of Helicobacter pylori lipopolysaccharide: an idea for how to live in peaceYour Microbiome Gets Reshuffled
H. pylori does not just sit in the stomach lining minding its own business. Its presence rearranges the entire gut microbial ecosystem. A study comparing the fecal microbiota of infected and uninfected individuals found 13 bacterial groups that differed significantly between the two. These altered groups represented about a third of total microbial abundance. The highly abundant genus Prevotella was increased in infected people, while Bacteroides, the single most common genus, was reduced by roughly 17%.
6PubMed Central. Rapamycin Attenuates Anxiety and Depressive Behavior Induced by Helicobacter pylori in Association with Reduced Circulating Levels of Ghrelin – Section: ResultsThis matters because the gut microbiome is one of the body’s major producers of neurotransmitter precursors, including the building blocks for serotonin. Tryptophan, the amino acid from which serotonin is made, is metabolized by multiple gut bacteria. H. pylori is one of the microorganisms known to interact with tryptophan metabolism pathways.
4PubMed Central. Brain-gut axis in the pathogenesis of Helicobacter pylori infectionWhen the microbial community in your gut shifts, the cocktail of molecules it produces shifts too. If species that normally help synthesize calming neurotransmitters decline and species that promote inflammation rise, the downstream effects on brain chemistry can be real and measurable. This is not a speculative pathway; it is the same gut-brain microbiome connection that has been documented in other conditions, now with H. pylori added to the picture.
Not All H. Pylori Strains Are Equal
One of the reasons some people with H. pylori develop anxiety while others do not may come down to which strain they are carrying. H. pylori is not a single uniform organism. Some strains carry virulence factors, particularly two proteins known as CagA and VacA, that make the infection more aggressive. A cross-sectional study of patients with chronic gastritis found that anxiety and depression were significantly more common among those harboring CagA- and VacA-positive strains. The same group also scored lower across multiple quality-of-life measures, including physical functioning, pain, vitality, and mental health.
7International Journal of Clinical Practice. Frequency of dyspeptic symptoms, anxiety, depression and health-related quality of life among patients with chronic gastritis according to Helicobacter pylori CagA and VacA status: a cross-sectional studyThe practical implication is that a positive H. pylori test alone does not tell you much about whether the infection is likely to affect your mental health. Two people can both test positive, but the person carrying a virulent strain faces a meaningfully different risk profile. Standard clinical testing does not always distinguish between strains, though this information could be valuable in deciding how aggressively to pursue treatment.
Stress Makes the Infection Worse, Too
The relationship between H. pylori and anxiety is not just one-directional. There is solid evidence that psychological stress makes the infection itself harder for the body to manage. In mouse experiments, psychologically stressed animals had significantly greater H. pylori colonization of the stomach compared to unstressed controls. The gastric mucosal injury was also more severe. When researchers blocked the effect of stress hormones using a glucocorticoid receptor antagonist, colonization dropped, confirming that stress hormones were a key part of the mechanism.
8PubMed. Psychological stress enhances the colonization of the stomach by Helicobacter pylori in the BALB/c mouseThis has been observed in humans, too. A study of military recruits undergoing intense training found that their breath-test values, which reflect H. pylori activity in the stomach, rose significantly after the training period. At the same time, their cortisol and catecholamine levels increased while their antibody levels dropped. The combination of elevated stress hormones and weakened immune response created conditions that allowed the bacterium to thrive.
9PubMed Central. Aggravation of Helicobacter pylori stomach infections in stressed military recruitsThis creates a feedback loop that is genuinely difficult to break. H. pylori promotes anxiety through hormonal and inflammatory pathways; the anxiety and stress that follow suppress immune defenses and elevate cortisol, which lets H. pylori colonize more aggressively, which increases the inflammatory and hormonal signals, and so on. If you have been dealing with worsening anxiety and a known H. pylori infection, this cycle may partly explain why one seems to keep feeding the other.
Treatment Can Be Bumpy Before It Helps
Eradicating H. pylori would seem like the obvious solution if the infection is driving anxiety. But the treatment itself, which typically involves a cocktail of two antibiotics plus an acid-suppressing drug, can create its own psychological disturbances in the short term. A population-based study found that in the first 30 days after eradication therapy, there was a significant uptick in psychiatrist-diagnosed depressive disorder. Female patients and those who received clarithromycin, one of the most commonly used antibiotics in triple therapy, had a particularly elevated risk.
10PubMed. Increased risk of short-term depressive disorder after Helicobacter pylori eradication: A population-based nested cohort studyThere are also case reports of “antibiomania,” a temporary manic episode triggered by antibiotic treatment. One proposed explanation involves the antibiotics causing rapid changes in the gut microbiome, which in turn alter neurotransmitter production. The mood disturbance appears to be temporary, but it can be alarming if you are not expecting it.
11The European Journal of Psychiatry. Antibiomania after triple therapy for Helicobacter Pylori: Two case reports and a review of physiopathologyNone of this means you should avoid treating a confirmed H. pylori infection. Untreated H. pylori carries risks including ulcers and stomach cancer that dwarf any transient mood effects from antibiotics. But if you or your doctor are tracking your mental health during eradication therapy, it helps to know that a temporary dip in mood in the first few weeks is a documented phenomenon and not necessarily a sign that something has gone permanently wrong.
What Animal Research Adds
Because you cannot ethically infect humans with H. pylori and wait to see if they develop anxiety, much of the mechanistic evidence comes from animal models. These studies are remarkably consistent. In mice infected with H. pylori, researchers observed clear anxiety-like and depressive-like behaviors: reduced preference for sweet solutions, increased immobility in stress tests, less exploration of open spaces, and higher fecal output (a standard marker of anxiety in rodents). Brain tissue analysis revealed inflammatory changes in the hippocampus, a brain region central to mood regulation.
12PubMed Central. Rapamycin Attenuates Anxiety and Depressive Behavior Induced by Helicobacter pylori in Association with Reduced Circulating Levels of GhrelinA separate study in rats found that administering specific probiotic strains, Lactobacillus rhamnosus and Lactobacillus plantarum, reversed the anxious and depressive behaviors caused by H. pylori infection. The probiotic treatment also normalized markers of oxidative stress, inflammation, serotonin availability, brain-derived neurotrophic factor (a protein important for brain cell health), and corticosterone (the rodent equivalent of cortisol).
13PubMed. Regulatory Effects of Probiotics on Anxiety and Depression-Like Behaviors in H. pylori-Infected RatsAnimal studies always come with the caveat that rodent brains are not human brains. But the consistency of these findings across different labs, different animal models, and different behavioral tests lends weight to the idea that H. pylori infection genuinely alters brain function through identifiable biological pathways rather than being just a statistical coincidence in population data.
When the Anxiety Itself Becomes the Disease
Beyond the biological mechanisms, there is a psychological dimension worth mentioning. A published case report describes a 21-year-old woman who developed illness anxiety disorder after being diagnosed with H. pylori. For more than six months, she experienced a distressing preoccupation with having or acquiring a serious illness, accompanied by mild physical symptoms. The disorder significantly disrupted her life, driving excessive medical care-seeking and avoidance behaviors.
14PubMed Central. New-Onset Illness Anxiety Disorder After Helicobacter Pylori Infection: A Case ReportThis is a single case report and cannot be generalized, but it highlights something clinically important. The experience of being told you have a chronic bacterial infection, of dealing with unpleasant symptoms, of undergoing treatment and sometimes needing multiple rounds because the first one fails, can itself be anxiety-provoking. The stomach discomfort, nausea, and bloating that come with H. pylori are real physical sensations, and for someone prone to health anxiety, these can become the focus of catastrophic thinking. In that scenario, the biological and psychological pathways to anxiety merge and become difficult to untangle.
Early-Life Infection and Brain Development
Most discussion of H. pylori and anxiety focuses on adults, but there is emerging evidence that infection in early childhood may affect neurodevelopment itself. A birth cohort study from Ghana and Côte d’Ivoire found an association between H. pylori infection in infancy and impaired early childhood development. The researchers proposed several mechanisms. Chronic stomach inflammation during infancy can interfere with nutrient absorption during critical periods of brain growth. Deficiencies in iron, vitamin B12, and folate, all documented consequences of persistent H. pylori infection, are known to impair cognitive and motor development. On top of that, the low-grade systemic inflammation and microbiome disruption caused by H. pylori may influence brain development through inflammatory and neurochemical pathways.
15PubMed Central. Helicobacter pylori and Impaired Early Childhood Development—Evidence From a Birth Cohort Study From Ghana and Côte d’IvoireThis is a newer area of research, and the findings need replication. But if early H. pylori infection can shape brain development, the anxiety seen in adults may in some cases trace back to a vulnerability established in childhood rather than being triggered entirely by the current infection.
An Ancient Relationship With Modern Consequences
H. pylori has lived in human stomachs for at least 60,000 years, co-evolving alongside us as our species migrated across the globe. This is not some recent pathogen that jumped species. We have shaped each other genetically, and our physiology adapted to the bacterium’s persistent presence. One review argues that the recent disappearance of H. pylori from many populations in developed countries, due to improved sanitation and widespread antibiotic use, has itself led to new physiological changes in humans.
16PubMed Central. Coadaptation of Helicobacter pylori and humans: ancient history, modern implicationsWhether H. pylori’s effects on brain chemistry are an accident of chronic infection or a feature of a relationship we once tolerated more comfortably is an open question. Some researchers argue that the disease outcomes we associate with H. pylori, including potentially anxiety, became more common as the interaction between human and bacterial genetics shifted. Universal eradication of H. pylori may not be the straightforward public health win it seems; one review makes the case that blanket eradication could cause more harm than good for certain individuals.
17PubMed Central. Helicobacter pylori infection causes both protective and deleterious effects in human health and diseaseFor a person dealing with both H. pylori and anxiety right now, this evolutionary context may feel academic. But it is worth knowing that the relationship between you and this bacterium is more nuanced than “germ = disease.” The anxiety connection is real and supported by multiple lines of evidence. The best path forward involves treating the infection when it is causing identifiable harm, while recognizing that the body’s stress system, gut microbial ecosystem, and psychological state are all tangled together in a way that rarely yields to a single intervention alone.