Ty Emberson had a goal and an assist for the Oilers (48-29-5), who won four of their final five games (4-1-0). Stuart Skinner made 18 saves.
Edmonton finished third in the Pacific Division and will play the Los Angeles Kings in the Western Conference First Round in the Stanley Cup Playoffs.
McDavid became the fourth player in NHL history with at least eight career 100-point seasons, following Wayne Gretzky (15), Mario Lemieux (10), and Marcel Dionne (8).
Alexandar Georgiev made 25 saves for the Sharks (20-50-12), who lost their final 11 games of the season (0-8-3).
Emberson gave the Oilers a 1-0 lead at 8:20 of the first period with a wrist shot that beat Georgiev over the blocker.
Max Jones pushed the Oilers lead to 2-0 at 10:17 of the second period. Adam Henrique passed a puck from behind the net to the top of the crease, and Jones beat Georgiev by the blocker.
Corey Perry fired the puck into the empty net from center ice at 17:23 of the third period for the 3-0 final.

Sharks goalie Alexandar Georgiev stops a shot by Corey Perry (90) during first period action – Photo by Jack Lima

Sharks forward Barclay Goodrow (23) jumps to avoid a shot in front of goalie Stuart Skinner – Photo by Jack Lima

Sharks forward Alexander Wennberg (21) chases the puck in front of Oilers defenseman Evan Bouchard (2) – Photo by Jack Lima

Oilers goalie Stuart Skinner reaches for a shot as William Eklund (72) looks for a rebound – Photo by Jack Lima

Oilers forward Quinn Hutson (20) passes the puck as Lucus Carlsson (36) defends – Photo by Jack Lima