ICD-10 B12 Deficiency Anemia: D51 Codes, Tests & Treatment

·

Share

Vitamin B12 deficiency anemia is coded under ICD-10 category D51, with subcodes that record the cause: D51.0 for pernicious anemia (intrinsic factor deficiency), D51.3 for dietary deficiency, and D51.9 when the cause is not yet known. Diagnosis rests on a blood count showing large red cells plus a low B12 level, and treatment replaces B12 by injection or high-dose tablets while addressing whatever caused the shortfall.

Below I walk through what the codes mean, why the deficiency affects red blood cell production, how we confirm it in the lab, and what treatment looks like in practice.

What ICD-10 Code D51 Covers

The International Classification of Diseases, 10th Revision (ICD-10) is the coding system used worldwide to record diagnoses on medical records, insurance claims, and research databases. Category D51 is reserved for anemia caused by a lack of vitamin B12 (cobalamin). Choosing the right subcode tells every later reader of the chart not just that the patient is anemic, but why.

Code Description Typical use
D51.0 B12 deficiency anemia due to intrinsic factor deficiency Pernicious anemia (autoimmune gastritis)
D51.1 B12 deficiency anemia due to selective B12 malabsorption with proteinuria Imerslund-Gräsbeck syndrome, a rare inherited disorder
D51.2 Transcobalamin II deficiency Rare inherited defect in the B12 transport protein
D51.3 Other dietary B12 deficiency anemia Vegan or very restricted diets without supplements
D51.8 Other B12 deficiency anemias Causes such as ileal resection or other malabsorption
D51.9 B12 deficiency anemia, unspecified Work-up for the cause still in progress

Two coding points trip people up. First, B12 deficiency without anemia is not coded under D51; it falls under the nutritional deficiency codes (E53.8 in ICD-10). Second, folate deficiency anemia has its own category, D52, so a patient with both deficiencies needs both codes. Country-specific versions such as ICD-10-CM in the United States may add extra detail, so always check the edition your organization uses.

Why Low B12 Causes Anemia and Who Is at Risk

Vitamin B12 is a cofactor for DNA synthesis. Rapidly dividing cells, especially the red cell precursors in the bone marrow, cannot copy their DNA properly without it. Their cytoplasm keeps maturing while the nucleus lags behind, producing oversized, fragile cells called megaloblasts.

Many of these cells die inside the marrow before release, a process called ineffective erythropoiesis. The ones that do reach the bloodstream are large (macrocytic) and fewer in number. Because the same machinery drives all blood cell formation, white cells and platelets can drop too in severe cases.

B12 also supports myelin, the insulating sheath around nerves. That is why deficiency can damage the spinal cord and peripheral nerves, sometimes before anemia appears at all.

Causes and Risk Factors

B12 comes almost entirely from animal foods: meat, fish, eggs, and dairy. Absorption is a multi-step process. Stomach acid frees B12 from food, intrinsic factor made by the stomach lining binds it, and the complex is absorbed in the terminal ileum. A break anywhere in that chain can cause deficiency.

  • Pernicious anemia: an autoimmune condition that destroys the cells producing intrinsic factor. It is the classic cause in adults and is coded D51.0.
  • Dietary lack: strict vegan diets without fortified foods or supplements. The liver stores several years of B12, so deficiency develops slowly.
  • Gut disease or surgery: Crohn’s disease affecting the ileum, celiac disease, gastrectomy, bariatric surgery, or removal of part of the ileum.
  • Medications: long-term metformin and acid-suppressing drugs such as proton pump inhibitors can reduce absorption.
  • Nitrous oxide: repeated recreational use inactivates B12 and can trigger neurological damage quickly.
  • Older age: reduced stomach acid makes it harder to release B12 from food.

Symptoms and Clinical Presentation

The anemia itself causes the familiar picture: tiredness, breathlessness on exertion, palpitations, and pale or faintly yellow skin (from breakdown of fragile red cells). A smooth, sore, red tongue (glossitis) and mouth ulcers are common clues.

Neurological signs deserve special attention: numbness or pins and needles in the hands and feet, unsteady walking, memory problems, low mood, and in advanced cases a condition called subacute combined degeneration of the spinal cord. Nerve damage can become permanent if treatment is delayed, which is why I never treat B12 deficiency as a minor finding.

