On 4 April, Gómez signed a new contract with Bayern Munich, keeping him at the club until the summer of 2016. Gómez scored the winning goal in Bayern's 2–1 victory over Real Madrid in the first leg of their semi-final clash. Bayern went on to win the tie 3–1 on penalties after the teams were deadlocked 3–3 on aggregate. On 19 May 2012, he played in the Champions League Final against Chelsea. He failed to find the net in regular time in the game but scored in the penalty shoot-out as Bayern once again fell at the final hurdle, losing 4–3 on penalties after a 1–1 finish. He finished the 2011–12 season with 26 goals in 33 league appearances, two goals in five DFB-Pokal appearances, and 13 goals in 14 Champions League appearances.