Soda does not cause stomach or duodenal ulcers. The two dominant causes of peptic ulcers are infection with the bacterium Helicobacter pylori and the use of nonsteroidal anti-inflammatory drugs like ibuprofen and aspirin. But that clean answer hides a messier reality: several things in a can of soda, from its acidity and carbonation to its caffeine and sugar, can irritate an already damaged stomach lining, slow healing, and worsen the symptoms that make ulcers miserable to live with.
What Actually Causes Peptic Ulcers
For decades, spicy food, stress, and acidic drinks took the blame for ulcers. That story fell apart in the 1980s when researchers identified H. pylori as the primary culprit behind most peptic ulcers. The bacterium burrows into the mucus layer protecting the stomach lining and triggers chronic inflammation that erodes the tissue underneath. The other major cause is regular use of NSAIDs, which work by blocking cyclooxygenase enzymes. Those same enzymes help maintain the stomach’s protective mucus and blood flow, so suppressing them weakens the gut’s defenses from the inside out.1PubMed Central. Nonsteroidal Anti-Inflammatory Drug-Induced Peptic Ulcer Disease Between these two causes, the vast majority of ulcers are accounted for. Soda, coffee, alcohol, and other dietary irritants sit further down the list as aggravating factors rather than root causes.
How the Stomach Normally Protects Itself
Your stomach produces hydrochloric acid with a pH around 1.5 to 2, far more acidic than any soda. It tolerates this because of a sophisticated defense system: a thick layer of mucus gel lines the stomach wall, and cells embedded in that lining secrete bicarbonate, which neutralizes acid as it seeps inward. The result is a steep pH gradient, with near-neutral conditions right at the surface of the cells even while the stomach’s interior is intensely acidic.2PubMed. Gastroduodenal mucus bicarbonate barrier: protection against acid and pepsin When this barrier is intact, a glass of cola barely registers. When it is compromised, by H. pylori infection, NSAID use, or chronic inflammation, even modest additional acid or irritation can matter.
This is the key context for understanding soda’s effects: soda interacts with a stomach that is either healthy and well-defended or already vulnerable. In a healthy gut, the carbonation and acidity of a soda are handled with ease. In a gut where the mucosal barrier has been thinned or breached, those same properties become relevant irritants.
Soda’s Acidity in Perspective
Most people know soda is acidic, but the numbers still surprise. A survey of 380 commercial beverages found that 95 sodas had pH values ranging from about 2.3 to 5.2, with an average around 3.1. Some of the most popular colas landed below 2.4: RC Cola at 2.32, Coca-Cola Classic at 2.37, and Pepsi at 2.39.3PubMed Central. The pH of beverages available to the American consumer That is roughly the same acidity as vinegar or lemon juice. Phosphoric acid (in colas) and citric acid (in citrus-flavored sodas) are responsible for these low readings.
Still, your stomach’s own acid is considerably stronger. Under normal conditions, gastric acid sits at a pH well below 2. So the acid in soda is not introducing something the stomach has never seen. The concern is incremental: if you already have an ulcer or significant gastritis, adding extra acid on top of what your body is already producing gives the damaged tissue less of a break. It is not that soda acid eats through your stomach; it is that it adds to an already hostile environment at the very spot where healing needs to happen.
What Carbonation Does Inside Your Stomach
Carbon dioxide dissolved in water forms carbonic acid, a weak acid that contributes modestly to the overall acidity. But the bigger effect of carbonation is mechanical. When COâ‚‚ comes out of solution in your stomach, the expanding gas stretches the stomach wall. One study found that carbonated water caused the upper part of the stomach to retain a greater proportion of both solids and liquids compared to still water, with about 74% of solid meal content remaining in the upper stomach versus 56% with flat water.4PubMed. Effect of carbonated water on gastric emptying and intragastric meal distribution This distension is what produces that bloated, full feeling after drinking a can of sparkling anything.
For someone with a healthy stomach, this distension is harmless and temporary. For someone with an active ulcer, the stretching can increase discomfort and may stimulate additional acid release, since gastric distension is one of the body’s natural triggers for acid secretion. A review of the research noted that symptoms linked to mechanical distress generally appeared when people drank more than about 300 milliliters of a carbonated fluid, roughly the size of a small can.5PubMed. Carbonated beverages and gastrointestinal system: between myth and reality Another study measured the short-term stomach distension after carbonated drinks and found that while the cross-sectional area of the lower stomach increased during the first 20 minutes, overall gastric emptying rates were not significantly different from flat drinks.6PubMed. No influence of carbonation on glycemic response, gastric emptying, and satiety of sweetened drinks In practical terms, carbonation balloons the stomach temporarily but does not trap food there longer.
Caffeine and Acid Secretion
Many popular sodas contain caffeine, and caffeine has a well-documented ability to increase stomach acid output. Research going back to the 1970s established this, though the story has an interesting wrinkle: decaffeinated coffee stimulates acid secretion nearly as much as regular coffee, suggesting that other compounds in coffee and cola matter too.7PubMed. Gastric acid secretion and lower-esophageal-sphincter pressure in response to coffee and caffeine More recent work has shown that caffeine activates bitter taste receptors on cells in the stomach lining, triggering acid production through a signaling pathway involving an enzyme called adenylyl cyclase.8PubMed Central. Caffeine induces gastric acid secretion via bitter taste signaling in gastric parietal cells
For a person without an ulcer, this bump in acid secretion is part of normal digestion and usually causes no problems. For someone whose stomach lining is already eroded, more acid means more contact between that acid and exposed tissue. If you are managing an ulcer or are on acid-suppressing medication, caffeinated sodas work against your treatment by pushing acid levels back up. Switching to a caffeine-free option removes at least one source of that stimulus, though the acidity and carbonation remain.
The GERD Overlap
Gastroesophageal reflux disease and peptic ulcers are different conditions, but they share enough symptoms (burning pain, nausea, worsening after meals) that many people experience both or confuse one for the other. Soda’s effects on reflux are relevant here because chronic acid reflux can irritate the esophagus and the junction where the esophagus meets the stomach, compounding ulcer-related discomfort.
Carbonated beverages significantly weaken the lower esophageal sphincter, the muscular ring that keeps stomach contents from splashing back up into the esophagus. In one study of healthy subjects, the sphincter pressure dropped from a baseline of about 40 millimeters of mercury to roughly 18 after drinking a carbonated beverage, compared to 34 after plain water.9PubMed. Ingestion of a carbonated beverage decreases lower esophageal sphincter pressure and increases frequency of transient lower esophageal sphincter relaxation in normal subjects Another study found that all carbonated drinks tested produced a sustained reduction of 30 to 50 percent in sphincter strength over 20 minutes, and in the majority of participants the sphincter weakened enough to reach levels normally considered diagnostic of incompetence.10PubMed. Response of the lower esophageal sphincter to gastric distention by carbonated beverages Tap water did not produce the same effect. For anyone dealing with an ulcer near the top of the stomach or already prone to reflux, this is a practical problem: soda makes it easier for acid to travel where it should not go.
Soft Drinks and H. pylori Infection
A more unexpected angle involves the relationship between soda consumption and H. pylori itself. A study of 269 individuals found that soft drink consumers were about four times more likely to test positive for H. pylori infection than non-consumers, even after adjusting for other variables.11PubMed. On the association between soft drink consumption and Helicobacter pylori infection A cross-sectional study in China similarly found that carbonated drink consumption was associated with roughly double the odds of H. pylori infection after adjusting for factors like education, hygiene habits, and diet.12Scientific Reports. Epidemiological surveys, antibiotic resistance, and related risk factors of Helicobacter pylori in Quanzhou, China: a cross-sectional study
These are observational studies, and they cannot prove that soda itself causes the infection. People who drink a lot of soda may also have other dietary or lifestyle patterns that increase exposure to H. pylori. It is also possible that changes soda produces in stomach acidity or the gut microbiome create a more hospitable environment for the bacterium. The evidence is suggestive rather than conclusive, but the association has appeared consistently enough to be worth noting. If you are trying to clear an H. pylori infection with antibiotics, heavy soda consumption is probably not helping your odds.
Sugar, High-Fructose Corn Syrup, and Gut Inflammation
A regular 12-ounce can of soda contains roughly 35 to 45 grams of sugar, most of it in the form of high-fructose corn syrup in the United States or sucrose elsewhere. Beyond the well-known metabolic effects, high sugar intake appears to promote low-grade inflammation in the gut. Animal research has shown that long-term high-fructose corn syrup consumption altered the gut microbiome in ways linked to increased inflammation, including a decrease in bacterial groups associated with lower body fat and reduced inflammatory markers.13npj Science of Food. Effects of high fructose corn syrup on intestinal microbiota structure and obesity in mice
The relevance to ulcers is indirect but real. Chronic gut inflammation weakens the same mucosal defenses that protect against ulcer formation and slow the healing of existing ones. A diet high in sugar also feeds into metabolic syndrome, which itself is associated with increased rates of gastrointestinal problems. While no study has drawn a clean line from soda sugar to ulcer incidence, the inflammatory environment created by habitual high-sugar consumption is the opposite of what a healing stomach needs.
Does Diet Soda Sidestep the Problem?
Switching to diet soda removes the sugar but keeps the acidity, carbonation, and usually the caffeine. That trade-off eliminates the sugar-driven inflammation pathway, which is real, but leaves the mechanical and chemical irritants intact. Diet sodas tend to have similar pH values to their sugared counterparts because the acidity comes from phosphoric and citric acid, not from sweeteners.
Artificial sweeteners bring their own questions. A review of laboratory, animal, and human research found that artificial sweeteners can alter the composition and abundance of gut microbes, though the effects are complex and sometimes contradictory across different studies and different sweeteners.14PubMed. A critical review on effects of artificial sweeteners on gut microbiota and gastrointestinal health Whether these microbiome shifts have meaningful consequences for someone with a peptic ulcer is genuinely unclear. The research is too young and too varied to make strong claims in either direction. What can be said is that diet soda is not a neutral swap from an ulcer standpoint; it is a different set of trade-offs rather than a clean solution.
Practical Advice If You Have an Ulcer
The medical treatment for a peptic ulcer involves acid-suppressing drugs (usually proton pump inhibitors), and, if H. pylori is present, a course of antibiotics to eradicate the infection. Dietary changes alone will not cure an ulcer, and no amount of avoiding soda will compensate for skipping proper treatment. That said, what you drink during the healing period can either help or hinder the process.
If you are on a proton pump inhibitor to reduce acid and simultaneously drinking several caffeinated colas a day, you are partially counteracting the medication. If the carbonation is causing bloating and pain, your body is giving you direct feedback. If you are prone to reflux, soda is measurably loosening the valve that keeps acid out of your esophagus. None of these effects will create an ulcer from scratch, but all of them can slow recovery and make symptoms worse.
Water, herbal teas without caffeine, and low-acid drinks are the gentlest options during active ulcer treatment. If cutting soda entirely feels unrealistic, small volumes of flat, caffeine-free soda are a reasonable middle ground. The 300-milliliter threshold for carbonation-related gastric distress suggests that keeping servings small matters more than eliminating carbonation completely.
Young People and Eating Patterns
Adolescents and young adults tend to drink more soda than older age groups and are also increasingly showing up with gastritis, the inflammation that can precede ulcer formation. A study of early adolescents in Indonesia found that poor eating patterns were a strikingly strong risk factor for gastritis, with irregular meals and frequent consumption of irritating foods and beverages far outpacing even stress as a predictor.15Malaysian Journal of Medical Research. Unhealthy Mind, Unhealthy Gut: The Impact of Stress and Eating Patterns on Gastritis in Early Adolescents in Depok, Indonesia Soda was part of a broader dietary pattern rather than the sole driver, but it is one of the most consumed items in that pattern.
For younger people, the concern is less about an active ulcer and more about chronic, low-level irritation that accumulates over years. A teenager drinking two or three sodas daily is bathing their stomach lining in extra acid, caffeine, and sugar at an age when dietary habits tend to solidify. The stomach is resilient, but resilience has limits, and the habit sets a baseline that often continues into adulthood when other risk factors like NSAID use and stress begin to stack up.
Common Misconceptions Worth Clearing Up
One persistent belief is that the carbonation in soda literally “eats through” your stomach. It does not. Carbonic acid is a weak acid that dissipates quickly, and the stomach’s bicarbonate defense system handles it without difficulty in a healthy gut. The mechanical stretching from gas release is the more meaningful effect of carbonation, not its acidity.
Another misconception is that milk is the ideal soda substitute for ulcer patients. Milk temporarily buffers stomach acid, creating brief relief, but it also stimulates further acid production as it is digested. The net effect is that milk may actually increase acid exposure over a few hours, making it a less helpful choice than many people assume.
Finally, some people believe that because soda does not cause ulcers, it is completely harmless to drink during ulcer treatment. The evidence paints a more nuanced picture. Soda delivers a combination of acidity, caffeine, carbonation, and sugar that individually would be minor stressors but together represent a meaningful load on a stomach that is trying to repair itself. Saying soda is “fine” because it did not cause the ulcer is a bit like saying rain is “fine” for a roof with a hole in it because rain did not put the hole there.