Stomach Ulcer Diet: Foods to Eat and Foods to Limit

Stomach Ulcer Diet: Foods to Eat and Foods to Limit

The rest of this guide covers what food can and cannot do, which items most often provoke symptoms, where spice, coffee, milk and alcohol actually sit, and which blood markers are worth knowing about alongside. This page is educational and is not medical advice.

What does changing your diet actually do for a stomach ulcer?

Changing your diet changes how an ulcer feels day to day, and it supports the lining, but it is rarely the reason an ulcer formed and rarely the reason one resolves. The stomach protects itself with a layer of mucus and bicarbonate, tightly joined surface cells and a generous blood supply. Acid and the digestive enzyme pepsin sit on the other side of that balance. An ulcer is a break in the lining that reaches below the surface layer, and it appears when the defence is weakened rather than when acid is unusually strong.

Food interacts with that balance in modest ways. A large meal stretches the stomach and prompts more acid output. Fat slows stomach emptying, so a heavy plate lingers longer against an irritated area. Alcohol and some drinks irritate the surface directly. Texture and temperature matter too, because rough, very hot or very acidic material passing over an open area of lining registers as pain. None of that is the same as creating the break in the first place. A review of nutritional care in peptic ulcer describes diet as a supportive part of care, aimed at protecting the mucosa and easing symptoms rather than acting as the main therapy 1.

So the honest framing is this. Diet is the lever you hold every single day, and it is worth pulling well. It makes meals less painful, it supplies the fibre and plant compounds the lining works with, and it stops you provoking the same sore spot three times a day. What it does not do is replace finding out why the ulcer is there. Treatment decisions belong to a licensed provider.

What actually causes most stomach ulcers?

Most stomach ulcers trace back to Helicobacter pylori infection or to some medicines, not to a spicy meal or a stressful month. A meta-analysis of risk factors for peptic ulcer found that H. pylori infection is associated with ulcer risk, alongside smoking and certain medicines 2.

H. pylori is a bacterium that survives in the mucus layer coating the stomach. It produces an enzyme that neutralises acid in the small pocket around it, which lets it persist for years, and its presence drives low-grade inflammation in the lining. That chronic inflammation is what thins the defence and leaves parts of the surface exposed to acid and pepsin. Many people carry it with no symptoms at all, which is why the only way to know is a test rather than a guess.

The second common route runs through medicines that reduce the signalling molecules keeping mucus production and mucosal blood flow switched on. If you take something regularly and wonder whether it is contributing, that is a conversation for your prescriber, not a reason to stop anything on your own. A review of lifestyle factors in peptic ulcer disease covers smoking, alcohol and dietary habits as the modifiable side of the picture 3.

Stress and food carry an old reputation here. Both can make symptoms louder and shape how sharply you feel them, but the cause usually sits with infection or medicines. That reframe matters, because people spend months eating plain rice while the actual driver goes unchecked.

Which foods are worth building meals around?

Build meals around plants, lean protein and gentle fats, in forms your stomach tolerates, because that pattern supplies fibre and plant compounds without the irritants that provoke symptoms. The table below groups useful foods by type and shows where fibre and polyphenols concentrate, in relative terms only.

Food group Everyday examples Fibre content Polyphenol content Why it earns a place
Soft cooked vegetables Carrot, squash, courgette, green beans, peeled potato Moderate Moderate Plant matter in a form that is easy on an irritated lining
Leafy greens and brassicas Spinach, kale, broccoli, cabbage High High Dense in plant compounds, often better tolerated cooked than raw
Berries Blueberries, strawberries, raspberries Moderate High Among the richest everyday sources of polyphenols
Gentle fruit Ripe banana, melon, cooked pear, stewed apple Low to moderate Low to moderate Low acidity, useful when sharper fruit stings
Whole grains Oats, barley, brown rice, wholegrain bread High Moderate Steady fibre and a soft texture when cooked
Legumes Lentils, chickpeas, white beans High Moderate Fibre plus protein, though gas can be a limiting factor
Lean protein Fish, poultry, eggs, tofu Low Low Protein without the heavy fat load of fried or fatty cuts
Fermented dairy Plain yoghurt, kefir Low Low Generally well tolerated and simple to digest for many people
Olive oil, nuts and seeds Extra virgin olive oil, walnuts, almonds, flaxseed Moderate High Gentle fats, and olive oil is notably polyphenol rich
Herbs, spices and tea Green tea, turmeric, rosemary, cinnamon Low High Small additions that carry a large share of dietary polyphenols

