Kyle Palmieri notched a goal and an assist while Nick Bonino contributed three helpers for the Ducks, who broke a five-game losing streak away from home.
The Sharks, who entered the game with 82 points, remained one point out of the eighth and final playoff spot in the Western Conference with the loss.
Sharks goalie Antti Niemi was pulled in the second period after allowing four goals on 26 shots. Thomas Greiss came in and stopped 10-of-11 the rest of the way.
Benedict Cumberbatch's dramatic reading of R. Kelly lyrics is just what you need
Jordana Brewster on Paul Walker: 'He was an enormous presence in my life'