Foods to Eat (and Avoid) With a Stomach Ulcer Diet

An ulcer diet includes foods like berries, eggs, lean meats, and whole grains, which may help limit your symptoms. It also helps to exclude certain foods like fried foods, citrus fruits, and alcohol, which can irritate ulcer sores in the lining of the stomach, esophagus, or small intestine.

The bacterium Helicobacter pylori (H. pylori) is a common cause of stomach ulcers that requires treatment with antibiotics. Peptic ulcers can also be caused by long-term use of certain medications, including nonsteroidal anti-inflammatory drugs (NSAIDs).

What to Eat When You Have an Ulcer

Illustration by JR Bee for Verywell Health

Foods to Eat

An ulcer diet is an eating plan designed to relieve peptic ulcer symptoms, prevent flares, and prevent more ulcers from developing. Bland, easily digestible foods should make up the majority of what you eat on an ulcer diet.

An ulcer diet is designed to:

  • Correct nutritional deficiencies that contribute to your symptoms
  • Provide the protein and other nutrients your body needs to heal
  • Help you avoid foods that irritate the ulcer
  • Help with related conditions like Crohn's disease, celiac disease, or bacterial infections

Dietary changes alone may not be enough to heal your ulcer, and you may require additional treatment from a healthcare provider. Seek guidance from your healthcare provider about your diet choices and any other recommended treatments.

1. Fruits

Both fresh and frozen fruits contain helpful fiber and antioxidants. Polyphenols, found in many fruits, may be beneficial. Berries, apples, grapes, and pomegranates are among the best choices for healing polyphenols. Avoid citrus fruits or juices like orange or grapefruit if they trigger acid reflux.

2. Vegetables

Leafy greens, bright red and orange vegetables, and cruciferous vegetables (like broccoli, cauliflower, and kale) are packed with vitamins and antioxidants that are especially good for your overall health and healing. Cabbage has been studied for its benefits in treating digestive diseases.

Avoid spicy peppers and tomatoes, or products made with them if they give you reflux.

3. Lean Proteins

Skinless poultry, lean beef like sirloin or tenderloin, fish, eggs, tofu, tempeh, dry beans, and peas are excellent sources of low-fat protein. Fatty fish like salmon, mackerel, and sardines provide omega-3 fatty acids, which can reduce inflammation and may be helpful in preventing another ulcer.

There's some research to suggest H. pylori infection and inflammation may lead to the development of other diseases, too, including heart disease. Omega-3 fatty acids may offer benefits as well.

4. Probiotic Foods

Products like kefir, sauerkraut, and Greek yogurt provide probiotics (helpful bacteria) along with protein, so they're good choices. Ongoing research suggests probiotics may offer benefits in treating peptic ulcers.

5. Whole Grains

Whole grain breads, and whole or cracked grains like oats, quinoa, farro, millet, or sorghum are good sources of fiber to include in your diet. They are a part of a healthy lifestyle and support digestive wellness, although some studies suggest that fiber itself does not prevent ulcers.

6. Herbs and Spices

Hot, spicy foods are usually avoided on an ulcer diet, but a review of studies on food and H. pylori found that some spices added for flavor such as cloves, coriander (cilantro), and fennel also help inhibit the bacteria.

Mild herbs and spices are often a source of antioxidants. Other good choices include turmeric, cinnamon, ginger, and garlic, which have antimicrobial and anti-inflammatory properties.

Foods to Avoid

Foods to avoid when you have a stomach ulcer include:

1. Alcohol

All alcohol is a stomach irritant and will delay healing. Avoid wine, beer, and spirits.

2. Caffeine

Cut back or stop drinking coffee, tea, and caffeinated sodas. They can increase stomach acid production.

3. Milk

There was a time when milk was used in treating ulcers. More recent research, however, has found that it increases stomach acid. It's best to avoid it.

4. Certain Meats

Skip any highly seasoned meats, lunch meats, and other processed meats. Avoid eating large amounts of red meat, which can cause inflammation in the gut. If you do eat red meat, choose lean cuts or trim the fat before cooking.

