If you have a stomach ulcer, the best foods to reach for are high-fiber whole grains, lean proteins, non-acidic fruits, and vegetables like sweet potatoes and broccoli. There’s no single “ulcer diet” that replaces medical treatment, but what you eat can meaningfully affect how quickly you heal, how much pain you experience day to day, and whether the ulcer comes back.
Foods That Help Ulcers Heal
The goal is to eat foods that won’t spike your stomach acid, won’t irritate the raw lining, and ideally deliver nutrients that support tissue repair. Here’s what fits that profile:
- Whole grains: Oats, brown rice, whole wheat bread. These are high in fiber, which matters more than you might expect. In a clinical trial of 73 patients with recently healed duodenal ulcers, those on a high-fiber diet had a 45% recurrence rate over six months, compared to 80% for those on a low-fiber diet.
- Lean proteins: Skinless poultry, fish, tofu, lentils, chickpeas, and beans. These provide the building blocks for tissue repair without the excess fat that slows digestion and causes bloating.
- Non-acidic fruits: Apples, pears, bananas, and melons. These give you vitamins without triggering acid discomfort.
- Non-acidic vegetables: Spinach, sweet potatoes, carrots, broccoli, and kale. Leafy greens in particular are packed with vitamin A, vitamin C, and folate, all of which support the stomach’s ability to maintain and repair its protective lining.
Broccoli deserves special mention. It contains a compound called sulforaphane that has been shown to reduce levels of H. pylori, the bacterium responsible for most ulcers. In a Johns Hopkins study, patients who ate about 70 grams of broccoli sprouts daily (roughly a cup) for eight weeks showed reduced H. pylori colonization and less stomach inflammation compared to a placebo group.
Fermented Foods and Probiotics
Fermented foods like yogurt, kefir, sauerkraut, kimchi, and miso contain live bacteria that can work against H. pylori. Research has identified multiple strains of Lactobacillus, isolated from fermented foods, that inhibit H. pylori growth. One strain found in fermented cocoa juice, another from green tea, and several from traditional fermented dairy products have all shown activity against the bacterium in lab and animal studies.
Probiotics aren’t a replacement for antibiotics if your doctor has prescribed them, but they can improve the effectiveness of standard H. pylori treatment and reduce side effects like diarrhea and nausea. Bifidobacterium lactis and Lactobacillus acidophilus have shown some of the strongest inhibitory effects against H. pylori in screening studies. You’ll find these in many commercial yogurts and probiotic supplements.
What to Drink
Plain water is your best default. Staying well hydrated supports healing and helps dilute stomach acid between meals. Beyond water, several drinks can be soothing:
- Coconut water: Rich in electrolytes with mild antibacterial properties. It’s hydrating without being acidic.
- Herbal teas: Chamomile and licorice tea contain anti-inflammatory compounds. Green tea has antibacterial properties that may help. Drink them lukewarm, not hot, since heat can irritate an ulcer.
- Honey in warm water: Honey has natural antimicrobial and soothing effects. A teaspoon in warm (not hot) water can coat and calm an irritated stomach.
- Smoothies: Blending non-acidic fruits with yogurt gives you fiber, probiotics, and vitamins in an easy-to-digest form. Carrot and beetroot-based smoothies are good options.
Aloe vera juice is sometimes recommended for its anti-inflammatory properties, though its taste is polarizing and some people find it mildly laxative. If you try it, start with small amounts.
Foods and Drinks to Avoid
Some foods directly increase stomach acid production. Others irritate the already-damaged lining. A few do both.
Alcohol is one of the worst offenders. It irritates and can damage the digestive tract, making ulcers worse. Even moderate drinking can delay healing.
Milk is a common surprise. For decades, people with ulcers were told to drink milk to coat the stomach. That advice is outdated. Milk actually prompts your stomach to produce more acid, which can aggravate the ulcer rather than soothe it.
Coffee and caffeine are worth limiting, even though the research is mixed. Many people with ulcers find that coffee increases their discomfort, and most gastroenterologists still advise cutting back during active healing.
Fatty foods take longer to digest, which keeps acid production elevated for longer and often causes bloating and belly pain. Fried foods, fatty cuts of meat, and rich sauces are worth skipping until you’ve healed.
Citrus fruits and juices like orange, grapefruit, and pineapple are highly acidic and can sting an open ulcer. The same goes for tomato-based sauces and vinegar-heavy dressings.
Spicy foods don’t cause ulcers, but they can make symptoms worse for some people. This varies a lot from person to person. If chili peppers or hot sauce don’t bother you, they’re not necessarily off-limits, but if they trigger burning or pain, avoid them until the ulcer heals.
Chocolate is another individual-response food. It causes discomfort for many people with ulcers, likely because it can relax the valve between the stomach and esophagus. If it bothers you, wait until you’ve healed.
Meal Timing and Portion Size
How you eat can matter as much as what you eat, and the best approach depends on where your ulcer is located.
If you have a duodenal ulcer (in the first part of the small intestine), eating smaller meals more frequently tends to help. A pattern of three meals and three snacks throughout the day keeps food in your stomach more consistently, which buffers acid and reduces the gnawing pain that typically flares when your stomach is empty.
If you have a gastric ulcer (in the stomach itself), the opposite approach often works better. Sticking to three meals with no snacks gives your stomach time to rest between digestions, which can reduce symptoms. Eating triggers acid production, so for gastric ulcers, less frequent meals mean fewer acid spikes against the damaged lining.
Regardless of ulcer type, avoid eating large meals right before bed. Lying down with a full stomach keeps acid in contact with the ulcer longer. Give yourself at least two to three hours between your last meal and sleep.
A Practical Day of Eating
Breakfast might look like oatmeal topped with sliced banana and a drizzle of honey, or scrambled eggs with spinach and whole wheat toast. For lunch, grilled chicken or baked fish with brown rice and steamed carrots is filling without being irritating. Dinner could be a lentil soup with sweet potatoes and broccoli, or baked salmon with quinoa and roasted vegetables. For snacks (if you have a duodenal ulcer), a small handful of almonds, a pear, or yogurt with a few apple slices work well.
The pattern is simple: lean protein, fiber-rich whole grains, non-acidic produce, and fermented foods when you can fit them in. Keep the portions moderate, skip the alcohol and coffee, and pay attention to your own triggers. Ulcers typically heal within a few weeks to a couple of months with proper treatment. The right diet won’t replace medication, but it can make the healing process faster, less painful, and less likely to repeat.

