How to Get Rid of Stomach Bacteria: H. pylori

The most common harmful bacterium living in the stomach is H. pylori, and getting rid of it requires a course of antibiotics combined with an acid-reducing medication. No natural remedy has been shown to fully eliminate an H. pylori infection on its own, but several foods and supplements can support treatment and reduce bacterial load. Here’s what works, what helps, and what to expect during and after treatment.

How H. pylori Gets Diagnosed

Before treating a stomach infection, you need to confirm it exists. The two most common non-invasive tests are the urea breath test and the stool antigen test. Both work by detecting signs of active H. pylori, but their sensitivity can vary. In one comparative study, the breath test and stool antigen test each caught about 61 to 64% of confirmed infections, while a blood antibody test picked up 94%. The tradeoff is that blood tests can stay positive long after an infection has cleared, so they’re better for ruling out H. pylori than for confirming an active case.

For a first-time diagnosis, your doctor may start with a blood test and then follow up with a breath or stool test to confirm. If you’ve already been treated and want to know whether the bacteria are gone, a breath test or stool antigen test taken at least four weeks after finishing antibiotics gives the most reliable answer.

Standard Antibiotic Treatment

H. pylori eradication requires a combination of drugs, not a single antibiotic. The bacteria are tough, living beneath the stomach’s mucus lining where acid levels are extreme, so treatment hits them from multiple angles at once.

The most common first-line approach is triple therapy: an acid-reducing proton pump inhibitor (PPI) taken twice daily alongside two antibiotics for 14 days. A second common option is bismuth quadruple therapy, which adds a bismuth compound to the mix along with two different antibiotics, typically for 10 to 14 days. Bismuth works by forming complexes in the bacterial wall, blocking the enzymes H. pylori needs to survive, and preventing the bacteria from sticking to the stomach lining.

The choice between these regimens increasingly depends on where you live. Antibiotic resistance is a growing problem. A 2024 study of patients in Romania found that nearly 1 in 5 people who had never been treated before already carried bacteria resistant to one of the key antibiotics (clarithromycin). Among people who had undergone prior treatment, the resistance rate jumped to almost 48%. In regions where resistance exceeds 15%, guidelines recommend skipping clarithromycin-based therapy entirely and using a bismuth-based regimen instead. Your doctor should factor in local resistance patterns when choosing your treatment plan.

What Treatment Feels Like

Two weeks of multiple antibiotics is not a comfortable experience. The most common side effects are nausea, a metallic taste in the mouth, diarrhea, and stomach cramping. Bismuth-containing regimens can turn your tongue and stool black, which is harmless but alarming if you’re not expecting it. The pill burden is significant: quadruple therapy can mean swallowing up to 14 pills a day on a strict schedule.

Completing the full course matters. Stopping early is one of the main reasons treatment fails and resistance develops. If side effects become difficult, contact your prescriber before skipping doses, as they may be able to adjust the regimen rather than abandon it.

Probiotics as a Treatment Booster

Adding a probiotic during antibiotic therapy can meaningfully improve your chances of clearing the infection. In a controlled trial, patients who took Lactobacillus reuteri alongside their standard treatment achieved a 93.2% eradication rate, compared to 68.9% in the group that received antibiotics with a placebo. That’s a substantial difference.

Probiotics appear to help in two ways: they make the stomach environment less hospitable to H. pylori, and they reduce the gastrointestinal side effects of antibiotics (particularly diarrhea and nausea), which makes it easier to finish the full course. Look for a probiotic containing Lactobacillus strains and start taking it on the first day of your antibiotic regimen.

Foods That Help Fight H. pylori

While no food eliminates H. pylori on its own, several have demonstrated real antibacterial activity that can lower the bacterial load in your stomach and reduce inflammation.

  • Broccoli and broccoli sprouts contain a compound called sulforaphane that inhibits H. pylori growth. In one clinical study, eating about 70 grams of broccoli sprouts daily (roughly a handful) for eight weeks significantly decreased colonization intensity. However, another trial using a concentrated supplement capsule for four weeks did not show the same benefit, suggesting that eating the whole food may matter more than taking a pill.
  • Berries have potent bacteriostatic properties against H. pylori, including strains that are resistant to antibiotics. Raspberry, strawberry, blackberry, and blueberry extracts have all shown activity. In a trial of 189 adults, drinking 250 ml of blueberry juice daily led to negative breath tests in about 14.5% of participants after 35 days, without any antibiotic treatment.
  • Honey (particularly manuka and oak tree varieties) inhibits H. pylori and blocks one of its key survival enzymes. In a study of 150 patients with digestive symptoms, eating honey at least once a week was associated with significantly lower rates of infection.
  • Olive oil and omega-3 fats from fish oil have demonstrated bacteriostatic effects against H. pylori in lab settings. Incorporating olive oil as your primary cooking fat and eating fatty fish regularly may offer modest protection.

These foods are most useful as adjuncts to antibiotic treatment, not replacements. Think of them as stacking the odds in your favor.

Mastic Gum and Other Natural Remedies

Mastic gum, a resin from a tree native to the Greek island of Chios, has genuine bactericidal activity against H. pylori. In a pilot trial, patients took either 350 mg or 1,050 mg of pure mastic gum three times daily for 14 days. Eradication was confirmed in about 30 to 38% of participants, depending on the dose. That’s far lower than antibiotic therapy, but it does show that mastic gum kills the bacteria in living humans, not just in a petri dish.

Lactoferrin, a protein found naturally in milk, has also shown promise. A meta-analysis of multiple trials found that adding lactoferrin to standard antibiotic regimens significantly improved eradication rates and reduced side effects. It’s available as a supplement and is worth considering alongside conventional treatment.

Recovering Your Gut After Treatment

A two-week course of multiple antibiotics disrupts more than just H. pylori. It reshapes the entire microbial ecosystem of your digestive tract. Research tracking healthy adults after antibiotic exposure found that gut microbiome diversity recovered to near-baseline levels within about six weeks, though some individual species took longer to return.

You can support this recovery by eating a diverse range of fiber-rich foods: vegetables, fruits, legumes, and whole grains all feed beneficial bacteria. Fermented foods like yogurt, kefir, kimchi, and sauerkraut introduce live bacteria directly. Continuing your probiotic supplement for a few weeks after finishing antibiotics is reasonable, though your diet will do more for long-term microbial diversity than any single supplement.

When First-Line Treatment Fails

About 10 to 30% of people don’t clear H. pylori on the first attempt, and the odds of success drop with each subsequent round because surviving bacteria are more likely to be resistant. If your first treatment fails, the second attempt will use a different combination of antibiotics. In some cases, your doctor may order a culture or molecular test to identify exactly which antibiotics the bacteria are resistant to before choosing the next regimen.

Reinfection after successful treatment is possible but uncommon in developed countries, occurring in roughly 1 to 2% of cases per year. Transmission happens through contaminated water and close person-to-person contact, so household members of someone with a confirmed infection may benefit from testing as well.