What to Avoid With a Stomach Ulcer: Foods & Habits

If you have a stomach ulcer, the most important things to avoid are anti-inflammatory painkillers like ibuprofen and aspirin, alcohol, and smoking. These three factors can directly damage your stomach lining, slow healing, and significantly increase the chance your ulcer comes back. Beyond those big three, certain everyday habits around eating and drinking can also make symptoms worse or delay recovery.

Anti-Inflammatory Painkillers

NSAIDs (nonsteroidal anti-inflammatory drugs) are the single biggest category of medications to avoid. This includes ibuprofen (Advil, Motrin), naproxen (Aleve), and aspirin. These drugs work by blocking enzymes involved in inflammation, but the same mechanism strips away your stomach’s built-in defenses. They reduce mucus production, decrease the protective bicarbonate layer, limit blood flow to the stomach lining, and increase acid secretion. On top of that, because NSAIDs are lipid-soluble weak acids, they act almost like a detergent on the stomach wall, breaking down the fatty barrier that normally keeps acid from reaching vulnerable tissue.

The numbers are striking: endoscopy studies find gastric ulcers in 15% to 40% of long-term NSAID users, and as many as 70% of people taking these drugs long-term develop inflammation in the small intestine. If you already have an ulcer, continuing NSAIDs can prevent it from healing entirely.

Acetaminophen (Tylenol) is generally the safest alternative for pain relief. It lacks the acidic structure that gives NSAIDs their damaging properties. At doses under 2 grams per day, acetaminophen does not appear to raise the risk of upper gastrointestinal complications. At higher doses, some evidence suggests it may carry mild GI risk, so keeping your intake moderate is a reasonable approach.

If you take low-dose aspirin for heart protection and can’t stop, talk to your prescriber. Stopping a prescribed aspirin regimen on your own can create a different set of risks.

Alcohol

Alcohol, especially at high concentrations, directly erodes the stomach lining. It damages blood vessels in the mucosa, impairs circulation to the tissue, and can cause cell death and bleeding. In animal studies, concentrated ethanol on an empty stomach causes vascular blockage and visible tissue destruction. You don’t need to be a heavy drinker for this to matter. Even moderate drinking on an empty stomach exposes raw ulcer tissue to a substance that actively worsens the damage.

While your ulcer is healing, avoiding alcohol entirely gives your stomach the best chance to repair. If your ulcer was caused or worsened by alcohol in the first place, cutting it out long-term reduces the likelihood of recurrence.

Smoking

Smoking is one of the strongest predictors of whether a healed ulcer will come back. In a 12-month follow-up study of patients whose duodenal ulcers had healed, 84% of smokers relapsed compared to 53% of nonsmokers. That’s a dramatic difference, and it held even without other risk factors. Smoking reduces blood flow to the stomach lining and interferes with the body’s natural repair processes. If you’re being treated for an ulcer, quitting smoking is one of the most effective things you can do to keep it from returning.

Foods and Drinks That Worsen Symptoms

Diet advice for ulcers has changed a lot over the decades. Doctors once prescribed bland diets and milk, but the evidence doesn’t support most of those old rules. What matters more is paying attention to your own triggers.

Spicy foods are a common concern, but research shows capsaicin (the compound that makes peppers hot) actually inhibits acid production in the stomach rather than increasing it. Capsaicin has even been studied as a potential protective agent against NSAID-related ulcers. So unless spicy food consistently bothers you personally, there’s no blanket reason to avoid it.

Coffee and caffeinated drinks do stimulate acid secretion. If you notice that coffee makes your pain worse, cutting back or switching to a lower-acid option makes sense. The same goes for citrus juices and tomato-based foods, which are acidic and can irritate an already-damaged stomach lining in some people. These aren’t universal triggers, but they’re worth testing for yourself.

Carbonated drinks can increase bloating and stomach pressure, which may worsen discomfort if your ulcer is in an area sensitive to distension.

The Milk Myth

For decades, people with ulcers were told to drink milk to coat the stomach. The reality is more nuanced. Animal research has found that cow milk can increase gastric mucus levels, boost protective nitric oxide, and reduce inflammation through effects on key inflammatory pathways. In mice, milk pretreatment significantly prevented alcohol-induced stomach damage.

However, milk also stimulates acid production. The initial soothing feeling can be followed by a rebound increase in stomach acid, which may aggravate an active ulcer. A small glass is unlikely to cause harm, but drinking large quantities of milk as a treatment strategy can backfire. It’s not the remedy it was once believed to be.

Eating Habits That Slow Healing

When and how you eat can matter as much as what you eat. Eating within two to three hours of bedtime triggers acid production at a time when lying down allows that acid to pool against your stomach lining. If you have an ulcer, finishing your last meal at least three hours before you go to sleep reduces overnight acid exposure.

Large meals also spike acid production more than smaller ones. Eating smaller, more frequent meals throughout the day keeps your stomach from producing large surges of acid at once. This doesn’t mean you need to eat constantly, just that splitting a large dinner into two smaller sittings can make a noticeable difference in symptoms.

Skipping meals is also worth avoiding. An empty stomach still produces acid, and without food to buffer it, that acid sits directly on the ulcer.

High-Fiber Foods Help, Not Hurt

While most ulcer advice focuses on what to cut out, adding fiber is one dietary change with real evidence behind it. In a clinical trial published in The Lancet, patients with recently healed duodenal ulcers were placed on either high-fiber or low-fiber diets for six months. Ulcers came back in 80% of the low-fiber group compared to 45% of the high-fiber group. That’s a meaningful protective effect.

Wheat bran in particular appears to act as a chemical scavenger in the stomach, neutralizing certain harmful compounds under acidic conditions. Fruits, vegetables, oats, and legumes are all good sources of soluble and insoluble fiber. Building more of these into your meals while your ulcer heals, and keeping them in your diet afterward, can reduce the chance of recurrence.

Stress and Sleep

Stress doesn’t directly cause ulcers (that’s usually H. pylori bacteria or NSAIDs), but chronic stress increases acid secretion and can delay healing. Poor sleep has a similar effect, disrupting the body’s overnight repair processes. You don’t need a meditation retreat, but finding practical ways to manage stress and protect your sleep gives your stomach lining a better environment to recover in.