The chemical reactions and pathways involving methanol, CH3-OH, a colorless, flammable, mobile, poisonous liquid, widely used as a solvent.