List of Foods to Eat When You Have H. Pylori

What to Eat When You Have H. Pylori

What to Eat When You Have H. Pylori
Everyday Health
Helicobacter pylori is a bacterium that grows in the gastric mucous layer. It’s responsible for 70 to 90 percent of gastric ulcers, and it may cause stomach cancer if left untreated.

About 80 to 90 percent of people infected with H. pylori show no symptoms, which makes it hard for doctors to diagnose.

One study found that 43 percent of people worldwide have the bacteria.

The infection is caused when H. pylori enters the stomach lining. It can be passed between people through contact with bodily fluids such as saliva, vomit, or stool. Contaminated surfaces, food, and water may also contribute to the spread of H. pylori.


H. pylori is classified as a Group I carcinogen and may cause pathologic changes later in life.

Helicobacter Pylori Diet Recommendations

H. pylori contributes to gastric and duodenal ulcers as well as chronic gastritis.

Certain foods and dietary components may help reduce Helicobacter pylori colonization and may serve as adjuncts to standard therapy (e.g. antibiotics). But it is important to note that diet changes do not reliably get rid of the infection by themselves.

Some foods, especially those rich in vitamin D, may help in the prevention and treatment of H. pylori infection, although this has not been shown concretely.


Fruits and vegetables may be particularly beneficial for people who carry this pathogen. Studies indicate that high fruit intakes may lower the risk of gastric cancer by up to 33 percent.


Due to their high antioxidant levels, these foods may help neutralize oxidative damage and protect the gastric mucosa. Some nutrients, such as vitamin C, may inhibit gastric cancer cell growth.

If you have a peptic ulcer caused by H. pylori, consider making small dietary changes that may benefit your overall gastrointestinal (GI) health:

  • Cut down on alcohol.
  • Fill up on fruits and vegetables.
  • Get more fiber.
  • Eat probiotic-rich foods.
These recommendations can improve digestive health and prevent complications. Eating high-fiber foods has been shown to lower the risk of gastric cancer.

High fiber foods include apples, berries, broccoli, corn, dried fruit, leafy green vegetables, and potatoes with skins.

Teas made from the Camellia sinensis plant — including green, black, and oolong teas — may suppress the growth of H. pylori without affecting beneficial gut bacteria. But more research is needed to confirm these claims.

Adding the following foods to your daily meals may help relieve the symptoms of a peptic ulcer.

Try Tea and Honey

Honey and tea do a lot more than just relieve a sore throat or improve your sleep. They may also protect against H. pylori infection. In one study, participants who consumed honey at least once a week for a week, and green and black tea one day a week or more, had a significantly lower risk of H. pylori infection.


Another study found a link between regular honey consumption and lower rates of the H. pylori infection — but this is not a concrete link.


That same study shows that eating yogurt more than five times a week may help protect against this condition and make it easier to manage its symptoms. Eat honey and yogurt more often to reap the benefits, which overall are beneficial for GI health.

Also, start your day with a cup of green or black tea. Both types of tea are rich in antioxidants and exhibit antimicrobial properties.

Fill Up on Probiotics

Pickles, natto, sauerkraut, kimchi, kefir, and other probiotic foods keep your digestive system running smoothly by increasing beneficial gut bacteria.

Lactobacilli and other probiotics have been found to ameliorate gastrointestinal symptoms linked with the bacteria. Plus, research indicates that supplementation with S. boulardii may help destroy H. pylori when used as part of a standard treatment plan. It may help reduce adverse effects such as bloating, diarrhea, and constipation.

Depending on your preferences, you can take probiotic supplements, eat probiotic foods or both as part of an ulcer diet. Miso, tempeh, yogurt, kombucha, pickled vegetables, buttermilk, and some types of cheese are naturally rich in probiotics and may improve digestive health. On top of that, they may help relieve bloating, gas, diarrhea, and other side effects of antibiotics, which are usually the first line of treatment for an H. pylori infection.

Eat Healthy Fats

Olive oil, fatty fish, nuts, and other foods rich in polyunsaturated fats may protect against Helicobacter pylori–related gastric disorders. Omega-3s may help prevent gastric cancer and restore digestive health after a chronic H. pylori infection. These healthy fats also support cardiovascular function, fight inflammation, and relieve arthritis symptoms.

Scientists have found that omega-3s may lower the risk of inflammatory bowel disorders.

 Due to their antioxidant properties, they scavenge free radical damage — a major contributing factor to gastric cancer. The same review suggests that walnuts — which are chock-full of vitamin E and healthy fats — may help maintain GI health.
