There is no special “ulcer diet” proven to heal peptic ulcers, and the National Institute of Diabetes and Digestive and Kidney Diseases states clearly that diet does not play a major role in causing, preventing, or treating them. The real treatment involves addressing the root cause, usually an H. pylori infection or overuse of pain relievers like ibuprofen. That said, what you eat can influence your day-to-day comfort, protect your stomach lining, and support healing alongside medical treatment.
Why Diet Alone Won’t Heal an Ulcer
Peptic ulcers are open sores in the lining of your stomach or the upper part of your small intestine. Most are caused by a bacterial infection (H. pylori) or by regular use of nonsteroidal anti-inflammatory drugs. Eliminating the bacteria with antibiotics or stopping the offending medication is what actually closes the wound. No food can replace that.
What food can do is reduce irritation to an already raw surface, keep acid levels more manageable, and deliver nutrients that support tissue repair. Think of your diet as creating a friendlier environment for healing, not as the healing itself.
Foods That Support Stomach Healing
Fruits, vegetables, and other plant foods rich in naturally occurring compounds called flavonoids show the most promise for protecting stomach tissue. These compounds appear in a wide range of everyday foods: apples, strawberries, kiwi, onions, broccoli, cabbage, beans, tomatoes, carrots, peppers, and citrus fruits. Berries of all kinds are particularly rich sources. Green and black tea, along with dark chocolate and cocoa, also contain high levels of these protective compounds.
Broccoli and broccoli sprouts deserve a specific mention. They contain a compound called sulforaphane that has been studied for its effects on H. pylori. While one clinical trial found it did not reduce the density of H. pylori infection, it did lower oxidative damage to the stomach lining. In practical terms, broccoli won’t clear an infection, but it may help limit the collateral damage the bacteria cause while you’re being treated.
Fiber Is Especially Protective
A large prospective study of men found that those with the highest fiber intake had roughly half the risk of developing duodenal ulcers compared to those who ate the least fiber. The soluble fiber fraction, the kind that dissolves in water and forms a gel-like consistency, was even more strongly linked to protection. Men in the top fifth of soluble fiber intake had a 60% lower risk of ulcers.
Good sources of soluble fiber include oats, barley, lentils, beans, apples, citrus fruits, carrots, and psyllium husk. These foods may help by forming a protective layer over the stomach lining, slowing digestion, and buffering acid contact with vulnerable tissue. Aiming for a diet built around whole grains, legumes, fruits, and vegetables covers this base naturally.
Probiotic Foods and Supplements
Probiotic bacteria, particularly Lactobacillus and Bifidobacterium strains, show real potential for supporting ulcer healing. In animal studies, Lactobacillus rhamnosus GG promoted the growth of new blood vessels at ulcer margins and shifted the balance from cell death toward cell regeneration. Lactobacillus acidophilus and Bifidobacterium longum survive well in the harsh acid environment of the stomach and adhere to the stomach lining better than many other strains.
Bifidobacterium bifidum has been shown to protect the stomach’s mucous barrier from breaking down, while Bifidobacterium animalis can increase mucous production. Both effects help shield the raw ulcer surface from acid.
You can get these bacteria from fermented foods like yogurt (look for labels listing live active cultures), kefir, sauerkraut, kimchi, and miso. Probiotic supplements containing Lactobacillus or Bifidobacterium strains are another option. These won’t replace antibiotic treatment for H. pylori, but they may improve healing and help offset some of the gut disruption that antibiotics themselves cause.
The Milk Myth
For decades, doctors told ulcer patients to drink milk to coat the stomach. This advice was wrong. A study testing whole, low-fat, and nonfat milk found that all three significantly increased stomach acid production. In patients with duodenal ulcers specifically, the acid rebound was even more pronounced than in healthy subjects. Milk contains both protein and calcium, and both stimulate acid secretion.
A small glass of milk might briefly feel soothing, but within an hour or two it triggers more acid production than you started with. If you enjoy dairy, small amounts of yogurt or kefir are a better choice because their probiotic content offers a genuine benefit that milk does not.
Drinks to Be Careful With
Beer and wine are potent stimulants of stomach acid. Research shows that beverages with low alcohol content (roughly 5% or less, the range of most beers and wines) stimulate acid secretion as strongly as the maximum your stomach can produce. Interestingly, higher-alcohol drinks like whisky, gin, and cognac do not have the same acid-stimulating effect, though they carry other risks and are still worth limiting while an ulcer heals.
Coffee, both regular and decaf, is a known acid stimulant, though individual tolerance varies widely. If coffee consistently worsens your pain or burning, switching to green tea gives you a warm, mildly caffeinated drink that also delivers flavonoids beneficial to the stomach lining.
Spicy Foods: Not as Harmful as You Think
The old advice to avoid all spicy food with an ulcer is more tradition than science. Studies in healthy people show that eating highly spiced meals does not cause visible damage to the stomach or duodenal lining on endoscopy, even though acid and digestive enzyme production increase somewhat. Capsaicin, the active compound in chili peppers, has even shown protective effects on stomach tissue in some research.
That said, if spicy food makes your symptoms worse, your experience is valid and you should trust it. The evidence simply means spicy food isn’t making your ulcer larger or preventing it from healing. It may just be irritating an already sensitive surface. Temporarily dialing back the heat while you’re in active treatment is reasonable, but you don’t need to eliminate spice permanently.
A Practical Eating Pattern
Rather than following a rigid meal plan, focus on a few principles. Build your meals around vegetables, fruits, whole grains, and legumes to maximize fiber and protective plant compounds. Include a fermented food daily, whether that’s yogurt, kefir, or kimchi. Choose lean proteins like chicken, fish, eggs, or tofu that are less likely to trigger heavy acid production than large portions of red meat.
Eating smaller portions more frequently can help some people by preventing the stomach from being empty for long stretches, which is when acid has nothing to work on but the lining itself. Avoid eating within two to three hours of lying down, since gravity helps keep acid where it belongs.
If you smoke, quitting is one of the most impactful changes you can make. Smoking slows ulcer healing and increases the risk of new ulcers forming. On the dietary side, the biggest gains come not from eliminating specific “bad” foods but from consistently eating the protective ones: fiber-rich plants, probiotic-containing fermented foods, and a colorful variety of fruits and vegetables.

