Darrin S. Reed, 33, will receive day-for-day credit while serving the sentence handed down by Judge Daniel Shanes on Wednesday afternoon, said defense attorney Greg Nikitas.
Reed pleaded guilty in November to a charge of unlawful possession of a controlled substance with intent to deliver.
As part of the plea agreement, Lake County prosecutors dismissed charges of drug-induced homicide, possession of a controlled substance, possession of a stolen firearm, aggravated unlawful use of a weapon and aggravated fleeing police.
Joseph Bond, 25, was found dead June 13, 2016, on the 26000 block of West Catalpa Road of unincorporated Lake County in Antioch Township.
Police said an investigation showed Reed was responsible for selling Bond the heroin that led to his death.