The chemical reactions and pathways resulting in the formation of 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.