Pennsylvania was won by Democratic nominee Barack Obama by a 10.32% margin of victory. Prior to the election, all 17 news organizations considered this a state Obama would win, or otherwise considered as a safe blue state. Although the Commonwealth of Pennsylvania had voted for the Democratic presidential nominee in every election since 1992, the margins of victory had become smaller over the past elections, as was highlighted in 2004 when John Kerry won Pennsylvania by a slim margin of 2.50%. Since George W. Bush came relatively close to winning the state in 2004 and because Barack Obama lost the Democratic primary to Hillary Rodham Clinton by nearly 10% in April 2008, many analysts believed that Republican John McCain had a decent shot at winning Pennsylvania in the general election.[2]
Nevertheless, Pennsylvania remained blue and gave Obama 54.49% of the vote to McCain's 44.17%, a margin of 10.32%.