Polk won the electoral vote 170 -- 105 .
The flip of several thousand votes in closely contested New York would have delivered the election to Clay .
Polk won the electoral vote 170 -- 105 , but the flip of several thousand votes in closely contested New York would have delivered the election to Clay .