What changed in my stomach?
Your immune system has mistakenly targeted cells in the lining of the upper and middle stomach. These cells make acid, which helps you absorb iron from food. They also make intrinsic factor, a protein you need to absorb vitamin B12. If your biopsy says “atrophic,” it means the lining has lost some of its normal glands.
Why does the stomach lining become inflamed?
The upper and middle parts of your stomach contain glands with acid-making cells called parietal cells. In autoimmune gastritis, some immune cells called helper T cells mistakenly recognize part of the acid pump in these cells as a threat. They send chemical signals that draw more immune cells into the lining around the glands.
That gathering of immune cells and the injury they cause are what your biopsy describes as inflammation. If the response continues for years, the lining can lose some of its glands. That loss is called atrophy. With fewer parietal cells, the stomach makes less acid and less intrinsic factor.
This explains why a stomach can be inflamed even when it makes very little acid. An acid blocker can reduce acid production, but it cannot switch off the immune response. The antibodies in the B12 animation show a different part of the disease: they can interfere with the intrinsic factor that remains.
INSIDE THE STOMACH LININGExplore a stomach gland
Choose a view to compare the same region of the upper stomach. The open space above the glands faces the meal you just ate.
Simplified tissue illustrations. Zoom in on a real stained stomach biopsy (CoRus13, CC BY-SA 4.0).
Meet the cells and antibodies
Tap a drawing to see its role.
Parietal cell
This stomach cell makes acid and intrinsic factor. It sits in glands in the body and upper curve of the stomach. As these cells disappear, the stomach makes less of both.
Helper T cell
These immune cells normally coordinate defenses against infection. In autoimmune gastritis, some recognize part of the parietal cell’s acid pump as a target. The inflammation they direct gradually injures the glands.
Plasma cell
A plasma cell develops from a B cell and makes antibodies. Plasma cells and other immune cells can gather in the tissue around damaged stomach glands.
Antibodies
Some antibodies recognize the parietal cell’s acid pump and can help point to the diagnosis. Others interfere with intrinsic factor, making it harder for the small intestine to absorb B12. Your clinician interprets antibody tests alongside the biopsy.
Why wouldn’t an acid blocker help?
The word gastritis means inflammation. In autoimmune gastritis, the immune system gradually damages the cells that make stomach acid. As that damage advances, acid levels fall and can become extremely low.
Omeprazole and other proton pump inhibitors turn down the acid pumps that still work. Famotidine reduces the signal to make acid. Neither medicine stops the immune injury, rebuilds the glands or replaces intrinsic factor. Once acid production is very low, there is little left for these medicines to suppress.
What does a stomach biopsy show?
These are photographs of stomach tissue under a microscope. A laboratory stain gives the tissue its purple color. Tap either slide to open it at full size and zoom in.
The overall pattern

Follow the curved edge of the tissue. The purple folds mark its surface. At this scale, a pathologist can compare the arrangement of glands across the sample and look for patches where the usual acid-making glands have been lost.
Original low-magnification photographThe glands up close

