I actually made a spreadsheet for this. (I know, the image isn't the best quality).
Using the results from
Politico, at around 10PM GMT last night, I calculated the difference in votes between Hillary and Trump, and also the number of votes for third party candidates in that state, just out of interest. Turns out, there are 13 states in which there were more third party votes, than the winning party won by. I'll reference this as XX (Difference / Third Party Votes). I've also rounded them, so you can't complain I'm being too accurate with exact numbers.
Trump won the following states by a smaller number of votes than third party voters: AZ (83,000 / 99,000); FL (120,000 / 295,000); MI (12,000 / 243,000); NM (7,000 / 92000); PA (68,000 / 212,000); UT (152,000 / 203,000); WI (27,000 / 153,000).
Clinton won the following states by a smaller number of votes than third party voters: CO (51,000 / 199,999); ME (20,000 / 50,000); MN (43,000 / 227,000); NV (26,000 / 74,000); NH (1,000 / 37,000); VA (186,000 / 197,000).
Don't get me wrong, I'm all for smaller parties. For the fun of it, I worked out what would happen if every state gave out its votes based on what percentage each party got in that state. Turns out, none of them would reach a majority, but Clinton would get 265, Trump 255, Johnson 14, Stein 1 and McMullin 1. Due to some rounding errors, a couple of states ended up with one more / less vote than they actually get in this calculation, but they add up to 536, so the entire thing is only 2 short. If you take the results on a national scale and divide up the 538 votes between everyone, you end up with Clinton 258, Trump 254, Johnson 17, Stein 5, McMullin 2, and the rest combined would get 2. That last one was because I only really recorded the main 3 third parties, and just combined the rest. Sorry.
I do think smaller parties are a great idea. I really want them to do well, and clearly many (~6,000,000) other people do too. They encourage more competition for votes and political diversity in the nation. However, they're only really effective in some situations. If you live in a country that uses a good, modern voting system like STV or something equally representative, then go ahead and vote third party. If you're somewhere that uses FPTP, it's probably not in your best interest, but it still works if you live in the right area. However, if you live in somewhere that uses an electoral college, (which by the way, is horrendously unrepresentative and in my opinion should be replaced by a single, nation-wide raw vote, but that's my opinion), then voting third party doesn't really do much. The highest third party percentage in any state was Utah with 25%, followed by Alaska, Idaho and New Mexico with 13%, Oklahoma on 11%, and the rest all below 10%. The chances of a state winning third party is next to none. Even Utah would need to double the number of people voting third party to give its measly 6 votes to someone other than Trump or Clinton.
The inclusion of, and voting of, third parties in an election set up in the way it is in the US just causes situations like this, where someone who didn't even win a majority of raw votes gets to become president. Less than half of the population wanted Trump as a president. I know Hillary isn't much better, but she's the better of the two evils. Trump literally has multiple court cases in the next few months, he is openly racist, sexist and homophobic, and has no political experience. He won on the same principal as Farage did in Brexit.
Ako, I'm not disagreeing with you. People voting third party is their democratic right, and I agree they should have that. I agree Clinton isn't a good candidate. Neither of them are. The best one there was was good old Sanders, who ended up being voted out. Whether that was via rigging or not, I don't know. All I know is, for third parties to be beneficial, America needs to change how it votes.