Gastritis: What Causes Stomach Lining Inflammation?

Gastritis is inflammation of the stomach lining, and it ranges from a mild, temporary irritation that heals on its own to a chronic condition that quietly damages the stomach over years. The most common culprit worldwide is infection with a bacterium called Helicobacter pylori, though painkillers like ibuprofen and aspirin, the body’s own immune system, and a handful of rarer triggers also cause it. What makes gastritis tricky is that symptoms alone rarely tell you which type you have or how serious it is, and some of the most consequential forms produce no symptoms at all until significant damage has already occurred.

How the Stomach Normally Protects Itself

Your stomach produces acid strong enough to dissolve metal, yet its own walls survive this environment day after day. The reason is a thin but remarkably effective layer of mucus gel that coats the stomach lining. This gel, typically less than half a millimeter thick in humans, does two things at once: it physically blocks the digestive enzyme pepsin from reaching the delicate cells underneath, and it traps bicarbonate secreted by those same cells, creating a chemical gradient where the surface right next to the stomach wall stays close to a neutral pH even while the acid in the stomach’s open space drops to a pH around 1.0.1PubMed. Gastroduodenal mucus bicarbonate barrier: protection against acid and pepsin That means the hydrogen ion concentration at the acid side can be roughly a million times higher than at the surface of the cells it’s protecting.2PubMed. Protective Factors of the Gastric and Duodenal Mucosa: An Overview Prostaglandins, small signaling molecules produced locally, keep this system running by stimulating both mucus and bicarbonate production. When anything disrupts that protective barrier, acid and pepsin gain access to the lining, and inflammation follows.

The Most Common Causes

H. pylori Infection

Helicobacter pylori is a spiral-shaped bacterium that burrows into the mucus layer and colonizes the stomach lining, sometimes for decades without obvious symptoms. Its discovery in the early 1980s by Robin Warren and Barry Marshall overturned the long-held belief that stomach ulcers were caused mainly by stress or diet.3PubMed Central. Helicobacter pylori–a Nobel pursuit? The bacterium produces enzymes that neutralize acid in its immediate surroundings, letting it survive in the stomach. It also injects proteins into host cells that manipulate their behavior. One protein, called CagA, actually blocks a cell-death pathway triggered by another of the bacterium’s own toxins, effectively keeping the infected cells alive so the infection can persist.4PLoS Pathogens. Helicobacter pylori Counteracts the Apoptotic Action of Its VacA Toxin by Injecting the CagA Protein into Gastric Epithelial Cells The chronic inflammation this causes is the starting point for a well-documented chain of tissue changes that can eventually lead to stomach cancer, discussed further below.

Painkillers and Anti-Inflammatory Drugs

Non-steroidal anti-inflammatory drugs, the category that includes ibuprofen, naproxen, and aspirin, are the second most common cause of gastritis. These drugs work by blocking enzymes called cyclooxygenases (COX-1 and COX-2), which reduces pain and inflammation elsewhere in the body. The problem is that COX-1 is also the enzyme responsible for producing the prostaglandins that keep the stomach’s protective mucus and bicarbonate flowing. Blocking COX-1 alone cuts prostaglandin production and triggers abnormal stomach contractions that increase the lining’s permeability and allow immune cells and damaging free radicals to flood in.5PubMed Central. Pathogenesis of NSAID-induced gastric damage: importance of cyclooxygenase inhibition and gastric hypermotility Selective COX-2 inhibitors were designed to spare the stomach, and individually they cause less damage. But research has shown that blocking both COX-1 and COX-2 simultaneously produces gastric lesions even when neither drug alone does, which is why combining different anti-inflammatory drugs is particularly risky for the stomach.6PubMed Central. Pathogenesis of NSAID-induced gastric damage: importance of cyclooxygenase inhibition and gastric hypermotility

Autoimmune Gastritis

In autoimmune gastritis, the immune system targets the parietal cells of the stomach, which are the cells responsible for producing acid and a protein called intrinsic factor that’s needed to absorb vitamin B12. The attack is driven by antibodies directed against an enzyme on parietal cells known as H+/K+ ATPase, the proton pump that generates stomach acid.7PubMed Central. Improving the Diagnosis of Autoimmune Gastritis: From Parietal Cell Antibodies to H+/K+ ATPase Antibodies Over time, these cells are destroyed, and the acid-producing region of the stomach atrophies.8PubMed Central. Unraveling the Mysteries of Autoimmune Gastritis This form of gastritis tends to develop silently. People often discover it only after blood tests reveal anemia or low B12 levels, or after biopsies taken for another reason show the characteristic tissue changes. Diagnosis rests on a combination of blood markers: antibodies to parietal cells and intrinsic factor, elevated gastrin levels (because the stomach tries to compensate for low acid), and altered pepsinogen levels reflecting the loss of acid-producing tissue.9PubMed. Diagnosis and classification of autoimmune gastritis

