Stomach ulcers (peptic ulcers) are sores in the lining of the stomach or small intestine. They are often caused by Helicobacter pylori (H. pylori) infection or long-term use of certain pain relievers such as NSAIDs (for example, ibuprofen or naproxen). Diet can support healing and reduce irritation, but food alone usually cannot eliminate an ulcer cause, especially an H. pylori infection.
4 foods that may support stomach health
- High-fiber foods
- Examples: oats, vegetables, fruits, beans, and whole grains.
- Fiber supports digestion and may be associated with a healthier gut environment.
- Probiotic foods
- Examples: yogurt with live cultures, kefir, and some fermented foods.
- Probiotics may help support gut bacteria and may be helpful alongside medical treatment for some H. pylori cases.
- Foods rich in flavonoids
- Examples: apples, berries, onions, and some vegetables.
- These plant compounds have been studied for their potential protective effects on the stomach lining.
- Lean protein sources
- Examples: fish, eggs, poultry, tofu, and legumes.
- Protein provides nutrients needed for tissue repair.
Foods and habits that may worsen symptoms
- Alcohol
- Smoking
- Large amounts of caffeine (for some people)
- Very spicy or acidic foods if they trigger pain
- Taking NSAID pain relievers frequently without medical advice
When to seek medical care
See a healthcare professional if you have:
- Black, tarry stools
- Vomiting blood or material that looks like coffee grounds
- Unexplained weight loss
- Persistent vomiting
- Severe or worsening stomach pain
If an ulcer is suspected, a clinician may recommend testing for H. pylori and appropriate treatment, which may include antibiotics and acid-reducing medication.