The rounded and oval purple structures are glands seen in cross section. Look between them for clusters of tiny dark dots. These include the nuclei of immune cells that have gathered in the lining.
Original high-magnification photographBoth photographs by CoRus13, reproduced from Wikimedia Commons under CC BY-SA 4.0. JPEG copies prepared for display.
THE B12 HANDOFFHow antibodies interrupt absorption
Gold = vitamin B12 · Teal = intrinsic factor · Purple Y = antibody
Turn on sound for the narration. Watch the normal handoff, then compare two ways an antibody can interrupt it. Over time, too little absorbed B12 can interfere with red blood cell production.
Compare the still diagrams
How B12 absorption can change
Compare the two pictures at each step. Gold dot = B12. Teal cup = intrinsic factor. Purple Y = antibody.
The two antibody examples show different ways absorption can be interrupted. Either can interfere on its own.
StomachWhere does the carrier come from?
Usual
Cells in the stomach lining make intrinsic factor, the protein that will carry B12.
With gland loss
The immune system damages these stomach cells. Fewer cells remain to make the carrier.
Small intestineCan B12 attach to its carrier?
Usual
After digestive enzymes release B12 from its first carrier, B12 fits into intrinsic factor.
With a blocking antibody
An antibody covers the binding site on intrinsic factor. B12 stays separate.
End of the small intestineCan the pair dock?
Usual
A receptor on the intestinal lining recognizes the B12–carrier pair. The intestinal cell takes it in.
With a docking antibody
B12 is already attached. Another kind of antibody prevents the pair from docking at the receptor.
Bone marrowWhy can anemia develop?
With enough B12
Developing cells can copy their DNA and divide to make healthy red blood cells.
When B12 stays low
Over time, fewer red blood cells mature, and many are larger than usual. This is how pernicious anemia can develop.
B12 absorption · Intrinsic factor antibodies
What might I notice?
Many people have no stomach symptoms. Low iron can be the first clue and may appear years before low B12. Either deficiency can leave you tired or short of breath with activity. Low B12 can also cause tingling, numbness or trouble with balance, even when your blood count is normal. Contact your clinician promptly if these symptoms develop.
How do we confirm it?
During an upper endoscopy, your gastroenterologist can take small tissue samples from different parts of the stomach. The pattern of gland loss helps identify the cause. Blood tests for antibodies to parietal cells or intrinsic factor can support the diagnosis. Your team also checks for H. pylori, a stomach bacterium that can coexist with autoimmune gastritis. If found, it is treated and a follow-up test checks that it is gone.
How is autoimmune gastritis treated?
There is currently no proven medicine that restores the stomach glands lost to autoimmune gastritis. Steroids and other immune-suppressing drugs are not routine treatment. There is still a lot we can do: replace what your body has trouble absorbing, treat an infection if one is present, and follow the lining over time.
What if my iron and B12 are normal?
Your care team can follow your blood count, ferritin (stored iron) and vitamin B12. A normal blood count alone can miss an early deficiency. Agree on when to recheck your labs and who will review them. Your clinician may also check thyroid function because autoimmune thyroid disease often occurs alongside autoimmune gastritis.
How do we treat low vitamin B12?
A B12 injection delivers the vitamin directly into muscle, bypassing the need for intrinsic factor in the intestine. When autoimmune gastritis causes B12 deficiency, replacement is lifelong, even after the anemia improves. Treatment may begin with more frequent injections, followed by maintenance doses. Tell your clinician promptly about new numbness, tingling or trouble walking: B12 deficiency can affect nerves even before anemia shows up.
How do we treat low iron?
Iron tablets are a reasonable starting point for many people. If they upset your stomach or cause constipation, ask whether every-other-day dosing would suit you. Your clinician can recheck your blood count and ferritin to see whether the tablets are working. If you cannot tolerate them, your iron stores do not rise, or absorption is unlikely, iron given through a vein (IV iron) bypasses the digestive tract. Persistent or recurrent iron deficiency also deserves a check for other causes, including blood loss.
What else might need treatment?
If you also have H. pylori, your clinician can prescribe treatment for that infection and confirm it has cleared with a follow-up test. If you have heartburn or upper abdominal discomfort, discuss what is causing the symptom. Acid blockers do not treat the immune injury. Review any existing prescription with your clinician before changing it.
Your biopsy findings and family history help guide decisions about repeat endoscopy. If a small type 1 gastric neuroendocrine tumor is found, it can often be removed during endoscopy, with follow-up based on what was found.
UNDERSTANDING THE NUMBERSHow often does this happen?
Among people in the general population
Estimates suggest 5–20 in 1,000 have autoimmune gastritis and about 1.5–10 in 1,000 have pernicious anemia. Both become more common with age. Studies use different tests, so these ranges are approximate. They come from different populations and cannot tell us what fraction of people with gastritis will develop anemia.
After an autoimmune gastritis diagnosis
Picture 1,000 people with the diagnosis followed for one year. A review of 23 studies found the following average rates. Tap each result for context.
About 11 gastric neuroendocrine tumors
The pooled estimate was 10.9 per 1,000 person-years (95% confidence interval 6.1–15.8). The studies counted gastric neuroendocrine tumors of all sizes. The type linked to autoimmune gastritis is usually small when found.
When acid is low, the stomach releases more of a hormone called gastrin. Over time, this can stimulate growth of histamine-producing cells in the lining. A small, often slow-growing type 1 neuroendocrine tumor can develop from those cells. Small lesions can often be removed during endoscopy. After removal, your gastroenterologist may recommend another exam in one to two years, depending on how many were found.
About 1 stomach cancer (adenocarcinoma)
The pooled estimate was 1.2 per 1,000 person-years (95% confidence interval 0.6–1.7). This cancer starts in gland-forming cells and is a different diagnosis from a neuroendocrine tumor.
A person-year means one person followed for one year. These averages describe groups. Estimates vary with age, biopsy findings, prior H. pylori infection and who was referred for endoscopy. They cannot predict an individual’s lifetime risk.
Will I need another endoscopy?
Autoimmune gastritis is not cancer. It can increase the chance of small growths called type 1 gastric neuroendocrine tumors. Your doctor also looks for lining changes associated with stomach cancer. Whether and when to repeat endoscopy depends on how much of the lining has changed, any growths found and your family history. There is no single interval that fits everyone.