Examination of the stomach with an endoscope (esophagogastroduodenoscopy or EGD) with biopsy of stomach lining
H pylori tests (breath test or stool test)
Stool test to check for small amounts of blood in the stools, which may be a sign of bleeding in the stomach
Treatment
Treatment depends on what is causing the problem. Some of the causes will go away over time.
You may need to stop taking aspirin, ibuprofen, naproxen, or other medicines that may be causing gastritis. Always talk to your health care provider before stopping any medicine.
You may use other over-the-counter and prescription drugs that decrease the amount of acid in the stomach, such as:
Antacids
H2 antagonists: famotidine (Pepcid), cimetidine (Tagamet), and nizatidine (Axid)
Newer acid blockers called potassium-competitive acid blockers (PCABs) (such as vonoprazan)
Antibiotics may be used to treat gastritis caused by infection with Helicobacter pylori bacteria. They are taken with an acid blocker such as a PPI or PCAB.
Outlook (Prognosis)
The outlook depends on the cause, but is often very good.
Possible Complications
Blood loss and increased risk for gastric cancer can occur.
When to Contact a Medical Professional
Contact your provider if you develop:
Pain in the upper part of the belly or abdomen that does not go away
Black or tarry stools
Vomiting blood or coffee-ground-like material
Prevention
Avoid long-term use of substances that can irritate your stomach such as aspirin, anti-inflammatory drugs, or alcohol.
References
Feldman M, Jensen PJ, Howden CW. Gastritis and gastropathy. In: Feldman M, Friedman LS, Brandt LJ, eds. Sleisenger and Fordtran's Gastrointestinal and Liver Disease. 11th ed. Philadelphia, PA: Elsevier; 2021:chap 52.
Review Date:
1/24/2025
Reviewed By:
Jenifer K. Lehrer, MD, Gastroenterologist, Philadelphia, PA. Review provided by VeriMed Healthcare Network. Also reviewed by David C. Dugdale, MD, Medical Director, Brenda Conaway, Editorial Director, and the A.D.A.M. Editorial team.