There’s no single “ulcer diet” proven to heal a peptic ulcer, and the National Institute of Diabetes and Digestive and Kidney Diseases confirms that doctors don’t recommend a special diet for treatment. But that doesn’t mean food choices are irrelevant. What and how you eat during a flare can make a real difference in how much pain you’re in, how quickly your stomach lining recovers, and whether you’re making things worse without realizing it.
Foods That Are Gentle on an Irritated Stomach
During a flare, think soft, low-acid, and easy to digest. These won’t cure the ulcer, but they minimize the irritation your stomach has to deal with while it heals:
- Cooked vegetables: Steamed or boiled carrots, squash, potatoes, sweet potatoes, and green beans. Cooking breaks down fiber that raw vegetables still have, making them easier on an inflamed lining.
- Lean proteins: Baked or poached chicken, turkey, fish, eggs, and tofu. Protein supports tissue repair without triggering heavy acid production.
- Whole grains: Oatmeal, rice, and whole wheat bread. These provide soluble fiber, which may help protect the stomach lining (more on that below).
- Ripe bananas, applesauce, and melons: Low-acid fruits that won’t sting on the way down.
- Fermented foods: Plain yogurt, kefir, and other probiotic-rich options, which may support healing and reduce inflammation.
The cooking method matters as much as the food itself. Baking, steaming, poaching, and boiling are your safest options. Deep-frying, pan-frying, and air-frying add fat that can slow digestion and increase discomfort. Heavy seasonings like black pepper, red pepper, chili powder, curry powder, mustard seed, and nutmeg can irritate an already raw stomach lining.
Why Fiber Matters More Than You’d Think
Soluble fiber, the kind that dissolves in water and forms a gel-like texture, appears to protect the stomach lining in a meaningful way. In animal research, pectin (a soluble fiber found in apples, citrus fruits, carrots, and oats) significantly reduced both stomach ulcers and intestinal damage caused by common anti-inflammatory painkillers. Insoluble fiber, like the cellulose in raw vegetables and wheat bran, did not offer the same protection.
This doesn’t mean you need a fiber supplement. It means that foods naturally rich in soluble fiber, such as oatmeal, bananas, sweet potatoes, and cooked carrots, are especially good choices during a flare. They do double duty: easy on the stomach and potentially protective of the lining itself.
The Milk Myth
Milk feels soothing going down, which is why people have reached for it during ulcer flares for decades. But research tells a different story. A study measuring acid output in ulcer patients found that 240 ml (about one cup) of milk, whether whole, low-fat, or nonfat, caused a significant increase in stomach acid secretion. The acid response was equivalent to roughly 20% to 35% of the stomach’s maximum acid output. In patients with duodenal ulcers specifically, the spike was even more pronounced than in healthy subjects.
Milk contains both protein and calcium, and both stimulate acid production. So while that glass of milk may feel good for a few minutes, it can make the underlying irritation worse. If you want a creamy option, small amounts of plain yogurt are a better bet because the fermentation process partially breaks down the proteins and adds beneficial bacteria.
Drinks That Help and Hurt
Staying hydrated is straightforward, but your drink choices can either calm or aggravate a flare. Plain water is always safe. Beyond that, certain herbal teas show genuine promise.
Chamomile tea has been studied repeatedly for its stomach-protective effects. In one study evaluating herbal extracts against ulcer formation in rats, chamomile’s water-based extract provided 100% protection against gastric ulcers, likely by reducing gastric acid secretion. Marjoram tea showed equally strong results. Mint tea also demonstrated prominent protective effects. These are all caffeine-free, which matters because caffeine stimulates acid production.
Coffee (including decaf, which still contains some acid-stimulating compounds), alcohol, and carbonated drinks are worth avoiding during a flare. Citrus juices and tomato juice are acidic enough to irritate exposed tissue directly.
Probiotics and Ulcer Healing
If your ulcer is caused by H. pylori infection (the most common cause), probiotics deserve special attention. Multiple strains of Lactobacillus, including L. acidophilus, L. reuteri, and L. casei, have been shown to directly inhibit H. pylori. A large meta-analysis covering over 9,000 patients found that adding probiotic combinations to standard antibiotic treatment reduced side effects and improved medication adherence, which is critical since antibiotic regimens for H. pylori are notoriously hard to finish.
L. reuteri specifically has been linked to reduced chronic indigestion symptoms. You can get these strains from yogurt, kefir, sauerkraut, kimchi, and miso. If you’re currently taking antibiotics for H. pylori, probiotic-rich foods or a supplement may help you tolerate the treatment better and improve your chances of clearing the infection.
Eat on a Consistent Schedule
When you eat may matter almost as much as what you eat. A study tracking meal patterns found that people who deviated from their regular meal times by two or more hours had a dramatically higher risk of H. pylori infection with gastritis, with adjusted odds roughly 13 times higher than those who ate on schedule. Even deviating twice a week was associated with about four times the risk. Skipping breakfast or skipping meals entirely was independently linked to higher ulcer risk.
The practical takeaway: eat at roughly the same times each day. Don’t skip meals, and don’t let long gaps build up where your stomach sits empty with acid and nothing to buffer it. Many people with ulcers find that smaller, more frequent meals (four to five times a day rather than three large ones) keep pain more manageable, though the formal research on meal size is limited. The consistency of timing has stronger evidence behind it than the size of each meal.
Foods and Habits to Avoid During a Flare
Some of this is intuitive, but it’s worth being specific:
- Spicy seasonings: Black pepper, red pepper, chili powder, curry powder, mustard seed, and nutmeg.
- Fried and high-fat foods: These slow stomach emptying, keeping acid in contact with the ulcer longer.
- Acidic fruits: Oranges, grapefruits, lemons, and tomatoes (including tomato sauce).
- Alcohol: Directly irritates the stomach lining and can interfere with healing.
- Caffeine: Coffee, energy drinks, and strong black or green tea all stimulate acid.
- NSAIDs: Ibuprofen, naproxen, and aspirin are a leading cause of ulcers. If you’re taking these regularly, that conversation with your doctor is more important than any food swap.
Smoking also slows ulcer healing significantly and increases the risk of complications, so a flare is a particularly bad time to smoke.
Warning Signs That Go Beyond Diet
Dietary changes help manage discomfort, but an ulcer flare can sometimes signal something more serious. Vomiting blood or material that looks like coffee grounds, black or tarry stools, sudden sharp abdominal pain that doesn’t let up, unintentional weight loss, and difficulty swallowing that gets progressively worse are all signs of complications like bleeding or perforation that need immediate medical attention. Iron deficiency anemia that shows up on routine bloodwork can also point to slow, hidden bleeding from an ulcer.

