The Americans' prospects of reaching the knockout round had looked uncertain after a loss to Canada a day earlier, but they dominated the Slovaks almost from the start.
Cole Bardreau opened the scoring in the fourth minute, but Slovakia's Matus Matis tied it 14 seconds later. The Americans gradually built an insurmountable lead, helped by two goals apiece from Vince Trocheck and John Gaudreau.
In Group A, the Czech Republic beat Switzerland 4-3 in overtime. Tomas Hertl scored the winner on a pass from Dmitrij Jaskin. Group leader Sweden plays Finland later Monday in a game that will determine if Switzerland makes the quarterfinals.
More Sports Headlines
Report: Cardinals running back Johnson has fractured tibia Ravens return blocked kick for TD as time expires to beat Browns Mariners interested in free-agent outfielder Aoki Bonds may become Marlins hitting coach Zimmermann finalizes 5-year, $110 million deal with Tigers Seahawks prepare for life without Graham Kobe Bryant says he will retire at end of season Indianapolis loses RB Bradshaw with season-ending injury
Our new comment system is not supported in IE 7. Please upgrade your browser here.