Other Triggers

Bile reflux, where bile from the small intestine flows backward into the stomach, can cause a distinct form of inflammation called chemical gastropathy. One study of patients who had undergone therapeutic biliary procedures found bile reflux gastropathy in about one in five, with obesity, diabetes, and elevated gastric bilirubin as risk factors.10PubMed Central. Bile reflux gastropathy: Prevalence and risk factors after therapeutic biliary interventions Severe physiological stress, the kind that comes with critical illness, major surgery, or extensive burns, can also damage the stomach lining. In intensive care patients, this stress-related mucosal disease can cause ulceration and bleeding serious enough to extend hospital stays and increase the risk of death.11PubMed Central. Pathophysiology and prophylaxis of stress ulcer in intensive care unit patients Alcohol is another well-known irritant, and heavy use can produce an acute form of gastritis.

Symptoms and the Diagnostic Challenge

Gastritis symptoms overlap heavily with other upper-gut conditions: a burning or gnawing ache in the upper abdomen, nausea, bloating, a sense of fullness after small meals, and sometimes vomiting. The frustrating reality is that neither a doctor’s clinical impression nor computerized models that account for demographics, risk factors, and symptom patterns can reliably distinguish gastritis and other structural stomach problems from functional dyspepsia, where the stomach looks normal but still produces symptoms.12JAMA. Can the Clinical History Distinguish Between Organic and Functional Dyspepsia? That’s why diagnosis usually requires looking directly at the stomach lining.

Endoscopy with biopsy remains the gold standard. The Updated Sydney System, an internationally used framework, standardizes how pathologists evaluate and grade gastritis by combining the location, the microscopic appearance, and the likely cause into a single diagnosis.13PubMed. Classification and grading of gastritis. The updated Sydney System Multiple biopsies are taken from different parts of the stomach because inflammation can be patchy. Studies confirm a strong relationship between what the endoscopist sees visually and what the pathologist finds under the microscope, though biopsy adds detail that the naked eye misses.14PubMed Central. Helicobacter pylori chronic gastritis updated Sydney grading in relation to endoscopic findings and H. pylori IgG antibody

When the main question is whether H. pylori is present, non-invasive tests can sometimes replace endoscopy. The stool antigen test and the urea breath test both perform well, with the stool antigen test reaching a sensitivity around 96% and the breath test around 89% in one head-to-head comparison.15PubMed Central. Diagnostic values of Helicobacter pylori diagnostic tests: stool antigen test, urea breath test, rapid urease test, serology and histology Blood antibody tests are far less reliable, because antibodies can linger long after the infection has been cleared. In patients with chronic atrophic gastritis, a setting where the stomach’s altered environment can reduce bacterial load and make detection harder, a newer monoclonal stool antigen test still maintained specificity above 95%, suggesting it remains useful even in that population.16PubMed Central. Monoclonal stool antigen test for diagnosing Helicobacter pylori in chronic atrophic gastritis

Treatment Approaches

Killing H. pylori

If H. pylori is the cause, the treatment is a combination of antibiotics taken with an acid-suppressing drug, usually for 10 to 14 days. The standard first-line option has been a triple regimen containing two antibiotics and a proton pump inhibitor (PPI). Quadruple regimens add a bismuth compound and are used when resistance to clarithromycin or metronidazole is common in a region. Antibiotic resistance is the single biggest barrier to success. A meta-analysis found that clarithromycin resistance had a larger impact on treatment failure than metronidazole resistance, and that quadruple therapies combining both antibiotics consistently cleared more than 80% of infections even in resistant cases.17PubMed. Meta-analysis: the effect of antibiotic resistance status on the efficacy of triple and quadruple first-line therapies for Helicobacter pylori When metronidazole resistance is present, however, even quadruple therapy takes a hit, and a study found cure rates dropping from 98% in sensitive strains to 82% in resistant ones.18PubMed Central. Influence of metronidazole resistance on efficacy of quadruple therapy for Helicobacter pylori eradication This is why guidelines increasingly recommend checking local resistance patterns before picking a regimen.

Acid Suppression

