If Clinton and Trump were to tie in the Electoral College and deadlock in the House of Representatives, the U.S. Senate would then choose between Vice Presidential nominees Tim Kaine and Mike Pence.
Here’s how this unlikely—but still possible—constitutional scenario would play out. Based on an 11-state battleground, 270 to Wincalculated 32 possible ties, though not all are plausible. (It’s pretty unlikely that Clinton would win North Carolina while losing Virginia, for example.)
That figure goes up to 126 possibilities if you include the fact that Maine and Nebraska split their electoral votes by congressional district, unlike the rest of the states, and that each party could plausibly pick off one electoral vote in an otherwise reliably partisan state.
The number of mathematically possible ties varies depending on which states you consider to be tossups. Using RealClearPolitics’ list of 12 battleground states–including just one electoral vote from Maine—there are only 26 possible ties, according to TIME’s calculations. (It may seem strange that the number goes down with more battleground states, but such is the caprice of electoral math.)
The more likely scenario here is that a third-party candidate like Libertarian Gary Johnson or Never Trump Republican Evan McMullin wins a state like Utah and that, while Clinton and Trump don’t tie, they’re so close that neither win the majority of 270 electoral votes required, which would also throw the election to the House. According to TIME’s calculations, if Utah were to go to a third-party candidate, there are 141 cases where no candidate gets a majority, using the same set of 12 battleground states from RealClearPolitics.