As he celebrated a personal milestone, the Germany international striker scored a critical goal as his side maintained their spot at the top of the Bundesliga table
The visitors were very strong in defense and always had a chance to take at least a point, but the Germany international forward made the difference as he broke the deadlock on 60 minutes.
Following a free kick, Gomez nodded the ball into teammate Jerome Boateng, before collecting his rebound and firing home. Only in the closing seconds of the game did Bayern finally get its second goal, as Arjen Robben poked home Ivica Olic's chip as it was set to cross the goal line.
Bayern was the more ambitious team at the start of the game, and it took just seven minutes for the hosts to find the back of the net, as Mario Gomez nodded in from Franck Ribery's saved volley attempt. The goal was called back, though, for offside.
Gomez's next chance came on 19 minutes as Bastian Schweinsteiger's clever chip played him through on goal, but after controlling, the striker failed to connect with the ball and the chance went begging.
Wolfsburg was quick to close down its opponent, whose chances became very limited, but towards the end of the first half, Bayern had more success. Ribery made space before Thomas Muller fired a clear chance wide, and the Frenchman was then denied a clear penalty claim as the sides entered the halftime break on level terms.
Wolfsburg was largely stymied during the first half, but its chances did come intermittently. Philipp Lahm's weak back pass gave Ashkan Dejagah a chance to cross in front of goal, but nothing came of the opportunity for the visitors. On 45 minutes, Bastian Schweinsteiger's weak clearance left Mario Mandzukic with an opportunity, but the Bayern vice-captain made a crunching tackle to concede a corner.
Another defensive mistake from the hosts saw Rafinha concede possession to Mandzukic, who drew Manuel Neuer out of his goal but was unable to find a teammate with his cut-back pass.
Gomez's goal changed the scope of the game, as Wolfsburg grew increasingly open at the back while it threw attackers forward. Substitute Koo Ja-Cheol was unable to control Dejagah's cross in front of goal, and at the other end, Ribery had a stinging attempt saved by Diego Benaglio when the Frenchman was through on goal.
The visitors pressed more and more for an equalizer late in the game, but were ultimately unable to restore parity, as the Bavarians held firm just long enough. Olic's hard work created a late second goal, which effectively ended the game a minute early.
The result sees Bayern keep pace with Dortmund atop the table on 40 points, with a goal difference of +4 separating the Bavarians from the title holders. Wolfsburg are ninth now, with 23 points from 19 games.