If you have a stomach ulcer, the foods you choose can either support healing or slow it down. The core strategy is simple: eat foods that strengthen your stomach’s protective lining, reduce acid irritation, and help fight the bacteria that most often cause ulcers in the first place. That means leaning into fiber-rich fruits and vegetables, probiotic-rich fermented foods, and certain protective compounds found in everyday ingredients like broccoli, honey, and unripe bananas.
How Food Affects Ulcer Healing
Your stomach lining is coated with a layer of mucus that shields it from its own digestive acid. A peptic ulcer forms when that barrier breaks down, usually because of infection with H. pylori bacteria or long-term use of anti-inflammatory painkillers like ibuprofen. Food doesn’t cause ulcers, but what you eat directly influences how quickly the lining repairs itself, how much acid your stomach produces, and whether harmful bacteria can thrive.
Certain nutrients increase mucus production, promote blood flow to damaged tissue, and reduce inflammation at the ulcer site. Others do the opposite, ramping up acid secretion or weakening the mucosal barrier. The goal isn’t a rigid “ulcer diet” but a pattern of eating that tips the balance toward healing.
Foods That Help Your Stomach Heal
Fiber-Rich Fruits and Vegetables
Soluble fiber, the kind found in oats, apples, carrots, and sweet potatoes, forms a gel-like coating in the digestive tract that helps protect irritated tissue. In animal studies, soluble fibers like pectin markedly decreased ulcers caused by anti-inflammatory drugs, while insoluble fiber (like wheat bran) did not offer the same protection. Good sources of soluble fiber include bananas, pears, barley, beans, and lentils.
Unripe plantain bananas deserve a special mention. They contain a natural compound that has been shown to protect the stomach lining from aspirin-induced erosion by increasing mucus thickness. Cooked green plantains are a staple in many cuisines and easy to add to meals.
Cruciferous Vegetables, Especially Broccoli
Broccoli and broccoli sprouts are rich in sulforaphane, a compound that directly inhibits H. pylori. In animal studies, sulforaphane reduced bacterial colonization in the stomach, lowered inflammation markers, and prevented damage to the stomach lining even under conditions that normally worsen ulcers. You don’t need supplements. A few servings of broccoli, Brussels sprouts, or cabbage per week delivers meaningful amounts of this compound. Raw or lightly steamed broccoli sprouts contain the highest concentrations.
Berries and Other Flavonoid-Rich Foods
Flavonoids are plant compounds with strong antioxidant and anti-inflammatory properties, and many of them actively protect the stomach lining. They work by reducing acid secretion, boosting mucus production, increasing blood flow to the gastric lining, and scavenging the reactive oxygen species that damage tissue at ulcer sites. Richly colored fruits and vegetables are the best sources: blueberries, strawberries, cherries, red grapes, citrus peel, and dark leafy greens. Quercetin and rutin, both found widely in onions, apples, and buckwheat, are among the most studied gastroprotective flavonoids.
Probiotic-Rich Fermented Foods
Probiotics support ulcer healing through multiple pathways. They stimulate the production of protective mucus and growth factors, improve the ratio of new cell growth to cell death at the ulcer margins (which speeds tissue regeneration), and can directly inhibit H. pylori’s ability to attach to and colonize the stomach lining. Certain Lactobacillus and Bifidobacterium strains have shown the strongest effects. L. rhamnosus GG, for instance, promotes the regeneration of epithelial cells specifically at ulcer edges, while polysaccharides from certain Bifidobacterium strains boost the expression of growth factors involved in mucosal repair.
You can get these bacteria from yogurt (look for labels listing live active cultures), kefir, sauerkraut, kimchi, and miso. Yogurt containing L. gasseri has been specifically studied in the context of stomach ulcers. If you prefer a supplement, multi-strain formulas that combine several Lactobacillus and Bifidobacterium species tend to be used at higher doses, since many bacteria don’t survive the acidic stomach environment.
Honey
Honey has natural antibacterial properties that work against H. pylori through several mechanisms. It contains polyphenolic compounds, including flavonoids and tannins, and when diluted it releases hydrogen peroxide, which is both antibacterial and encourages new cell growth in the stomach lining. The high sugar content also creates an osmotic environment hostile to bacteria. Manuka honey has received the most research attention, but other raw honeys share similar properties. A spoonful on an empty stomach or mixed into warm (not hot) water is a common approach.
Foods and Drinks to Limit or Avoid
Alcohol
Alcohol inhibits the secretion of protective mucus and bicarbonate while simultaneously increasing acid production. This is a direct assault on the two main defenses your stomach lining relies on. If you have an active ulcer, alcohol will slow healing and can worsen symptoms noticeably. Even moderate drinking is worth avoiding until the ulcer has resolved.
Milk
For decades, doctors recommended milk to soothe ulcers. That advice is outdated. While milk briefly neutralizes stomach acid, it triggers a significant rebound in acid production shortly after. A single glass of whole, low-fat, or nonfat milk increases acid secretion to roughly 20% to 35% of your stomach’s maximum acid output. The protein and calcium in milk are both potent stimulants of acid secretion. Drinking milk regularly with an active ulcer may feel soothing initially but works against healing over time.
Spicy Foods and High-Fat Foods
Spicy foods don’t cause ulcers, but capsaicin and other irritants can aggravate an open wound in your stomach lining and increase discomfort. If spicy foods make your symptoms worse, trust that signal. High-fat meals, particularly those rich in saturated fat, slow stomach emptying and can increase acid exposure to the ulcer site. Fried foods, fatty cuts of meat, and rich sauces are common culprits.
Coffee and Caffeine
Coffee stimulates gastric acid production and relaxes the valve between the stomach and esophagus, which can increase acid exposure to damaged tissue. A large cross-sectional study of over 8,000 people in Japan found no direct association between coffee consumption and ulcer development, so coffee likely doesn’t cause ulcers. But if you already have one, the extra acid it triggers can worsen symptoms and delay healing. Decaf coffee still stimulates some acid production, so it’s not a complete workaround. Tea is generally better tolerated, though strong black tea can have similar effects in some people.
Sugary and Highly Processed Foods
Concentrated simple sugars can promote fermentation and gas in the digestive tract, which adds discomfort when you already have an irritated stomach lining. Current nutritional guidance for peptic ulcers recommends adjusting carbohydrate intake to avoid high concentrations of simple sugars. Sodas, candy, pastries, and sweetened cereals are worth cutting back on.
A Practical Eating Pattern
Rather than memorizing a list of “good” and “bad” foods, aim for a pattern that looks like this: meals built around vegetables (especially cooked greens and cruciferous vegetables), lean proteins like chicken, fish, or tofu, whole grains like oatmeal or brown rice, and healthy fats from olive oil, avocados, or nuts. Include a serving of fermented food daily and keep colorful fruits in regular rotation.
Eating smaller, more frequent meals can also help by preventing large surges in acid production. Going long stretches without eating leaves acid sitting in an empty stomach with nothing to buffer it, which is why many people with ulcers notice their pain is worst between meals or at night.
Omega-6 fatty acids, particularly linoleic acid found in sunflower seeds, walnuts, and flaxseed oil, have shown the ability to inhibit H. pylori growth directly. Vitamin D also appears to support H. pylori eradication. If you’re not getting regular sun exposure, fatty fish like salmon and fortified foods can help maintain adequate levels.
What Matters Most
Diet supports healing, but it doesn’t replace treatment. Most stomach ulcers are caused by H. pylori infection or painkiller use, and both require medical intervention to fully resolve. What you eat in the meantime can meaningfully reduce symptoms, protect damaged tissue, and create a less hospitable environment for the bacteria driving the problem. Focus on soluble fiber, fermented foods, colorful produce, and gentle proteins. Cut back on alcohol, coffee, and milk. Your stomach lining regenerates quickly when given the right conditions, and the foods on your plate are part of those conditions.