Diagnosis and Laboratory Tests

Diagnosis combines the clinical story with a small set of blood tests. The healthy red blood cells in a normal blood count measure 80 to 100 femtoliters (fL); in B12 deficiency the average size, or MCV, usually rises above 100 fL.

Test Typical finding in B12 deficiency Why it helps
Complete blood count Low hemoglobin, MCV above 100 fL Shows macrocytic anemia
Blood smear Oval macrocytes, hypersegmented neutrophils Points to a megaloblastic process
Serum B12 Commonly below about 200 pg/mL Screening test; borderline results are common
Methylmalonic acid (MMA) Raised More specific for B12 than folate deficiency
Homocysteine Raised Also raised in folate deficiency
Intrinsic factor antibodies Positive in pernicious anemia Supports a D51.0 diagnosis

Reference ranges vary between laboratories, and serum B12 can look normal in a truly deficient patient. When results are borderline and symptoms fit, MMA helps settle the question. Other causes of large red cells, such as alcohol, liver disease, hypothyroidism, and some medications, need to be considered along the way.

Treatment and Long-Term Management

Treatment replaces the missing vitamin and corrects the cause where possible. The route depends on why the patient is deficient and how severe the deficiency is.

  • Intramuscular injections: hydroxocobalamin or cyanocobalamin, given as a loading course followed by regular maintenance injections. This is the standard route when neurological symptoms are present.
  • High-dose oral B12: a small fraction of a large oral dose is absorbed without intrinsic factor, so daily high-dose tablets can work even in pernicious anemia for patients who prefer them, with monitoring.
  • Diet and fortified foods: useful for dietary deficiency and for prevention, but not enough on their own when absorption is impaired.

Response is usually quick. The reticulocyte count (young red cells) rises within about a week, and hemoglobin normalizes over roughly two months. Neurological symptoms improve more slowly and may not fully recover. Folic acid should never be given alone to a patient with untreated B12 deficiency, because it can improve the blood count while nerve damage progresses.

Patients with pernicious anemia or permanent absorption problems need lifelong replacement. People with pernicious anemia also have a higher risk of stomach cancer and other autoimmune conditions such as thyroid disease, so ongoing follow-up matters.

When to See a Doctor

See your doctor if you have persistent tiredness with pins and needles, balance problems, memory changes, or a sore tongue, especially if you follow a vegan diet, take metformin or acid-suppressing drugs long-term, or have had stomach or bowel surgery. Seek prompt care for worsening numbness or difficulty walking, as early treatment protects the nerves. For a wider view of related conditions, see our anemia guide.

Frequently Asked Questions

What is the ICD-10 code for pernicious anemia?

Pernicious anemia is coded D51.0, vitamin B12 deficiency anemia due to intrinsic factor deficiency. It is the most specific code when intrinsic factor or parietal cell antibodies, or the clinical picture, confirm an autoimmune cause.

When should D51.9 be used?

D51.9 is for B12 deficiency anemia when the cause has not yet been identified. Once testing shows the reason, such as diet or pernicious anemia, the chart should be updated to the more specific subcode.

Can you have B12 deficiency without anemia?

Yes. Nerve symptoms can appear before the blood count changes, and in that case the D51 anemia codes do not apply. The deficiency is coded as a nutritional deficiency instead.

How long does it take to recover?

Energy often improves within days to weeks and the blood count usually normalizes within about two months. Nerve symptoms can take many months to improve, and some may persist if treatment started late.

Are B12 tablets as good as injections?

For dietary deficiency and many absorption problems, high-dose tablets are effective. Injections are preferred when deficiency is severe, neurological symptoms are present, or adherence to daily tablets is uncertain.

Written by
Coagulation & Thrombosis, Haematology, Platelet Biology
Contact [email protected] marilenacresce1 mcrescente Queen Mary, University of London April 16, 2020 Profiling the eicosanoid networks that underlie the anti- and pro-thrombotic effects of aspirin I’m a platelet biologist and pharmacologist of thrombosis. I did my PhD between the University of Perugia and the “John Paul II” Research in Campobasso, Italy. After my PhD, I worked in Denisa Wagner’s lab…
View Full Profile →
Web Admin Avatar