These are relative descriptions of where these compounds concentrate, not targets to hit and not a meal plan. Cooking method often decides tolerance more than the ingredient does, so the same vegetable that is uncomfortable raw may be fine roasted or in soup. Start from this list, keep what sits well, and park anything that repeatedly does not.

Which foods and drinks most often make symptoms worse?

The usual provokers are alcohol, large or heavily fried meals, strongly acidic items and anything an individual has already learned to distrust. Triggers vary more between people than most food lists admit, so treat the table as a shortlist to test against your own experience rather than a ban.

Type Common examples Why it can provoke symptoms
Alcoholic drinks Beer, wine, spirits Irritates the stomach surface directly and is one of the lifestyle factors in this picture 3
Fried and fatty meals Deep fried food, fatty cuts, cream-heavy dishes Slow stomach emptying leaves the meal sitting longer against sore tissue
Very large meals Oversized portions, long gaps then one big plate Stretching the stomach prompts a bigger acid response
Sharply acidic foods Citrus juice, tomato sauce, vinegar dressings Acid contacting an exposed area can sting, though many tolerate them fine
Strongly spiced dishes Chilli-heavy curries, hot sauces Can aggravate symptoms in sensitive people without being a cause
Fizzy drinks Carbonated soft drinks, sparkling water Gas adds pressure and distension on top of existing discomfort
Very hot drinks and foods Scalding tea, soup straight off the hob Heat alone can make an irritated lining complain

Notice what is absent from that list. The goal is to stop repeatedly irritating a sore area while the real cause is identified and handled by a clinician.

Does spicy food cause stomach ulcers?

Spicy food does not cause stomach ulcers, although it can make an existing one more uncomfortable for some people. The risk factors that carry weight are infection with H. pylori, smoking and certain medicines 2, and chilli heat is not on that list.

What spice does do is stimulate nerve endings that register heat and irritation. On intact lining that produces a pleasant burn. On an exposed area it can produce a sharper, less pleasant one. That reaction is highly individual. Some people with an ulcer eat chilli with no change in symptoms at all, others find a single hot meal sets off an evening of discomfort.

There is also a confounding factor worth noticing. Spicy meals often arrive as large, oily, late restaurant plates with alcohol alongside. Any one of those can provoke symptoms on its own, so blaming the chilli may be blaming the wrong variable. If you want to know whether spice itself is a problem for you, test it in a small, plain, home-cooked context rather than at the end of a heavy night out.

The practical position is simple. Spice is not off limits as a rule. Dial it down while symptoms are active, reintroduce it gradually, and keep it if it causes no trouble.

Do you have to give up coffee?

Probably not, though individual tolerance decides. A cross-sectional study of 8,013 healthy adults found no association of coffee consumption with gastric ulcer, duodenal ulcer, reflux esophagitis or non-erosive reflux disease 4.

That finding sits awkwardly against decades of advice telling anyone with stomach pain to drop coffee first. Coffee does stimulate acid secretion and it relaxes the valve at the top of the stomach, which is why people with reflux symptoms often notice it. But stimulating acid is not the same as creating an ulcer, and the population picture does not support treating coffee as a cause.

What matters more is the circumstances. Strong coffee on an empty stomach first thing is a different experience from the same cup after food. Very hot coffee is a different experience from warm. Large amounts across a day land differently from one cup. Several people who think they cannot tolerate coffee at all find they tolerate it after a meal perfectly well.

In people with an active ulcer, the sensible approach is observation rather than prohibition. Keep coffee if it causes no symptoms. Adjust the circumstances if it does. Drop it if the pattern is consistent and obvious, and know that the decision is about your comfort rather than about the ulcer closing.

