Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Voting systems lab

Count the same ranked ballots by ten voting methods, from plurality and instant runoff to Borda, Condorcet, Schulze and STV, and find the spoilers.

How to use

  1. Pick an example, or type your own ballots: one line per group of voters, such as 34: Pool > Park > Library. Leave out the number for a single voter. Commas work instead of >.
  2. Voters may rank only some candidates. Anyone left off a ballot counts below everyone that ballot ranks. Lines starting with # are notes.
  3. Press Count the votes. Who wins lists the winner under every method side by side.
  4. Open Round by round for instant runoff and single transferable vote, Head to head for every one-on-one contest, and Spoiler test to see which methods change their mind when a losing candidate drops out.

Keyboard and touch

TabMove between the boxes, buttons and result tabs
Enter or Space on a button or tabCount, or open that result tab
Arrow keys in a number boxChange the approval cut-off or the number of seats
Wide tablesSwipe or scroll sideways on a phone

Tips

  • The capital example is famous because four reasonable methods pick three different cities: plurality picks Memphis, instant runoff Knoxville, and Borda and Condorcet both pick Nashville.
  • The centre squeeze shows how instant runoff can knock out a compromise candidate early, even one who would beat everybody head to head.
  • In a Condorcet cycle there is no candidate who beats all the others. Methods such as Schulze and Copeland still pick a winner by looking at how strong each win is.
  • No ranked method is perfect: Arrow's theorem (1951) shows that with three or more candidates every ranked method breaks at least one reasonable-sounding fairness rule. The spoiler test makes that visible.
  • Try the committee example with 1, 2 and 3 seats to see how single transferable vote shares seats out in proportion to the groups of voters.

About this lab

Plurality counts first choices. Two-round runoff keeps the top two unless one has over half. Instant runoff drops the last-placed candidate round by round, moving those ballots to their next choice, until one has over half of the ballots still counting. Coombs works the same way but drops the candidate ranked last by the most voters (a ballot that leaves several candidates off shares its last place between them). Borda gives m − 1 points for a first place down to 0 for last among m candidates; unranked candidates get 0. Approval here treats each voter as approving their top N. A Condorcet winner beats every other candidate one on one; Copeland scores 1 per head-to-head win and ½ per tie; Schulze compares the strongest chain of wins (winning votes) between each pair.

Single transferable vote uses the Droop quota, the whole part of voters ÷ (seats + 1), plus 1, and moves each winner's surplus at a fraction of every ballot's weight (the inclusive Gregory method). When candidates left equal seats left, they are all elected. Real elections set their own detailed rules, so official counts can differ in edge cases.

Ties are broken in favour of the candidate who appears first in the ballot list; when a candidate must go out, a tie removes the one that appears later. Everything is counted in your browser; your ballots are not sent anywhere.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product