What Feeds H. Pylori? Foods to Eat and Avoid

Understand the intricate relationship between your diet and H. pylori. Explore how specific dietary choices influence this common stomach bacterium.

H. pylori thrives not by digesting the food in your stomach but by scavenging nutrients from your body’s own tissues, particularly iron and amino acids. What you eat still matters, though, because certain foods change the stomach environment in ways that help the bacterium flourish and ramp up its most harmful behaviors, while others contain compounds that suppress its growth or reduce the inflammation it causes. The relationship between diet and H. pylori is less about “feeding” the bug directly and more about tipping conditions in its favor or against it.

How H. Pylori Actually Nourishes Itself

H. pylori doesn’t sit in your stomach waiting for your lunch to arrive. It burrows into the mucus lining of the stomach wall and feeds on what it finds there. One of its most critical needs is iron, which it extracts from host proteins like hemoglobin, transferrin, and lactoferrin. Research using specially formulated lab media showed that H. pylori can bind and pull iron from both human and bovine versions of these proteins, though it has an unusual preference for the iron-free forms of transferrin and lactoferrin. Scientists believe this strategy evolved to allow the bacterium to grow slowly and persistently without depleting the host’s iron stores so severely that the immune system mounts an overwhelming response.

The bacterium also runs its own internal nitrogen-recycling system. It processes the amino acid arginine through an enzyme cycle that generates ammonium, which it uses to neutralize stomach acid in its immediate surroundings. This urea cycle is a survival engine: it keeps the local environment hospitable enough for H. pylori to persist even in the harsh acidity of the stomach.

Beyond iron and nitrogen, H. pylori deploys a toolkit of metal-acquisition proteins and virulence factors to compete for scarce nutrients in the stomach lining. A review in Oxidative Medicine and Cellular Longevity described how the bacterium essentially hijacks the host’s immune response and nutrient landscape to carve out a replicative niche in what should be one of the most hostile environments in the human body.

Why Salt Is the Biggest Dietary Villain

If one food-related factor stands out in the research on H. pylori, it’s salt. A high-salt diet doesn’t just irritate an already inflamed stomach; it directly changes how the bacterium behaves. In lab cultures, raising sodium chloride concentrations caused H. pylori to increase production of CagA, one of its most dangerous proteins. CagA is injected into stomach lining cells and is strongly associated with more severe gastritis and higher gastric cancer risk. When the same bacterium grown in high-salt conditions was exposed to human stomach cells, those cells pumped out more inflammatory signals than cells exposed to H. pylori grown in low-salt conditions.

Animal studies back this up. Mice infected with H. pylori and fed a high-salt diet developed more severe stomach inflammation, greater loss of acid-producing cells, and higher levels of inflammatory markers compared to infected mice on a normal diet. The high-salt animals also showed increased cagA gene activity in their stomachs, confirming that salt’s effect on the bacterium isn’t just a lab curiosity.

Salt also upregulates production of VacA, another toxin H. pylori uses to damage stomach cells. A proteomic study found that environmental salt concentration influenced the entire composition of proteins the bacterium secretes, with VacA levels in the culture supernatant rising under high-salt conditions.

A large cross-sectional dietary study of Chinese adults found that people who scored in the highest quartile for a “high-salt” eating pattern had about 13% higher odds of H. pylori infection compared to those in the lowest quartile.

In practical terms, this means heavily salted foods like pickled vegetables, cured meats, salted fish, soy sauce-heavy dishes, and packaged snacks are worth cutting back on if you’re H. pylori positive. The bacterium literally weaponizes salt.

Sugar, Nitrates, and Coffee

Sugar doesn’t “feed” H. pylori the way it feeds, say, yeast in bread dough. But H. pylori is chemotactically attracted to glucose, meaning it senses glucose and swims toward it. In lab experiments, glucose was the strongest chemical attractant of all the sugars tested, and all sugars except mannitol triggered positive movement. The researchers suggested that diets high in sugar could facilitate H. pylori’s motility in the stomach, potentially helping it find favorable colonization sites.

Nitrate-rich foods are another concern, though the mechanism is indirect. When H. pylori causes chronic inflammation that reduces stomach acid production, bacteria capable of converting dietary nitrates into nitrites can multiply more easily in the less acidic environment. Those nitrites can then be further converted into nitrosamines, which are carcinogenic. Foods high in nitrates include processed meats (bacon, hot dogs, deli meats) and some preserved vegetables. The nitrate-to-nitrosamine chain is especially relevant for people whose H. pylori infection has progressed to a stage where their stomach acid output is already compromised.