Reducing stomach acid gives the inflamed lining time to heal. Proton pump inhibitors like omeprazole and esomeprazole have been the workhorses here for decades. A newer class of drugs called potassium-competitive acid blockers (PCABs), such as vonoprazan, act faster and produce more consistent acid suppression. In head-to-head comparisons, PCABs were better at healing erosive esophagitis than PPIs.19PubMed Central. Comparison of Potassium-Competitive Acid Blockers and Proton Pump Inhibitors in Patients With Gastroesophageal Reflux Disease For gastric ulcer healing specifically, though, one meta-analysis found no clear difference between the two classes.20PubMed Central. A comparison of efficacy and safety of potassium-competitive acid blocker and proton pump inhibitor in gastric acid-related diseases Where vonoprazan may show a distinct edge is when combined with antibiotics for H. pylori eradication: one trial found that vonoprazan-based quadruple therapy achieved effectiveness in about 87% of patients compared with roughly 68% on an esomeprazole-based regimen.21Pakistan Journal of Health Sciences. Effectiveness of 2 Weeks Administration of Potassium Competitive Acid Blocker vs Proton Pump Inhibitor Therapy in Patients with H. pylori Induced Gastritis in Pakistan

Mucosal Protectants

Some medications work not by suppressing acid but by strengthening the stomach’s own defenses. Rebamipide, widely used in parts of Asia, boosts prostaglandin production, scavenges free radicals, and increases mucin output.22PubMed Central. Rebamipide in gastric mucosal protection and healing: An Asian perspective In a multicenter trial comparing rebamipide to sucralfate in chronic erosive gastritis, rebamipide produced a larger drop in both symptom scores and endoscopic inflammation scores over eight weeks, along with a measurable increase in prostaglandin levels in the stomach lining.23PubMed. Anti-inflammatory effects of rebamipide according to Helicobacter pylori status in patients with chronic erosive gastritis A real-world study found that rebamipide alone achieved a symptom improvement rate of about 72%, with no meaningful difference when a PPI was added, suggesting it can serve as a standalone option for symptom relief in some patients.24PubMed Central. Real-World Effectiveness of Rebamipide on Gastritis Symptoms: A Patient-Focused Approach

When Gastritis Leads to Bigger Problems

The Precancerous Cascade

The reason chronic gastritis commands medical attention disproportionate to what you might expect from “stomach inflammation” is its relationship to gastric cancer. The progression, often called the Correa cascade after the researcher who described it, follows a stepwise pattern: chronic inflammation leads to atrophic gastritis (loss of normal glands), which progresses to intestinal metaplasia (the stomach lining starts to resemble intestinal tissue), then to dysplasia (abnormal cell growth), and finally to invasive cancer.25PubMed Central. The gastric precancerous cascade Each step increases the risk, and each step is potentially arrestable. This is exactly why finding and treating H. pylori matters even in people who feel fine: eliminating the infection removes the inflammatory driver that pushes the cascade forward.

Nutritional Deficiencies in Autoimmune Gastritis

When autoimmune gastritis destroys enough parietal cells, two nutritional problems emerge. The better-known one is vitamin B12 deficiency, because intrinsic factor, which is made by those same parietal cells, is required for B12 absorption in the small intestine. Severe, untreated B12 deficiency produces a condition called pernicious anemia.26PubMed Central. Autoimmune gastritis The less recognized but equally common consequence is iron deficiency. Stomach acid is needed to convert dietary iron into a form the body can absorb, and without enough acid, iron absorption drops.27PubMed Central. Micronutrient deficiencies in patients with chronic atrophic autoimmune gastritis: A review Iron deficiency anemia often shows up years before B12 deficiency does, which means an unexplained iron deficiency in someone who eats an adequate diet is sometimes the first clue that autoimmune gastritis is at work.

Diet, Lifestyle, and Symptom Flares

Diet does not cause gastritis in the way that H. pylori or NSAIDs do, but eating patterns clearly influence how bad the symptoms get. A cross-sectional study of chronic gastritis patients found that irregular mealtimes, irregular portion sizes, barbecued foods, and snacks were the factors most strongly linked to stomach pain and bloating. Salty foods and sweets were associated with nearly every type of dyspeptic symptom studied. For men, alcohol, barbecue, and spicy foods tracked with all symptoms, while for women sweets were the standout dietary trigger.28PubMed Central. Association of Symptoms with Eating Habits and Food Preferences in Chronic Gastritis Patients Eating out in restaurants was also associated with more symptoms, likely because restaurant food tends to be higher in fat, salt, and spices than home-cooked meals.

Practical advice for managing symptoms usually centers on eating smaller, more regular meals; limiting fried and heavily seasoned foods; cutting back on alcohol; and avoiding eating close to bedtime. None of these measures treat the underlying inflammation, but they can reduce the load on an already compromised stomach lining.

