DETROIT — Kwame M. Kilpatrick, a former mayor of Detroit, was found guilty on Monday of a raft of charges, including racketeering, fraud and extortion, capping a five-month public corruption trial against him and two co-defendants.

The jury found Mr. Kilpatrick guilty of 24 of the 30 charges against him, including the most serious charges of racketeering and extortion, which each carry maximum sentences of 20 years.

At an afternoon bond hearing, Mr. Kilpatrick and Bobby W. Ferguson, a city contractor, appeared stunned after being ordered to prison pending sentencing. Judge Nancy G. Edmunds cited the possible risk of fleeing and danger to the community. No sentencing date was set.

Lawyers for Mr. Kilpatrick, 40, said they were considering an appeal and a reduction of the ex-mayor’s presentencing time.