What to Eat to Heal an Ulcer: Best and Worst Foods

No single food will cure a peptic ulcer, and the National Institute of Diabetes and Digestive and Kidney Diseases states directly that diet does not play a major role in causing or treating them. Medical treatment, usually a course of antibiotics for H. pylori infection or stopping NSAID use, is what actually heals the sore. That said, what you eat during recovery can support your stomach lining, reduce irritation, and make the healing process more comfortable. Most ulcers take five to eight weeks to heal in the acute phase, with a longer recovery window after that.

Why Diet Matters but Isn’t the Cure

Peptic ulcers form when the protective mucus layer of the stomach or upper small intestine breaks down, letting acid eat into the tissue beneath. The two main causes are infection with H. pylori bacteria and regular use of NSAIDs like ibuprofen or aspirin. Doctors treat ulcers with acid-reducing medications and, when H. pylori is present, a combination of antibiotics.

Food enters the picture because everything you swallow passes directly over that open sore. Certain nutrients help your body rebuild damaged tissue, and some foods contain compounds that reduce inflammation or even work against H. pylori in lab studies. None of this replaces medication, but it can create a friendlier environment for healing.

High-Fiber Foods for a Calmer Stomach

Fiber is one of the most consistently helpful dietary factors during ulcer recovery. Research shows that dietary fiber can reduce gastric acidity and slow the rate at which stomach contents move around, giving your lining less exposure to concentrated acid. In one study, adding about 12.5 grams of soluble fiber per day significantly decreased the number of acid events in the upper digestive tract.

Good sources include oatmeal, brown rice, sweet potatoes, carrots, beets, asparagus, broccoli, green beans, apples, and pears. These foods also tend to be gentle on the stomach and easy to digest when cooked. Spreading fiber throughout your meals rather than loading it into one sitting keeps things comfortable.

Protein for Tissue Repair

Your body needs protein to rebuild the damaged stomach lining, and the requirement increases as healing progresses. During the acute phase (roughly the first five to eight weeks), nutritional guidelines suggest up to 1.2 grams of protein per kilogram of body weight per day. In the recovery phase that follows, the target rises to about 1.5 grams per kilogram. For a 70-kilogram (154-pound) person, that’s roughly 84 to 105 grams of protein daily.

Lean chicken, fish, eggs, tofu, beans, and lentils are practical choices. Fish has an added benefit: fish oil has demonstrated activity against H. pylori in laboratory studies, though the effect in the human stomach is less clear.

Flavonoid-Rich Fruits and Vegetables

Flavonoids are plant compounds found in colorful fruits and vegetables that appear to protect the stomach lining from acid and NSAID damage. They work by stimulating the stomach to produce more of its own protective mucus and bicarbonate, while also reducing inflammation and oxidative stress at the ulcer site.

Some of the most studied flavonoids and their food sources include quercetin (onions, broccoli, apples, cherries, grapes), rutin (tomatoes, oranges, carrots, sweet potatoes, apple peels), and genistein (soy-based foods like tofu and edamame). A diet that includes a variety of these foods gives your stomach lining multiple forms of support. You don’t need to eat all of them. Just building more fruits and vegetables into your meals is a practical starting point.

Broccoli Sprouts and H. Pylori

Broccoli sprouts deserve a special mention. They contain high concentrations of a compound called sulforaphane, which kills H. pylori bacteria in lab settings and remains effective even against antibiotic-resistant strains. In a clinical trial, people with H. pylori infection who consumed broccoli sprout extract didn’t see a significant reduction in bacterial density, but they did show reduced oxidative damage to their stomach lining. This suggests broccoli sprouts may protect the tissue from the harm H. pylori causes, even if they don’t eliminate the bacteria on their own.

You can find broccoli sprouts at many grocery stores or grow them at home. A small handful on a sandwich or salad is an easy way to include them.

Fermented Foods and Probiotics

Probiotics play a dual role in ulcer recovery. They help counteract the gut disruption caused by antibiotic treatment, and certain strains actively work against H. pylori. Lactobacillus species, including L. acidophilus, L. reuteri, L. casei, and L. gasseri, have shown the ability to inhibit H. pylori in research. Combining Bifidobacterium and Lactobacillus strains with standard antibiotic therapy has been shown in a large meta-analysis of over 9,000 cases to improve eradication rates and reduce side effects like diarrhea and nausea.

Yogurt, kefir, sauerkraut, kimchi, and other fermented foods are natural sources of these bacteria. If you’re taking antibiotics for H. pylori, eating fermented foods throughout your treatment can help your gut microbiome recover faster afterward.

Honey as a Supportive Food

Honey, particularly Manuka honey, has well-documented antibacterial properties. Its key active compound, methylglyoxal (MGO), is effective against a wide range of bacteria. Honey has been shown to promote healing in gastric ulcers, and Manuka honey contains the highest concentrations of MGO, ranging from 3 to 800 micrograms per gram depending on the grade. A spoonful of raw honey on an empty stomach is a common folk remedy, and there is enough clinical evidence behind honey’s wound-healing ability to take it seriously as a complement to treatment. It won’t replace your medication, but it’s unlikely to hurt and may help.

Vitamin A, Zinc, and Vitamin C

Three micronutrients stand out for mucosal repair. Vitamin A and zinc work together to maintain the cells that line your stomach and intestines. Research in animal models has shown that adequate levels of both nutrients improve the structure of the intestinal lining, increasing the health of the protective cell layer. Deficiency in either one leads to poor epithelial maintenance and a weaker immune response. Vitamin C is also important during the recovery phase for tissue rebuilding.

You can get vitamin A from sweet potatoes, carrots, spinach, and eggs. Zinc is found in meat, shellfish, legumes, seeds, and nuts. Vitamin C comes from bell peppers, citrus fruits, strawberries, and broccoli. If your diet has been poor leading up to your ulcer diagnosis, paying attention to these nutrients is especially worthwhile.

Foods and Habits That Slow Healing

While there’s no official “banned” list, certain foods and drinks tend to increase stomach acid or irritate an already damaged lining. Alcohol is a direct irritant to gastric tissue. Coffee, both regular and decaf, stimulates acid production. Spicy foods don’t cause ulcers, but they can intensify pain if you have one. Carbonated drinks can increase bloating and discomfort.

Smoking is the single most important non-food habit to address. Quitting smoking lowers your risk of developing ulcers and directly helps existing ones heal, according to the NIDDK. If you only make one lifestyle change during recovery, this is the one with the strongest evidence behind it.

Eating smaller, more frequent meals rather than two or three large ones can also reduce the amount of acid your stomach produces at any given time. Avoid eating within two to three hours of lying down, which gives acid less opportunity to pool against the ulcer site.

Putting It All Together

A practical healing diet doesn’t require exotic ingredients or rigid meal plans. Build your meals around high-fiber whole grains, a variety of colorful vegetables and fruits, lean protein at every meal, and fermented foods like yogurt or kefir. Add broccoli sprouts when you can find them, use honey as a sweetener instead of sugar, and make sure you’re getting enough zinc and vitamins A and C through whole foods. Avoid alcohol, limit coffee, and stop smoking if you haven’t already. These choices won’t replace the antibiotics or acid reducers your doctor prescribes, but they create the best possible conditions for your stomach to repair itself over the weeks ahead.