The chemical reactions and pathways involving phosphoarginine, a phosphagen of L-arginine with phosphoric acid containing the phosphoamide bond. It is a source of energy in the contraction of muscle in invertebrates, corresponding to phosphocreatine in the muscles of vertebrates.