Coffee has a more ambiguous reputation. One cross-sectional study found that people drinking three or more cups per day had roughly 2.5 times the odds of active H. pylori infection compared to non-drinkers, after adjusting for other factors.

A separate study in H. pylori-positive patients found a significant link between coffee consumption and upper gastrointestinal symptoms like heartburn, nausea, and abdominal pain. Coffee likely doesn’t make the infection itself worse, but it can aggravate symptoms by stimulating acid production in an already inflamed stomach. If you’re dealing with active symptoms, easing off coffee is a reasonable move.

Broccoli Sprouts and Sulforaphane

Broccoli sprouts are one of the most studied dietary agents against H. pylori, thanks to sulforaphane, a compound concentrated in young broccoli plants. In an animal model using human gastric tissue implanted in mice, sulforaphane treatment completely eradicated H. pylori in about 73% of the treated grafts.

Human evidence is more modest but still interesting. A small preliminary trial had nine H. pylori-positive patients eat broccoli sprouts daily, and three of them tested negative for the infection afterward.

However, a later controlled study using broccoli sprout extract found no significant reduction in breath test values or gastric ammonia levels in H. pylori-positive subjects compared to placebo. The takeaway is that sulforaphane has real anti-H. pylori activity in lab and animal settings, but eating broccoli sprouts alone is unlikely to eradicate an established infection. It may help reduce bacterial load and inflammation alongside standard treatment, though.

Green Tea, Garlic, Cranberry, and Honey

Several other foods contain compounds with demonstrated lab activity against H. pylori, though each comes with caveats about translating petri-dish results to real stomachs.

Green tea’s key weapon is epigallocatechin gallate (EGCG), the most abundant catechin in the leaves. EGCG showed bactericidal activity against H. pylori at neutral pH in lab tests and was effective even against antibiotic-resistant strains.

In infected gerbils, catechin treatment eradicated H. pylori in roughly 10 to 36% of animals and significantly reduced stomach erosion and bleeding. EGCG also appears to dampen the inflammatory signaling pathway that H. pylori triggers in stomach cells. The practical limitation is that EGCG loses its bactericidal punch at the low pH levels found in stomach acid, so how much benefit survives digestion is unclear.

Garlic’s active compound, allicin, has strong anti-H. pylori effects in lab cultures. Allicin inhibited H. pylori growth at very low concentrations, and the potency of garlic’s sulfur compounds increased with the number of sulfur atoms in their structure.

In a small human study, H. pylori-positive patients who consumed garlic showed significantly lower breath-test values (a marker of bacterial activity) after garlic consumption compared to a control period without garlic. A systematic review confirmed that allicin has proven activity against H. pylori and has been explored as an add-on to standard antibiotic regimens.

Cranberry juice earned attention after a double-blind trial found that drinking juice with a high proanthocyanidin content twice daily for eight weeks reduced H. pylori infection rates by about 20% compared to placebo and lower-dose groups. Encapsulated cranberry powder, by contrast, didn’t show a significant effect.

Honey, particularly manuka honey, has also shown anti-H. pylori effects in vitro. Lab tests found that manuka honey produced inhibition zones comparable to conventional medications, with strong bactericidal activity.

Other honey varieties also inhibited H. pylori growth in lab settings, though with varying potency. As with most of these foods, lab-dish killing power doesn’t automatically translate to clearing an infection in a living stomach, but honey as part of a broader anti-inflammatory diet is unlikely to hurt and may offer some marginal benefit.

The Capsaicin Puzzle

Spicy food’s reputation in stomach problems usually casts it as the villain, but the research on capsaicin and H. pylori tells a more complex story. Capsaicin, the compound that makes chili peppers hot, inhibits H. pylori growth in lab cultures in a dose-dependent way, killing the bacterium within four hours at effective concentrations and continuing to work even at moderately acidic pH levels.

In cell studies, capsaicin also suppressed the inflammatory cascade that H. pylori triggers in stomach lining cells, significantly reducing production of the inflammatory signal IL-8 and blocking the activation of the NF-kB pathway, a central driver of H. pylori-related inflammation.

An animal study confirmed these effects in living mice: capsaicin reduced inflammatory cytokine expression and gastric damage during active H. pylori infection.

That said, if you already have gastritis or ulcers, eating very spicy food can still trigger pain, even if capsaicin itself isn’t making the infection worse biologically. The research suggests capsaicin is protective against H. pylori on a molecular level, but the sensation of burning in an inflamed stomach is real, and comfort matters when you’re trying to eat well during treatment.

Probiotics and Fermented Foods