How do smoking and alcohol change the picture?

Smoking is the lifestyle factor with the clearest weight here, and alcohol is the drink most likely to irritate an already damaged lining. Research suggests that smoking is associated with peptic ulcer disease and with slower ulcer healing 5, and a meta-analysis of peptic ulcer risk factors included smoking alongside H. pylori infection and certain medicines 2.

The relationship is also tangled up with infection. Research suggests that the contribution of smoking has been reassessed in the context of H. pylori, with the two factors interacting rather than acting in isolation 6. In practical terms, smoking appears to make the lining less able to defend and repair itself, which is why it shows up both in who develops ulcers and in how quickly they settle.

Alcohol belongs in a different category. It contacts the lining directly, and a review of lifestyle in peptic ulcer disease treats alcohol as one of the modifiable factors alongside smoking and diet 3. Spirits on an empty stomach are the version people most often report as provoking, and strength and circumstance matter as much as the drink type.

Reducing or pausing alcohol tends to produce a noticeable difference in day to day comfort fairly quickly. Neither replaces finding out whether infection or a medicine is driving the problem.

Do polyphenol-rich foods help?

They may be worth including, and the case is reasonable rather than conclusive. Research suggests that dietary polyphenols may help protect the gastric mucosa and have a role in the management of peptic ulcer 7.

Polyphenols are plant compounds that give colour and bitterness to fruit, vegetables, tea, cocoa, olive oil, herbs and spices. The ways they appear to act on the stomach include dampening inflammation in the lining, limiting oxidative damage to surface cells 7.

The useful translation is unglamorous. Berries with breakfast. Green tea instead of a third coffee. Extra virgin olive oil over the salad. Herbs and mild spices used generously in cooking. Vegetables with colour on most plates. That pattern delivers polyphenols in the form they were studied in, which is food.

This is about food, not products. Whether anything beyond food belongs in your case is a decision for a licensed provider who has reviewed you. Notably, several polyphenol-rich foods also appear on people's personal trigger lists, cocoa and strong tea among them, so tolerance still decides what stays on the plate.

Where do fibre and dietary fats fit in?

Fibre and fat both shape how the stomach handles a meal, in opposite directions. Research suggests that a diet supplying adequate fibre and antioxidant nutrients supports mucosal protection as part of nutritional care in peptic ulcer 1.

Fibre does several quiet jobs. It feeds the bacteria in the gut, it adds bulk that moderates how quickly a meal moves through, and the foods that carry it bring vitamins and plant compounds along. Soluble fibre from oats, barley, legumes and soft fruit is usually the easiest starting point when the stomach is sensitive, because it softens and thickens rather than scratching. Very coarse bran and raw tough vegetables are the forms people most often find uncomfortable in the short term, which is a reason to change the form rather than to abandon fibre.

Fat is more about timing than toxicity. Fat slows stomach emptying, so a heavy, greasy meal sits longer, and that extended contact is what people feel. Gentler fats used in ordinary amounts, olive oil, nuts, seeds, oily fish, rarely cause the same trouble as deep fried food.

The type of fat has its own history. A hypothesis paper proposed that changes in dietary essential fatty acid intake may help explain the historical decline in peptic ulcer disease 8. That remains a hypothesis rather than a settled account, and it is not a reason to change what you eat on its own.

Does milk settle an ulcer or make it worse?

Milk settles the pain briefly for many people, and the relief tends not to last. That short buffering effect is why milk was a standard piece of advice for generations, and it is also why it disappointed so many people who relied on it.

The mechanics are straightforward. Milk is mildly alkaline and physically coats the stomach, so for a short window the burning eases. Milk is also a food, and food prompts the stomach to produce acid to digest it. The comfortable window closes and the discomfort can return.

That does not make dairy something to avoid. Plain yoghurt, kefir and milk in cooking sit perfectly well with most people, and fermented dairy is among the better tolerated protein sources when the stomach is sensitive. People who are lactose intolerant are a separate story, since bloating and cramping from lactose can easily be mistaken for ulcer symptoms.

