The chemical reactions and pathways resulting in the formation of homocysteine, 2-amino-4-sulfanylbutanoic acid.