If Mr. Khadr remained in detention, the eight-year sentence imposed on him in 2010 would have ended in October.
But in 2015, a judge released him on bail pending the appeal of his military conviction in the United States.
Chief Justice Mary Moreau stated that the Youth Criminal Justice Act gives judges the opportunity to consider bail conditions as part of a sentence.
With this in mind, she ruled that Omar Khadr had served his sentence.
Mr. Khadr’s lawyer, Nathan Whitling, testified before an Edmonton court that his client had spent three years and five months in custody and had been on bail for three years and nine months.