The candidate who wins the popular vote in a state receives all of that state's electoral votes, except in Maine and Nebraska, which award their electoral votes based on the popular vote in each congressional district.