Last reviewed: February 2026

Stomach Inflamed lining Gastritis: Inflammation of stomach lining

🔴 What is Gastritis?

Gastritis is inflammation, irritation, or erosion of the stomach lining (mucosa). The stomach lining contains glands that produce stomach acid and an enzyme called pepsin. Normally, a thick mucus barrier protects this lining from the digestive juices. When this barrier is weakened or damaged, inflammation can occur.

Gastritis can occur suddenly (acute gastritis) or develop gradually over time (chronic gastritis). It ranges from mild irritation to severe inflammation that can lead to ulcers or, rarely, increase the risk of stomach cancer.

🦠
H. pylori
Most common cause worldwide
💊
NSAIDs
Common cause in developed nations
🍺
Alcohol
Can erode stomach lining
Treatable
Most cases respond well

📋 Types of Gastritis

Acute Gastritis

Sudden, severe inflammation that comes on quickly. Causes include:

Chronic Gastritis

Long-term inflammation that develops gradually. Main types include:

Type Cause Characteristics
Type A (Autoimmune) Immune system attacks stomach cells Affects body of stomach; can lead to B12 deficiency and pernicious anemia
Type B (Bacterial) H. pylori infection Most common type worldwide; affects antrum primarily
Type C (Chemical) NSAIDs, bile reflux, alcohol Chemical irritation of stomach lining

Other Forms

Causes of Gastritis

Most Common Causes

Other Causes

Risk Factors

🔍 Symptoms of Gastritis

Gastritis symptoms can vary from person to person. Some people have no symptoms at all.

Common Symptoms

Symptoms That May Indicate Complications

  • Vomiting blood or material that looks like coffee grounds
  • Black, tarry stools (melena)
  • Severe abdominal pain
  • Unexplained weight loss
  • Symptoms that don't improve with treatment
Seek emergency care if you have: Vomiting blood, black tarry stools, or severe abdominal pain. These may indicate bleeding from the stomach.

🩺 Diagnosis

Diagnostic Tests

Test Purpose
Upper Endoscopy (EGD) Visualize stomach lining; take biopsies; most accurate diagnostic test
H. pylori Tests Breath test, stool test, or blood test to detect H. pylori
Blood Tests Check for anemia, H. pylori antibodies, or autoantibodies
Stool Test Check for blood in stool (occult blood) or H. pylori
Biopsy Examine tissue for inflammation, H. pylori, or precancerous changes

💊 Treatment

Treatment depends on the cause and severity of gastritis.

General Treatment Approaches

For H. pylori-Related Gastritis

Triple or quadruple therapy combining:

For NSAID-Related Gastritis

Medications

Medication Type Examples Action
PPIs Omeprazole, Pantoprazole, Esomeprazole Strongly reduce stomach acid production
H2 Blockers Famotidine, Ranitidine Reduce acid production (less potent than PPIs)
Antacids Tums, Mylanta, Maalox Neutralize existing acid; quick but short relief
Cytoprotective agents Sucralfate, Bismuth Protect stomach lining
Antibiotics Clarithromycin, Amoxicillin, Metronidazole Kill H. pylori bacteria

🥗 Diet and Lifestyle Management

Foods to Avoid or Limit

Foods That May Help

Lifestyle Recommendations

⚠️ Potential Complications

If left untreated, gastritis can lead to:

Most cases of gastritis improve quickly with treatment and don't lead to complications. The key is proper diagnosis and treatment of the underlying cause.

Frequently Asked Questions

How long does gastritis take to heal?
Acute gastritis may improve within days to weeks once the cause is removed. Chronic gastritis takes longer—typically 2-8 weeks of treatment for significant improvement. H. pylori treatment usually takes 10-14 days of antibiotics, but the stomach lining may take several more weeks to fully heal. Following your treatment plan and dietary recommendations helps speed recovery.
Can I drink coffee with gastritis?
Coffee can worsen gastritis symptoms because it stimulates acid production and can irritate an already inflamed stomach lining. It's generally recommended to avoid or significantly limit coffee during active gastritis. Some people find they can tolerate small amounts of low-acid coffee once healed, but this varies individually.
Is gastritis the same as an ulcer?
No, but they're related. Gastritis is inflammation of the stomach lining. An ulcer is an open sore that goes deeper into the lining. Gastritis can lead to ulcers if left untreated. They share similar causes (H. pylori, NSAIDs) and treatments (PPIs, antibiotics for H. pylori). Endoscopy can distinguish between them.
Can stress cause gastritis?
Severe physical stress (surgery, trauma, burns, critical illness) can cause "stress gastritis." Psychological stress alone doesn't directly cause gastritis but can worsen symptoms, increase acid production, and lead to behaviors (eating poorly, drinking more alcohol, taking more NSAIDs) that do cause gastritis.
Do I need to be tested for H. pylori?
Testing is recommended if you have symptoms of gastritis or ulcers, especially if the cause isn't obvious (like NSAID use). Testing is also recommended before starting long-term NSAID therapy and for people with a family history of stomach cancer. If you test positive, treatment can eradicate the infection and significantly improve outcomes.