California, Florida, New York, Illinois, and Pennsylvania have the most electoral votes. In 2008, Barack Obama won the election with 364 electoral votes to John McCain's 163 electoral votes. If McCain had won the six states with the most electoral votes, he would have won the election with 318 electoral votes to Obama's 209 electoral votes.