5. High-Fat Foods

Try to exclude large amounts of added fats from your diet. Fat can increase stomach acid and trigger reflux. There is also evidence that a high-fat diet can inhibit the gastric ulcer healing process.

Avoid fried foods and fatty foods like bacon or sausage. You may also need to avoid gravy, cream soups, and salad dressings. Healthy fats like those found in nuts and avocados are okay to eat.

6. Spicy Foods

Spicy foods don't cause ulcers. However, they may irritate your ulcer, so limiting spicy foods can help reduce your symptoms.

Consider skipping anything spicy, such as chili peppers, horseradish, black pepper, and sauces and condiments that contain them.

7. Salty Foods

Researchers have found that salty foods may promote the growth of H. pylori. Pickles, olives, and other brined or fermented vegetables are high in salt and linked to a higher risk of H. pylori ulcers.

8. Chocolate

Chocolate can increase stomach acid production and trigger reflux symptoms. Avoiding chocolate may help reduce stomach irritation.

9. Raw Vegetables

Raw vegetables are harder to digest. Even leafy green vegetables commonly used in salads may create problems for some people.

Choose These Foods
  • Fruits

  • Vegetables

  • Legumes

  • Lean meats like skinless poultry and lean beef

  • Fish and seafood

  • Eggs

  • Whole soy foods like tofu or tempeh

  • Fermented dairy foods like kefir or yogurt

  • Healthy fats like olive oil, avocados, and nuts

  • Whole and cracked grains

  • Green tea

  • Herbs and spices (mild; fresh or dried)

Avoid These Foods
  • Alcohol

  • Coffee (regular, decaf)

  • Caffeinated foods and drinks

  • Milk or cream

  • Fatty meats

  • Fried or high-fat foods

  • Heavily spiced foods

  • Salty foods

  • Citrus fruits and juices

  • Tomatoes/tomato products

  • Chocolate

  • Raw vegetables

How the Ulcer Diet Works

An ulcer diet adds foods with antibacterial effects and compounds that boost healing. It also limits excess acid production, which can aggravate an ulcer. These foods can include polyphenols that help to heal stomach lining ulcers faster, while others have antibacterial effects and help kill H. pylori.

While there are no strict rules about which foods to eat, try to add as many foods as you can from the list above. Avoid foods that make you feel worse or that trigger acid production and reflux.

With the ulcer diet:

  • Protein: Eating enough protein is important. While your ulcer is healing, aim for about 1.2 grams of protein per kilogram of your body weight. That means about 3 ounces of lean poultry or meat per day for a 140-pound person assigned female at birth, and 4 ounces per day for a 200-pound person assigned male at birth.
  • Fiber: The rest of your calories should come from a balanced diet that includes whole grains, fruits, and vegetables. More fiber may lower the risk of ulcers, but results are mixed. Ask your healthcare provider about fiber intake.

An ulcer diet should be followed along with any other treatment recommendations from your healthcare provider. You also should continue the diet according to these recommendations, although you may find the diet is a lifestyle change you want to continue.

When to Eat on the Ulcer Diet

Try to eat five or six small meals each day, rather than three large ones. Large meals require much more stomach acid for digestion, which can be irritating. Chew your food well and eat slowly.

Finish eating at least three hours before sleep and try to stay upright for a few hours after a meal for improved digestion and less acid reflux. A walk after eating also may help.

Other Factors to Consider With an Ulcer Diet

When following an ulcer diet, you may want to consider other factors such as food preparation or special diets. You can:

  • Stick to lower-fat cooking methods like roasting, braising, and grilling instead of frying. Also, limit your use of butter and oils when you cook, as these can be harder to digest.
  • Stay hydrated. Drinking plenty of fluids throughout the day helps improve digestion.
  • Avoid grains with gluten, such as wheat, rye, and barley if you are diagnosed with celiac disease. Be sure to read product labels when choosing foods.
  • Avoid the milk sugars in lactose-based foods if you are managing inflammatory bowel disease. Stay away from carbonated beverages, and choose lower-fiber foods.
  • Following a low FODMAPS diet may be helpful.

