With a second comeback spurred by Ibanez in the last 10 days, the Yankees need a win or Orioles loss on the final day of the season to secure their 13th division title since 1996. The Orioles beat Tampa Bay 1-0 earlier.
If the teams end up even after Wednesday's games, they'll play a tiebreaker Thursday in Baltimore.
The Yankees kept missing chances on a misty night. They were 0-58 when trailing after eight innings this season, then rallied in the ninth.
ORIOLES 1, RAYS 0
ST. PETERSBURG, Fla. (AP) — Chris Davis homered for the sixth straight game and the Orioles overcame a club-record 15 strikeouts by James Shields to beat the Rays, pushing the AL East race to the final day of the season.
Baltimore trails the New York Yankees by one game.
Orioles rookie Miguel Gonzalez (9-4) limited the Rays to two singles over 6 1-3 innings. The right-hander walked two and struck out seven before manager Buck Showalter turned the game over to the bullpen.
Davis joined Hall of Famer Reggie Jackson as the only Baltimore players to homer in six consecutive games, connecting off Shields (15-10) in the fourth. The Orioles managed only one other hit — Nate McLouth's sixth-inning single — in Shields' third complete game.
ATHLETICS 3, RANGERS 1
OAKLAND, Calif. (AP) — Travis Blackley allowed one run over six innings in a strong bounce-back performance that helped the Athletics move into a first-place tie in the AL West with Texas and set up a one-game showdown for the division title.
A night after holding a raucous celebration after clinching their first playoff berth since 2006, the A's erased the last piece of what had been a 13-game deficit in the division race on June 30 to take a share of first place for the first time since March 29.
Blackley (6-4) gave up three hits and struck out five a week after the Rangers knocked him out with a five-run first inning in the shortest start of his career. He allowed only an RBI double to Josh Hamilton in what was the latest surprising performance in an improbable season for the low-budget A's.
ROYALS 4, TIGERS 2
KANSAS CITY, Mo. (AP) — Miguel Cabrera had two hits and drove in two runs before leaving in the fifth inning, and the Royals rallied to beat his AL Central champion Tigers.
With one game remaining in the regular season, Cabrera leads the American League in average (.331), home runs (44) and RBIs (139), putting him on the brink of becoming the first Triple Crown winner since Boston's Carl Yastrzemski in 1967.
Alcides Esocbar and Jeff Francoeur went deep for Kansas City, and Salvador Perez provided the go-ahead RBI in the fifth inning. Jeremy Guthrie (5-3) lasted six innings to improve to 5-0 with six no-decisions in his final 11 starts, the Royals winning 10 of them.
Doug Fister (10-10) allowed three runs on seven hits in 4 1-3 innings for Detroit.
INDIANS 4, WHITE SOX 3, 12 innings
CLEVELAND (AP) — Jason Donald singled home the winning run with two outs in the 12th inning, lifting the Indians over the White Sox.
Lonnie Chisenhall doubled with one out against Matt Thornton (4-10), who then intentionally walked Russ Canzler.
Right-hander Nate Jones came on to face announced pinch hitter Matt LaPorta, who was then replaced by lefty swinging Jack Hannahan. Jones struck him out before Donald hit a liner into the left-field corner.
Chris Seddon (1-1) pitched a scoreless 12th for the win, Cleveland's seventh in 17 meetings with Chicago. It was the left-hander's first victory since July 24, 2010, when he was with Seattle.
BLUE JAYS 4, TWINS 3
TORONTO (AP) — Chad Jenkins earned his first major league win, Kelly Johnson hit a two-run home run and the Blue Jays beat the Twins.
Making his third career start, Jenkins (1-3) allowed two runs and five hits in five-plus innings. The right-hander walked one and struck out two.
Three-time batting champion Joe Mauer went hitless in three at-bats, dropping his average to .320. Detroit's Miguel Cabrera is leading the batting race, hitting .331. Angels rookie Mike Trout is second.
Aaron Loup, Steve Delabar and Darren Oliver all worked one inning before Casey Janssen finished for his 22nd save in 25 chances, handing the Twins their fourth straight defeat.
MARINERS 6, ANGELS 1
SEATTLE (AP) — Kyle Seager became the first Seattle batter to hit 20 home runs in a season since 2009 with a solo shot in the first inning and the Mariners beat Mike Trout and the Angels.
The penultimate game of the season came a night after the Angels were eliminated from the AL wild card chase. And they played like a team with nothing tangible left to play for, tying their season high with three errors, including a pair in the sixth inning by right fielder Mark Trumbo that helped two runs score.
Trout had one hit in five at-bats to see his average drop to .324. He's seven points behind leader Miguel Cabrera.