HOUSTON -- Chris Carpenter and the St. Louis Cardinals completed one of baseball's greatest comebacks, clinching the NL wild card Wednesday night with an 8-0 win over Houston and a later loss by Atlanta.
The Cardinals got their playoff spot when the Braves fell to Philadelphia 4-3 in 13 innings.
St. Louis trailed Atlanta by 10½ games on Aug. 25. The Cardinals won 23 of their last 31 games.
The Cardinals will open the postseason on Saturday at NL East champion Philadelphia. In the other NL playoff matchup, Arizona visits Milwaukee.
Carpenter (11-9) struck out 11 and allowed two hits in his 15th career complete-game shutout as St. Louis kept up its improbable September charge.
"We had nothing to lose. We were already out of it," Carpenter said. "People were telling us we were done. We decided to go out and play and not embarrass ourselves and do what we can. We played ourselves back into it."
The Cardinals poured onto the field after Carpenter fielded J.D. Martinez's weak grounder for the final out. The celebration was brief and muted, as the team raced into the clubhouse to watch the end of the game in Atlanta.
"It was exciting, there's no doubt about it," Carpenter said. "The way these guys have played the past month and a half has been amazing, every single night grinding, playing their butts off, not giving up.
"We continued to give ourselves an opportunity and now we are here."
The teams entered Wednesday's regular-season finales with 89-72 records.
Atlanta's game started an hour earlier, but the Cardinals virtually took away any hope for a Houston victory in the first inning of their contest, jumping to a 5-0 lead against Brett Myers (7-14).
Albert Pujols and Lance Berkman drove in runs with singles, and David Freese doubled to left-center before Myers even recorded an out. Berkman scored when Skip Schumaker's hard grounder ricocheted off Myers' glove for an infield hit, and Freese came home on Nick Punto's single to right.
Carpenter handled the rest.
He had struggled at Minute Maid Park lately, going 0-3 with a 4.62 ERA in his last five starts here, but he was in total command from the start on Wednesday, striking out five of the first nine hitters he faced. He also had an RBI single in the third to drive in Freese, who reached base when right fielder Brian Bogusevic dropped his fly ball for an error.
Freese led off the fifth with a double to right-center, the Cardinals' 10th hit of the game. Myers, 4-0 with a 1.24 ERA in his last five starts, hadn't allowed more than nine hits in a start since Aug. 6.
Freese later scored on Schumaker's groundout to shortstop Clint Barmes for a 7-0 lead, equaling the most runs given up by Myers in 33 starts this season. Wilton Lopez replaced Myers for the start of the sixth.
As the Astros batted in the seventh, the left-field scoreboard posted a 3-3 tie in the Phillies-Braves game, prompting a roar from the large contingent of Cardinals' fans in the stands behind the St. Louis dugout.
The Cardinals huddled around a television in the clubhouse cafeteria after their victory.
Only three weeks ago, the Cardinals had virtually lost all hope.
"There was absolute doubt from us," Punto said. "I remember early on in September, we were like, 'Let's just finish up strong for the fans. Let's give them something to come out and watch.'
"When you're 10½ games out, that's a hole you can't climb out of," he said, "unless you get a lot of help."
The Cardinals were loose and relaxed -- and confident -- before the game.
Champagne was ordered for a potential postgame celebration and someone wrote, "Happy Flight! After Game" on a marker board in the clubhouse.
Cardinals manager Tony La Russa said LF Matt Holliday (right hand injury) and SS Rafael Furcal (left hamstring) were unavailable on Wednesday night. ... Cardinals pitching coach Dave Duncan rejoined the team after missing more than a month to tend to his ailing wife. Jeanine Duncan is recovering from surgery on Aug. 21 to remove a brain tumor. Dave Duncan, La Russa's trusted assistant since the early 1980s, did not know how long he would be able to stay with the club because his wife has more medical appointments scheduled. ... The sparse crowd offered a standing ovation to Astros owner Drayton McLane after a video tribute was shown on the giant scoreboard between the second and third innings. McLane is still waiting for Major League Baseball to approve his sale of the team to Houston businessman Jim Crane for $680 million. General manager Ed Wade said before Wednesday's game that McLane still has the final say on all baseball decisions.
Kansas City Royals' Salvador Perez breaks Johnny Bench's catcher record with 46th HR
Salvador Perez hit his 46th home run to break Johnny Bench's record for most homers by a catcher in one season on Monday.
Perez breaks Bench's record with 46th HR, KC tops Indians
— Salvador Perez hit his 46th home run, breaking Johnny Bench’s record for homers by a catcher in a season, and the Kansas City Royals beat the Cleveland Indians 7-2 Monday in the first game of a doubleheader.
Salvador Perez sets single-season HR record for catchers
Salvador Perez passes Johnny Bench for the most long balls in a season by a catcher, and also ties Vladimir Guerrero Jr. atop the 2021 home run leaderboard.
Right fielder Adam Engel 'feels good,' will be activated by Chicago White Sox with playoffs on horizon
At long last, the White Sox will have their starting outfield back in full, as right fielder Adam Engel is set to be activated from the injured list on Tuesday, according to manager Tony La Russa.
Anthony Gose, 31, former outfielder converted to reliever, promoted by Cleveland Indians
Formerly an outfielder in the big leagues, Anthony Gose, who played for Team USA in the Tokyo Olympics, was called up from the minors by the Cleveland Indians on Monday, this time as a hard-throwing lefty reliever.
Struggling New York Yankees activate pitcher Luis Severino, send former All-Star to bullpen
Former All-Star pitcher Luis Severino was activated by the New York Yankees before Monday's series opener against the Texas Rangers and is in position to make his first major league appearance in nearly two years.