The chemical reactions and pathways resulting in the formation of cysteine, 2-amino-3-mercaptopropanoic acid.