Pernicious anemia occurs due to a deficiency in vitamin B12 absorption and is both normochromic and megaloblastic. Megaloblastic anemia is a subtype of macrocytic anemia that includes atypical megaloblasts in the bone marrow. Megaloblasts are precursors to red blood cells.