If you have an H. pylori infection, certain foods can worsen stomach inflammation, help the bacteria thrive, or interfere with treatment. The biggest offenders are high-salt foods, processed meats, refined sugars, and alcohol. Cutting back on these while adding a few protective foods can help your stomach lining heal and give antibiotic therapy the best chance of working.
High-Salt Foods Feed the Infection
Salt is one of the most well-documented dietary triggers for people with H. pylori. High salt concentrations in the stomach change how the bacteria behave, ramping up the activity of genes tied to toxin production and tissue damage. In animal studies, a high-salt diet and H. pylori together accelerate the progression toward gastric atrophy and precancerous changes in the stomach lining far more than either factor alone.
This means chips, soy sauce, pickled vegetables, cured fish, instant noodles, and other heavily salted foods deserve extra caution. You don’t need to eliminate salt entirely, but keeping your intake moderate (under about 5 grams a day, the World Health Organization’s general recommendation) removes one of the factors that makes H. pylori more aggressive.
Processed and Red Meat
Processed meats like bacon, sausage, hot dogs, and deli slices carry a measurable increase in gastric cancer risk, which matters because H. pylori is already the single largest risk factor for stomach cancer. A large pooled analysis across multiple studies found that people eating the most processed meat had a 23% higher risk of gastric cancer compared to those eating the least. Red meat showed a similar pattern, with a 24% increased risk at the highest intake levels.
The likely culprits are nitrates and nitrites, preservatives that can form cancer-promoting compounds in the acidic environment of the stomach. When H. pylori is already causing chronic inflammation, adding these compounds on top creates a compounding effect. Swapping processed meats for fish, poultry, or plant-based proteins is a straightforward way to reduce that burden.
Refined Sugar and Simple Carbohydrates
High sugar intake appears to create a more hospitable environment for H. pylori. Altered glucose metabolism can produce chemical changes in the stomach lining that promote bacterial colonization. There’s also a two-way relationship between H. pylori and blood sugar control: the infection disrupts normal absorption of glucose and lipids, while elevated blood sugar may further encourage the bacteria to establish itself.
Sodas, candy, pastries, white bread, and other rapidly digested carbohydrates spike blood sugar quickly and offer no nutritional benefit to a stomach that’s trying to heal. Replacing them with whole grains, fruits, and vegetables gives your body fiber and antioxidants that support the stomach lining rather than undermining it.
Alcohol During Treatment
Drinking alcohol while undergoing H. pylori eradication therapy can directly sabotage your results. One study found that women who drank regularly during treatment were nearly four times as likely to have their antibiotic regimen fail compared to women who abstained. The failure rate climbed as drinking frequency increased per week.
Alcohol irritates an already-inflamed stomach lining, can interfere with how antibiotics are absorbed and metabolized, and worsens side effects like nausea that might make you skip doses. Even if you normally drink in moderation, staying completely dry during the typical one- to two-week treatment course is worth the temporary trade-off.
Spicy and Acidic Foods
Spicy foods and highly acidic items like citrus juice, tomato sauce, and vinegar-based dressings don’t cause H. pylori infection or make the bacteria stronger in the way salt does. But they can significantly increase discomfort if you already have gastritis or an ulcer. Capsaicin (the heat in chili peppers) and citric acid both stimulate acid production and irritate damaged tissue.
If spicy or acidic foods don’t bother you, there’s no strict medical reason to eliminate them. But if you’re dealing with burning, bloating, or nausea, pulling them out temporarily often provides noticeable relief within days.
Coffee and Caffeinated Drinks
Coffee stimulates gastric acid secretion, which can aggravate ulcers and inflamed stomach tissue. Both regular and decaf coffee have this effect, though it’s stronger with caffeine. Carbonated sodas add the double problem of acidity and, in many cases, sugar. If you’re symptomatic, switching to non-acidic herbal teas (chamomile or ginger tea, for example) can ease stomach irritation while you heal.
Foods That Actually Help
While you’re cutting out the foods above, a few additions can actively work in your favor.
Broccoli and broccoli sprouts contain a compound called sulforaphane that has direct antibacterial activity against H. pylori. Research has shown that sulforaphane at concentrations achievable through a normal diet (roughly equivalent to eating about 70 grams of broccoli sprouts daily) can reduce bacterial load in the stomach. Broccoli sprouts contain about ten times more sulforaphane than mature broccoli, making them particularly effective.
Probiotic-rich foods like yogurt, kefir, sauerkraut, and kimchi (low-salt versions) support the stomach’s microbial balance during antibiotic treatment. Lactobacillus strains in particular have been studied as add-ons to standard H. pylori therapy. While research hasn’t pinpointed one perfect strain or dose, the overall evidence shows that probiotics can reduce common side effects like diarrhea and nausea, making it easier to complete your full course of antibiotics.
Honey, garlic, and green tea all have mild antimicrobial properties that may help keep H. pylori in check alongside standard treatment. They’re not substitutes for antibiotics, but incorporating them into your regular diet is low-risk and potentially beneficial. Manuka honey in particular has shown activity against H. pylori in laboratory settings.
A Practical Eating Pattern
You don’t need a complicated elimination diet. The core approach is simple: eat whole, minimally processed foods, keep salt moderate, avoid alcohol during treatment, and lean into vegetables (especially cruciferous ones like broccoli, cabbage, and cauliflower). Smaller, more frequent meals tend to sit better than large ones when your stomach is inflamed, because they produce less acid at any one time.
Most people complete H. pylori treatment in 10 to 14 days, and symptoms often improve within the first week. Maintaining these dietary changes for a few weeks beyond that gives your stomach lining time to fully recover. The damage from chronic H. pylori gastritis can take one to three months to resolve, so the longer you support healing through what you eat, the better the outcome.

