Liam Whoriskey, of Glenabbey Gardens, was found guilty in October of the manslaughter of Kayden McGuinness.
The three year old was found dead in his bed in his family flat at Colmcille Court in the Bogside in Derry in September 2017.
He was sentenced at Derry Crown Court today, Monday, December 16.
Whoriskey, who had denied killing the toddler, will serve half of his sentence in prison and the other half on licence.
He was found guilty of manslaughter and of one charge of child cruelty in October.
Sentencing, Recorder of Derry Judge Phillip Babington said he was aware the case had generated a lot of emotion.
The judge also said the acts leading to the unlawful killing of the toddler were not isolated and that the defendant’s behaviour illustrated he had a propensity for aggression and violence in a domestic setting.
Judge Babington said he had read victim impact statements from Kayden’s mother and Kathleen McGuinness, the toddler’s grandmother, and it was clear both were devastated.
Kayden McGuinness’ mother Erin McLaughlin, who was in the public gallery, left the court sobbing at the point when the judge began reading out her son’s injuries.
The judge said the court could only express its sympathy, as any sentence imposed on the defendant paled into insignificance when contrasted with the fact a very young child had died.It could only be hoped this trial brought some form of closure for the family, the judge told the court.
Whoriskey has also been barred from residing in the same place as a child under 18 years old or having any unsupervised contact with a child.