Gary Sheffield had the 28th multihomer game of his career, his first for the Yankees.
The Yankees had the 16th six-homer game in their history, only their fourth at Yankee Stadium.
Texas's Kenny Rogers became the third pitcher to allow five HRs in a game this season.
When Detroit's Alex Sanchez struck out swinging in the first inning, his bat went flying, barely missing on-deck hitter Carlos Guillen, who alertly jumped out of the way.
Baltimore's Melvin Mora hit his 11th homer. He had 15 all last season.
Tampa Bay's Tino Martinez has eight homers in his last 14 road games.