Genetic Susceptibility

Two people can carry the same strain of H. pylori and have completely different outcomes: one develops nothing more than mild inflammation, while the other progresses to atrophy and intestinal metaplasia. Part of the explanation lies in variations in genes that control the inflammatory response. A study of H. pylori-infected patients found that a variant in the interleukin-1B gene was significantly more common in those who had progressed to chronic gastritis, atrophy, metaplasia, or even early cancer compared to the general population.29PubMed Central. Interleukin-1 gene polymorphisms in chronic gastritis patients infected with Helicobacter pylori as risk factors of gastric cancer development Similar findings have turned up for variants in genes for interleukin-8 and a molecule called MIF, both of which amplify inflammation. Carrying the higher-risk version of the interleukin-8 gene more than doubled the odds of developing severe atrophic gastritis in one study.30PubMed Central. Inflammatory cytokine gene polymorphisms increase the risk of atrophic gastritis and intestinal metaplasia This genetic variability helps explain why gastric cancer clusters in some families and some ethnic populations, and it suggests that personalized screening strategies could one day identify the people who need the most aggressive follow-up after an H. pylori diagnosis.

Gastritis in Children and Older Adults

H. pylori gastritis occurs at every age, but it behaves differently at the extremes. In children, diagnosis is trickier because the standard approach is to test only when symptoms justify it, not to screen broadly. The antibiotic choices are more limited, the reinfection rate is higher, and some children spontaneously clear the infection, which complicates the decision about when treatment is worthwhile.31PubMed Central. Diagnosis and treatment of Helicobacter pylori infections in children and elderly populations In older adults, the challenges shift: drug tolerance is poorer, side effects hit harder, and interactions with other medications are more common.

Children also develop forms of gastritis that are uncommon in adults. Collagenous gastritis, a rare immune-mediated condition, looks very different depending on age. In children it typically shows up as stubborn iron-deficiency anemia and abdominal pain, with disease limited to the stomach. In adults the same condition more often causes chronic watery diarrhea and tends to involve the colon as well as the stomach.32PubMed Central. Collagenous gastritis: current understanding of a rare immune-mediated gastropathy across pediatric and adult phenotypes

The Gastric Microbiome Beyond H. pylori

For decades the stomach was considered nearly sterile apart from H. pylori. That view has changed. Sequencing studies now reveal a diverse bacterial community in the stomach, including oral bacteria like Prevotella, Peptostreptococcus, and Actinomyces, some of which may contribute to inflammatory changes early in the cascade toward cancer.33PubMed Central. Stomach Gastric Microbiota in a Low–Helicobacter pylori Prevalence General Population and Their Associations With Gastric Lesions Interestingly, people without H. pylori tend to have greater bacterial diversity in their stomachs than those colonized by it, because H. pylori appears to dominate and suppress other species.

Research from South Korea identified Propionibacterium acnes and Prevotella copri as overrepresented in gastric cancer patients compared to healthy controls. Lactic acid bacteria, including species of Streptococcus, Lactobacillus, and Bifidobacterium, also appear in higher numbers in cancer tissue, and animal models suggest that specific combinations of gut bacteria can drive precancerous changes in the stomach through inflammatory pathways.34PubMed Central. The role of non-Helicobacter pylori bacteria in the pathogenesis of gastroduodenal diseases This line of research is still early, but it raises the possibility that gastritis prevention and management might eventually involve the broader microbial ecosystem, not just H. pylori.

Eosinophilic Gastritis and Other Rare Forms

Not all gastritis fits into the neat categories of infection, drugs, or autoimmunity. Eosinophilic gastritis is an uncommon immune-mediated condition in which a specific type of white blood cell, the eosinophil, accumulates in the stomach wall. Biopsy specimens can show strikingly high numbers, sometimes over 100 eosinophils per high-power field under the microscope.35PubMed Central. Asymptomatic Eosinophilic Infiltration with Endoscopic and Histological Findings Consistent with Eosinophilic Gastritis The condition tends to wax and wane, and severe cases can cause gastric outlet obstruction if the inflammation thickens the stomach wall enough to narrow the passage to the small intestine.36PubMed Central. Chronic Eosinophilic Gastritis Presenting as Gastric Outlet Obstruction in a Young Man Some cases respond to dietary elimination of common allergens, while others require corticosteroids or newer biologic therapies. Because eosinophilic gastritis is uncommon and its endoscopic appearance can mimic other conditions, including cancer, biopsy is essential for accurate diagnosis.