Is Sugar Really Bad for Stomach Ulcers?

Understand the nuanced relationship between sugar intake and stomach ulcers. Discover informed dietary guidance for digestive wellness.

Sugar does not cause stomach ulcers. The overwhelming majority of peptic ulcers are caused by infection with the bacterium Helicobacter pylori or by regular use of nonsteroidal anti-inflammatory drugs like ibuprofen and aspirin. That said, the relationship between sugar and your stomach lining is more tangled than a simple “guilty” or “not guilty” verdict. Research over the past two decades has turned up several indirect pathways through which high sugar intake could make an existing ulcer worse, slow healing, or even nudge the conditions that let ulcers form in the first place.

What Actually Causes Peptic Ulcers

Before getting into sugar’s role, it helps to be clear about what does cause ulcers. Peptic ulcer disease refers to open sores that develop on the inner lining of the stomach or the upper portion of the small intestine. The two established culprits are H. pylori infection and NSAID use, which together account for the vast majority of cases. When H. pylori colonizes the stomach, it weakens the protective mucus layer, allowing acid to erode the tissue underneath. NSAIDs do something similar by suppressing the production of prostaglandins, compounds your stomach relies on to maintain that same protective barrier. The two risk factors can also reinforce each other: someone who takes NSAIDs regularly and also harbors an H. pylori infection faces a compounded risk that makes testing and eradication especially important. Modern treatment centers on eradicating the bacterium with antibiotics (when present) and suppressing acid with proton pump inhibitors.

Sugar does not appear anywhere in that causal chain. No clinical guideline lists it as a primary cause of ulcers. So why does the belief persist that sweets are hard on an ulcerated stomach?

Sugar and Stomach Acid: A Counterintuitive Finding

One reason people assume sugar worsens ulcers is the idea that it ramps up acid production. More acid, more burning, more damage. The actual physiology is more interesting than that. Studies on how different nutrients affect gastric acid secretion consistently show that glucose meals do not increase acid output. In one classic experiment, a glucose meal caused a small, transient rise in gastrin (a hormone that signals acid release) but the rise was too brief and too modest to enhance acid secretion at all.

High blood sugar actually goes further, actively dialing acid secretion down. When researchers induced hyperglycemia in healthy volunteers, both baseline acid output and acid output stimulated by the hormone gastrin-17 dropped significantly. Basal acid output fell by more than half during hyperglycemia compared to normal blood sugar levels. A separate study confirmed that acute hyperglycemia completely inhibited amino-acid-stimulated gastric acid output and reduced the release of gastrin.

So if anything, sugar in the short term suppresses acid rather than boosting it. That might sound like good news for ulcer sufferers, but acid production is only one piece of the puzzle, and not the most important one.

How Sugar May Help H. Pylori Thrive

Here is where the picture shifts. Even if sugar doesn’t crank up acid, it may support the very bacterium that causes most ulcers. A laboratory study using human gastric cells found that higher glucose concentrations significantly enhanced H. pylori‘s ability to stick to stomach cells. The bacterium grew best and survived longest in a glucose environment of 200 mg/dL, roughly the blood sugar level you might see after a large sugary meal or in poorly controlled diabetes. Adhesion to stomach cells was significantly greater at that glucose level compared to lower concentrations. More troublingly, the expression of CagA, one of H. pylori‘s key virulence proteins, increased in a dose-dependent fashion as glucose rose.

CagA is not a minor player. It is injected directly into host cells by the bacterium and is linked to more aggressive inflammation and a higher risk of ulcers and gastric cancer. So while sugar is not inviting H. pylori into your stomach in the first place, a high-glucose environment could be making an existing infection stickier, more aggressive, and harder for your immune system to manage. This is a cell-culture finding, not a clinical trial in humans, so it should be interpreted cautiously. But it offers a plausible biological mechanism for why chronically high blood sugar and ulcer outcomes tend to track together.

The Gut Barrier and Inflammation Angle

Your stomach and intestinal lining depend on tight junctions between cells to keep bacteria, toxins, and digestive juices where they belong. A growing body of evidence shows that diets rich in sugar weaken those junctions. Research has found that high intakes of fats and carbohydrates loosen tight junction proteins in the gastrointestinal tract, allowing bacterial toxins like lipopolysaccharides to leak through the gut wall and trigger low-grade systemic inflammation.

