Vitamin B12 deficiency doesn’t cause gastritis. The relationship runs in the opposite direction: gastritis, specifically the type that damages the stomach lining over time, causes B12 deficiency. The confusion is understandable because the two conditions appear together so often that researchers have noted “some confusions whether gastric changes are a cause or an effect of deficiency.” But the evidence consistently points to stomach damage coming first, with low B12 following as a consequence.
Why the Two Conditions Appear Together
Your stomach does more than digest food. Specialized cells in the stomach lining called parietal cells produce two things essential for B12 absorption: stomach acid and a protein called intrinsic factor. Stomach acid frees B12 from the food you eat, and intrinsic factor binds to the released B12 so it can be absorbed later in the small intestine. When gastritis damages or destroys these parietal cells, both processes break down. You lose the acid needed to release B12 from food and the intrinsic factor needed to absorb it. The result is a slow slide into deficiency.
In a study comparing older patients with and without B12 deficiency, 28% of the B12-deficient group had atrophic gastritis (the form where the stomach lining has thinned and lost functional cells), while none of the patients with normal B12 levels showed any signs of atrophy. Atrophic gastritis was completely absent when B12 levels were normal. Meanwhile, ordinary superficial gastritis, the milder form, was far more common in the normal-B12 group (94% versus 62%).
Autoimmune Gastritis: The Most Direct Link
The strongest connection between gastritis and B12 deficiency involves autoimmune gastritis, a condition where the immune system mistakenly attacks the parietal cells. This chronic inflammation gradually destroys the cells that produce both acid and intrinsic factor. As the disease progresses, the stomach lining thins out, and B12 absorption drops until deficiency sets in. The severe form of this, historically called pernicious anemia, is what happens when the resulting B12 deficiency becomes profound enough to affect red blood cell production.
Autoimmune gastritis develops slowly, often over years. Because the damage is gradual, many people don’t realize anything is wrong with their stomach until B12 deficiency symptoms appear. This silent progression is part of why people assume the B12 deficiency came first.
H. Pylori and B12 Deficiency
Autoimmune gastritis isn’t the only path to B12 problems. Infection with H. pylori, the bacterium responsible for most stomach ulcers, can also interfere with B12 absorption. H. pylori damages parietal cells directly and causes atrophic gastritis over time. In people who are genetically susceptible, the infection can also trigger the production of antibodies against intrinsic factor, essentially mimicking the autoimmune form of the disease. This means an untreated H. pylori infection can eventually lead to the same kind of B12 malabsorption seen in autoimmune gastritis.
Symptoms to Watch For
Gastritis and B12 deficiency produce distinct sets of symptoms, though they can overlap when both are present. Gastritis typically causes a burning or gnawing pain in the upper abdomen, nausea, vomiting, and a feeling of fullness after eating. These symptoms may get better or worse with food. Many people with gastritis, particularly the atrophic form, have no stomach symptoms at all.
B12 deficiency adds an entirely different layer. Because B12 is essential for nerve function and red blood cell production, low levels can cause fatigue, weakness, numbness or tingling in the hands and feet, difficulty with balance, memory problems, and mood changes. These neurological symptoms are what often prompt the blood test that uncovers the deficiency, and the deficiency then leads doctors to investigate the stomach.
How B12 Deficiency Is Diagnosed
A standard blood test measures serum B12 levels. A reading above 300 pg/mL is considered normal. Levels between 200 and 300 pg/mL fall into a borderline range where additional testing can help clarify the picture. Below 200 pg/mL is classified as deficient.
When B12 deficiency is confirmed, doctors often look for the underlying cause. Blood tests for two types of antibodies can help identify autoimmune gastritis. Antibodies against intrinsic factor are highly specific: if they’re present, autoimmune gastritis is almost certainly the cause. However, these antibodies are only detected in about 14% of confirmed cases, so a negative result doesn’t rule it out. Antibodies against parietal cells are found more often (sensitivity around 66 to 85%) but are less precise, since they can occasionally appear in other conditions. An endoscopy, where a doctor examines the stomach lining directly and takes tissue samples, remains the most definitive way to confirm atrophic gastritis.
Why the Gastric Cancer Connection Matters
Chronic atrophic gastritis is a recognized risk factor for a type of stomach cancer called non-cardia gastric adenocarcinoma. A prospective study found that people with the lowest B12 levels had a 5.8-fold increased risk of developing this cancer compared to those with the highest levels. The researchers noted that low B12 may serve as a blood marker for the atrophic gastritis that precedes cancer, potentially a stronger signal than other markers like pepsinogen that doctors currently use. This doesn’t mean B12 deficiency causes cancer. It means persistent B12 deficiency can be a warning sign that significant stomach lining damage has already occurred, and that damage carries its own risks.
Treatment and Recovery
Because the stomach itself is the problem, simply taking oral B12 supplements doesn’t always work, especially when intrinsic factor is missing. Many people with autoimmune gastritis need B12 injections that bypass the digestive system entirely. However, research on high-dose oral supplementation in pernicious anemia has shown that enough B12 can be absorbed through passive diffusion (a process that doesn’t require intrinsic factor) to correct the deficiency in some patients.
Once treatment begins, recovery follows a general timeline. Blood-related abnormalities like anemia tend to improve within about a month. Mucosal symptoms, those related to the lining of the mouth and digestive tract, typically resolve within about four months. Neurological symptoms can take longer and may not fully reverse if the deficiency was severe or prolonged, which is why catching it early matters.
If H. pylori is the underlying cause, treating the infection with antibiotics can halt further damage to the stomach lining and may restore some absorptive capacity over time. For autoimmune gastritis, there’s no way to stop the immune system’s attack on parietal cells, so B12 supplementation is usually lifelong. Regular monitoring for both B12 levels and stomach health is standard care, given the long-term risks associated with chronic atrophic gastritis.

