 Hanrahan was named to the All-Star game in 2011, garnered a career high 40 saves in one season, and finished the year with a 1.83 ERA.On January 16, 2012, Hanrahan agreed to a one-year, $4.1 million deal that included incentives with the Pirates to avoid arbitration.On July 1, Hanrahan and teammate Andrew McCutchen were both named to the All-Star Game's National League roster for a second consecutive year.