CALGARY - Jeff Carter took a bit of a gamble and it paid off for the Los Angeles Kings on Tuesday.

Carter scored 40 seconds into overtime to lead Kings to a 5-4 win over the Calgary Flames at the Scotiabank Saddledome.

Carter stole the puck from Flames forward Sean Monahan at the Calgary blue line and then skated the length of the ice before tucking a shot through goalie Joni Ortio's legs for the game-winning goal.

"I think he fumbled the puck and I just jumped on it," said Carter, whose Kings will finish out the season with games at home against the Anaheim Ducks on Thursday and the Winnipeg Jets on Saturday.

"It's one of those plays where I made a read and either it's going to work out or they're going back three-on-two on our net. Luckily it did. Not our greatest game, but this time of year we'll take two points and a win and go back home and try to finish out the season strong."

Milan Lucic had a pair of goals for the Kings (47-28-5), while Andy Andreoff and Kris Versteeg also scored. Anze Kopitar had two assists and goalie Jhonas Enroth finished with 19 saves.

"Somebody should talk about the franchise record for the Kings for wins," said Kings coach Darryl Sutter. "You get 47 wins in a year and your goal going into the year is to try and get 100 points and we're that close. That's pretty good for a team that didn't make the playoffs last year."

Thanks to the win and Anaheim's 2-1 overtime loss at home to the Jets, the Kings moved into a tie with the Ducks for top spot in the NHL's Pacific Division. Both teams have 99 points, but Anaheim has a game in hand.

Defencemen Deryk Engelland and Mark Giordano had a goal and an assist each for the Flames (33-40-7), while Mikael Backlund and Hunter Shinkaruk also scored. Johnny Gaudreau set up a pair of goals and Ortio made 21 saves.

"The first 10 minutes I think was a little bit in their favour," admitted Engelland, who put the Flames ahead 4-3 at 15:59 of the third period before the Kings rallied. "Once the 10-minute mark came I think we started pushing back. From that point on I think we had a pretty solid game overall. To come up with a loss is a little bit of a heart-breaker."

Backlund gave the Flames a 1-0 lead at 3:41 of the first period when his pass from behind the goal line banked into the Kings' net off Kopitar's skate. Enroth attempted to play the puck behind his net, but he missed it and it went right to Backlund.

The Kings drew even at 9:53 when Lucic scored. Although Flames defenceman Jyrki Jokipakka knocked the puck off Kopitar's stick, it went right to Lucic, who quickly snapped a shot past Ortio.

Lucic then put the Kings up 2-1 just 14 seconds into the second period when he swatted a rebound past Ortio.

Shinkaruk scored his second NHL goal and his first at the Saddledome in front of his hometown fans to make it 2-2 after 40 minutes. After Enroth stopped a shot from the slot by Giordano, the puck bounced right to Shinkaruk for an easy tap-in goal.

"It was very cool," said Shinkaruk. "I watched a lot of games growing up in Calgary. To be out there was pretty neat. At the end of the day, the most important thing is getting the win and we didn't get that. It's going to kind of sting."

The Flames took a 3-2 lead with a power-play goal 33 seconds into the third when Giordano's point shot through traffic beat Enroth low to the stick side. The Kings answered right back only 33 seconds later when Andreoff backhanded a shot past Ortio.

Engelland then snapped a shot to the short side past Enroth before Versteeg scored a fluke goal with 35.1 seconds remaining in regulation to send the game to overtime. Ortio stopped Versteeg's initial shot before he accidentally put it into his own net with the knob of his stick.

Notes: Kopitar recorded at least one point in all four games L.A. played against Calgary this season. Kopitar scored once and had five assists as the Kings swept the season series against the Flames. … Giordano's goal was his 21st of the season. That's the most by a Calgary defenceman since Al MacInnis recorded 28 in 1993-94.