The Raptors ended a five-game skid, overcoming a seven-point hole after one period and then outscoring Detroit by 20 in the third period to take control.
In a meeting of teams that will miss the playoffs, Toronto shot 53 percent from the field.
Amir Johnson chipped in 20 points and eight rebounds for the Raptors, who reached 10 wins on the road for the year.
Jonas Jerebko had 20 points for Detroit, a loser of 12 out of 13.
Exploding whale video goes viral on Internet
N.J. man wakes up from 10-hour sleep with knife in back