Boedker had not scored in 28 games before sitting out a 5-4 loss against Minnesota. It is the second time he scored three goals against the Oilers. Boedker had his first NHL hat trick against Edmonton with the Arizona Coyotes in a 7-4 win on Oct. 15, 2014.
"After struggling and not producing you always feel pressure," Boedker said. "But the pressure stays with you. Now you have to expect to go out and do the things I'm relied on to do."
Drake Caggiula, Matt Benning and Oscar Klefbom scored for Edmonton (21-15-7), and Cam Talbot made 23 saves. Edmonton has lost its past two games and four of its past six (2-3-1).
"We were too slow out of the gate … for 25 minutes of the game we were on our heels," Oilers coach Todd McLellan said. "To me, it was very reminiscent of the game in Ottawa [5-3 loss at the Senators on Sunday]. Not really ready to go, too slow, turnovers, no execution early in the game, and then put your foot on the gas and go after a team. In this case we gave up five instead of four [empty-net goal in Ottawa]. We're not going to win like that."
Boedker gave San Jose a 1-0 lead at 1:39 of the first period, collecting a rebound in front and lifting a shot over Talbot.
Caggiula tied it at 15:53, but Burns scored on the power play with 17.9 seconds remaining to give the Sharks a 2-1 lead.