There were a total of 261 electoral votes needed to win, with the winning candidate needing to get 131 of them. However, no candidate did. Andrew Jackson got first place in both the electoral vote and popular vote, but he didn't get close to 131, getting just 99. Adams placed second with 84, Crawford third with 41 and Clay with 37. The Twelfth Amendment to the United States Constitution said that if this happened, the House of Representatives would vote on who would be president. Only the top three candidates would get to be voted on, though, so Clay officially lost. However, Clay, being the House Speaker, had a lot of power. He liked John Quincy Adams and hated Andrew Jackson. His influence likely gave Adams the win, able to secure just enough votes. In this House vote, there was one vote from each state. There were 24 states, which meant 24 votes would be given. The majority number of votes was 13. Adams got 13, so he just barely won. Jackson got 7, and Crawford got 4.