1. Ballots
Three layouts are read: A > B > C lines (12: A > B counts 12 identical ballots, = is an equal ranking); one row per ballot with names in preference order or under Rank 1, Rank 2 headers; or a Google Forms multiple choice grid, one column per candidate with 1st choice or a number in each cell. Columns such as a timestamp are ignored.
Result
Instant runoff, round by round
Single transferable vote
Head to head: ballots ranking the row candidate above the column candidate
Who it is for, and when to use something else
It suits a secretary or returning officer who has ranked ballots in a spreadsheet and needs a count the members can follow: a club choosing a chair, a co-op electing three directors, a student union, a staff vote on a name. Each method shows its working, so a disputed result can be checked one round at a time.
Use something else for a public election run under a statute: those need the certified software and the exact rules your election authority sets. If you only need to collect votes, any form tool will do; this page counts them once you have them.
Method and citation
Instant runoff. Each ballot counts for its highest-ranked candidate still in the race. While nobody holds more than half of the ballots still in play, the last-placed candidate is eliminated. A ballot with no candidates left, or whose next live rank is shared by two candidates, is exhausted and stays exhausted.
Single transferable vote. The quota is the Droop quota, floor(valid ballots ÷ (seats + 1)) + 1. A candidate who reaches it is elected; their surplus moves on by the weighted inclusive Gregory method, every paper they hold passing to its next hopeful choice at value surplus ÷ total, truncated to 5 decimal places (what truncation drops is shown as rounding). With no surplus to move, the lowest hopeful is excluded and their papers move on at their current value. When the hopefuls left equal the seats left, they are all elected. With one seat this gives the instant-runoff winner.
Schulze. From the head-to-head table, each win's strength is the number of ballots that preferred the winner; a path's strength is its weakest link, and a candidate ranks above another when its strongest path to them is stronger than theirs back. A candidate who beats every other head to head always comes first. A candidate a ballot leaves unranked counts as below every ranked one.
Ties for elimination or for the largest surplus go to the most recent earlier round where the tied candidates differed, then to a lot drawn from the seed, so the same seed always gives the same count.
M. Schulze, "A new monotonic, clone-independent, reversal symmetric, and Condorcet-consistent single-winner election method", Social Choice and Welfare 36(2), 267–303, 2011, doi:10.1007/s00355-010-0475-4. H. R. Droop, "On methods of electing representatives", Journal of the Statistical Society of London 44(2), 141–202, 1881, doi:10.2307/2339223. This page implements the methods from their published descriptions; it is not affiliated with their authors.
@article{schulze2011,
author = {Schulze, Markus},
title = {A new monotonic, clone-independent, reversal symmetric, and Condorcet-consistent single-winner election method},
journal = {Social Choice and Welfare}, volume = {36}, number = {2}, pages = {267--303}, year = {2011},
doi = {10.1007/s00355-010-0475-4}
}
@article{droop1881,
author = {Droop, Henry Richmond},
title = {On methods of electing representatives},
journal = {Journal of the Statistical Society of London}, volume = {44}, number = {2}, pages = {141--202}, year = {1881},
doi = {10.2307/2339223}
}
From the command line
The same engine, no dependencies, no network: node cli.mjs ballots.csv --seats 3 prints every round; --json and --csv give machine output. Source and README.
Questions
How do I count ranked-choice votes from a Google Form?
Ask the question as a multiple choice grid with the candidates as rows and 1st choice, 2nd choice and so on as columns, then download the responses as CSV from the linked sheet and paste or open the file here. The tool reads each candidate column, ignores the timestamp, and counts the ballots.
What is the difference between instant runoff and STV?
Instant runoff fills one seat: the last-placed candidate is eliminated and their ballots move to the next choice until someone has a majority of the ballots still in play. STV fills several seats: a candidate who reaches the quota is elected and the votes they do not need move on at a reduced value, so each group of voters elects about its share of the seats. With one seat, the two give the same winner.
Why can instant runoff and Schulze pick different winners?
Schulze looks at every head-to-head contest and picks a candidate who beats each other one (the Condorcet winner) when there is one. Instant runoff can eliminate that candidate early for having few first choices. In the four-city example loaded by the button, Nashville beats every other city head to head but instant runoff elects Knoxville.
How are ties broken?
When two candidates are tied for elimination, the one with fewer votes in the most recent earlier round where they differed goes. If they were tied in every round, a lot is drawn from the seed you set, so the same seed always gives the same draw. Many bylaws say how a tie is settled; follow them, and use the count to see exactly where the tie arose.
Can I use this for an official public election?
No. It is not certified for any public election and does not implement any jurisdiction's statute word for word. It suits clubs, associations, boards, unions, student bodies and polls, where you can check the result against the rounds it shows.
Are the ballots uploaded?
No. The count runs in this browser tab. There are no accounts, cookies or analytics vendors, and the command-line version makes no network calls.