Sweden will play Russia in the semifinals. The Russians edged the United States 3-2 at Montreal's Bell Centre earlier in the day.
Lucas Wallmark struck twice for Sweden — including an empty-net goal with four seconds left in the third period — and Toronto Maple Leafs draft pick William Nylander had two assists. Gustav Forsling, Oskar Lindblom and Adam Brodecki also scored.
Jusso Ikonen had a goal and an assist for Finland, while Mikko Rantanen and Kasperi Kapanen rounded out the offence.
Sweden's Linus Soderstrom stopped 30 shots to pick up the victory. Ville Husso made 29 saves in shouldering the loss for Finland.
The teams were tied 3-3 before Sweden erupted for three goals in the final period.