The distinction worth keeping is between comfort and repair. Using milk because it feels good in the moment is fine. Using it as a strategy, drinking it through the day and expecting the ulcer to resolve on the strength of it, is where the old advice went wrong. Repair depends on the cause being addressed, and that sits with a clinician.

How do you work out which foods bother you?

Keep a plain record for two to three weeks, because personal triggers are consistent enough to spot and individual enough that no list can predict them. Write down what you ate, how it was cooked, roughly how much, and what you felt afterwards and how long later.

Then look for repeats rather than single incidents. One uncomfortable evening after tomato sauce means little. Four uncomfortable evenings out of five means something. Pay particular attention to the variables that are easy to miss. Portion size often matters more than the ingredient. Cooking method frequently decides tolerance, with raw, fried and charred versions of the same food behaving very differently from steamed or stewed. Temperature matters. So does what the food arrived with, since alcohol or a very large plate can be the real variable while the headline dish takes the blame.

When a food looks guilty, park it for a couple of weeks, then try it again on a quiet day in a small, simple, home-cooked form. Foods that provoke symptoms reliably across two or three honest attempts can stay off the list for now. Foods that pass can come back.

Avoid the common trap of cutting out everything at once. A diet stripped down to four foods is hard to sustain, tells you nothing about which of the removals mattered, and makes it harder to eat well while the actual cause is being investigated.

What does Hemoglobin have to do with an ulcer?

Hemoglobin is the protein in red blood cells that carries oxygen, and it matters here because an ulcer can bleed slowly enough that nothing is visible, with a falling result as the first clue. Typical lab reference ranges run roughly 13 to 17.5 g/dL for men and 11.5 to 16 g/dL for women. FitScript's optimal range is narrower, 14 to 16 g/dL for men and 12 to 15 g/dL for women. An optimal range is an optimization target, not a diagnostic cut-off, and reference ranges vary by lab, age and sex. The test comes from a routine blood draw as part of a complete blood count. The linked guide covers what it measures, how it is tested and what a high or low result may reflect in full.

Which other tests are worth considering alongside?

The test that changes the most is one for H. pylori, since infection is among the leading contributors and is identifiable 2. Options generally include a breath test, a stool antigen test and a sample taken during endoscopy, and a clinician chooses based on your situation and on what you have taken recently, since some medicines affect results.

A complete blood count is the second obvious piece, because it shows red cell numbers and size alongside oxygen-carrying capacity, and slow blood loss from the gut tends to show there before it shows anywhere else. Iron markers, including ferritin and transferrin saturation, add detail about stores rather than just the current count, and they often shift earlier than the blood count does. Markers of inflammation give general context. Vitamin B12 is sometimes relevant, because the stomach lining is where the factor needed to absorb it is produced, and long-standing inflammation of that lining can affect it.

A membership like FitScript's, with 150+ biomarkers tested per year and interpretation by Atlas, FitScript's AI health advisor, is one way to see those markers together rather than one at a time. What testing cannot do is confirm an ulcer on its own. Blood markers show consequences and risk context, and visualising the lining requires endoscopy, which a clinician decides on. Which tests make sense for you is their call, as is any next step.

When is it time to talk to a clinician?

Vomiting blood or material that looks like coffee grounds, black tarry stools, sudden severe abdominal pain, or feeling faint and breathless need 911 or the emergency department. Talk to a clinician promptly about unexplained weight loss, persistent vomiting or difficulty swallowing. Those point to bleeding or obstruction, and none of them should be managed with food.

Beyond the urgent list, book a conversation for the slower signals too. Burning upper abdominal pain that keeps returning over weeks, pain that wakes you at night, symptoms that keep coming back after they seem to settle, or a result outside the standard range on a routine blood test all deserve a proper look rather than another round of dietary tinkering. A suboptimal or falling result on a blood count is a reason to ask questions, never a reason to ignore it.

The sequence that works is usually this. Identify the cause, with testing where it is indicated. Address the cause under clinician direction. Use diet in parallel to keep symptoms manageable and to supply what the lining works with. Discuss your results and any treatment with a clinician or licensed provider before changing anything, including any medicine you already take.

