Paul Stewart, 22, who was driving a powerful two litre sports Renault Clio, overtook on a blind bend on the Prestwick to Strathaven road near Auchincruive Agricultural College in February, last year.
Stewart, of Mossblown, Ayr, managed to avoid a collision with a bus, but his car then spun out of control and hit a works van driven by 52-year-old Robert McPike which was travelling behind the bus.
The force of the impact threw Mr McPike's van into a field. He later died from his injuries.
At the High Court in Glasgow, judge Norman Ritchie QC told Stewart: "Your age, the type of car and manner of driving made something of the stereotype of the boy racer."