Doctors Note Logo

Published on: 7/9/2026

Gastritis: Why Your Stomach Lining Is Inflamed

Gastritis is inflammation of the stomach lining, often caused by H. pylori infection, NSAID use, alcohol, or stress. Common symptoms include burning upper abdominal pain, nausea, bloating, indigestion, and in some cases, gastrointestinal bleeding. Treatment typically involves dietary and lifestyle changes alongside medications that reduce stomach acid or eliminate infection.

Because gastritis symptoms overlap with other digestive conditions like ulcers, GERD, or even more serious issues, accurate diagnosis is essential. If you're experiencing stomach discomfort, don't guess — take a free, instant, online symptom check to better understand what may be causing your symptoms and confidently navigate your next steps.

Reviewed for medical accuracy: 06/18/2026

answer background

Explanation

Gastritis: Why Your Stomach Lining Is Inflamed

Gastritis is a common condition in which the protective lining of your stomach becomes inflamed. While it may sound worrying, most cases are manageable once you understand the causes, symptoms, and treatment options. This guide will help you learn what's happening in your digestive system, how to recognize trouble signs, and when to seek medical help.

What Is Gastritis?

Gastritis refers to inflammation or irritation of the stomach's inner lining (the mucosa). This lining produces mucus and acids essential for digestion, nutrient absorption, and protecting your stomach wall from harsh digestive juices. When this mucosal barrier is disrupted, you may experience discomfort, pain, or other digestive symptoms.

Key points:

  • Acute gastritis: develops suddenly, often causing sharp pain
  • Chronic gastritis: builds up over time, with milder or intermittent symptoms
  • Atrophic gastritis: long-standing inflammation leads to thinning of the stomach lining

Understanding the type and cause of your gastritis is the first step toward effective relief.

Common Causes of Gastritis

Several factors can trigger or worsen gastritis. Often, more than one factor is involved:

  • Helicobacter pylori (H. pylori) infection
    A spiral-shaped bacterium that lives in the stomach and damages the mucosal barrier.
  • Frequent use of nonsteroidal anti-inflammatory drugs (NSAIDs)
    Medications like ibuprofen or naproxen can irritate or weaken the stomach lining.
  • Excessive alcohol consumption
    Alcohol interferes with mucus production and increases acid secretion.
  • Stress
    Physical stress (major surgery, severe injury) or emotional stress can affect stomach acid balance.
  • Autoimmune gastritis
    Your immune system mistakenly attacks stomach cells, reducing protective mucus.
  • Bile reflux
    Bile flowing back from the small intestine can damage the stomach lining.
  • Other infections
    Viruses or fungi in people with weakened immune systems may cause gastritis.

Signs and Symptoms

Gastritis symptoms range from barely noticeable to severe. Pay attention to changes in your digestion or abdominal comfort:

  • Burning or gnawing pain in the upper abdomen
  • Nausea or vomiting
  • Feeling full quickly when eating
  • Bloating, belching, or indigestion
  • Loss of appetite or unintended weight loss
  • Dark, tarry stools (a sign of bleeding)

If you're experiencing these symptoms and want to better understand what might be causing them, you can get personalized insights in just 3 minutes with Ubie's free AI symptom checker to help determine your next steps for care.

Who's at Risk?

