The chemical reactions and pathways resulting in the formation of sphingosine (sphing-4-enine), trans-D-erytho-2-amino-octadec-4-ene-1,3-diol, a long chain amino diol sphingoid base that occurs in most sphingolipids in animal tissues.