Gastritis
Gastritis is inflammation of the stomach lining, most often caused by H. pylori infection, anti-inflammatory painkillers or alcohol, and it can cause upper belly pain, nausea and indigestion.

Overview
Gastritis means inflammation (irritation and swelling) of the lining of your stomach. The stomach lining, called the gastric mucosa, normally makes acid to help digest food and a layer of mucus that protects the stomach wall from that acid. When the lining is damaged or inflamed, it can cause pain, nausea and a feeling of indigestion. Some people with gastritis have no symptoms at all.
Gastritis is not one single disease. It is a pattern of damage that can have many different causes. Doctors often divide it into two main types:
- Acute gastritis comes on suddenly, often over hours or days. It is commonly caused by anti-inflammatory painkillers, heavy drinking or a severe illness, and it usually settles once the cause is removed.
- Chronic gastritis develops slowly and can last for months or years. The most common cause worldwide is an infection with a bacterium called Helicobacter pylori (H. pylori).
Long-lasting gastritis can sometimes lead to atrophic gastritis, in which the stomach lining becomes thin and loses some of the glands that make acid and other important substances. A rare type, hypertrophic gastritis, causes the folds of the stomach lining to become very thick.
The good news is that most gastritis can be treated well once the cause is found. Treatment usually lowers stomach acid so the lining can heal, and deals with the cause, such as clearing an H. pylori infection or stopping a medicine that irritates the stomach.
Symptoms
Many people with gastritis, especially chronic gastritis, have no symptoms. When symptoms happen, they can include:
- A burning, gnawing or aching pain in the upper middle part of your belly, just below the breastbone
- Pain that may get better or worse after eating
- Feeling sick to your stomach (nausea) or vomiting
- Feeling full very quickly when you eat, or feeling uncomfortably full after a meal
- Bloating, burping or indigestion
- Loss of appetite
Signs of bleeding
Gastritis can sometimes cause bleeding from the stomach lining. Signs of this include:
- Vomiting blood, or vomit that looks like coffee grounds
- Black, sticky, tar-like stools (poop)
- Feeling weak, dizzy, short of breath or very tired, which can be a sign of blood loss or anemia (a low red blood cell count)
These signs need urgent medical attention.
Symptoms of gastritis can look like other conditions, such as stomach ulcers, acid reflux, gallbladder problems or even heart problems. That is why it is important to see a health professional if symptoms keep coming back.
Causes
Gastritis happens when something damages the protective lining of the stomach or weakens its defences against acid. Common causes include:
- H. pylori infection. This bacterium lives in the stomach lining. It is very common, and many people pick it up in childhood. It causes long-term gastritis in almost everyone who carries it, although most people never notice any symptoms. In some people it leads to stomach ulcers and, rarely, stomach cancer.
- Anti-inflammatory painkillers. Medicines called NSAIDs (non-steroidal anti-inflammatory drugs), such as ibuprofen, naproxen and aspirin, can irritate the stomach lining and reduce its protection, especially when taken often, in high amounts or for a long time.
- Alcohol. Drinking a lot of alcohol can irritate and wear away the stomach lining.
- Severe physical stress. Major surgery, serious burns, severe injuries or critical illness can reduce blood flow to the stomach and cause a type of acute gastritis sometimes called stress gastritis.
- Autoimmune gastritis. In this type, the body's immune system attacks the cells in the stomach lining that make acid and a substance called intrinsic factor, which you need to absorb vitamin B12. It can lead to atrophic gastritis and a type of anemia called pernicious anemia.
- Bile reflux. Bile, a digestive fluid from the liver, can flow back into the stomach, sometimes after stomach surgery, and irritate the lining.
- Other causes. Less often, gastritis is caused by other infections, radiation treatment, certain other medicines, Crohn's disease, or swallowing something corrosive.
Everyday emotional stress and spicy food do not cause gastritis on their own, but they may make symptoms feel worse for some people.
Risk factors
You may be more likely to get gastritis if you:
- Have an H. pylori infection, which is more common in people who grew up in crowded living conditions or in parts of the world where the infection is widespread
- Take NSAIDs regularly, especially if you are older, take more than one, or also take blood thinners or steroid medicines
- Drink alcohol heavily
- Smoke
- Are older, since H. pylori infection and regular use of painkillers are both more common in older adults
- Have another autoimmune condition, such as type 1 diabetes or autoimmune thyroid disease, which raises the chance of autoimmune gastritis
- Are seriously ill in hospital, for example in intensive care
Diagnosis
Your health professional will ask about your symptoms, the medicines you take (including ones you buy without a prescription), how much alcohol you drink, and your family history. They may press gently on your belly. Depending on your age and symptoms, they may suggest some of these tests:
- Tests for H. pylori. These include a breath test (you drink a special liquid and then breathe into a bag) and a stool test (a small sample of poop is checked for signs of the bacteria). Some medicines, including acid-lowering pills, bismuth products and antibiotics, can make these tests less accurate, so you may be asked to stop them for a while beforehand. Only do this if your clinician tells you to.
- Blood tests. These can check for anemia, low vitamin B12 or iron, and antibodies linked to autoimmune gastritis.
- Upper endoscopy. A doctor passes a thin, flexible tube with a tiny camera (an endoscope) through your mouth into your stomach. You are usually given medicine to help you relax. The doctor can look at the lining and take tiny tissue samples, called biopsies, to check for inflammation, H. pylori, thinning of the lining, or other changes. Endoscopy is more likely to be recommended if you are older, have warning signs such as bleeding, weight loss or trouble swallowing, or if your symptoms do not improve with treatment.
Strictly speaking, gastritis is diagnosed when a biopsy shows inflammation under the microscope. In everyday practice, though, the word is often used for stomach-lining irritation suspected from symptoms.
Treatment
Treatment depends on the cause. The main goals are to ease symptoms, let the lining heal, and remove whatever is causing the damage.
Treating H. pylori
If you have H. pylori, you will usually be offered a combination of medicines taken together for about 10 to 14 days. This normally includes an acid-lowering medicine plus two or three antibiotics, sometimes with bismuth. Antibiotics often used include amoxicillin, clarithromycin, metronidazole and tetracycline. It is important to take every dose for the full course, even if you feel better, because stopping early makes it more likely that the treatment will fail and the bacteria will become resistant to antibiotics. After treatment, you should have a test to make sure the infection is gone.
Medicines that lower or block stomach acid
- Proton pump inhibitors (PPIs), such as omeprazole, esomeprazole, lansoprazole and pantoprazole, strongly reduce the amount of acid your stomach makes. This lets the lining heal.
- H2 blockers, such as famotidine, also lower acid, though less strongly than PPIs.
- Antacids neutralize acid that is already in the stomach and can give quick, short-term relief.
- Sucralfate forms a protective coating over damaged areas of the lining. It is used less often than PPIs.
Stopping or changing the cause
- If NSAIDs are the cause, your clinician may suggest a different pain reliever, such as acetaminophen (also called paracetamol), or a lower dose with a stomach-protecting medicine. If you take low-dose aspirin for your heart, do not stop it on your own; talk to your clinician first.
- Cutting down or stopping alcohol helps the lining heal.
Autoimmune gastritis
There is no treatment that reverses autoimmune gastritis, but its effects can be managed. People with low vitamin B12 usually need regular B12 replacement, often by injection or high-dose tablets, and iron if they are low in iron.
Living with gastritis
Alongside medical treatment, some everyday steps can help you feel better and support healing:
- Eat smaller meals more often instead of large meals.
- Notice which foods or drinks make your symptoms worse, such as alcohol, coffee, fatty or spicy foods, and cut back on them if they bother you.
- Avoid NSAIDs unless your clinician says they are safe for you. Check labels on cold and flu products, which sometimes contain them.
- Stop smoking. Ask your health professional about support to quit.
- Limit or avoid alcohol.
- Take your medicines exactly as prescribed. If you have been on a PPI for a long time, ask your clinician from time to time whether you still need it, but do not stop on your own.
- Look after your general wellbeing. Stress does not cause gastritis, but managing stress may make symptoms easier to cope with.
Complications
Most people with gastritis do not develop serious problems, especially when the cause is treated. Possible complications include:
- Stomach ulcers (peptic ulcers), which are open sores in the lining of the stomach or the first part of the small intestine
- Bleeding from the stomach lining or an ulcer
- Anemia, from slow blood loss or from poor absorption of iron or vitamin B12
- Atrophic gastritis, where long-term inflammation thins the lining. Over many years this can slightly raise the risk of stomach cancer, so some people may be offered regular endoscopy checks.
- Stomach cancer and a rare type of lymphoma called MALT lymphoma, which are uncommon but linked to long-term H. pylori infection. Treating H. pylori lowers this risk.
Outlook
The outlook for most people with gastritis is very good. Acute gastritis caused by a medicine or alcohol often gets better within days to weeks once the cause is stopped and acid is reduced. H. pylori infection can usually be cleared with treatment, although sometimes a second course with different antibiotics is needed. Chronic and autoimmune gastritis may need long-term follow-up, but with treatment and monitoring, most people live normal, healthy lives.
Prevention
You cannot prevent every case of gastritis, but you can lower your risk:
- Use NSAIDs only when needed, at the lowest effective amount for the shortest time, and ask a pharmacist or clinician whether they are safe for you.
- Drink alcohol in moderation, or not at all.
- Do not smoke.
- Wash your hands well, especially before eating and after using the toilet, and drink safe water. This may help reduce the spread of H. pylori.
- If a close family member had stomach cancer, or you come from a region where stomach cancer is common, ask your health professional whether you should be tested for H. pylori.
In Canada
In Canada, H. pylori is more common in some Indigenous communities in the North and among immigrants from regions with high infection rates. The Toronto Consensus guides H. pylori treatment in Canada. Breath and stool tests are generally covered by provincial or territorial health plans, but availability varies by region.
When to get medical help
See a doctor or other health professional if:
- You have stomach pain, indigestion or nausea that lasts more than a week or keeps coming back
- Over-the-counter remedies are not helping, or you need them often
- You have lost weight without trying, have trouble swallowing, or keep vomiting
- You feel unusually tired, weak or short of breath, which can be a sign of anemia
- You have been treated for H. pylori and your symptoms come back
Go to the emergency department or call emergency services right away if you:
- Vomit blood or something that looks like coffee grounds
- Have black, tarry or bloody stools
- Have sudden, severe belly pain, or a hard, very tender belly
- Feel faint, dizzy or confused, or have a fast heartbeat
- Have chest pain, pressure or pain spreading to your arm, jaw or back, since this may be a heart problem rather than your stomach
In an emergency, call 911.
References
- U.S. National Library of Medicine. MeSH: Gastritis. meshb.nlm.nih.gov
- MedlinePlus: Gastritis. medlineplus.gov/gastritis.html
- NIDDK: Gastritis and gastropathy. niddk.nih.gov/health-information/digestive-diseases/gastritis-gastropathy
- Chey WD et al. ACG Clinical Guideline: Treatment of Helicobacter pylori Infection (2024). doi.org/10.14309/ajg.0000000000002968
- Malfertheiner P et al. Management of Helicobacter pylori infection: the Maastricht VI/Florence consensus report (Gut, 2022). doi.org/10.1136/gutjnl-2022-327745