Diet, Lifestyle, and H. pylori Prevention
Diet does not cause H. pylori infection, and no food or supplement has been shown to eradicate it on its own. Researchers have tested a handful of foods and food-derived compounds — broccoli sprouts, cranberry, mastic gum — and probiotics given alongside antibiotics, with results that range from laboratory activity to modest effects in trials. This page also summarises what studies report about how the bacterium spreads within households and how often it returns after successful treatment.
- Diet and Ulcer Symptoms: What the Evidence Says
- Broccoli Sprouts and Sulforaphane
- Cranberry Juice and Anti-Adhesion Properties
- Mastic Gum: Laboratory Activity and Mixed Trial Results
- Probiotics as Adjuncts to Antibiotic Therapy
- How H. pylori Spreads: Fecal-Oral and Oral-Oral Routes
- How H. pylori Spreads Within Families
- Reinfection After Successful Eradication: What Studies Report
- Key Research Papers
- Connections
- Featured Videos
Diet and Ulcer Symptoms: What the Evidence Says
A 2017 review of peptic ulcer disease in The Lancet (Lanas and Chan) organises the disease around two causes — H. pylori infection and non-steroidal anti-inflammatory drugs (NSAIDs) — and notes that ulcers associated with neither now pose their own diagnostic and treatment challenges. Brown's 2000 review of H. pylori epidemiology found that most recent studies had not identified tobacco use or alcohol consumption as risk factors for acquiring the infection, while adequate nutrition, especially frequent fruit, vegetable and vitamin C intake, appeared to protect against it; food prepared under less than ideal conditions, or exposed to contaminated water or soil, may increase the risk.
Spicy food is often blamed for stomach pain. In one small human study (Yeoh and colleagues, 1995), 18 healthy volunteers took 20 g of chili, or water, half an hour before 600 mg of aspirin; endoscopy six hours later showed a lower median gastric injury score after chili than after water (1.5 versus 4). The volunteers had normal stomachs at the start, so the study does not describe people with H. pylori or an active ulcer.
Alcohol and treatment outcome have been studied directly. A 2023 meta-analysis of 40 studies (Yu and colleagues) found no overall association between alcohol consumption and H. pylori eradication failure (odds ratio 1.09, 95% CI 0.94–1.26). In Asian patients the association was positive (odds ratio 1.23, 95% CI 1.03–1.47), including regimens containing nitroimidazole antibiotics, and alcohol intake above 40 g a day was associated with eradication failure (odds ratio 3.17, 95% CI 1.56–6.41).
Metronidazole, a nitroimidazole used in some H. pylori regimens, has long carried a warning about a disulfiram-like reaction with alcohol (nausea, flushing, vomiting, a fast heart rate). A 2026 review of that warning (Orire and colleagues) found that four case reports and one older clinical trial reported a possible link, while three clinical trials, one chart review and two animal studies did not; the authors concluded that the available evidence does not strongly support a clinically significant interaction.
For context, the 2024 American College of Gastroenterology guideline lists 14 days of bismuth quadruple therapy as the preferred regimen for treatment-naive patients when antibiotic susceptibility is unknown. Decisions about testing and treatment belong with a clinician.
Broccoli Sprouts and Sulforaphane
Three-day-old sprouts of certain broccoli and cauliflower cultivars contain 10 to 100 times more glucoraphanin than the corresponding mature plants, according to a 1997 analysis by Fahey and colleagues. Glucoraphanin is the glucosinolate precursor of sulforaphane, an isothiocyanate.
In laboratory tests published in 2002 (Fahey and colleagues), sulforaphane inhibited 3 reference strains and 45 clinical isolates of H. pylori irrespective of their resistance to conventional antibiotics (minimal inhibitory concentration for 90% of strains at or below 4 µg/ml). Brief exposure killed the bacteria, and sulforaphane eliminated H. pylori from inside a human epithelial cell line. A 2013 laboratory study from the same group found that sulforaphane inactivates H. pylori urease — the enzyme that generates ammonia and neutralises stomach acid — but that its bactericidal effect is not obligatorily linked to urease inactivation.
The human evidence comes mainly from a 2009 study in Cancer Prevention Research (Yanaka and colleagues). Forty-eight H. pylori-infected patients were randomly assigned to 70 g a day of broccoli sprouts (containing 420 µmol of sulforaphane precursor) or the same weight of alfalfa sprouts, which contain no sulforaphane, for eight weeks. Broccoli sprouts, but not alfalfa sprouts, lowered urea breath test values and H. pylori stool antigen (markers of colonisation) and serum pepsinogens I and II (markers of gastric inflammation). Values returned to their original levels two months after the sprouts were stopped. The abstract reports reduced colonisation markers; it does not report eradication.
Cranberry Juice and Anti-Adhesion Properties
In laboratory work published in 2000 (Burger and colleagues), a high-molecular-mass constituent of cranberry juice inhibited the sialic acid-specific adhesion of three H. pylori strains to human gastric mucus and to human red blood cells. A 2005 laboratory study (Lin and colleagues) found that mixtures of oregano and cranberry extracts inhibited H. pylori more than either extract alone, with urease inhibition proposed as a likely mode of action.
A double-blind, randomised, placebo-controlled trial published in Helicobacter in 2005 (Zhang and colleagues, PubMed PMID: 15810945) gave 189 infected adults in Linqu County, China, two 250-ml boxes of cranberry juice (97 people) or a matching placebo drink (92 people) daily for 90 days. At day 90, 14 of 97 in the cranberry group and 5 of 92 in the placebo group had a negative 13C-urea breath test (p < 0.05). The authors concluded that regular cranberry juice consumption can suppress H. pylori infection in an endemically infected population.
A larger trial in the same county (Li and colleagues, 2021) randomised 522 infected adults to proanthocyanidin-standardised cranberry juice, encapsulated cranberry powder, or placebos. At week 8, 20.00% of the high-proanthocyanidin juice group (44 mg proanthocyanidin per 240-ml serving, twice daily) were H. pylori-negative, compared with 7.35% on placebo (P < 0.05). The cranberry powder capsules were not significantly effective at either time point, and both juice and powder were well tolerated.
A 2022 meta-analysis (Nikbazm and colleagues) pooled four randomised trials (five effect sizes, 1,935 individuals) and found an odds ratio for eradication of 1.27 with cranberry that was not statistically significant (95% CI 0.63–2.58); the authors called for larger, well-designed trials.
Mastic Gum: Laboratory Activity and Mixed Trial Results
Mastic gum is the resin of Pistacia lentiscus var. chia, known as Chios mastic gum. A letter titled “Mastic gum kills Helicobacter pylori” (Huwez and colleagues) appeared in the New England Journal of Medicine in 1998, and a correction to it was published in 1999; PubMed indexes the letter without an abstract.
In a 2007 study (Paraschos and colleagues), a mastic extract with its insoluble polymer removed, given to H. pylori-infected mice for three months at an average 0.75 mg a day, reduced colonisation about 30-fold but did not reduce the chronic gastritis. In laboratory tests against 11 clinical strains, the acid fraction was the most active extract and isomasticadienolic acid the most active pure compound.
Human studies have been small and inconsistent:
- In 2003 (Bebb and colleagues), nine infected patients took mastic 1 g four times daily for 14 days; all eight who completed the study remained H. pylori-positive by urea breath test, with no change in breath-test values.
- In a 2010 randomised pilot study on Chios (Dabos and colleagues), 52 patients received 350 mg of mastic three times daily, 1.05 g three times daily, a proton pump inhibitor plus 350 mg mastic three times daily (each for 14 days), or standard triple therapy for 10 days. Eradication was confirmed in 4 of 13, 5 of 13, 0 of 13 and 10 of 13 patients respectively; changes in mean breath-test values were not statistically significant in the mastic groups. Mastic was well tolerated, with no serious adverse events.
- In a 2026 single-blind pilot trial (Tulsian and colleagues), 64 adults received 14 days of bismuth quadruple therapy with or without mastic gum. Eradication was 85% with mastic and 67% without, a difference that was not statistically significant (p = 0.19); dyspepsia symptom scores improved more with mastic (p = 0.001), and both regimens were well tolerated.
Probiotics as Adjuncts to Antibiotic Therapy
Probiotics have been tested as additions to standard antibiotic regimens, with two main outcomes: the eradication rate and antibiotic-related side effects. Several meta-analyses have pooled these trials:
- Probiotics in general: A 2015 meta-analysis (Lv and colleagues) of 21 randomised trials with 3,814 participants found a pooled relative risk for eradication of 1.12 (95% CI 1.06–1.19) with probiotics added to standard triple therapy, and fewer therapy-related adverse effects (relative risk 0.60, 95% CI 0.40–0.91). In its subgroup analyses, probiotics given before or after the antibiotic regimen both improved eradication, as did courses longer than two weeks and those including Lactobacillus or multiple strains. A 2016 meta-analysis (Lü and colleagues) of 13 trials with 2,306 patients found a relative risk for eradication of 1.15 (95% CI 1.10–1.20) and lower rates of total side effects (relative risk 0.71) and diarrhoea (relative risk 0.51); in adults, the total adverse event rate was not decreased.
- Lactobacillus reuteri: A 2024 meta-analysis (Li and colleagues) of eight placebo-controlled trials with 1,087 patients found eradication rates of 80.0% with L. reuteri versus 72.6% with placebo (intention-to-treat; relative risk 1.10, 95% CI 1.03–1.17), greater improvement in gastrointestinal symptom scores, and fewer adverse events (relative risk 0.72).
- Saccharomyces boulardii: A 2015 meta-analysis (Szajewska and colleagues) of 11 randomised trials with 2,200 participants found eradication in 80% of the S. boulardii group versus 71% of controls (relative risk 1.11, 95% CI 1.06–1.17), with fewer overall therapy-related adverse effects (relative risk 0.44), less diarrhoea (relative risk 0.51) and less nausea (relative risk 0.6). The authors noted that eradication with added S. boulardii was still below the desired level of success.
These abstracts report results by probiotic strain or class, not by food. Whether fermented foods with live cultures, such as kefir, yogurt, miso or natto, have similar effects during treatment is not addressed in them.
How H. pylori Spreads: Fecal-Oral and Oral-Oral Routes
Brown's 2000 review in Epidemiologic Reviews describes humans as the principal reservoir of H. pylori and person-to-person spread as the most likely mode of transmission in the general population, by either the oral-oral route (through vomitus or possibly saliva) or perhaps the fecal-oral route. At the time of the review, iatrogenic transmission following endoscopy was the only proven mode.
The review lists the evidence for person-to-person spread: a higher incidence of infection among institutionalised children and adults, clustering of infection within families, and detection of H. pylori DNA in vomitus, saliva, dental plaque, gastric juice and feces. Waterborne transmission, probably due to fecal contamination, may be an important source where untreated water is common, and studies in the United States linked clinical infection with drinking H. pylori-contaminated well water.
Animal sources were judged minor or unproven: H. pylori is probably uncommon in domestic cats, sheep were suggested as a possible source that needed more study, and evidence was lacking that houseflies transmit it to humans. Infection rates were higher in developing than in developed countries, most infections occurred during childhood, and rates seemed to be falling as hygiene improved.
How H. pylori Spreads Within Families
Brown's review associates inadequate sanitation, low social class and crowded or high-density living with a higher prevalence of H. pylori, and notes that this pattern is consistent with the clustering of infection within families and institutions.
A 2021 meta-analysis (Zhao and colleagues) compared treating the whole family with treating only the infected patient. Across eight studies with 1,198 patients, eradication was higher with whole-family treatment (odds ratio 2.93, 95% CI 1.68–5.13); the advantage appeared in the children subgroup but not in the spouse subgroup. Across six studies with 881 patients, recurrence was lower with whole-family treatment (odds ratio 0.3, 95% CI 0.19–0.48), at 6, 12, 18 and more than 24 months after treatment.
The 2022 Maastricht VI/Florence consensus report notes that H. pylori infection is now formally recognised as an infectious disease in the International Classification of Diseases, 11th Revision, which in principle leads to the recommendation that all infected patients receive treatment. The 2024 American College of Gastroenterology guideline describes H. pylori as a cause of dyspepsia, peptic ulcer disease and gastric cancer.
Reinfection After Successful Eradication: What Studies Report
A 2017 meta-analysis of 132 studies covering 53,934 patient-years (Hu and colleagues) estimated the global annual H. pylori recurrence rate after eradication at 4.3%, the reinfection rate at 3.1% and the recrudescence rate (return of the original infection) at 2.2%. Recurrence was inversely related to the human development index: 3.1% a year in countries with a very high index, 6.2% with a high index, and 10.9% with a medium or low index. The authors concluded that recurrence remains closely associated with socioeconomic and sanitary conditions.
Household treatment: As described above, whole-family treatment was associated with lower recurrence than treating one infected person alone in the 2021 meta-analysis by Zhao and colleagues.
Water, food and sanitation: The transmission research links higher prevalence with inadequate sanitation, crowding, food prepared under less than ideal conditions, and untreated or contaminated water, including private wells in US studies. None of the studies cited on this page tested boiling, filtering or handwashing as a way to prevent reinfection.
Dental care: A 2012 meta-analysis (Bouziane and colleagues) of three trials with 298 patients found that adding periodontal treatment to eradication therapy reduced the relative risk of persistent gastric H. pylori by 63% (relative risk 0.37, 95% CI 0.21–0.64) compared with eradication therapy alone. The authors advised caution because of limitations in the primary data.
Confirming eradication: The 2024 American College of Gastroenterology guideline addresses the need for universal post-treatment test-of-cure.
Key Research Papers
The following peer-reviewed studies form the evidence base for dietary and preventive approaches to H. pylori. All are indexed in PubMed.
- Fahey JW et al. Sulforaphane inhibits extracellular, intracellular, and antibiotic-resistant strains of Helicobacter pylori and prevents benzo[a]pyrene-induced stomach tumors. Proc Natl Acad Sci USA. 2002. — PubMed PMID: 12032331
- Yanaka A et al. Dietary sulforaphane-rich broccoli sprouts reduce colonization and attenuate gastritis in Helicobacter pylori-infected mice and humans. Cancer Prev Res (Phila). 2009. — PubMed PMID: 19349290
- Zhang L et al. Efficacy of cranberry juice on Helicobacter pylori infection: a double-blind, randomized placebo-controlled trial. Helicobacter. 2005. — PubMed PMID: 15810945
- Burger O et al. A high molecular mass constituent of cranberry juice inhibits Helicobacter pylori adhesion to human gastric mucus. FEMS Immunol Med Microbiol. 2000. — PubMed PMID: 11118911
- Lü M et al. Efficacy of probiotic supplementation therapy for Helicobacter pylori eradication: a meta-analysis of randomized controlled trials. PLoS One. 2016. — PubMed PMID: 27723762
- Li M et al. Lactobacillus reuteri compared with placebo as an adjuvant in Helicobacter pylori eradication therapy: a meta-analysis of randomized controlled trials. Ther Adv Gastroenterol. 2024. — PubMed PMID: 38846173
- Szajewska H et al. Systematic review with meta-analysis: Saccharomyces boulardii supplementation and eradication of Helicobacter pylori infection. Aliment Pharmacol Ther. 2015. — PubMed PMID: 25898944
- Zhao JB et al. Whole family-based Helicobacter pylori eradication is a superior strategy to single-infected patient treatment approach: a systematic review and meta-analysis. Helicobacter. 2021. — PubMed PMID: 33675089
- Brown LM. Helicobacter pylori: epidemiology and routes of transmission. Epidemiol Rev. 2000. — PubMed PMID: 11218379
- Hu Y et al. Systematic review with meta-analysis: the global recurrence rate of Helicobacter pylori. Aliment Pharmacol Ther. 2017. — PubMed PMID: 28892184
- Malfertheiner P et al. Management of Helicobacter pylori infection: the Maastricht VI/Florence consensus report. Gut. 2022. — PubMed PMID: 35944925
- Fahey JW et al. Broccoli sprouts: an exceptionally rich source of inducers of enzymes that protect against chemical carcinogens. Proc Natl Acad Sci USA. 1997. — PubMed PMID: 9294217
- Fahey JW et al. Urease from Helicobacter pylori is inactivated by sulforaphane and other isothiocyanates. Biochem Biophys Res Commun. 2013. — PubMed PMID: 23583386
- Lin YT et al. Inhibition of Helicobacter pylori and associated urease by oregano and cranberry phytochemical synergies. Appl Environ Microbiol. 2005. — PubMed PMID: 16332847
- Li ZX et al. Suppression of Helicobacter pylori infection by daily cranberry intake: a double-blind, randomized, placebo-controlled trial. J Gastroenterol Hepatol. 2021. — PubMed PMID: 32783238
- Nikbazm R et al. The effect of cranberry supplementation on Helicobacter pylori eradication in H. pylori positive subjects: a systematic review and meta-analysis of randomised controlled trials. Br J Nutr. 2022. — PubMed PMID: 34670631
- Huwez FU et al. Mastic gum kills Helicobacter pylori [letter]. N Engl J Med. 1998. — PubMed PMID: 9874617 (correction: PubMed PMID: 10021481)
- Paraschos S et al. In vitro and in vivo activities of Chios mastic gum extracts and constituents against Helicobacter pylori. Antimicrob Agents Chemother. 2007. — PubMed PMID: 17116667
- Bebb JR et al. Mastic gum has no effect on Helicobacter pylori load in vivo. J Antimicrob Chemother. 2003. — PubMed PMID: 12888582
- Dabos KJ et al. The effect of mastic gum on Helicobacter pylori: a randomized pilot study. Phytomedicine. 2010. — PubMed PMID: 19879118
- Tulsian V et al. Mastic gum as an adjunct therapy to standard bismuth quadruple therapy for Helicobacter pylori eradication: a randomized single-blind pilot study. Indian J Gastroenterol. 2026. — PubMed PMID: 41832367
- Lv Z et al. Efficacy and safety of probiotics as adjuvant agents for Helicobacter pylori infection: a meta-analysis. Exp Ther Med. 2015. — PubMed PMID: 25667617
- Bouziane A et al. Effect of periodontal therapy on prevention of gastric Helicobacter pylori recurrence: a systematic review and meta-analysis. J Clin Periodontol. 2012. — PubMed PMID: 23151293
- Lanas A, Chan FKL. Peptic ulcer disease. Lancet. 2017. — PubMed PMID: 28242110
- Yeoh KG et al. Chili protects against aspirin-induced gastroduodenal mucosal injury in humans. Dig Dis Sci. 1995. — PubMed PMID: 7895549
- Yu J et al. Alcohol increases treatment failure for Helicobacter pylori eradication in Asian populations. BMC Gastroenterol. 2023. — PubMed PMID: 37880587
- Orire I et al. Revisiting the disulfiram-like reaction between alcohol and oral metronidazole. Sex Transm Dis. 2026. — PubMed PMID: 41366815
- Chey WD et al. ACG Clinical Guideline: treatment of Helicobacter pylori infection. Am J Gastroenterol. 2024. — PubMed PMID: 39626064