Wayne County Circuit Judge David Groner's sentence was the finale to the scandal that destroyed Kilpatrick's reign at City Hall and threw local government into disarray for months.
"At a time when this city needed transparency, accountability and responsibility, you exhibited hubris and privilege at the expense of the city," the judge said.
He ruled that Kilpatrick not be given an opportunity for early release.
But county sheriff's spokesman John Roach said in a subsequent statement that Groner didn't have the standing to order Kilpatrick not receive time off for good behavior.
The judge's ruling "does not override Michigan Statute that says a sheriff shall credit all sentenced county jail inmates with one day good time for every five days served, provided the individual is a model inmate," Roach said.
Kilpatrick, 38, pleaded guilty to obstruction of justice, admitting he lied about an affair with his chief of staff while testifying in a civil lawsuit in 2007. He also pleaded no contest to assaulting a sheriff's detective.
He was ordered to serve five years of probation and pay the city $1 million in restitution. Kilpatrick paid $20,000 to the City of Detroit on Tuesday as his downpayment on the restitution.
Groner had harsh words for Kilpatrick when he laid down the sentence.
"Ultimately what shocked this court and much of the community was your press conference after your plea hearing," the judge said. "That night, the community expected to hear a message of humility, remorse and apology. Instead, we heard an arrogant and defiant man who accused the governor, among others, for his downfall."
Kilpatrick declined an offer to address the court
Groner moved the hearing to a larger courtroom to accommodate the news media and spectators. As he waited for the sentencing hearing to begin, Kilpatrick sat back with an arm around his wife, Carlita. The ex-mayor smiled often and chatted with other family members and supporters seated nearby.
But once the hearing began, Kilpatrick's demeanor changed. At times, he was seen burying his head in his hands.
It was Kilpatrick's first public forum since the speech to supporters - referenced by the judge Tuesday - after his guilty plea Sept. 4. In that address, Kilpatrick lashed out at Gov. Jennifer Granholm, who was holding hearings to remove him from office, and told Detroit, "You done set me up for a comeback."
His next stop is the Wayne County jail, where he will be in his own cell 23 hours a day. He will not be allowed to mix with other inmates during his one hour of recreation.
Kilpatrick, a Democrat, admitted lying while testifying last year in a civil lawsuit filed by former police officers who had accused him of illegally demoting or firing them.
He and chief of staff Christine Beatty denied having an affair, but text messages obtained by a lawyer in the case - and later the Detroit Free Press - clearly contradicted them.
They used their city pagers to arrange trysts and share sexually explicit desires. A fresh batch of messages was released last week, revealing that Kilpatrick, married with three children, likely had other lovers.
The messages first were publicly disclosed in January by the Free Press. Beatty quickly resigned but Kilpatrick hung on as mayor, even when prosecutors filed criminal charges against the pair in March.
The saga rolled through spring and summer as Kilpatrick hired a team of lawyers and public-image specialists and publicly ridiculed the case against him.
The City Council voted to hold impeachment-style hearings but a judge said it was illegal. Elected officials called on Kilpatrick to step down for the sake of the entire state.
Finally, he agreed to plead guilty and resign only after the governor began the public hearing in September that could have led to his ouster.
Ken Cockrel Jr. was promoted to mayor from council president. A special election to fill the balance of Kilpatrick's term will be held in May after the field is trimmed to two candidates Feb. 24.