Making his second Ryder Cup appearance in 2012, Hanson played on the victorious European team against the United States at Medinah Country Club outside Chicago, Illinois, in September. The European 14½–13½ triumph was by European media named the "Miracle at Medinah" and regarded as one of the best sporting comebacks of all time, since the U.S. team at one stage on Saturday led by 10–4. However, Hanson played only two matches and lost both. In the Sunday singles, he met Jason Dufner in the 9th match and lost, 2 up.