"I think this was an important win for us," Sharks coach Peter DeBoer said. "Obviously, we got a tough schedule coming up, we go on the road and some tough buildings. We did enough to get the win. It wasn't a textbook game, but we did a lot of good stuff, and those are difficult opponents to play. I thought the Red Wings played really hard. They've got a lot of speed."
WATCH: [All Red Wings vs. Sharks highlights]
San Jose (37-23-9) trails the Vegas Golden Knights by 12 points for first place in the Pacific but leads the Los Angeles Kings by two and the Anaheim Ducks by three.
"When you get your opportunities, you have to keep trying to build that," Pavelski said. "You know how hard to work to get a couple of points ahead."
Trevor Daley, Gustav Nyquist and Henrik Zetterberg each had a goal and an assist, and Tyler Bertuzzi had three assists for the Red Wings, who lost their seventh straight game (0-6-1), matching their season high. Jimmy Howard made 29 saves.
Detroit (26-32-11) trails the New Jersey Devils by 15 points for the second wild card into the Stanley Cup Playoffs from the Eastern Conference.
"We want to go win a game [at the Los Angeles Kings on Thursday]," Red Wings coach Jeff Blashill said. "We've lost too many games in a row here, so we need to win that, we need to go with some type of desperation. We need to keep playing the right kind of hockey that allows us to grow."
Meier redirected Mikkel Boedker's shot from the slot past Howard on the power play to make it 4-2 at 5:12 of the third period.
Zetterberg scored on a wrist shot at 5:53 to cut the Sharks lead to 4-3, but Tierney scored into an empty net to make it 5-3 with 1:34 left.