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
Snohomish mixed martial artist returns to her first love Mariners beat Twins 4-3 in 11 innings Charles scores 29 points, Liberty beat Storm 78-62 Park wins Women's British Open, captures 4th different major Perry wins 2nd straight Champions Tour's 3M Championship Merritt shoots 67 to win Quicken Loans National by 3 shots Triple Crown winner American Pharoah wins $1.75 million Haskell Invitational Bills' Ryan names Incognito starting left guard
Our new comment system is not supported in IE 7. Please upgrade your browser here.