The chemical reactions and pathways involving phytic acid, myo-inositol hexakisphosphate, a regulator of intracellular signaling, a highly abundant animal anti-nutrient and a phosphate and mineral storage compound in plant seeds.