Kaprizov scored his 20th goal of the season from the left face-off circle after Anaheim defenseman Stian Solberg tied it 4-4 with three seconds left in the third period.
Solberg, who also had two assists, put the puck in off the left skate of Jesper Wallstedt from along the goal line at the right of the net after the Ducks pulled Laurent Broissoit for a 6-on 4 power play with one minute left in regulation.
Bobby Brink and Matt Boldy each had a goal and an assist for the Wild (19-5-6), who had lost three in a row (0-2-1) and four of five (1-2-2). Wallstedt made 22 saves.
Ryan Poehling scored twice, and Beckett Sennecke had two assists for the Ducks (12-15-2), who have lost three in a row (0-2-1) and seven of eight (1-6-1). Brossoit made 24 saves.
Anaheim scored first for the fourth straight game at 8:01 of the first period. Sennecke waited out Wild defensemen Matt Kiersted and Jared Spurgeon as he drove to the net on a 2-on-1 rush and passed to Pavel Mintyukov, who buried a low wrist shot as he cut through the slot.
Both teams combined for five goals in a span of 5:08 early in the second.
Blake Coleman tied it 1-1 when he redirected a pass into the net from the far post at 1:16.
Poehling, who was playing in his second game after missing 22 with an MCL injury, roofed a shot over Wallstedt's right shoulder from just below the left circle to move Anaheim back in front 2-1 at 2:03.
Ducks defenseman Jackson LaCombe lost control of the puck in his own end, Boldy retrieved it in the right circle and scored with a wrist shot to tie it 2-2 at 4:24.
Zach Bogosian, playing in his 999th NHL game, gave Minnesota its first lead of the game at 5:30, making it 3-2 when he scored with a slap shot from just above the right circle.
Poehling tipped the puck past Wallstedt off a rush to tie it 3-3 at 6:24.
Ducks forward Alex Killorn was unable to control a pass back to him at his own blue line at the end of a power play and Brink scored on a breakaway fresh out of the penalty box to put the Wild ahead 4-3 at 12:01 of the third period.