If you are still working out whether what you feel fits the pattern, the guide to stomach ulcer symptoms sets out what the discomfort typically looks like and how it differs from ordinary indigestion, and the guide to the h pylori test explains how infection is checked and what a result does and does not tell you.

Key takeaways

References

  1. Nutritional care in peptic ulcer. Arquivos brasileiros de cirurgia digestiva : ABCD = Brazilian archives of digestive surgery, 2014.
  2. Meta-analysis of risk factors for peptic ulcer. Nonsteroidal antiinflammatory drugs, Helicobacter pylori, and smoking. Journal of clinical gastroenterology, 1997.
  3. Lifestyle and Peptic Ulcer Disease. Current pharmaceutical design, 2018.
  4. No association of coffee consumption with gastric ulcer, duodenal ulcer, reflux esophagitis, and non-erosive reflux disease: a cross-sectional study of 8,013 healthy subjects in Japan. PloS one, 2013.
  5. Smoking and peptic ulcer in the Helicobacter pylori era. European journal of gastroenterology & hepatology, 2000.
  6. Is smoking still important in the pathogenesis of peptic ulcer disease?. Journal of clinical gastroenterology, 1997.
  7. Role of dietary polyphenols in the management of peptic ulcer. World journal of gastroenterology, 2015.
  8. Dietary essential fatty acids and the decline in peptic ulcer disease--a hypothesis. Gut, 1986.

Common questions

Can a stomach ulcer go away with diet alone?

Diet alone is not usually enough, because most ulcers are driven by infection or by some medicines rather than by food. Eating well makes symptoms easier to live with and supports the stomach lining while the cause is sorted out. Finding and addressing that cause is a clinician's decision, so get tested rather than waiting to see whether a new way of eating works.

What should I eat on a day when symptoms are flaring?

Choose simple, soft, moderately sized meals that have not given you trouble before, such as oats, soft cooked vegetables, ripe fruit, plain yoghurt, fish, poultry, eggs or tofu. Cooked usually sits better than raw, warm better than scalding, and plain better than fried. Keep alcohol out of the picture on those days and come back to your usual variety once things settle.

Which foods should I limit with a stomach ulcer?

The usual candidates are alcohol, deep fried and very fatty meals, oversized portions, sharply acidic items such as citrus juice and tomato sauce, fizzy drinks and anything served scalding hot. Triggers are individual, so the list is a starting point rather than a rule. Track what you eat for a couple of weeks and keep off only what causes trouble repeatedly.

Does spicy food need to be avoided completely?

Not as a blanket rule. Spice does not cause ulcers, although chilli heat can sting an area of lining that is already irritated. Dial the heat down while symptoms are active, then reintroduce it gradually and keep it if it causes no problem.

Is coffee safe to keep drinking?

For many people, yes. Coffee stimulates acid production, which is why some notice it, but it is not treated as a cause of ulcers. Try it after food rather than on an empty stomach, keep the temperature moderate, and let your own pattern over a few weeks decide.

Does drinking milk help ulcer pain?

Milk buffers acid briefly, so the pain often eases for a short while and then returns, because milk also prompts the stomach to produce acid. It is fine to drink if you enjoy it and tolerate it, and plain yoghurt or kefir suit many people well. Just do not rely on it as a way of fixing the ulcer.

Can stress cause a stomach ulcer?

Stress is not regarded as the main cause, since infection and certain medicines account for most ulcers. It can make symptoms feel sharper and change how you eat, sleep and drink, which indirectly matters. Managing stress is worthwhile, but it does not replace testing to find out what is actually driving the ulcer.

Which symptoms mean I should contact a clinician quickly?

Vomiting blood or material resembling coffee grounds, black tarry stools, sudden severe abdominal pain, or feeling faint and breathless need 911 or the emergency department. Persistent vomiting, difficulty swallowing or unexplained weight loss are worth discussing with a clinician promptly. These can point to bleeding or obstruction rather than ordinary indigestion. Do not try to manage them with changes to your diet.

Related reading