Possible paths for a Trump nomination loss or win

It pains me to imagine a time when Donald Drumpf earns a Republican nomination. There are a number of ways he can get there, but there are a number of ways Marco Rubio can win the nod too. The Upshot simulated the possible routes.

To figure out what it will take for Donald J. Trump — or Marco Rubio or Ted Cruz — to win the Republican nomination, we built the G.O.P. presidential nomination process in code. This interactive delegate calculator uses each state’s delegate allocation rules, along with estimates of how favorable each district is for each candidate, to simulate how the race might unfold.

And if you have a different idea of what the results will be like, you can adjust the sliders for each candidate to simulate your own results.