Is Cheese Bad for Ulcers? Types to Eat and Avoid

Cheese is not inherently bad for ulcers, but the type of cheese matters. Low-fat varieties like cottage cheese, mozzarella, and ricotta are generally well tolerated, while high-fat and high-sodium cheeses can slow digestion and potentially increase stomach acid production. The old advice to drink milk and eat dairy to soothe an ulcer has been largely abandoned by modern medicine, but that doesn’t mean cheese needs to be eliminated entirely.

Why Milk-Based Diets Fell Out of Favor

In the early 1900s, a physician named Sippy popularized a diet built on milk and cream for ulcer treatment. The logic seemed sound: milk is alkaline enough to neutralize stomach acid and provide temporary pain relief. For decades, doctors routinely told ulcer patients to drink more milk and eat bland dairy foods.

That advice didn’t survive clinical testing. Milk does briefly buffer stomach acid, creating a short window of relief. But the calcium and protein in dairy then trigger a rebound effect, stimulating the stomach to produce even more acid than before. Calcium in particular, whether from dairy or supplements, causes increased acid secretion through direct stimulation of acid-producing cells and by triggering the release of gastrin, a hormone that ramps up acid output. So while a glass of milk or a piece of cheese might feel soothing for 20 minutes, the net effect can work against healing.

How Fat and Salt Content Affect Your Stomach

Not all cheeses are created equal when it comes to ulcer management. Two properties matter most: fat content and sodium level.

High-fat foods slow down stomach emptying, meaning food sits in the stomach longer and acid production continues for an extended period. Rich, fatty cheeses like mascarpone, cream cheese, and gorgonzola fall into this category. They can also relax the valve between your stomach and esophagus, which is especially problematic if you deal with acid reflux alongside your ulcer.

Sodium is the other concern. Heavily salted cheeses like feta, parmesan, and processed cheese slices contain significantly more sodium per serving than milder varieties. While the sodium levels in cheese are nowhere near the extreme doses that cause direct mucosal injury, chronically high salt intake can irritate an already-damaged stomach lining. If your ulcer is actively inflamed, adding a concentrated source of salt on top of that isn’t doing you any favors.

Cheeses That Are Generally Safe

Clinical nutrition guidelines for peptic ulcers place dairy into a clear hierarchy. Low-fat cheeses, yogurt, and fermented milk products are listed as allowed foods. Fatty cheeses like mascarpone, cream cheese, and gorgonzola are flagged as “use with caution.” No cheese varieties are listed as outright prohibited.

Your safest options include:

  • Cottage cheese (low-fat versions), which is mild, low in fat, and relatively low in sodium
  • Ricotta, particularly part-skim varieties
  • Fresh mozzarella, which is softer and lower in salt than aged versions
  • Swiss cheese, which tends to be lower in sodium than most aged cheeses

The common thread is lower fat, lower sodium, and a milder flavor profile. Aged, sharp, and heavily processed cheeses tend to score higher on both fat and salt.

Cheese and H. Pylori

Most peptic ulcers are caused by H. pylori bacteria, so a natural question is whether cheese helps or hurts that infection. A study testing both goat’s milk cheese and cow’s milk cheese found that neither type had any significant effect on H. pylori activity. The bacteria weren’t suppressed, but they weren’t stimulated either.

Interestingly, participants in the same study reported improved gastrointestinal well-being after three weeks of regular cheese consumption, with symptom scores improving significantly from the start of the study. This held true for both types of cheese. So while cheese didn’t fight the underlying infection, it didn’t make people feel worse, and it may have contributed to overall digestive comfort.

Fermented dairy products do contain live bacterial cultures, including Lactobacillus strains that have shown anti-H. pylori effects in laboratory and clinical studies. Fermented cheeses, yogurt, and kefir introduce these beneficial microbes into the gut. This isn’t a replacement for antibiotic treatment if you have an active H. pylori infection, but it suggests fermented dairy has a modest upside that processed or unfermented cheese doesn’t offer.

What Actually Matters More Than Cheese

Modern gastroenterology has moved away from strict dietary rules for ulcers. The decades-old recommendations to eat bland food, avoid spice, and drink milk haven’t held up in controlled studies. The primary treatment for ulcers is addressing the root cause: eradicating H. pylori with antibiotics if it’s present, or stopping the use of anti-inflammatory painkillers (like ibuprofen or aspirin) if those are the trigger. Acid-reducing medications do the heavy lifting in healing the ulcer itself.

That said, diet still plays a supporting role. What you eat won’t cure an ulcer, but it can influence how much discomfort you experience while it heals. The practical approach is straightforward: pay attention to how specific foods affect your symptoms. If a particular cheese consistently triggers burning or pain, skip it for now. If cottage cheese or mozzarella sits fine, there’s no medical reason to avoid them.

Alcohol, coffee, and smoking all have stronger documented effects on ulcer healing than cheese does. If you’re looking for dietary changes that will make the biggest difference, those are higher-priority targets than worrying about whether you can have a slice of Swiss on your sandwich.