But walnuts are far from the only sources of omega-3s. If you’re allergic to nuts, you can fill up on salmon, tuna, mackerel, chia seeds, sunflower seeds, and extra virgin olive oil. These foods are loaded with polyunsaturated fatty acids and other essential nutrients. In fact, daily intake of fish and olive oil may lower the risk of H. pylori infection. Soft drinks and processed meats have the opposite effect.

The Takeaway

  • An H. pylori infection typically doesn’t cause symptoms, making it hard to diagnose.
  • H. pylori is classified as a Group I carcinogen.
  • The bacteria can be passed between people through contact with certain bodily fluids.
  • Due to their high antioxidant content, fruits and vegetables may be beneficial for individuals.
EDITORIAL SOURCES
Everyday Health follows strict sourcing guidelines to ensure the accuracy of its content, outlined in our editorial policy. We use only trustworthy sources, including peer-reviewed studies, board-certified medical experts, patients with lived experience, and information from top institutions.
Resources
  1. Malik TF et al. Peptic Ulcer Disease. StatPearls. June 5, 2023.
  2. Helicobacter Pylori (H. Pylori) and Cancer. National Cancer Institute. April 12, 2023.
  3. Akeel M et al. Prevalence and Factors Associated With H. Pylori Infection in Saudi Patients With Dyspepsia. Electronic Physician. September 9, 2018.
  4. Butt J et al. How Do Global Trends in Helicobacter Pylori Prevalence Inform Prevention Planning? The Lancet: Gastroenterology & Hepatology. June 2023.
  5. Helicobacter Pylori (H. Pylori) Infection. Mayo Clinic. June 14, 2025.
  6. Awuku YA et al. Prevalence of Helicobacter Pylori Infection Among Children Living in a Rural Setting in Sub-Saharan Africa. BMC Public Health. April 24, 2017.
  7. Malfertheiner P et al. Helicobacter Pylori Infection. Nature Reviews Disease Primers. November 13, 2024.
  8. Mei H et al. Vitamin C and Helicobacter Pylori Infection: Current Knowledge and Future Prospects. Frontiers in Physiology. August 13, 2018.
  9. Wang T et al. Fruit and Vegetable Consumption, Helicobacter Pylori Antibodies, and Gastric Cancer Risk: A Pooled Analysis of Prospective Studies in China, Japan and Korea. International Journal of Cancer. February 1, 2018.
  10. Xue K et al. Impact of a Fermented High-Fiber Rye Diet on Helicobacter Pylori and Cardio-Metabolic Risk Factors: A Randomized Controlled Trial Among Helicobacter pylori-Positive Chinese Adults. Frontiers in Nutrition. January 15, 2021.
  11. Addissouky TA et al. Recent Advances in Diagnosing and Treating Helicobacter Pylori Through Botanical Extracts and Advanced Technologies. Archives of Pharmacology and Therapeutics. October 19, 2023.
  12. Habbash F et al. Association Between Dietary Habits and Helicobacter pylori Infection Among Bahraini Adults. Nutrients. October 10, 2022.
  13. Yordanov D et al. Influence of Dietary Factors on Helicobacter Pylori and CagA Seroprevalence in Bulgaria. Gastroenterology Research and Practice. June 4, 2017.
  14. Li M et al. Efficacy and Safety of Saccharomyces boulardii as an Adjuvant Therapy for the Eradication of Helicobacter Pylori: A Meta-Analysis. Frontiers in Cellular and Infection Microbiology. February 12, 2025.
  15. Park J M et al. Omega-3 Polyunsaturated Fatty Acids Intake to Regulate Helicobacter Pylori-Associated Gastric Diseases as Nonantimicrobial Dietary Approach. BioMed Research International. August 3, 2015.
  16. Mard SA et al. Dietary Factors in Relation to Helicobacter Pylori Infection. Gastroenterology Research and Practice. December 2, 2014.

Yuying Luo, MD

Medical Reviewer

Yuying Luo, MD, is an assistant professor of medicine at Mount Sinai West and Morningside in New York City. She aims to deliver evidence-based, patient-centered, and holistic care for her patients.

Her clinical and research focus includes patients with disorders of gut-brain interaction such as irritable bowel syndrome and functional dyspepsia; patients with lower gastrointestinal motility (constipation) disorders and defecatory and anorectal disorders (such as dyssynergic defecation); and women’s gastrointestinal health.

She graduated from Harvard with a bachelor's degree in molecular and cellular biology and received her MD from the NYU Grossman School of Medicine. She completed her residency in internal medicine at the Icahn School of Medicine at Mount Sinai, where she was also chief resident. She completed her gastroenterology fellowship at Mount Sinai Hospital and was also chief fellow.

Andra Picincu, CN, CPT

Author