DxMedical Coding HubLearn · Research · Share

ICD-10-CM · 2026

Hierarchy

D51 coding guide: Vitamin B12 deficiency anemia

Quick answer. D51 is the ICD-10-CM Diagnosis Code for "Vitamin B12 deficiency anemia". This category covers anemias caused by a lack of vitamin B12, including autoimmune etiologies like pernicious anemia, dietary deficiencies such as vegan anemia, and genetic or malabsorptive disorders like Imerslund-Gräsbeck syndrome and transcobalamin II deficiency. Do not use D51 codes if the B12 deficiency is present without documented anemia.

Last updated

The flowchart as text

The same decisions as the diagram above, in order. Each line is a step; the answers say where it leads.

  1. Diagnosed Vitamin B12 Deficiency Anemia then Is the etiology or cause documented?.
  2. Is the etiology or cause documented? Intrinsic factor deficiency / Pernicious anemia: D51.0; Selective malabsorption with proteinuria: D51.1; Transcobalamin II deficiency: D51.2; Dietary deficiency / Veganism: D51.3; Other cause e.g., post-gastrectomy: D51.8; Unspecified / Not documented: D51.9.
  3. D51.0
  4. D51.1
  5. D51.2
  6. D51.3
  7. D51.8
  8. D51.9

What it covers and how it divides

Frequently asked questions

What is D51?

This category covers anemias caused by a lack of vitamin B12, including autoimmune etiologies like pernicious anemia, dietary deficiencies such as vegan anemia, and genetic or malabsorptive disorders like Imerslund-Gräsbeck syndrome and transcobalamin II deficiency.

How do you code D51 correctly?

Do not use D51 codes if the B12 deficiency is present without documented anemia. Pernicious anemia, Addison anemia, and congenital intrinsic factor deficiency are all classified under code D51.0. Vegan anemia is specifically coded to D51.3, distinguishing it from malabsorptive etiologies. Verify documentation for underlying causes like malabsorption or dietary habits to select the most specific fourth-character code.

Sources

How this guide was made

Medical Coding Hub builds this guide with AI from the official code tables (CMS and CDC/NCHS) and the code’s place in the hierarchy. It is not yet reviewed line by line by a certified coder. Treat it as a working reference, check it against the current official ICD-10 guidelines and the payer’s policy before you bill, and tell us about errors through the feedback links on this site. It is not medical, legal or billing advice.