3
In recent history, the Bush/Gore election in 2000 was polled to be close, and ended up being decided by the Supreme Court.
These are the top 5 closest elections in US history:
https://www.britannica.com/list/5-remarkably-close-us-presidential-elections