As long as you maintain good variety in your diet, you can still get the nutrients you need from other foods when you stop eating the ones that irritate your ulcer.

If you're trying to add more polyphenol-rich foods and fiber to your diet, and you cut back on fatty foods, an ulcer diet may be even more nutritious than your regular diet. You may lose weight, feel healthier, and boost energy with improved diet choices.

Staying on Track

It should be fairly easy to stick with an ulcer diet when you're preparing your own meals at home. It may be harder to stay on track when you're traveling, attending parties, or celebrating holidays. If you can't pass up a glass of wine or a piece of cake, make it a small one.

When to See a Healthcare Provider

Call your healthcare provider if you have symptoms that suggest a complication with an ulcer, such as significant internal bleeding. These symptoms may include:

  • Black stool (poop), sometimes described as tarry stool, or red or maroon blood mixed with your stool
  • Red blood in your vomit or stool
  • Vomit that looks like coffee grounds
  • Stomach pain that doesn't resolve, or becomes severe
  • Dizziness or fainting
  • Rapid heart rate or falling blood pressure
  • A change in or worsening of your peptic ulcer symptoms

Your healthcare provider can diagnose your symptoms and begin any needed treatment. A healthcare provider can perform an endoscopy to visualize the tissue and collect a sample, to test for H. pylori or cancer.

An ulcer is treated with medicines to reduce stomach acid. Further treatment depends on the cause of the ulcer, such as antibiotics to treat H. pylori infection. Your healthcare provider may also recommend proton pump inhibitors (PPIs) to help reduce stomach acid and promote healing.

Summary

Foods by themselves don't cause stomach ulcers, and there is more than one possible reason why you may have them. The foods you choose, though, can make a big difference in how you feel and how quickly they heal.

Medical treatment with antibiotics may be necessary if you have H pylori, the bacterium responsible for some ulcers, but an ulcer diet offers options to improve your overall health and nutrition while reducing your ulcer risk.

