Foods to Avoid If You Have H. Pylori Bacteria

What Is H. Pylori?
Symptoms of H. Pylori Infection
- Burning or aching pain in the pit of the stomach that may feel worse if you haven’t eaten
- Nausea
- Decreased appetite
- Bloating
- Excessive belching
- Pain that worsens when the stomach is empty
- Unintended weight loss
Testing and Diagnosis
- Non-invasive but useful tests These include stool and breath tests.
- Invasive tests A biopsy during an upper GI endoscopy is the gold standard for diagnosing H.pylori infection.
- Tests that are not clinically useful A blood test can detect the presence of antibodies produced in response to H. pylori. However, as these may be present even after successful treatment of the infection, the test is not that useful for diagnosis.
Foods to Avoid
- Peppery spices, including chilli peppers and mustard
- Highly acidic foods, including citrus fruits such as oranges, lemons, and grapefruits
- Drinks containing caffeine, which features in coffee, soda, and black tea
- Alcoholic beverages, as alcohol breaks down the stomach lining and makes it more vulnerable to digestive fluids
- High-fat foods, fried foods, and processed cheeses, all of which slow down digestion
- Ultra-processed foods containing large amounts of additives and preservatives, which can cause stomach irritation
What’s Best to Eat with H. Pylori?
- Cranberry
- Grapes, particularly the skin
- Bilberry
- Raspberry
- Elderberry
- Strawberry
- Broccoli and broccoli sprouts
- Curcumin, from turmeric
- Garlic
- Green tea
- Licorice root
- Certain mushrooms, such as lion’s mane and yellow brain mushrooms
- Green tea
- Low-fat dairy
- Cooked, frozen, or canned vegetables
- Cooked, canned, skinless, de-seeded fruit
- Juices
- Bread, pasta, and crackers made using refined, white flour
- Lean, soft meats such as poultry, shellfish, whitefish, or tuna (they should be steamed, grilled, or baked without added fat)
- Smooth peanut butter
- Pudding and custard
- Tofu
- Eggs
- Broth
- Weak tea
Treating H. Pylori Infections
While dietary changes may help you reduce inflammation and limit the spread of H. pylori bacteria, you’ll need other therapies to eliminate the bacteria or manage symptoms.
The Takeaway
- If you have H. pylori, avoid certain foods that may worsen symptoms, such as spicy dishes, caffeinated beverages, and high-fat foods.
- Consuming natural anti-inflammatory foods like berries, broccoli, and green tea might help support your gut health during infection, though they are not a cure.
- If you experience severe symptoms such as black or bloody stools or intense stomach pain, seek medical advice, as these may indicate complications like ulcers.
- Although some foods may aid in symptom relief, they can’t treat H. pylori. In nearly all situations, the only effective treatment for H. pylori involves killing the bacteria with antibiotics.
- Helicobacter Pylori. Johns Hopkins.
- How to spot H. pylori – an infection that can cause gastritis and ulcers. UT Southwestern. March 1, 2025.
- H. Pylori Infection. Cleveland Clinic. May 13, 2025.
- H. Pylori: Transmission and Spread of Infection. University of Arizona.
- Helicobacter pylori (H. pylori) infection. Mayo Clinic. June 14, 2025.
- Stern E et al. Peptic Ulcer Perforated. StatPearls. June 12, 2023.
- ‘How I knew I had stomach cancer’: Six survivors share their symptoms. MD Anderson Cancer Center. May 7, 2024.
- Helicobacter pylori (H. pylori) infection - Diagnosis and treatment. Mayo Clinic. June 14, 2025.
- Gastritis. Mayo Clinic. February 14, 2024.
- Nehlig A et al. Effects of Coffee on the Gastro-Intestinal Tract: A Narrative Review and Literature Update. MDPI Nutrients. January 17, 2022.
- Myths and Realities: Do Spicy Foods Cause Peptic Ulcer Disease? Clinical Correlations. November 18, 2020.
- Wang C et al. Natural foods resources and dietary ingredients for the amelioration of Helicobacter pylori infection. Frontiers in Medicine. December 6, 2023.
- Bland Diet for Gastritis. Speciality Gastro Center.

Ira Daniel Breite, MD
Medical Reviewer
Ira Daniel Breite, MD, is a board-certified internist and gastroenterologist. He is an associate professor at the Icahn School of Medicine at Mount Sinai, where he also sees patients and helps run an ambulatory surgery center.
Dr. Breite divides his time between technical procedures, reading about new topics, and helping patients with some of their most intimate problems. He finds the deepest fulfillment in the long-term relationships he develops and is thrilled when a patient with irritable bowel syndrome or inflammatory bowel disease improves on the regimen he worked with them to create.
Breite went to Albert Einstein College of Medicine for medical school, followed by a residency at NYU and Bellevue Hospital and a gastroenterology fellowship at Memorial Sloan Kettering Cancer Center. Working in city hospitals helped him become resourceful and taught him how to interact with people from different backgrounds.

A.P. Mentzer
Author
A.P. Mentzer graduated from Rutgers University with degrees in Anthropology and Biological Sciences. She worked in pharmaceutical research as a biologist, study analyst and technical writer and was a science editor for an educational publishing company. As a freelancer, Mentzer edited a holistic health magazine that centered on family wellness issues. She enjoys writing about health, medical, nutrition and fitness topics from a scientific perspective.