Probiotics don’t eradicate H. pylori on their own, but they’re one of the most evidence-supported dietary additions during treatment. An umbrella review of multiple meta-analyses found that adding probiotics to standard antibiotic therapy improved eradication rates by about 10% and cut the risk of side effects like diarrhea and nausea roughly in half.

The benefit has been demonstrated specifically alongside bismuth-based quadruple therapy, one of the most common treatment regimens. A meta-analysis found that adding probiotics to this regimen significantly improved eradication odds, with Saccharomyces boulardii (a yeast probiotic) and multi-strain formulas both showing benefit. Diarrhea, the most common side effect of H. pylori treatment, dropped substantially in the probiotic groups.

Fermented dairy products show promise as a food-based way to get these organisms. Certain Bifidobacterium strains found in yogurt demonstrated direct suppressive effects on H. pylori in lab co-culture experiments, though not all probiotic strains performed equally.

More broadly, fermented milk-based preparations and bovine lactoferrin both show a beneficial trend in H. pylori eradication when reviewed across multiple studies. Traditional fermented foods like kimchi, kefir, sauerkraut, and kombucha introduce live microbes to the gut, and several of the Lactobacillus and Saccharomyces strains they carry are known probiotics with anti-H. pylori properties.

One small trial compared Lactobacillus reuteri alone against standard triple therapy and found eradication rates of about 65% and 74%, respectively, with no statistically significant difference between the two groups.

That’s an intriguing result, but it was a small study and should not be taken as evidence that yogurt can replace antibiotics. The strongest recommendation from the research is to use probiotics alongside medical treatment, not instead of it.

Vitamin C and the Prevention Angle

Vitamin C has a curious dual role. Higher levels of vitamin C in gastric juice appear to create an environment that’s less hospitable to H. pylori, and people with H. pylori infection tend to have lower vitamin C concentrations in their stomach fluid. A review of the literature concluded that vitamin C’s main value is likely preventive rather than curative, potentially by inactivating urease, the enzyme H. pylori depends on to survive in stomach acid.

One clinical trial did find that four weeks of high-dose vitamin C treatment cleared the infection in about 30% of treated patients, with gastric juice vitamin C levels rising significantly during treatment.

That’s not reliable enough to replace antibiotics, but it reinforces the case for eating plenty of vitamin C-rich foods (citrus, bell peppers, strawberries, broccoli) as part of an overall strategy. A diet rich in fruits and vegetables may help maintain gastric vitamin C levels and create a less welcoming environment for the bacterium, especially before infection takes hold or during treatment.

The same dietary-pattern study from China that flagged high-salt diets also found that people with the highest scores for a “grains-and-vegetables” eating pattern had about 18% lower odds of H. pylori infection.

Alcohol and H. Pylori

The relationship between alcohol and H. pylori is counterintuitive. Several epidemiological studies have found that moderate drinkers are slightly less likely to be infected. A large German national survey found a clear inverse dose-response relationship: compared to non-drinkers, people consuming more than about two standard drinks per day had roughly 29% lower odds of H. pylori infection after adjusting for potential confounders.

A British study found that modest wine consumption (about three to six glasses per week) was associated with roughly an 11% lower risk of infection, with a similar reduction seen for moderate beer intake.

The hypothesis is that alcohol may help the body’s natural processes clear the bacterium in some people.

Before you reach for a celebratory glass of wine, consider the limits of this evidence. These are observational studies that can’t prove cause and effect. An older study found no overall effect of alcohol on H. pylori risk, and younger adults who drank actually trended toward higher infection odds, though the finding wasn’t statistically significant.

Alcohol also irritates the stomach lining and can worsen gastritis symptoms regardless of what it does to the bacteria. If you’re in the middle of H. pylori treatment, your doctor will likely tell you to avoid alcohol anyway because of interactions with the antibiotics.

Food as a Transmission Route

One angle people often miss is that food can actually deliver H. pylori to you in the first place. The bacterium has been detected in raw vegetables, milk, and meat products, typically through contaminated water used for irrigation or unhygienic processing conditions.

Vegetables irrigated with contaminated water are a particular concern. One study detected H. pylori in multiple types of vegetables and salads, and the association between infection and consumption of raw vegetables provided indirect evidence that irrigation water serves as a vehicle for transmission. Animal manure used as fertilizer adds another pathway, since H. pylori has been isolated from cow feces and soil samples.

Contaminated water has been reviewed as a broader reservoir for the bacterium. Any surface that contacts contaminated water, including harvested produce, can potentially carry H. pylori to a new host.

This doesn’t mean you should stop eating salads. Thorough washing of raw produce with clean water and peeling where practical reduces the risk substantially. In regions where water quality is a concern, this is especially worth keeping in mind.