NEW YORK -- J.J. Hardy hit an RBI double in the 13th inning and the Baltimore Orioles bounced back from a demoralizing loss to outlast the New York Yankees 2-1 Thursday night, forcing a deciding Game 5 in the AL division series.

After splitting 22 games this year, it all comes down this: a winner-take-all for a spot in the AL championship series.

Game 1 winner CC Sabathia is set to pitch the deciding game for the Yankees. Orioles manager Buck Showalter had not announced his starter.

Eric Chavez, pinch-hitting for Alex Rodriguez, lined out to end the game shortly after midnight.

The Orioles were 0 for 8 with runners in scoring position until Hardy doubled off David Phelps with one out to score Manny Machado.

Loading Slideshow...
  • Manny Machado

    Manny Machado #13 of the Baltimore Orioles slides into home and is tagged out by Russell Martin #55 of the New York Yankees during Game Four of the American League Division Series at Yankee Stadium on October 11, 2012 in the Bronx borough of New York City.

  • Alex Rodriguez

    New York Yankees' Alex Rodriguez strikes out during the eighth inning of Game 4 of the American League division baseball series against the Baltimore Orioles, Thursday, Oct. 11, 2012, in New York.

  • Ryan Flaherty

    Baltimore Orioles center fielder Adam Jones (10) watches as second baseman Ryan Flaherty (3) cannot hold on to a ball hit by New York Yankees' Russell Martin for an error during the seventh inning of Game 4 of the American League division baseball series on Thursday, Oct. 11, 2012, in New York. Martin was safe at first base on the play.

  • Manny Machado

    Manny Machado #13 of the Baltimore Orioles slides into home and is tagged out by Russell Martin #55 of the New York Yankees during Game Four of the American League Division Series at Yankee Stadium on October 11, 2012 in the Bronx borough of New York City.

  • Baltimore Orioles v New York Yankees - Game Four

    Phil Hughes #65 of the New York Yankees speaks with Russell Martin #55 during Game Four of the American League Division Series against the Baltimore Orioles at Yankee Stadium on October 11, 2012 in the Bronx borough of New York City. (Photo by Al Bello/Getty Images)

  • Manny Machado

    Manny Machado #13 of the Baltimore Orioles slides into home and is tagged out by Russell Martin #55 of the New York Yankees during Game Four of the American League Division Series at Yankee Stadium on October 11, 2012 in the Bronx borough of New York City.

  • Alex Rodriguez

    New York Yankees' Alex Rodriguez, left, reacts after striking out with two runners on base in the eighth inning of Game 4 of the American League division baseball series aganst the Baltimore Orioles, Thursday, Oct. 11, 2012, in New York. Orioles catcher Matt Wieters, center, umpire Fieldin Culbreth, right, look on.

  • Robinson Cano

    Robinson Cano #24 of the New York Yankees bats during Game Four of the American League Division Series against the Baltimore Orioles at Yankee Stadium on October 11, 2012 in the Bronx borough of New York City.

  • Adam Jones

    Adam Jones #10 of the Baltimore Orioles bats during Game Four of the American League Division Series against the New York Yankees at Yankee Stadium on October 11, 2012 in the Bronx borough of New York City.

  • Mark Reynolds

    Baltimore Orioles' Mark Reynolds (12) points to teammate Nate McLouth after a double play during the fifth inning of Game 4 of the American League division baseball series against the New York Yankees, Thursday, Oct. 11, 2012, in New York.

  • Alex Rodriguez

    Alex Rodriguez #13 of the New York Yankees looks on as Manny Machado #13 of the Baltimore Orioles advances to third base on a double by Nate McLouth during Game Four of the American League Division Series at Yankee Stadium on October 11, 2012 in the Bronx borough of New York City.

  • Chris Davis

    Chris Davis #19 of the Baltimore Orioles reacts after striking out during Game Four of the American League Division Series against the New York Yankees at Yankee Stadium on October 11, 2012 in the Bronx borough of New York City.

  • Derek Jeter

    Derek Jeter #2 of the New York Yankees reacts after striking out during Game Four of the American League Division Series at Yankee Stadium against the Baltimore Orioles on October 11, 2012 in the Bronx borough of New York City.

  • Alex Rodriguez

    Alex Rodriguez #13 of the New York Yankees bats during Game Four of the American League Division Series against the Baltimore Orioles at Yankee Stadium on October 11, 2012 in the Bronx borough of New York City.

  • Ichiro Suzuki

    Ichiro Suzuki #31 of the New York Yankees reacts after striking out during Game Four of the American League Division Series against the Baltimore Orioles at Yankee Stadium on October 11, 2012 in the Bronx borough of New York City.

  • Nate McLouth

    Nate McLouth #9 of the Baltimore Orioles celebrates with J.J. Hardy #2 after hitting a home run in the fifth inning of Game Four of the American League Division Series against the New York Yankees at Yankee Stadium on October 11, 2012 in the Bronx borough of New York City.

  • Jayson Nix

    Jayson Nix #17 of the New York Yankees slides into second base after hitting a double during Game Four of the American League Division Series against the Baltimore Orioles at Yankee Stadium on October 11, 2012 in the Bronx borough of New York City.

  • Joba Chamberlain

    Trainers help New York Yankees relief pitcher Joba Chamberlain, third from right, reactsafter he was hit by a broken bat when Baltimore Orioles' Matt Wieters hit a single during the twelfth inning of Game 4 of the American League division baseball series on Thursday, Oct. 11, 2012, in New York. (AP Photo/Bill Kostroun)

  • Joba Chamberlain

    A trainer looks at the arm of New York Yankees' Joba Chamberlain (62) after Chamberlain was hit by a broken bay during the twelfth inning of Game 4 of the American League division baseball series against the Baltimore Orioles Thursday, Oct. 11, 2012, in New York. (AP Photo/Kathy Willens)

  • Nate McLouth

    Nate McLouth #9 of the Baltimore Orioles catches a ball hit by Jayson Nix #17 of the New York Yankees in the fifth inning of Game Four of the American League Division Series at Yankee Stadium on October 11, 2012 in the Bronx borough of New York City.

  • Nick Swisher

    Nick Swisher #33 of the New York Yankees bats during Game Four of the American League Division Series against the Baltimore Orioles at Yankee Stadium on October 11, 2012 in the Bronx borough of New York City.

  • Nate McLouth

    Nate McLouth #9 of the Baltimore Orioles watches his home run in the fifth inning of Game Four of the American League Division Series against the New York Yankees at Yankee Stadium on October 11, 2012 in the Bronx borough of New York City.

  • Joe Girardi

    New York Yankees manager Joe Girardi, right, pauses during a moment of silence before Game 4 of the American League division baseball series against the Baltimore Orioles Thursday, Oct. 11, 2012, in New York. Girardi's father, Jerry Girardi, who had suffered from Alzheimer's disease, died Saturday at age 81 in Metamora, Ill.

  • Joe Girardi

    New York Yankees manager Joe Girardi pauses during a moment of silence before Game 4 of the American League division baseball series against the Baltimore Orioles Thursday, Oct. 11, 2012, in New York. Girardi's father, Jerry Girardi, who had suffered from Alzheimer's disease, died Saturday at age 81 in Metamora, Ill.

  • Joe Saunders

    Baltimore Orioles' Joe Saunders delivers a pitch during the first inning of Game 4 of the American League division baseball series against the New York Yankees, Thursday, Oct. 11, 2012, in New York.

  • Joe Girardi

    New York Yankees manager Joe Girardiwipes his eye during a moment of silence before Game 4 of the American League division baseball series against the Baltimore Orioles Thursday, Oct. 11, 2012, in New York. Girardi's father, Jerry Girardi, who had suffered from Alzheimer's disease, died Saturday at age 81 in Metamora, Ill.

  • Phil Hughes

    New York Yankees' Phil Hughes delivers a pitch during the second inning of Game 4 of the American League division baseball series against the Baltimore Orioles, Thursday, Oct. 11, 2012, in New York.

  • Derek Jeter

    New York Yankees' Derek Jeter breaks his bat during the third inning of Game 4 of the American League division baseball series against the Baltimore Orioles, Thursday, Oct. 11, 2012, in New York.

  • Joe Saunders

    Baltimore Orioles starting pitcher Joe Saunders (48) throws out New York Yankees' Ichiro Suzuki, of Japan, during the sixth inning of Game 4 of the American League division baseball series on Thursday, Oct. 11, 2012, in New York.

  • Nate McLouth

    Baltimore Orioles' Nate McLouth, top left, watches his home run along with New York Yankees' pitcher Phil Hughes, foreground, Yankees catcher Russell Martin, top right, and umpire Fieldin Culbreth in the fifth inning in Game 4 of the American League division baseball series on Thursday, Oct. 11, 2012, in New York.

  • Nate McLouth

    Baltimore Orioles' Nate McLouth follows through on a home run during the fifth inning of Game 4 of the American League division baseball series against the New York Yankees, Thursday, Oct. 11, 2012, in New York.

  • Russell Martin, Manny Machado

    Baltimore Orioles' Manny Machado, right, is tagged out at home plate by New York Yankees catcher Russell Martin during the third inning of Game 4 of the American League division baseball series on Thursday, Oct. 11, 2012, in New York.

  • Alex Rodriguez

    New York Yankees' Alex Rodriguez hits a single during the fourth inning of Game 4 of the American League division baseball series against the Baltimore Orioles, Thursday, Oct. 11, 2012, in New York.

  • Nate McLouth

    Baltimore Orioles' Nate McLouth hits a home run during the fifth inning of Game 4 of the American League division baseball series against the New York Yankees, Thursday, Oct. 11, 2012, in New York.

  • Alex Rodriguez

    New York Yankees' Alex Rodriguez, right, hits a single in the fourth inning in Game 4 of the American League division baseball series against the Baltimore Orioles, Thursday, Oct. 11, 2012, in New York. Orioles' Matt Wieters, left, catches.

  • Phil Hughes, Nate McLouth

    New York Yankees starting pitcher Phil Hughes (65) reacts as Baltimore Orioles' Nate McLouth, right, runs the bases after hitting a home run during the fifth inning of Game 4 of the American League division baseball series on Thursday, Oct. 11, 2012, in New York.