On 19 June 2012, Ichiro led off a game against the Arizona Diamondbacks with a single to center field, the 2,500th hit of his MLB career. Ichiro reached the milestone in the fourth-fewest games in major league history, after Al Simmons, Ty Cobb, and George Sisler. In a 13-inning road loss to the Oakland A's on 8 July, Ichiro was placed second in the batting order and responded by going 2 for 6 to bring his season batting average to .261 heading into the All-Star break. In the previous night's game, Ichiro recorded two hits to break a career-worst 0-for-23 hitless streak. Ichiro had also been tried at the three-spot in the batting order during a season for which he earned $18 million. Former teammate Jay Buhner stated he felt Ichiro was the recipient of too much blame for the Mariners' difficulties but "at the same time, they need help desperately." Buhner stated that if Ichiro were awarded a three-year contract extension for somewhere between $35 million and $40 million, "I'd vomit. I mean, really, no offense. No offense, we've got to get this organization turned around. You can't be spending all the money on one guy."
Ichiro approached the Mariners to ask for a trade at midseason in 2012, as he felt guilty for taking a roster spot from a younger player while his team was in a rebuilding process. His first choice was to play for the New York Yankees. The Mariners traded him to the Yankees for minor league pitchers D. J. Mitchell and Danny Farquhar on 23 July. Seattle also received cash in the trade. Ichiro left Seattle hitting .261 with a .288 on-base percentage (OBP), four home runs, 28 RBIs and 15 stolen bases in 95 games. His first game as a Yankee was played the night of the trade, at Safeco Field against the Mariners. Before the trade was consummated, Ichiro agreed to the Yankees' conditions, which stated that they would play Ichiro primarily in left field, bat him at the bottom of the lineup, and occasionally sit him against left-handed pitching. Ichiro would go on to hit safely in his first 12 games as a Yankee, tying a record set by Don Slaught. He wore number 31 during his tenure with the Yankees, as his traditional 51 had not been used since the 2006 retirement of Bernie Williams, who wore it while playing for the Yankees; the Yankees retired the number permanently in 2015.
Ichiro performed well in his first playoff appearance since the beginning of his career. Against the Baltimore Orioles in the 2012 ALDS, Ichiro ran home on a ball hit by Robinson Canó. Despite the ball beating him to the plate, Orioles catcher Matt Wieters had difficulty tagging Ichiro, who evaded multiple tag attempts by jumping over and around Wieters. In Game 1 of the 2012 ALCS, Ichiro hit his first career postseason home run; however, the Yankees lost the series to the Detroit Tigers in only 4 games.
On 19 December 2012, Ichiro finalized a $13 million deal for two years with the Yankees.
When Ichiro was traded to the Yankees in July 2012, longtime Mariners fan Ben Gibbard (of Death Cab for Cutie) posted his tribute song, "Ichiro's Theme", on his SoundCloud page. The previous year, The Baseball Project had released the tribute song "Ichiro Goes To The Moon" on their album Volume 2: High and Inside.