Montana was won by Republican nominee John McCain by 11,273 votes, a 2.38% margin of victory. Before the election, Montana was initially viewed as safe Republican, but was viewed as lean Republican or toss-up in the final weeks. Historically the state is a Republican stronghold, but polls during the 2008 election showed Democrat Barack Obama just narrowly trailing Republican John McCain within the margin of error. On election day, McCain narrowly carried Montana. It was the fourth-closest state in the nation, behind Missouri, North Carolina, and Indiana, Missouri being a former bellwether state, and the other three being traditionally Republican states.
Despite the fact that Bill Clinton carried the state in 1992, Barack Obama's 47.11% of the vote was (and as of 2020 remains) the highest percent of the vote received by any Democratic candidate for president since 1964. Bill Clinton's victory in 1992 and near miss in 1996 were attributed to Ross Perot's strong third party candidacy in 1992 and 1996, the only other elections since 1964 when Montana was decided by under 5%. Obama was able to flip seven of Montana's counties from Republican to Democratic compared to the 2004 election.