National League

• Cardinals 4, Cubs 0: In St. Louis, Matt Carpenter and the Cardinals clinched home-field advantage throughout the National League playoffs with their sixth straight win. With the top seed, the NL Central champions will host the wild-card winner in Game 1 of an NL division series on Thursday.

• Pirates 4, Reds 2: In Cincinnati, Jordy Mercer had a triple and an inside-the-park homer, and the Pirates completed a three-game sweep in a game that was mostly an afterthought fo teams looking ahead to a rematch in Pittsburgh. They’ll open the postseason on Tuesday night at PNC Park, the Pirates’ first playoff game in 21 years.

• Braves 12, Phillies 5: In Atlanta, Evan Gattis had a two-run homer among his three hits, Elliot Johnson drove in five runs and the NL East champion Braves won to cap their best regular season in nine years. Atlanta will have home-field advantage against the Dodgers in the NL division series, which begins Thursday at Turner Field.

• Rockies 2, Dodgers 1: In Los Angeles, Jeff Francis came out of the bullpen to win his first start in more than three months, Michael Cuddyer won his first batting title, and Todd Helton singled in the final game of his career to help the Rockies beat the NL West champ Dodgers.

• Giants 7, Padres 6: In San Francisco, Hunter Pence singled in the winning run with no outs in the ninth inning to give the Giants the win.

• Mets 3, Brewers 2: In New York, Eric Young Jr. won the National League stolen base crown and helped the Mets rally when the Brewers botched two bunts in the eighth inning.

American League

• Rays 7, Blue Jays 6: In Toronto, Evan Longoria and the Rays assured themselves of at least a tie for an AL wild-card berth, scoring six runs in the first inning and then holding off the Blue Jays. The Rays will play at Texas tonight, with the winner advancing to the postseason. The Blue Jays put the go-ahead run at the plate in the eighth and ninth innings but Tampa Bay held on.

• Rangers 6, Angels 2: In Arlington, Texas, the Rangers forced a one-game tiebreaker for the second AL wild-card spot, winning their seventh in a row when Geovany Soto hit a tiebreaking RBI double and later homered. The Rangers (91-71) added game No. 163 to the regular season, and will host Tampa Bay tonight. The winner plays two days later at wild card leader Cleveland in another win-or-be-done matchup.

• Athletics 9, Mariners 0: In Seattle, Sonny Gray threw five shutout innings in his final start before the playoffs, Oakland had a pair of four-run innings and the Athletics closed out the regular season with a win. The A’s now turn their attention to the AL Division Series against Detroit that will begin Friday in Oakland.

• Yankees 5, Astros 1: In Houston, Mark Reynolds hit a tiebreaking homer in a four-run 14th inning, and New York went into an offseason of uncertainty with a win over the Astros, whose 15-game losing streak was the longest at the end of the season in more than a century. Mariano Rivera didn’t pitch in the final game of a career that started in 1995.

• Orioles 7, Red Sox 6: In Baltimore, Ryan Flaherty had two hits subbing for Chris Davis after baseball’s home run champ left with a sprained wrist, and the Orioles wrapped up their season with a win over playoff-bound Boston. The Red Sox have home-field advantage through the AL playoffs.

• Royals 4, White Sox 1: In Chicago, Bruce Chen pitched four-hit ball into the seventh inning and Kansas City won in the finale of the Royals’ best season (86-76) in 24 years.