The Electoral College is a system where each state is allocated a number of "electoral votes" based on the number of representatives and senators it has. Candidates must receive a majority (270 votes) of the total electoral votes to win the presidency. Most states use a "winner-take-all" system where the candidate who receives the most votes in that state gets all of its electoral votes. Two exceptions are Maine and Nebraska, which divide some electoral votes among congressional districts. The electors then formally cast their votes, and if no candidate receives a majority, the House of Representatives decides the election. While the Electoral College system can result in a president being elected despite losing the nationwide popular vote, it also encourages candidates