Kevin Hayes scored the go-ahead goal late in the second period short-handed to lead the Philadelphia Flyers to a 3-2 victory over the Washington Capitals on Wednesday night.

Robert Hagg and Travis Konecny also scored for the Flyers, who improved their NHL-best home record to 14-2-4. The Flyers returned to Philadelphia after a disappointing six-game road trip in which they lost five of six and allowed 27 goals in the defeats.

More Images
Philadelphia Flyers' Kevin Hayes, center, scores a goal from between Washington Capitals' Braden Holtby, left, and Evgeny Kuznetsov during the second period of an NHL hockey game Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

Kevin Hayes scored the go-ahead goal late in the second period short-handed to lead the Philadelphia Flyers to a 3-2 victory over the Washington Capitals on Wednesday night.

Philadelphia Flyers' Philippe Myers (5) and Washington Capitals' Tom Wilson (43) chase the puck during the second period of an NHL hockey game Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

The Flyers, who were home for the first time in 16 days, play the next two and five of six in Philadelphia.

Philadelphia Flyers' Michael Raffl (12) and Washington Capitals' Lars Eller (20) compete for the puck during the second period of an NHL hockey game Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

Hayes put Philadelphia ahead 3-2 with the only tally of the second, scoring on a breakaway with 2:18 left in the period. Hayes deked to his backhand to beat Holtby for his 13th of the season.

Philadelphia Flyers' James van Riemsdyk, right, collides with Washington Capitals' Nick Jensen during the second period of an NHL hockey game Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

Washington notched the next two to go in front 2-1, on Backstrom’s ninth of the season and Vrana’s 19th with 7 1/2 left. Backstrom shot between Hart’s legs from close range and Vrana beat Hart on the blocker side from the slot.

Philadelphia Flyers' Robert Hagg celebrates after scoring during the first period of the team's NHL hockey game against the Washington Capitals, Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

UP NEXT

Philadelphia Flyers' Carter Hart, left, and Philippe Myers celebrate after the team's NHL hockey game against the Washington Capitals, Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

Philadelphia Flyers' Carter Hart, left, and Philippe Myers celebrate after the team's NHL hockey game against the Washington Capitals, Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

Carter Hart made 26 saves for Philadelphia while upping his home mark to 12-1-2.

Philadelphia Flyers' Kevin Hayes, center, scores a goal from between Washington Capitals' Braden Holtby, left, and Evgeny Kuznetsov during the second period of an NHL hockey game Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

Philadelphia Flyers' Kevin Hayes, center, scores a goal from between Washington Capitals' Braden Holtby, left, and Evgeny Kuznetsov during the second period of an NHL hockey game Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

The Flyers, who were home for the first time in 16 days, play the next two and five of six in Philadelphia.

Jakub Vrana and Nicklas Backstrom scored for Washington, and Braden Holtby finished with 24 saves. The Capitals, who entered with an NHL-best 65 points, had won three straight and 14 of the last 19.

Both teams were playing the second game of a back-to-back.

Philadelphia Flyers' Philippe Myers (5) and Washington Capitals' Tom Wilson (43) chase the puck during the second period of an NHL hockey game Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

Philadelphia Flyers' Philippe Myers (5) and Washington Capitals' Tom Wilson (43) chase the puck during the second period of an NHL hockey game Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

Hayes put Philadelphia ahead 3-2 with the only tally of the second, scoring on a breakaway with 2:18 left in the period. Hayes deked to his backhand to beat Holtby for his 13th of the season.

The teams each scored twice in the first.

Konecny opened the scoring 3 1/2 minutes in, capitalizing on Nick Jensen’s turnover and beating Holtby high over the left shoulder with a wrister.

Philadelphia Flyers' Michael Raffl (12) and Washington Capitals' Lars Eller (20) compete for the puck during the second period of an NHL hockey game Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

Philadelphia Flyers' Michael Raffl (12) and Washington Capitals' Lars Eller (20) compete for the puck during the second period of an NHL hockey game Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

Washington notched the next two to go in front 2-1, on Backstrom’s ninth of the season and Vrana’s 19th with 7 1/2 left. Backstrom shot between Hart’s legs from close range and Vrana beat Hart on the blocker side from the slot.

Hagg’s slap shot deflected off T.J. Oshie and past Holtby with 41.5 seconds remaining in the period to tie it.

NOTES: The season series is even at 1-2. The teams will play twice more, on Feb. 4 and March 8 in Washington. ... Flyers D Shayne Gostisbehere (knee) didn’t play after being injured in Tuesday’s 5-4 OT loss at Carolina. ... The Capitals fell to 17-6-1 on the road. They began play with the best road mark in the league. ... Washington C Evgeny Kuznetsov extended his point streak (four goals, five assists) to seven straight contests with an assist. ... Philadelphia is 4-3-2 on the second game of a back-to-back while Washington is 5-2-1.

Philadelphia Flyers' James van Riemsdyk, right, collides with Washington Capitals' Nick Jensen during the second period of an NHL hockey game Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

Philadelphia Flyers' James van Riemsdyk, right, collides with Washington Capitals' Nick Jensen during the second period of an NHL hockey game Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

UP NEXT

Capitals: Start a three-game homestand Saturday against New Jersey.

More AP NHL: https://www.apnews.com/NHL and https://www.twitter.com/AP_Sports

Philadelphia Flyers' Robert Hagg celebrates after scoring during the first period of the team's NHL hockey game against the Washington Capitals, Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

Philadelphia Flyers' Robert Hagg celebrates after scoring during the first period of the team's NHL hockey game against the Washington Capitals, Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

Philadelphia Flyers' Carter Hart, left, and Philippe Myers celebrate after the team's NHL hockey game against the Washington Capitals, Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)

Philadelphia Flyers' Carter Hart, left, and Philippe Myers celebrate after the team's NHL hockey game against the Washington Capitals, Wednesday, Jan. 8, 2020, in Philadelphia. (AP PhotoMatt Slocum)