While anyone can develop gastritis, certain factors increase your likelihood:

  • Age over 60
  • Regular NSAID use
  • Heavy alcohol use or smoking
  • Chronic stress or major illness
  • Family history of gastric disorders
  • Autoimmune disorders (e.g., Hashimoto's, type 1 diabetes)

Knowing your risk can guide early lifestyle changes or medical checks.

How Is Gastritis Diagnosed?

A healthcare provider uses a combination of medical history, physical exam, and tests to confirm gastritis:

  1. Medical history & exam
    Discussion of symptoms, medication use, diet, and risk factors.
  2. Endoscopy
    A thin, flexible tube with a camera (gastroscope) inspects the stomach lining and may take biopsy samples.
  3. Blood tests
    Check for anemia, H. pylori antibodies, or autoimmune markers.
  4. Breath test
    Noninvasive check for H. pylori by measuring tagged carbon dioxide in your breath.
  5. Stool test
    Detects H. pylori antigens or traces of blood.

Early diagnosis helps tailor the right treatment plan and prevent complications.

Treatment Options

Most gastritis cases improve with a combination of lifestyle changes and medications. Your doctor may recommend:

Lifestyle and Diet Adjustments

  • Eat smaller, more frequent meals
  • Limit spicy, acidic, or fried foods
  • Avoid caffeine, alcohol, and tobacco
  • Manage stress through relaxation techniques (yoga, meditation)
  • Stay hydrated with water or nonacidic beverages

Medications

  • Antacids (e.g., calcium carbonate) to neutralize stomach acid
  • H2 blockers (e.g., ranitidine, famotidine) to reduce acid production
  • Proton pump inhibitors (PPIs) (e.g., omeprazole, esomeprazole) for stronger acid suppression
  • Antibiotics (e.g., clarithromycin, amoxicillin) if H. pylori infection is present
  • Protective medications (e.g., sucralfate) to coat and protect the lining

Monitoring and Follow-Up

  • Regular check-ups if you have chronic gastritis
  • Repeat testing for H. pylori after antibiotic treatment
  • Adjustments to medications based on symptom relief and side effects

Preventing Gastritis

You can reduce your risk of gastritis or flare-ups by adopting healthy habits:

  • Use NSAIDs sparingly; try alternatives like acetaminophen when possible
  • Limit alcohol to moderate levels (up to one drink per day for women, two for men)
  • Quit smoking
  • Manage stress with regular exercise, adequate sleep, and mindfulness
  • Eat a balanced diet rich in fruits, vegetables, and whole grains
  • Wash hands frequently to prevent infections

When to See a Doctor

While mild gastritis often improves with self-care, seek immediate medical attention if you experience:

  • Severe, persistent abdominal pain
  • Vomiting blood or material that looks like coffee grounds
  • Black, tarry stools
  • Unexplained weight loss or difficulty swallowing
  • Signs of anemia (weakness, dizziness, paleness)

These may indicate serious complications, such as bleeding ulcers, and require prompt evaluation.


Gastritis is manageable for most people when identified early and treated appropriately. Pay attention to your symptoms, make lifestyle changes, and follow your doctor's advice. If you have any signs of serious illness or if your symptoms worsen, speak to a doctor right away. Always get personalized medical guidance before starting or stopping any treatment.

(References)

  • * Malfertheiner P, et al. Chronic Gastritis: An Update. Dig Dis Sci. 2021 Jul;66(7):2267-2280. doi: 10.1007/s10620-021-06977-9. Epub 2021 May 10. PMID: 33973945.

  • * Suzuki H, et al. Helicobacter pylori-Induced Gastric Mucosal Inflammation: Molecular Mechanisms. Front Immunol. 2021 Mar 19;12:649721. doi: 10.3389/fimmu.2021.649721. eCollection 2021. PMID: 33815410. PMCID: PMC8013278.

  • * Massironi S, et al. Autoimmune gastritis: current insights into pathogenesis, diagnosis, and management. Ther Adv Chronic Dis. 2022 Mar 25;13:20406223221088746. doi: 10.1177/20406223221088746. eCollection 2022. PMID: 35368625. PMCID: PMC8961734.

  • * Damián U, et al. [Acute and chronic gastritis: clinical and endoscopic evaluation in 2021]. Rev Gastroenterol Peru. 2021 Apr-Jun;41(2):123-131. Spanish. PMID: 34293883.

  • * Konda V, et al. Chemical Gastropathy: A Current Review. Dig Dis Sci. 2021 Aug;66(8):2575-2584. doi: 10.1007/s10620-021-06950-6. Epub 2021 Apr 22. PMID: 33890103.

Thinking about asking ChatGPT?Ask me instead

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.