Do you struggle with stomach ulcer problems? What you eat — and what you avoid — can make a real difference to how you feel every day. In this guide, we’ll walk you through the best foods for a stomach ulcer, the foods you should limit, and why they matter. If your symptoms are severe or don’t improve with diet changes, it’s best to consult an experienced gastrologist in Jaipur for proper diagnosis and treatment.
What Is a Stomach Ulcer?
A stomach ulcer (also called a peptic ulcer) is an open sore that develops in the lining of your stomach or the upper part of your small intestine. There’s no single “ulcer diet” that works for everyone, but that doesn’t mean food doesn’t matter — certain foods contain compounds that help fight Helicobacter pylori (H. pylori), the bacteria that causes most stomach ulcers, while others can irritate the stomach lining and make symptoms worse.
What Causes a Stomach Ulcer?
In most cases, the root cause of a stomach ulcer is infection with Helicobacter pylori bacteria. The second most common cause is long-term or frequent use of over-the-counter nonsteroidal anti-inflammatory drugs (NSAIDs), such as aspirin and ibuprofen, which can weaken the stomach’s protective mucous lining. You can read more about the different causes of stomach ulcers and how they develop over time.
Best Foods to Eat When You Have a Stomach Ulcer
The foods you eat should support your stomach’s natural defenses against bacterial infection, alongside any antibiotics or acid-blocking medication your doctor prescribes. Some of the best foods for a stomach ulcer include:
- Fruits: apples, blueberries, cherries, raspberries, strawberries, blackberries
- Vegetables: cabbage, cauliflower, radishes, bell peppers, carrots, broccoli, leafy greens like kale and spinach
- Other helpful foods: garlic, honey, olive oil and other plant-based oils, licorice, and turmeric
- Probiotic-rich foods: yogurt, kefir, miso, sauerkraut, and kombucha
Why Are These Foods Good for a Stomach with an Ulcer?
- Foods rich in antioxidants help the body fight H. pylori infection.
- Foods rich in calcium and vitamin B support the healing process.
- Probiotic-rich foods help prevent the infection from taking hold or spreading further.
- Turmeric is being studied for its potential as a natural aid in ulcer treatment — you may also consider supplements containing these food extracts, after checking with your doctor.
Foods to Limit When You Have an Ulcer
Many people with a stomach ulcer also experience acid reflux. Certain foods relax the lower part of the esophagus, making it easier for stomach acid to travel back up — leading to heartburn, indigestion, or pain. If you’re already dealing with acidity or acid reflux symptoms, limiting these foods becomes even more important.
Foods and drinks to limit or avoid include:
- Alcohol
- Caffeine and coffee
- Spicy foods
- Chocolate
- Acidic foods like citrus fruits and tomatoes
Ignoring these dietary triggers can worsen your ulcer symptoms and slow down healing, so it’s worth being mindful of them even when you’re feeling better.
Other Habits That Can Worsen Ulcer Symptoms
Diet isn’t just about what you eat — it’s also about how you eat. A few habits can quietly make a stomach ulcer worse, even in people who otherwise have no digestive issues:
- Overeating puts extra pressure on the stomach and can intensify ulcer-related pain.
- Eating close to bedtime — within two to three hours of sleeping — makes it easier for acid to reflux while you’re lying down, worsening symptoms overnight.
If left unmanaged, a stomach ulcer can lead to more serious complications such as ulcer bleeding, which requires urgent medical attention. Learn more about how doctors treat peptic ulcer bleeding and when it’s time to seek emergency care.
Final Thoughts
Making thoughtful changes to your diet — leaning into the best foods for a stomach ulcer while limiting the foods that trigger acid reflux — can go a long way in easing your symptoms and supporting healing. But diet alone isn’t always enough. If your stomach ulcer problems persist, don’t wait it out — consult a gastrologist in Jaipur to get an accurate diagnosis and a treatment plan suited to your condition.
Frequently Asked Questions
1. Is banana good for a stomach ulcer?
Yes. Bananas are gentle on the stomach lining and may help coat and soothe the digestive tract, making them a good snack option for people managing ulcer symptoms.
2. Can I drink milk if I have a stomach ulcer?
Milk may offer brief, temporary relief because it coats the stomach lining, but it can also trigger the stomach to produce more acid afterward. It’s best consumed in moderation rather than as a regular remedy.
3. What foods should I completely avoid with a stomach ulcer?
Highly acidic, spicy, fried, and heavily caffeinated foods and drinks tend to irritate the stomach lining the most and are usually best avoided or minimized during a flare-up.
4. Is rice good for someone with a stomach ulcer?
Yes, plain, well-cooked rice is easy to digest and doesn’t irritate the stomach lining, which makes it a safe staple food during an ulcer flare-up.
5. How long does it take for dietary changes to improve ulcer symptoms?
This varies from person to person, but many people notice some relief within a few days to a couple of weeks of consistent dietary changes, alongside prescribed medication. Complete healing of the ulcer itself usually takes longer and should be confirmed by a doctor.
6. Can stress make a stomach ulcer worse?
Stress doesn’t directly cause ulcers, but it can worsen symptoms like pain and acidity, and may indirectly encourage habits — like skipping meals, smoking, or poor eating patterns — that irritate the stomach lining further.
7. Is it okay to drink tea or coffee with a stomach ulcer?
Both tea and coffee, including decaf versions, can stimulate acid production and irritate the stomach lining, so it’s best to limit them, especially on an empty stomach.
8. When should I see a gastroenterologist for a stomach ulcer?
If you experience persistent abdominal pain, dark or bloody stools, vomiting blood, unexplained weight loss, or symptoms that don’t improve with diet and over-the-counter antacids, you should consult a gastroenterologist promptly for proper diagnosis and treatment.

