What to Eat If You Have an Ulcer and What to Avoid

Most stomach ulcers heal within 4 to 8 weeks with proper treatment, and what you eat during that time can either support healing or slow it down. Diet alone won’t cure an ulcer, but the right foods help protect your stomach lining, reduce irritation, and may even fight the bacterial infection that causes most ulcers in the first place. Larger ulcers can take up to 12 weeks to fully heal.

Foods That Help Ulcers Heal

The best foods for an ulcer are rich in fiber, antioxidants, or beneficial bacteria. Fruits like blueberries, raspberries, strawberries, blackberries, cherries, and apples are high in plant compounds that can interfere with the growth of H. pylori, the bacterium responsible for most peptic ulcers. These compounds work by disrupting the bacterium’s cell membranes and blocking a key protein it needs to regulate its own survival and reproduction.

Cruciferous vegetables are especially valuable. Broccoli, cauliflower, cabbage, radishes, and kale all contain protective compounds. Bell peppers, carrots, spinach, and other leafy greens round out the list. The common thread is antioxidant content: these nutrients help activate your immune system and support the fight against infection in the stomach lining.

Olive oil deserves a spot in your rotation. The fatty acids in olive oil have shown promise in helping treat H. pylori infections specifically, and it’s a gentle fat that won’t irritate an already sensitive stomach. Use it as your primary cooking oil or drizzle it over vegetables.

Honey, particularly raw varieties, has antibacterial properties worth noting. Its naturally acidic, high-sugar environment suppresses bacterial growth, and it contains phenolic compounds with anti-inflammatory effects. Stirring a spoonful into warm water or oatmeal is an easy way to include it.

Why Fermented Foods Matter

Probiotic-rich fermented foods have shown real promise in clinical studies for ulcer treatment. Yogurt, kefir, miso, sauerkraut, kimchi, and kombucha all introduce beneficial bacteria into your gut. These bacteria compete with H. pylori by adhering to the stomach lining and producing metabolites that are directly hostile to the infection. They also help calm the inflammatory immune response that H. pylori triggers.

In human studies, certain probiotic strains, particularly from the Lactobacillus and Bifidobacterium families, have been shown to reduce H. pylori levels measurably. Probiotic therapy alone has eradicated H. pylori in up to 32.5% of cases in some studies, though the infection tends to return without conventional treatment alongside it. The practical takeaway: fermented foods are a useful addition to your diet during ulcer treatment, not a replacement for it.

What to Drink

Water is the simplest and safest choice. Beyond that, several beverages can be soothing without aggravating your stomach:

  • Chamomile tea
  • Decaffeinated green tea
  • Turmeric tea
  • Honey water
  • Kefir and kombucha
  • Cranberry juice
  • Lactose-free or soy milk

These won’t heal an ulcer on their own, but they’re unlikely to make things worse, and some offer gut health benefits. Cranberry juice and drinks containing Lactobacillus strains have been studied specifically in the context of H. pylori colonization.

Foods and Drinks to Avoid

Some foods directly irritate an open ulcer or increase stomach acid production. Cutting these out during healing makes a noticeable difference in day-to-day comfort.

Beverages to skip: regular and decaffeinated coffee, alcohol, cola, caffeinated teas (including green and black tea with caffeine), orange and grapefruit juice, hot cocoa, whole milk, chocolate milk, and peppermint or spearmint tea.

Foods to avoid: citrus fruits and tomato products (paste, sauce, juice), fast food and fried foods, chocolate, full-fat dairy and cream-based dishes, and anything heavily salted or sugary. Highly seasoned or high-fat meats like sausage, salami, bacon, ham, and cold cuts are particularly problematic. Spicy cheeses, such as jalapeƱo or black pepper varieties, fall into the same category.

Spices and seasonings to limit: black and red pepper, chili powder, curry powder, mustard seed, and nutmeg. These can directly irritate the ulcer site. You don’t need to eat bland food forever, but while you’re healing, milder seasoning with herbs like turmeric, garlic, and ginger is a better bet.

How to Structure Your Meals

Smaller, more frequent meals tend to be easier on an ulcer than two or three large ones. A big meal stimulates more acid production at once, which means more contact between acid and the ulcer. Eating five or six modest portions throughout the day keeps your stomach from being either too empty or too full, both of which can increase discomfort.

If you’re taking acid-blocking medication (the most commonly prescribed type for ulcers), timing matters. These medications need food in your stomach to activate properly. Eating a meal within 30 minutes to an hour after taking your medication helps it work most effectively. Building a consistent meal schedule around your medication timing gives you the best results.

A practical day might look like this: oatmeal with honey and berries for breakfast, a mid-morning snack of yogurt, a lunch of grilled chicken with steamed broccoli and olive oil, an afternoon snack of an apple with a small portion of mild cheese, and dinner built around lean protein with roasted root vegetables. Keeping portions moderate and spacing them evenly avoids the acid surges that come with irregular eating.

How Long to Follow an Ulcer Diet

Most ulcers heal within 4 to 8 weeks with treatment, though larger ones (bigger than about 5 millimeters) can take 8 to 12 weeks. Your dietary adjustments should generally match this timeline. Once your ulcer has healed and any H. pylori infection has been cleared, you can gradually reintroduce foods you’ve been avoiding.

Reintroduce trigger foods one at a time so you can identify which ones still bother you. Some people find that coffee or spicy food causes discomfort long after the ulcer itself has healed, while others return to their normal diet without issues. Your tolerance is individual, and paying attention to how your stomach responds as you expand your diet is the most reliable guide.