tl;dr: It takes 270 electoral votes to win the Presidential election.
Hello!
In the U.S., there are a total of 538 possible electoral votes, but the president only needs the majority of the votes, 270, to win the presidency.
Hope this was helpful! Have a great day!