comparing margins for EC and popular vote does not really capture how close a US presidential election was. you can easily have a blowout in the EC that was determined by a <1% lead in a few key states. popular vote is an interesting stat, but not very meaningful under the current rules.
There've been 6 elections over the last ~20 years.
Popular vote count
1. Obama-08 7.27%
2. Obama-12 3.86%
3. Biden-20 3.4%
4. Bush-04 2.46%
5. Bush-00 −0.51%
6. Trump-16 −2.09%
By Elector College
1. Obama-12 365
2. Obama-16 332
3. Biden-20 306
4. Trump-16 302
5. Bush-04 286
6. Bush-00 271