Updated

Lee Stempniak scored the go-ahead goal as the Calgary Flames used a huge third period to take a 5-2 win over the Detroit Red Wings on Wednesday.

Stempniak and Curtis Glencross each posted a goal and an assist, while Jay Bouwmeester, Blake Comeau and Alex Tanguay all scored for the Flames, who snapped a three-game slide. Miikka Kiprusoff posted 36 saves in the win.

Valtteri Filppula and Niklas Kronwall each had a goal for the Red Wings, who are on a three-game slide. Jonas Gustavsson gave up all five goals on just 22 shots in the loss.

With the score tied in the third, Calgary scored three times in just over four minutes to take over the game.

Off a broken play in the Detroit end, Glencross picked up the puck and kept the play alive by skating over to the left circle before firing it back the other way where Stempniak snapped it home for a 3-2 lead at the 5:37 mark.

The next two goals came off Detroit turnovers as Glencross picked off a bad clear and from the slot he buried the puck for a 4-2 lead at the 9:12 mark.

It was a 5-2 game just 48 seconds later after another Detroit turnover saw Comeau wrist it home from the left wing for his second of the season.

"As a team, we've been doing a better job of developing chemistry and creating chances," said Stempniak.

Mikael Backlund was stopped on a penalty shot by Gustavsson with 7:43 to play, but the save didn't spark Detroit as the team failed to close the gap.

Kronwall's big blast from the left circle got Detroit on the board just 3:20 in, but Calgary answered 2 1/2 minutes later when Tanguay beat Gustavsson on a short breakaway.

Bouwmeester gave the Flames a 2-1 lead halfway through the first, but Detroit scored its first power-play goal of the year on the road at the 16:39 mark of the second period when Filppula buried a rebound for his fifth of the season.

Game Notes

Detroit plays in Edmonton on Friday ... Calgary hosts Nashville on Friday ... The Flames have taken both games against the Red Wings this season ... Both teams went 1-for-2 on the power play.