LAS VEGAS — Tyler Toffoli and Blake Coleman each scored twice as the Calgary Flames won for the first time on the road against the Golden Knights on Thursday night, a 7-2 rout at T-Mobile Arena.

The Flames, who had lost 13 of their previous 20, scored seven goals for the third time this season. Four came in the third period to extend a 3-2 lead.

“It’s a huge win,” Coleman said. “Obviously, we’ve had trouble in third periods putting teams away. From start to finish, we did a pretty great job tonight making sure we didn’t take our foot off the gas.”

It marked the first time in nine tries that the Flames won at T-Mobile Arena since the Golden Knights joined the NHL in 2017. Before Thursday night, the Knights had outscored Calgary 34-11 in Las Vegas.

MacKenzie Weegar, Mikael Backlund and Dillon Dube also scored for the Flames. Jacob Markstrom stopped 17 shots to win for the fourth time in his last six starts.

“They’re coming back from a long trip, a lot of time-zone changes coming in there, and our only focus (was) trying to have a good first period,” Calgary coach Darryl Sutter said. “It doesn’t matter if (the final was) 10-2 or 3-2, we need points.”

Jonathan Quick, who made 23 saves, lost for the first time since being acquired by the Knights.

Zach Whitecloud and Reilly Smith scored for the Golden Knights, who came in boasting a league-best 13-2-2 mark since the All-Star break. The game marked the Knights’ return home after a 4-1-0 road trip.

The Knights, who have struggled with the league’s second-worst power play (12.5%) since Dec. 28, went 0-for-4 with the man advantage.

“Our power play had an opportunity to get us back into the game, and we failed in that area,” Knights coach Bruce Cassidy said.

Calgary opened the scoring late in the first period when Rasmus Andersson gathered the puck from a faceoff in the right circle and fed Weegar, whose rifled home a drive from the blue line.

Toffoli, who also assisted on Weegar’s goal, scored early in the second, skating across the crease and around Quick to bury the puck and give the Flames a 2-0 lead.

Whitecloud scored for the Knights with 7:27 left in the second when he skated around the rim of the right circle and rifled a wrist shot past Markstrom.

After missing an opportunity to tie the game earlier on a shift with a backhand that soared over the net, Smith made amends when he took William Karlsson’s feed at the doorstep and slammed it home for a 2-2 tie.

Calgary regained the lead quickly when Coleman tipped home Elias Lindholm’s shot from the right side of the goal line a little more than a minute after Smith’s goal.

“You’ve got to have pushback on this team,” Coleman said. “They’re a good team. They’re going to have their pushes. Obviously, you don’t want to blow a two-goal lead. We were able to respond tonight.”

The Flames began opening some breathing room midway through the third when Backlund scored after trying to feed Toffoli from below the goal line. Instead, the puck caromed off defenseman Alex Pietrangelo’s stick and Quick’s head before going in.

Toffoli and Coleman each added his second goal before Dube closed out the scoring.