Bailey Gwynne |
The 16-year-old died from a knife wound to the chest in a row over a biscuit at Cults Academy in Aberdeen in October 2015.
The youth, also aged 16, was convicted of killing him following a five-day trial at the city's high court last month.
Judge Lady Stacey sentenced the boy to nine years detention followed by a two-year supervision order at the High Court in Edinburgh this morning.
Passing sentence, Lady Stacey told the teenager: "If you had not carried a knife, the exchange of insults between you and Bailey Gwynne would have led at worst to a fist fight ... and certainly not loss of life."