Tom Brady and the New England Patriots scored 21, and claim the No. 1 seed in the AFC playoffs.

Brady completed 23-of-35 passes for 338 yards, three touchdowns and an interception for the Patriots (13-3), who will have home-field advantage throughout the postseason for the second year in a row. New England finished the regular season with a 7-1 mark at Gillette Stadium.

Brady became the third player in NFL history with 5,000 passing yards in a season. He also set a franchise record for completions in a season with 401, topping Drew Bledsoe's 400 in 1994. A first-round bye will allow the two-time league MVP to rest his sore left shoulder.

Aaron Hernandez caught seven passes for 138 yards and a touchdown for New England, which heads into the playoffs on an eight-game winning streak. Rob Gronkowski capped his record-setting season with eight catches for 108 yards and two scores.

BenJarvus Green-Ellis carried the ball seven times for 22 yards and two touchdowns for the Patriots, who avenged a Week 3 loss to the Bills.

Ryan Fitzpatrick completed 29-of-46 passes for 307 yards, two touchdowns and four interceptions for the Bills (6-10), who fell apart after starting the season with a 4-1 mark.

Steve Johnson caught four passes for 40 yards and a touchdown for Buffalo, which lost eight of nine to end the season. C.J. Spiller carried the ball 13 times for 60 yards.