28 Sources
Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). Eating, diet, & nutrition for peptic ulcers (stomach or duodenal ulcers).

  2. National Institute of Diabetes and Digestive and Kidney Diseases (NIDDK). Symptoms & causes of peptic ulcers (stomach or duodenal ulcers).

  3. Weng A, Su X, Yang C, et al. Telephone follow-up by clinical pharmacists can improve treatment outcomes in patients with peptic ulcers: A prospective randomized study. Medicine (Baltimore). 2022;101(42):e31150. doi:10.1097/MD.0000000000031150

  4. Zhang W, Lian Y, Li Q, Sun L, Chen R, Lai X, et al. Preventative and therapeutic potential of flavonoids in peptic ulcers. Molecules. 2020 Oct 11;25(20):4626. doi:10.3390/molecules25204626

  5. Kim HJ, Jin BR, Lee CD, Kim D, Lee AY, Lee S, et al. Anti-inflammatory effect of chestnut honey and cabbage mixtures alleviates gastric mucosal damage. Nutrients. 2024 Jan 29;16(3):389. doi:10.3390/nu16030389.

  6. Wizenty J, Koop PH, Clusmann J, Tacke F, Trautwein C, Schneider KM, et al. Association of Helicobacter pylori positivity with risk of disease and mortality. Clin Transl Gastroenterol. 2023 Sep 1;14(9):e00610. doi: 10.14309/ctg.0000000000000610

  7. Savitri CMA, Fauzia KA, Alfaray RI, Aftab H, Syam AF, Lubis M, et al. Opportunities for Helicobacter pylori Eradication beyond Conventional Antibiotics. Microorganisms. 2024 Sep 30;12(10):1986. doi:10.3390/microorganisms12101986

  8. Kim J, Kim KH, Lee BJ. Association of peptic ulcer disease with obesity, nutritional components, and blood parameters in the Korean population. Green J, ed. PLoS ONE. 2017;12(8):e0183777. doi: 10.1371/journal.pone.0183777

  9. Zaidi SF, Ahmed K, Saeed SA, Khan U, Sugiyama T. Can diet modulate Helicobacter pylori-associated gastric pathogenesis? An evidence-based analysis. Nutrition and Cancer. 2017;69(7):979-89. doi:10.1080/01635581.2017.1359310

  10. Jaiswal AK, Yasheshwar, Salar S, Shamim, Yadav DK, Aggarwal M, Sharma S, Ekbbal R, Gaurav. Multi-targeted therapeutic exploration of Tamarix gallica flowers for anti-ulcer activity and associated complications. J Ayurveda Integr Med. 2024 Jul-Aug;15(4):100947. doi: 10.1016/j.jaim.2024.100947

  11. Johns Hopkins Medicine. Stomach and duodenal ulcers (peptic ulcers).

  12. National Library of Medicine. Peptic ulcer.

  13. Khesbak AA. Study of some affecting factors on the infection with peptic ulcer. Ind J Pure App Biosci. 2023;11(2):42-9. doi:10.18782/2582-2845.8993

  14. National Institutes of Health. Gut microbes affect harmful compound in red meat

  15. Ohara R, Dario FL, Emílio-Silva MT, et al. A high-fat diet changes the interaction of the extracellular matrix, cytokines, and growth factors in gastric ulcer repair. Biochem Biophys Res Commun. 2025;755:151565. doi:10.1016/j.bbrc.2025.151565

  16. Yale Medicine. 8 things to know about peptic ulcers.

  17. Kulshreshtha M, Srivastava G, Singh MP. Pathophysiological status and nutritional therapy of peptic ulcer: An update. Environmental Disease. 2017;2(3):76. doi:10.4103/ed.ed_11_17

  18. Surdea-Blaga T, Negrutiu DE, Palage M, Dumitrascu DL. Food and gastroesophageal reflux disease. Curr Med Chem. 2019;26(19):3497-3511. doi:10.2174/0929867324666170515123807

  19. Pol MP, Surana KR, Patil DM, Ahire ED, Kshirsagar SJ. Approaches for treating ulcer with functional foods. In: Applications of Functional Foods in Disease Prevention. Apple Academic Press. 2023:191-210

  20. Vanhauwaert E, Matthys C, Verdonck L, De Preter V. Low-residue and low-fiber diets in gastrointestinal disease managementAdv Nutr. 2015;6(6):820-827. doi:10.3945/an.115.009688

  21. Muni Raja Lakshmi K, Kiran M, Sai Prasanna K. A review on natural plants for phytochemical constituents and pharmacological activitiesJ Drug Delivery Ther. 2021;11(2):232-236. doi: 10.22270/jddt.v11i2.4593

  22. MedlinePlus. Peptic ulcer disease: Discharge.

  23. Dietary Guidelines for Americans. 2020-2025.

  24. Hosseini-Asl MK, Taherifard E, Mousavi MR. The effect of a short-term physical activity after meals on gastrointestinal symptoms in individuals with functional abdominal bloating: a randomized clinical trialGastroenterol Hepatol Bed Bench. 2021 Winter;14(1):59-66

  25. Altobelli E, Del Negro V, Angeletti P, Latella G. Low-FODMAP diet improves irritable bowel syndrome symptoms: a meta-analysisNutrients. 2017;9(9):940-. doi:10.3390/nu9090940

  26. University of Michigan Health. Peptic ulcer disease - exams and tests.

  27. MedlinePlus. Peptic ulcer.

  28. Ali Khan M, Howden CW. The role of proton pump inhibitors in the management of upper gastrointestinal disorders. Gastroenterol Hepatol (N Y). 2018;14(3):169-175.

Additional Reading

By Sharon Gillson
 Sharon Gillson is a writer living with and covering GERD and other digestive issues.