Sugar also reshapes which bacteria live in your gut. High sugar intake has been shown to increase the relative abundance of Proteobacteria, a group that includes many inflammatory species, while decreasing Bacteroidetes, a group that helps reinforce the gut barrier and regulate immune responses. The net result is a microbiome tilted toward more inflammation and a weaker mucosal lining. For someone who already has a stomach ulcer, this kind of chronic low-grade inflammation is exactly the background noise that can interfere with healing.

An animal study sharpened this picture further. When mice were fed high-glucose diets, they developed increased intestinal permeability in both the upper and lower gut, along with glucose intolerance and markers of inflammation. Interestingly, fructose-fed mice did not show the same permeability changes, suggesting that glucose and fructose are not interchangeable when it comes to gut barrier damage. That distinction is worth noting for anyone who assumes “sugar is sugar.” Different sugars appear to behave differently in the gut.

Refined Sugar and Ulcer Risk in Population Data

Most of the evidence above comes from lab and animal studies. What about people? One of the more carefully designed human studies on this question is a case-control study that looked at dietary fiber and refined sugar intake in people with duodenal ulcers versus matched controls. After adjusting for smoking, social class, and body weight, the researchers found that low refined sugar intake appeared to be a protective factor against duodenal ulcer disease. Total fiber or cereal fiber intake, by contrast, didn’t show any consistent protective effect.

That finding is noteworthy partly because it runs against the old dietary advice for ulcer patients, which focused heavily on bland, soft foods and sometimes even encouraged things like milk and white bread, foods that tend to be low in fiber but not necessarily low in sugar. The study suggests that if diet matters at all for ulcer prevention, it is sugar restriction rather than fiber loading that makes the difference. But a single case-control study, even a well-adjusted one, is not definitive proof. It is consistent with the laboratory evidence, though, which makes the overall pattern more convincing.

When High Blood Sugar Slows Ulcer Healing

Perhaps the most clinically relevant connection between sugar and ulcers has nothing to do with whether sugar causes ulcers and everything to do with whether it delays recovery. In a study using diabetic rats, ulcer healing was delayed by roughly threefold compared to non-diabetic animals. The diabetic rats showed decreased blood flow to the stomach lining, elevated levels of inflammatory cytokines, and suppressed production of growth factors needed for new blood vessel formation at the ulcer site. When the animals were given insulin to normalize blood sugar, the healing delay reversed: inflammation dropped, growth factor production recovered, and the ulcers closed at a pace closer to normal.

This has real implications for people with diabetes or prediabetes who develop ulcers. If your blood sugar is chronically elevated, your body’s ability to repair the stomach lining is impaired at the molecular level, not just a little bit, but dramatically. The healing environment becomes more inflammatory and less vascular, exactly the opposite of what a wound needs. While this study was in animals, the underlying mechanisms (impaired angiogenesis, excess inflammatory signaling) are well-recognized features of poor wound healing in human diabetes.

A separate animal study added another layer. Rats exposed to a combination of a high-sugar, high-fat diet and a hot-humid environment developed gastric ulcers that were roughly one and a half times more severe than ulcers in rats on a normal diet, with significantly higher gastric acidity and pepsin activity. The interplay of diet and environment mattered: neither factor alone was as damaging as the combination. This fits a broader pattern in ulcer research where sugar on its own isn’t the villain, but sugar in combination with other stressors amplifies the harm.

What Current Dietary Guidelines Say

If you look at modern nutritional recommendations for peptic ulcer disease, you will not find a blanket ban on sugar. But you will find measured caution. Clinical nutrition reviews suggest that carbohydrate intake for ulcer patients should be adjusted to individual needs, while avoiding a concentration of disaccharides (simple sugars like table sugar and lactose) to prevent fermentation and discomfort. Integrated treatment guidelines also note that sugar-sweetened beverages should be avoided when they aggravate symptoms.

The operative phrase there is “when they aggravate symptoms.” This reflects the current clinical reality: there is no strong evidence that moderate sugar intake prevents healing or causes new ulcers in someone who is otherwise properly treated. But there is enough evidence from laboratory, animal, and observational studies to justify caution, especially for people dealing with active ulcers, poorly controlled blood sugar, or both. The old-school approach of prescribing a strict bland diet has largely been abandoned because it never showed clear benefits over a normal balanced diet. The modern approach is more personalized: eat what you tolerate, prioritize whole foods, and dial back anything that makes you feel worse.

Gastric Emptying and Why Sugary Drinks Feel Different

