Sam Gagner has tying goal late in regulation, adds shootout winner as Oilers beat Coyotes, 3-2

Edmonton Oilers' Sam Gagner (89) skates in front of Phoenix Coyotes' Derek Morris (53) during the first period of an NHL hockey game, Friday, April 4, 2014, in Glendale, Ariz. (AP Photo/Ross D. Franklin) (The Associated Press)

Phoenix Coyotes' Oliver Ekman-Larsson (23), of Sweden, slaps the stick of Edmonton Oilers' Jordan Eberle (14) as Eberle tries to make a pass during the first period of an NHL hockey game, Friday, April 4, 2014, in Glendale, Ariz. (AP Photo/Ross D. Franklin) (The Associated Press)

Sam Gagner got the tying goal with 40.4 seconds to play in regulation, then scored the winner in the fourth round of the shootout to lift the Edmonton Oilers to a 3-2 win over the Phoenix Coyotes on Friday night.

Oilers defenseman Justin Schultz also scored and Ben Scrivens stopped 24 shots through overtime.

Oliver Ekman-Larsson scored the tying goal for the Coyotes in the second period, and Kyle Chipchura put them ahead with 7:18 left in the third. Thomas Greiss also stopped 24 shots for Phoenix.

It was a tough loss for the Coyotes, who are vying for the last wild-card spot in the Western Cconference. Phoenix moved one point ahead of ninth-place Dallas, but the Stars have two games in hand.