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
- Noninvasive 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 Medicine.
- Shrestha S. How to Spot H. pylori – An Infection That Can Cause Gastritis and Ulcers. UT Southwestern Medical Center. March 1, 2025.
- H. pylori Infection. Cleveland Clinic. May 13, 2025.
- H. pylori: Transmission and Spread of Infection. The University of Arizona Mel & Enid Zuckerman College of Public Health.
- Mayo Clinic Staff. Helicobacter pylori (H. pylori) Infection. Mayo Clinic. June 14, 2025.
- Stern E et al. Peptic Ulcer Perforated. StatPearls. June 12, 2023.
- Demarco C. ‘How I Knew I Had Stomach Cancer’: Six Survivors Share Their Symptoms. The University of Texas MD Anderson Cancer Center. May 7, 2024.
- Mayo Clinic Staff. Helicobacter pylori (H. pylori) Infection. Mayo Clinic. June 14, 2025.
- Mayo Clinic Staff. Gastritis. Mayo Clinic. February 14, 2024.
- Nehlig A. Effects of Coffee on the Gastro-Intestinal Tract: A Narrative Review and Literature Update. Nutrients. January 17, 2022.
- Stewart O. 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. Specialty 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 has worked in pharmaceutical research, educational publishing, and as an editor for a family wellness magazine prior to becoming a freelance writer. She enjoys writing about food, nutrition, and cooking from a scientific perspective, as well as exploring various food cultures and indulging her mild-to-moderate obsession with baking.