The chemical reactions and pathways involving 4-nitrophenol, a nitroaromatic compound which is used in the production of dyes, leather treatment agents, fungicides and as an intermediate in the production of the insecticide parathion.