Many people with ulcers report that sugary drinks bother them more than solid food, and there is a physiological explanation that has nothing to do with acid. Higher concentrations of glucose in liquid form slow gastric emptying. In a study measuring how quickly different glucose solutions left the stomach, a dilute solution (20 grams per liter) emptied at the same rate as water. But once the glucose concentration hit 40 grams per liter or higher, emptying slowed significantly. A typical can of soda or sweetened juice concentrate easily exceeds that threshold.

Slower gastric emptying means a sugary liquid sits in your stomach longer, stretching the stomach wall and prolonging contact between the contents and the ulcer. That extended contact time can explain why a sweet drink triggers discomfort even though sugar itself is not increasing acid. For someone with an active ulcer, dilute beverages are less likely to cause trouble than concentrated sweet ones, regardless of the total sugar consumed.

Glucose vs. Fructose and Artificial Sweeteners

Not all sweetness is created equal when it comes to the gut. As noted earlier, mouse studies found that glucose increased intestinal permeability and triggered gut inflammation, while fructose did not cause the same barrier damage. This does not mean fructose is harmless, as high fructose consumption is linked to other metabolic problems, but it suggests the mechanism by which sugar affects the stomach lining is specific to glucose metabolism rather than sweetness in general.

What about artificial sweeteners? A Mendelian randomization study, which uses genetic data to mimic the effects of long-term exposure, found that genetically predicted intake of artificial sweeteners added to cereal was associated with a lower risk of gastric cancer. The researchers speculated this could reflect a substitution effect: people using artificial sweeteners may be consuming less added sugar, and the sweeteners may fall below the threshold for causing their own harm. Gastric cancer and peptic ulcers are different conditions, but they share overlapping risk factors including chronic inflammation and H. pylori infection, so findings in one area often inform the other. This is preliminary, and nobody should take it as a license to load up on artificial sweeteners, but it adds nuance to the question of whether non-sugar sweetness might sidestep some of these concerns.

The Bland Diet Myth

For decades, ulcer patients were prescribed bland diets: soft foods, milk, white toast, and nothing spicy or acidic. Sugar in moderate amounts was rarely restricted under these regimens. In a survey of American hospitals conducted in the late 1970s, about three-quarters were prescribing some form of bland diet to ulcer patients, and over half routinely gave milk. Dietitians at discharge typically instructed patients to continue some version of this approach at home.

The bland diet was eventually shown to have no meaningful advantage over regular eating in controlled trials. It did not accelerate healing or prevent recurrence. Its one lasting contribution was the insight that individual tolerance varies: some foods bother some people and not others. What replaced it is the understanding that ulcers are an infectious and pharmacological problem, not primarily a dietary one. Medications (proton pump inhibitors and antibiotics) do the heavy lifting. Diet plays a supporting role, mostly by not making symptoms worse while the medications work.

The irony is that bland diets, which were considered the gold standard of ulcer care for generations, often included plenty of refined carbohydrates while eliminating fruits and vegetables that we now know contain protective antioxidants and anti-inflammatory compounds. The old approach may have inadvertently pushed diets in exactly the wrong direction for gut health, though not disastrously so, since the discovery of H. pylori and modern acid-suppressing drugs changed outcomes far more than any dietary intervention ever could.

Practical Guidance If You Have an Ulcer

Pulling the threads together, here is what seems reasonable based on the current evidence:

  • Treat the cause first: If you have an ulcer, getting tested for H. pylori and taking prescribed medications matters vastly more than any dietary change.
  • Watch concentrated sugary drinks: Sodas and sweetened juices can slow gastric emptying and prolong discomfort, especially during active ulceration.
  • Manage blood sugar if it’s elevated: Chronically high blood sugar impairs ulcer healing through multiple pathways. This applies to people with diabetes or prediabetes in particular.
  • Don’t obsess over moderate sugar in food: A piece of fruit or a spoonful of sugar in your coffee is not going to cause or meaningfully worsen an ulcer in someone receiving proper treatment.
  • Pay attention to your own symptoms: Tolerance is individual. If a particular food or drink consistently makes your stomach feel worse, skip it, whether or not research says it “should” be fine.

Sugar’s role in peptic ulcer disease is real but indirect. It doesn’t bore holes in your stomach lining the way H. pylori or NSAIDs do. But through effects on bacterial virulence, gut barrier integrity, microbial balance, and wound healing, a diet consistently loaded with refined sugar creates an environment where ulcers may be slightly more likely to take hold and noticeably slower to resolve. For most people, the practical message is not to fear sugar but to keep it in check, especially when an ulcer is active or blood sugar control is already a concern.