The Magic had lost five of their previous six games and this was only their 14th victory of the campaign, second fewest in the NBA.
Orlando outscored Detroit by 14 points in the second period and that turned out to be the final margin. Glen Davis added 18 points, while both Arron Afflalo and Maurice Harkless had 15 for the Magic.
Detroit, which has dropped back-to-back games, came up with 25 points and 12 rebounds from Josh Smith.
Chipotle plans first price increase in 3 years
Justin Bieber crashes Drake Bell's album release party