SYNTHETIC DEMONSTRATION — no real student or patient. Not a medical device.

gi-specialist

Stomach Ulcer Diet: What to Eat and What to Avoid

No single diet heals a stomach ulcer, but certain foods worsen pain by increasing acid or irritating a damaged lining. Diet helps manage symptoms during medical treatment — not instead of it. H. pylori and NSAID-related ulcers require medication first.

Talk to a clinician

Nina Osei, NPNurse Practitioner

checkups, refills & skin. Gale can match you with a licensed clinician for a visit.

Find care →

Why does diet matter when you have a stomach ulcer?

A peptic ulcer is a sore in the lining of the stomach or duodenum. The two most common causes are infection with Helicobacter pylori (H. pylori) and regular use of NSAIDs such as aspirin, ibuprofen, or naproxen. Treatment targets the underlying cause: antibiotics plus acid suppression for H. pylori, stopping the offending NSAID, and proton pump inhibitors to reduce acid and allow the mucosa to heal 1.

Diet does not cause or cure ulcers, but what you eat influences gastric acid output, the speed at which the stomach empties, and how irritated the ulcer lining becomes. Thoughtful food choices during the weeks of active treatment can reduce discomfort and support the healing process.

Which foods tend to worsen ulcer symptoms?

These foods commonly increase acid production or directly irritate the ulcer lining 2:

Highly acidic foods: Citrus fruits and juices, tomatoes and tomato-based sauces, and vinegar-heavy dressings can aggravate symptoms in people with active ulcers.

Spicy foods: Hot sauces and heavy spicing can irritate an inflamed gastric lining, though individual tolerance varies significantly.

Coffee and caffeine: Both caffeinated and decaffeinated coffee stimulate acid secretion and can worsen ulcer pain. Tea, cola, and energy drinks also contain caffeine.

Alcohol: Alcohol irritates the gastric mucosa directly, stimulates acid production, can delay mucosal healing, and may interact with ulcer medications.

Fatty and fried foods: High-fat meals slow gastric emptying, keeping acid in contact with the ulcer for longer.

Carbonated beverages: Gas can cause gastric distension and worsen upper abdominal discomfort.

Not everyone with a peptic ulcer reacts identically to these foods. Keeping a brief food-symptom diary is more useful than rigidly following a universal list.

Which foods are gentler on a healing ulcer?

No food has proven ulcer-healing properties on its own, but several categories tend to be better tolerated during active disease:

Lean proteins: Chicken, turkey, fish, and eggs are generally well tolerated and do not strongly stimulate acid.

Cooked vegetables: Steamed or roasted vegetables (avoiding tomatoes and peppers for some people) are easier on the stomach than raw high-fiber vegetables.

Whole grains and complex carbohydrates: Oatmeal, plain rice, and similar foods may buffer stomach acid and reduce irritation.

Low-acid fruits: Bananas and melons tend to be better tolerated than citrus.

Probiotic-containing foods: Yogurt with live cultures and fermented foods may help buffer the gastric environment and support the gut microbiome alongside H. pylori treatment, though they are not a substitute for prescribed antibiotics 1.

Small, frequent meals: Eating smaller portions more often can buffer stomach acid more continuously than three large meals.

What about milk — does it help?

A common belief is that milk soothes ulcer pain, and in the short term it may provide temporary relief due to its buffering effect on acid. However, milk also stimulates acid secretion in the hour or two that follows, which can make symptoms return or worsen. Most gastroenterologists do not recommend using milk as a primary strategy for managing ulcer discomfort 2.

NSAIDs, aspirin, and supplements to be cautious with

During active ulcer treatment and healing:

  • Avoid NSAIDs (ibuprofen, naproxen, aspirin in pain-relief doses) unless your clinician explicitly advises otherwise. Acetaminophen is generally the preferred alternative for pain during ulcer healing 2.
  • Limit or avoid alcohol — it directly damages the gastric mucosa and impairs healing.
  • Be cautious with high-dose vitamin C supplements and other acidic supplements.
  • Iron supplements can irritate the gastric lining and may be temporarily deferred unless medically necessary — discuss with your clinician.

If aspirin is prescribed at low dose for cardiovascular protection, do not stop it without speaking to your prescribing clinician first.

When should I follow up with a clinician about my ulcer diet?

Diet is a supportive part of ulcer care, not the primary treatment. If you have a confirmed peptic ulcer — or symptoms strongly suggesting one — a Gale primary care clinician can review your treatment plan, confirm that H. pylori testing has been done, ensure you are on appropriate acid-suppressing medication, and discuss dietary strategies suited to your situation. If your symptoms are not improving with standard treatment, a gastroenterologist referral is appropriate for endoscopic evaluation.

Common questions

Can I eat spicy food at all if I have a stomach ulcer?

Some people with ulcers tolerate mild spice without significant worsening; others find that any spicy food aggravates their pain. The honest answer is to test cautiously during healing and avoid anything that consistently worsens your symptoms. Once the ulcer has healed and H. pylori (if present) has been eradicated, many people return to a normal diet.

How long should I follow an ulcer diet?

Most people follow dietary modifications for the duration of active treatment — typically a few weeks to a couple of months — while the ulcer heals. After confirmed healing (often verified by repeat testing or symptom resolution), most dietary restrictions can be relaxed, though some people continue to avoid specific triggers.

Does eating before taking ulcer medication matter?

Yes, often. Some ulcer medications (particularly certain antibiotics used for H. pylori) are taken with food to reduce GI side effects. Proton pump inhibitors (PPIs) are generally taken 30 minutes before the first meal of the day for optimal effectiveness. Always follow the specific instructions provided with your prescriptions.

Is green tea good or bad for stomach ulcers?

Green tea contains caffeine (though less than coffee) and some compounds with potential anti-inflammatory properties. Evidence on green tea and ulcer healing is limited. Moderate amounts of weak green tea are generally tolerated by most people with ulcers, but strong, highly caffeinated tea may worsen symptoms in some.

Talk to a clinician

Nina Osei, NPNurse Practitioner

checkups, refills & skin. Gale can match you with a licensed clinician for a visit.

Find care →

Symptoms that need prompt medical attention

  • Vomiting blood or material that looks like coffee grounds
  • Black, tarry, or blood-streaked stool
  • Sudden severe abdominal pain (possible perforation)
  • Feeling faint or lightheaded alongside abdominal pain
  • Unintentional weight loss

If you vomit blood, see black tarry stool, or develop sudden severe abdominal pain, call 911 or go to the emergency room immediately.

Diet adjustments support but do not replace medical treatment for peptic ulcers. A Gale clinician can review your ulcer management and determine whether a gastroenterologist referral is needed.

References

  1. 1.Chey WD, Howden CW, Moss SF, Morgan DR, Greer KB, Grover S, Shah SC (2024). ACG Clinical Guideline: Treatment of Helicobacter pylori Infection. American Journal of Gastroenterology. doi:10.14309/ajg.0000000000002968H. pylori as primary cause of peptic ulcers; antibiotic plus acid suppression as the treatment foundation; probiotic role alongside H. pylori therapy; diet as supportive, not curative.
  2. 2.National Institute of Diabetes and Digestive and Kidney Diseases (2022). Peptic Ulcers (Stomach or Duodenal Ulcers). NIDDK Health Information. linkOverview of peptic ulcer causes (H. pylori and NSAIDs); guidance on NSAID avoidance and need for medical evaluation; general patient education on ulcer management.

2 sources, numbered by first appearance. General health information, not medical advice — synthetic demonstration content.