CONDITIONS

Pernicious Anemia and Stomach Acid

Pernicious anemia is caused by the destruction of the same cells that produce stomach acid. Acid loss is the earliest sign, often appearing years before B12 levels drop or anemia develops. By the time blood work catches it, the damage is already advanced. The Heidelberg test measures acid output and may help identify declining parietal cell function before the downstream consequences appear.

Written by Michael D. Erdman, MBBS | Last reviewed: May 2026

You are tired all the time. Your hands and feet tingle. You have brain fog that comes and goes. Your B12 was low so you started supplementing, but it is not coming up the way it should. Nobody has looked at your stomach. That is where this starts.

What is pernicious anemia?

Pernicious anemia is a form of vitamin B12 deficiency caused by the loss of intrinsic factor, a transport protein produced by the parietal cells of the stomach. These are the same cells that produce hydrochloric acid. In autoimmune atrophic gastritis, the immune system attacks and progressively destroys these cells, eliminating both acid production and intrinsic factor production simultaneously.

Without intrinsic factor, vitamin B12 cannot be absorbed in the small intestine regardless of how much is consumed through food or oral supplements. The condition affects approximately 0.1 percent of the general population and roughly 2 percent of people over 60. It is more common in women, in people of Northern European and African descent, and in those with other autoimmune conditions, particularly autoimmune thyroid disease and type 1 diabetes.

Symptoms of B12 deficiency include fatigue, weakness, numbness and tingling in the hands and feet, difficulty walking, cognitive changes, depression, and a smooth sore tongue. In advanced cases, the neurological damage can become irreversible. Many patients go undiagnosed for over a year.

How stomach acid connects

The connection is direct. The parietal cells produce both hydrochloric acid and intrinsic factor. When autoimmune gastritis destroys these cells, both functions are lost. But acid production typically declines first, because the remaining parietal cells can compensate for intrinsic factor losses longer than they can sustain full acid output.

This creates a diagnostic window that most clinicians are not looking for. Hypochlorhydria can be present for years before B12 stores are depleted enough to cause anemia. The liver holds enough B12 to last two to five years even after absorption stops completely. During that interval, the patient has low or absent stomach acid but normal blood counts and potentially normal B12 levels. Everything looks fine on paper. The stomach is already failing.

By the time pernicious anemia is diagnosed through blood work, the parietal cell destruction is advanced and the window for early intervention has passed.

The symptoms and why they get misdiagnosed

The early symptoms of parietal cell decline are the same symptoms as general hypochlorhydria: bloating, indigestion, reflux, fatigue, and nutrient deficiencies that do not respond to supplementation. These get attributed to aging, stress, IBS, or diet. The B12-specific symptoms, numbness, tingling, cognitive changes, typically appear later and are often evaluated in isolation by neurologists or psychiatrists without anyone connecting them back to the stomach.

Standard screening for B12 deficiency relies on serum B12 levels, methylmalonic acid, and homocysteine. These markers detect deficiency after it has occurred. Anti-intrinsic factor antibodies are specific but miss 30 to 50 percent of cases. Anti-parietal cell antibodies are more sensitive but less specific. None of these tests measure how much acid the stomach is currently producing.

The earliest functional change, declining acid production, goes undetected until the downstream consequences show up in blood work or neurological symptoms. Mean diagnostic delay for autoimmune gastritis is currently estimated at over 14 months.

Who should be paying attention

Patients with autoimmune thyroid disease are at significantly higher risk. Up to 30 percent of patients with autoimmune thyroid conditions have concurrent autoimmune gastritis. Patients with type 1 diabetes carry three to five times the general population risk. First-degree relatives of people with pernicious anemia, patients with unexplained iron-deficiency anemia, and patients with persistent B12 deficiency that does not respond to oral supplementation should all be considered for gastric acid assessment.

Patients with autoimmune atrophic gastritis also carry an elevated risk of gastric neuroendocrine tumors and a subset of gastric cancers, making early identification clinically important beyond the anemia itself.

How the Heidelberg test clarifies the picture

The Heidelberg test measures gastric acid secretion and reacidification capacity in real time. In a patient with early autoimmune gastritis, the test can reveal declining acid production and impaired parietal cell reserve before B12 levels have dropped and before blood counts have changed. This gives practitioners and patients a wider window to begin monitoring, adjust supplementation strategies, and pursue further workup.

The test does not diagnose pernicious anemia or autoimmune gastritis on its own. It provides objective data on acid-secretory function that your practitioner interprets alongside antibody panels, B12 levels, and your full clinical picture. That data is what has been missing.

What to do next

If this sounds familiar, a professional gastric acid assessment may be worth exploring. The Heidelberg test is available through trained practitioners. It takes about an hour, requires no sedation, and you get your results the same day.

You can also take our 2-minute quiz to help figure out whether stomach acid might be relevant to what you are experiencing. It is not a diagnosis. It is the data your practitioner needs to make one.

Acid loss comes first. Anemia comes later.

See if the Heidelberg test is your next step.

HEIDELBERG

Est. 1964
For Patients: heidelbergtest.com  |  For Physicians & Researchers: heidelbergmed.com
About  |  The Test  |  Conditions  |  Find a Provider  |  Quiz  |  Blog  |  Glossary  |  Resources  |  FAQ  |  Contact

The Heidelberg pH Capsule is a Class I medical device, 510(k)-exempt, listed with the U.S. Food and Drug Administration under 21 CFR §876.1400. Listing of a device does not denote FDA approval, clearance, or endorsement.

© 2026 Heidelberg Medical, Inc. All rights reserved.