What Is Gastritis?

Gastritis is when your stomach lining becomes inflamed. Many people with gastritis don’t have symptoms. Among those who do, symptoms can include nausea, vomiting, bloating, indigestion, or heartburn.
This common condition can be acute (meaning it has a sudden onset) or chronic (meaning it develops gradually). In either case, there are many treatment options for gastritis, such as medication and lifestyle changes, that may alleviate symptoms.
Types of Gastritis
Gastritis is classified according to how long you’ve had symptoms and what the underlying cause is.
Acute vs. Chronic Gastritis
- Acute gastritis is a sudden and temporary condition characterized by inflammation and irritation, which may include shallow breaks in the stomach lining. It often leads to a noticeable upset stomach or bowel problems, but these symptoms often get better on their own in a few days.
- Chronic gastritis is a persistent, long-term inflammatory condition that deteriorates the stomach lining over time. Left untreated, certain types of inflammation may result in gastric adenocarcinoma, a type of stomach cancer. It can be caused by a number of factors, including frequent and long-term use of nonsteroidal anti-inflammatory drugs (NSAIDs), Helicobacter pylori (H. pylori) infection, extreme stress, smoking, and autoimmune diseases.
Erosive vs. Nonerosive Gastritis
- Erosive gastritis: When the illness wears away at your stomach lining, leaving ulcers
- Nonerosive gastritis: When the illness doesn’t eat away at your stomach lining, but instead causes irritation, such as reddening. It may also lead to atrophy (thinning) of the stomach lining, which can cause digestive problems.
Other Ways to Classify Gastritis
Sometimes you may hear gastritis categorized based on cause.
- Infectious gastritis: A type of gastritis induced by bacteria, viruses, parasites, or fungi
- Reactive or chemical gastritis: A form of gastritis triggered by drugs (typically NSAIDs), alcohol, or bile reflux (when bile from the small intestine flows backward into the stomach or esophagus rather than flowing as usual into the small intestine)
- Autoimmune gastritis: A type of gastritis caused by an autoimmune disorder and the resulting dysfunction of gastric acid secretion
- Eosinophilic gastritis: A rare, chronic disease caused by an overproduction of white blood cells called eosinophils, which can lead to inflammation and damage in the stomach. Eosinophilic gastritis is often associated with allergies.
Signs and Symptoms of Gastritis
- A loss of appetite or feeling full quickly when eating
- Nausea and vomiting
- Indigestion, which can feel like a burning sensation in the belly that heightens after eating
- Bloating and abdominal pain
- Hiccups and belching
- Dark blood in your vomit or black, tarry stools, which can indicate the stomach lining is bleeding
- Unexplained weight loss
- Anemia
Causes and Risk Factors of Gastritis
Gastritis can be caused by several factors, including:
- Bacterial and Viral Infections Infection caused by the bacteria H. pylori is overwhelmingly the most common cause of chronic gastritis. Other bacteria, viruses, parasites and fungus can cause gastritis, too.
- Long-Term Use of NSAIDs NSAID pain relievers like ibuprofen and naproxen sodium can damage the stomach lining and lead to gastritis if taken often for an extended period of time.
- Extreme Stress Stress due to bodily trauma, severe illness, major surgery, or untreated chronic depression can lead to gastritis.
- Alcohol and Cigarettes Drinking too much alcohol and smoking both can irritate the stomach lining.
- Drug Use Recreational drugs, such as cocaine, can also cause gastritis.
- Chemotherapy and Radiation Gastritis is a potential side effect of cancer treatments like chemotherapy or radiation therapy.
- Acidic Beverages Drinking too much coffee or other acidic beverages can irritate the stomach lining.
- Autoimmune Disease Certain autoimmune conditions, such as celiac disease and Crohn’s disease, cause inflammation in the digestive tract.
- Food Allergies An abnormal immune response to certain foods can cause a rare type of gastritis known as eosinophilic gastritis. As mentioned, people with this condition experience a buildup of eosinophils, which can lead to inflammation and damage in the stomach.
- Older Age Older adults are at an increased risk of gastritis because the stomach lining often gets thinner with age. In addition, common causes of gastritis, such as H. pylori infection and autoimmune disorders, are usually more severe in older adults than in younger adults.
- Bile Reflux This occurs when bile, a bodily fluid that helps break down food in the small intestine, comes back up into the esophagus and stomach, damaging the stomach lining. Bile reflux is a common side effect in people who have just had weight loss surgery or other types of surgery that remove part of the stomach.
How Is Gastritis Diagnosed?
- Upper endoscopy exam: An endoscopy is a procedure in which a long, thin tube with a tiny camera is passed down the GI tract from the throat and into the esophagus to examine the stomach and small intestine. Using the endoscope, your doctor will look for signs of inflammation and conduct a biopsy (removing a small tissue sample from your stomach) to test it for specific bacteria and viruses.
- Breath or stool tests: Breath or stool tests can detect H. pylori. During a breath test, individuals drink a glass of clear, tasteless liquid that contains radioactive carbon, which is broken down by H. pylori bacteria. They then blow into a bag, which is sealed afterward. Those with an H. pylori infection will have radioactive carbon present in the bag. Your medical team may also collect a stool sample to test for bacteria that can cause gastritis. These tests can also check for blood in your stool, another potential indicator of gastritis.
- Blood tests: Although blood tests can’t actually diagnose gastritis, they can identify potential indicators of gastritis, such as a vitamin B12 deficiency.
Treatment and Medication Options for Gastritis
The best treatment options will depend on the root cause of your gastritis and may include one or a combination of the options below:
Medication for Gastritis
Medication options for gastritis include:
- Antibiotics If you have H. pylori infection in your digestive tract, your doctor will likely prescribe antibiotics, usually taken for 7 to 14 days.
- Proton Pump Inhibitors These medications reduce stomach acid production. They can be bought over-the-counter or with a prescription. They include esomeprazole (Nexium), lansoprazole (Prevacid), omeprazole (Prilosec), pantoprazole (Protonix), and rabeprazole (AcipHex).
- H2 Blockers H2 blockers decrease how much stomach acid is secreted by glands in your stomach lining. They include famotidine (Pepcid AC, Zantac 360), cimetidine (Tagamet), or nizatidine (Acid AR).
- Antacids These over-the-counter medications neutralize stomach acid, decreasing symptoms like heartburn and indigestion quickly, but they don’t treat ulcers. They include aluminum hydroxide (Amphojel), magnesium hydroxide (Phillips' Milk of Magnesia), calcium carbonate (Rolaids, Titralac, Tums), sodium bicarbonate (Alka-Seltzer), and aluminum hydroxide and magnesium hydroxide (Maalox, Mylanta). Antacids can lead to more side effects like constipation or diarrhea compared to PPIs and acid blockers.
Prevention of Gastritis
- Practice good hygiene. As mentioned, H. pylori infection is the most common cause of chronic gastritis. It can be prevented with good hygiene habits, including handwashing.
- Limit or avoid foods and beverages that irritate the stomach lining. Too much alcohol, caffeine, or spicy and acidic foods can cause stomach discomfort, and wear down your stomach lining when consumed in excess.
- Decrease use of NSAIDs. Be mindful of how often you use pain medications including aspirin, ibuprofen, and naproxen. Try not to use them long-term.
Lifestyle Changes for Gastritis
Certain lifestyle changes can make a big difference if you have gastritis. They include:
- Make dietary changes. If you don’t have symptoms, you may not have to change your diet. But if you do, pay attention to what you eat and how you feel afterward, as certain foods can be a trigger for gastritis symptoms. In general, try to avoid alcohol, coffee, carbonated drinks, acidic or spicy foods, ultra-processed or deep-fried foods and foods that are high in fat. If the root cause of your gastritis is celiac disease or food allergies, your doctor may refer you to a dietitian to create a nutrition plan for you.
- Reduce NSAID use. If long-term use of NSAIDs triggered your gastritis, your doctor may suggest you stop taking NSAIDs, take a lower dose, find a replacement medication for pain, or try taking it alongside a PPI.
- Quit smoking. Smoking cigarettes can irritate the stomach lining. Quitting can relieve symptoms of gastritis.
- Consider vitamin supplementation. If you have gastritis caused by an autoimmune condition, your doctor may recommend certain vitamin supplements to prevent anemia. Talk to your doctor about what kinds and how much you should take.
- Consider acupuncture. Some research suggests that acupuncture may lessen inflammation, protect the stomach lining, and improve quality of life among people with chronic gastritis. Research in this area has been limited, though, and more studies are needed to confirm these findings.
How Long Does Gastritis Last?
Complications of Gastritis
Untreated gastritis can worsen digestive health and may lead to issues such as:
- Peptic ulcer disease: Painful sores (ulcers) can form along the stomach lining and small intestine, exacerbating gastritis symptoms. These ulcers can be caused by H. pylori infection or overuse of NSAID medications.
- Gastric polyps: These small masses of cells can form along the stomach lining. Most times they’re harmless, but in rare cases they can develop into cancer. In rare instances, polyps can block the opening between the stomach and small intestine.
- Stomach bleeding: Ulcers can bleed, causing low red blood cell counts or anemia. When ulcers break through the stomach lining, stomach contents leak into the abdominal cavity, causing an infection called peritonitis, which is a surgical emergency.
- Anemia: Autoimmune gastritis can also cause malabsorption of vitamin B12, which can lead to pernicious anemia.
- Stomach cancer: Certain types of gastritis can increase the risk of developing tumors — benign or cancerous — in the stomach lining. Gastritis caused by H. pylori infection, for example, increases the risk of gastric mucosa-associated lymphoid tissue (MALT) lymphoma, a type of cancer. Researchers suggest that the bacteria converts substances in some foods into chemicals that cause DNA mutations in the stomach lining.
Research and Statistics: How Many People Have Gastritis?
The Takeaway
- Gastritis is an inflammation of the stomach lining that can be temporary (acute) or chronic.
- H. pylori infection and frequent, long-term NSAID use are the most common causes of gastritis.
- There are many treatment options for gastritis, including medication and lifestyle changes.
Common Questions & Answers
Resources We Trust
- Mayo Clinic: Gastritis Overview
- Cleveland Clinic: Gastritis
- Johns Hopkins Medicine: Gastritis
- BMJ Best Practice: Gastritis
- Mount Sinai: Gastritis
- Overview: Gastritis. InformedHealth.org. November 10, 2021.
- Gastritis. Medical University of South Carolina.
- Raza M et al. Atrophic Gastritis. StatPearls. July 24, 2023.
- Gastritis. Cleveland Clinic. July 14, 2023.
- Gut Feelings about Gastritis. NIH News in Health.
- Azer S et al. Gastritis. StatPearls. June 2024.
- Bernstein C et al. Chronic Gastritis. DynaMed. November 2024.
- Singh S et al. A Comprehensive Review of Upper Gastrointestinal Symptom Management in Autoimmune Gastritis: Current Insights and Future Directions. Cureus. August 13, 2023.
- Eosinophilic Gastritis. Cleveland Clinic. July 25, 2022.
- Gastritis: Symptoms and Causes. Mayo Clinic. February 14, 2024.
- Gastritis. Johns Hopkins Medicine.
- Gastritis. BMJ Best Practice.
- Azer Sa et al. Gastritis. StatPearls. June 22, 2024.
- Megha R et al. Stress-Induced Gastritis. StatPearls. April 2023.
- Gastritis. MedlinePlus. January 30, 2023.
- Gastritis. Mount Sinai.
- Symptoms and Causes of Gastritis and Gastropathy. NIH National Institute of Diabetes and Digestive and Kidney Diseases.
- Diagnosis of Gastritis and Gastropathy. National Institute of Diabetes and Digestive and Kidney Diseases.
- Gastritis: Diagnosis & treatment. Mayo Clinic. February 14, 2024.
- Gastritis. Cedars-Sinai.
- Gastritis: Diagnosis and Treatment. Mayo Clinic. February 14, 2024.
- H2 Blockers. MedlinePlus.
- Treatment of Gastritis and Gastropathy. National Institute of Diabetes and Digestive and Kidney Diseases.
- Haller E et al. Nutrition for Patients with Gastritis. University of Michigan Health. July 2023.
- Wang L et al. Complementary Replacement Therapy for Chronic Gastritis. Towards the Eradication of Helicobacter Pylori Infection - Rapid Diagnosis and Precision Treatment. September 6, 2023.
- Orgler E et al. Autoimmune Gastritis: Update and New Perspectives in Therapeutic Management. Current Treatment Options in Gastroenterology. March 2, 2023.
- Peptic ulcer disease. NewYork-Presbyterian.
- Stomach Polyps. Mayo Clinic. October 18, 2022.
- Gastritis. NewYork-Presbyterian.
- Symptoms and Causes of Gastritis and Gastropathy. National Institute of Diabetes and Digestive and Kidney Diseases.
- What causes stomach cancer? American Cancer Society.

Ira Daniel Breite, MD
Medical Reviewer
Ira Daniel Breite, MD, is a board-certified internist and gastroenterologist. He is an associate professor at the Icahn School of Medicine at Mount Sinai, where he also sees patients and helps run an ambulatory surgery center.
Dr. Breite divides his time between technical procedures, reading about new topics, and helping patients with some of their most intimate problems. He finds the deepest fulfillment in the long-term relationships he develops and is thrilled when a patient with irritable bowel syndrome or inflammatory bowel disease improves on the regimen he worked with them to create.
Breite went to Albert Einstein College of Medicine for medical school, followed by a residency at NYU and Bellevue Hospital and a gastroenterology fellowship at Memorial Sloan Kettering Cancer Center. Working in city hospitals helped him become resourceful and taught him how to interact with people from different backgrounds.

Carmen Chai
Author
Carmen Chai is a Canadian journalist and award-winning health reporter. Her interests include emerging medical research, exercise, nutrition, mental health, and maternal and pediatric health. She has covered global healthcare issues, including outbreaks of the Ebola and Zika viruses, anti-vaccination movements, and chronic diseases like obesity and Alzheimer’s.
Chai was a national health reporter at Global News in Toronto for 5 years, where she won multiple awards, including the Canadian Medical Association award for health reporting. Her work has also appeared in the Toronto Star, Vancouver Province, and the National Post. She received a bachelor’s degree in journalism from Ryerson University in Toronto.