Who wins by ranked choice voting?
Type each ranking that voters cast and how many voters cast it. The ranked choice voting calculator counts the ballots by instant runoff, removing the last-place candidate each round and moving those ballots to their next choice, and shows every round until a candidate has a majority.
- Winner
- Ben
Ben wins after 2 round(s), with 60% of the continuing ballots.
- Rounds
- 2
- Winner’s votes in the last round
- 60
- Winner’s share of continuing ballots
- 60%
- Exhausted ballots
- 0
- Ballots cast
- 100
- Round by round
- Round 1: Ana 40, Ben 35, Cy 25 of 100 continuing; no majority, Cy removed; Round 2: Ben 60, Ana 40 of 100 continuing; Ben has a majority and wins
Winner: Ben. Ben wins after 2 round(s), with 60% of the continuing ballots.
How it is worked out
How to calculate
Counts ranked ballots by instant runoff: removes the last-place candidate round by round and moves those ballots to their next choice until someone has a majority.
Example with the default inputs (Ballots [Voters 40, Ranking Ana > Ben > Cy; Voters 35, Ranking Ben > Cy > Ana; Voters 25, Ranking Cy > Ben > Ana]): Ben wins after 2 round(s), with 60% of the continuing ballots.
Method: Each round: each ballot counts for its highest-ranked candidate still in the count; more than half of the continuing ballots wins; otherwise the candidate with the fewest votes is removed (all candidates with 0 votes together) and the count repeats.
- Single-winner instant runoff with one last-place candidate removed per round, as in Maine law.
- A tie for last place with votes gives no answer: the law decides it (in Maine, by lot).
- Names match without regard to case or extra spaces; a ballot cannot rank one name twice.
Worked examples
Each example is checked against the calculator on every build.
- Ballots 40 Ana > Ben > Cy; 35 Ben > Cy > Ana; 25 Cy > Ben > Ana gives Winner Ben, Rounds 2, Winner’s votes in the last round 60, Winner’s share of continuing ballots 60%, Exhausted ballots 0, Ballots cast 100.Source: https://fairvote.org/our-reforms/ranked-choice-voting-information/
- Ballots 45 A; 35 B; 12 C > B; 6 C > A; 2 C gives Winner A, Rounds 2, Winner’s votes in the last round 51, Winner’s share of continuing ballots 52.040816%, Exhausted ballots 2.Source: https://legislature.maine.gov/statutes/21-A/title21-Asec723-A.html
- Ballots 60 X > Y; 40 Y > Z gives Winner X, Rounds 1, Winner’s share of continuing ballots 60%.Source: https://fairvote.org/our-reforms/ranked-choice-voting-information/
How it works
Ballots. Each row is one ranking and the number of voters (1 or more) who cast it. The ranking is a list of names separated by > or ,, first choice first. Names are trimmed, runs of spaces count as one, and case is ignored when matching (ana and Ana are one candidate, shown with its first spelling). A row with no name, or with the same name twice, gives no answer. The candidates are every name on any ballot.
Each round:
- Every ballot counts as one vote (times its voters) for its highest-ranked candidate still in the count. A ballot that ranks no such candidate is exhausted and is not counted.
- Continuing ballots = the votes counted this round.
- If a candidate has more than half of the continuing ballots (votes × 2 > continuing), that candidate wins.
- Otherwise the candidate with the fewest votes is removed. If several candidates have 0 votes, they are all removed together. If two or more candidates tie for the fewest votes and that number is more than 0, there is no answer: the law decides the tie (by lot in Maine).
- Repeat with the remaining candidates.
Outputs. The winner; the number of rounds; the winner's votes in the final round; the winner's share = winner's votes ÷ continuing ballots in the final round × 100; exhausted ballots = ballots cast − continuing ballots in the final round; ballots cast = the sum of the voters over all rows; and a round-by-round account.
Round-by-round text. Each round reads Round n: <name votes, …> of <continuing> continuing; then either <name> has a majority and wins or no majority, <names> removed (several names joined by " and ", in order of first appearance). Candidates are listed by votes, most first; equal votes keep the order in which the names first appear (row by row, left to right). Rounds are joined by ; . Counts in this text are plain digits with no thousands commas, so a comma only separates two candidates. With 4,000 Ana > Ben, 3,500 Ben and 2,500 Cy > Ben, round 1 reads Round 1: Ana 4000, Ben 3500, Cy 2500 of 10000 continuing; no majority, Cy removed.
This follows FairVote's description of single-winner ranked choice voting and Maine's statute, except that the page stops at a majority instead of counting down to two candidates (the winner is the same). Overvotes and skipped rankings on paper ballots are not modeled.
Rounding. Counts are whole numbers; the share shows to 2 decimals of a percent.
Worked examples by hand
A come-from-behind win (page default). 40 Ana > Ben > Cy; 35 Ben > Cy > Ana; 25 Cy > Ben > Ana. Round 1: Ana 40, Ben 35, Cy 25 of 100. Nobody has more than 50, so Cy is removed. Round 2: Cy's 25 ballots go to Ben: Ben 60, Ana 40 of 100. Ben wins in 2 rounds with 60 votes, 60.00%, 0 exhausted.
Exhausted ballots. 45 A; 35 B; 12 C > B; 6 C > A; 2 C. Round 1: A 45, B 35, C 20 of 100; C is removed. Round 2: B gains 12, A gains 6, and the 2 ballots that rank only C are exhausted: A 51, B 47 of 98. 51 × 2 = 102 > 98, so A wins in 2 rounds, with 51 ÷ 98 = 52.04%; 2 exhausted.
First-round majority. 60 X > Y; 40 Y > Z. Round 1: X 60, Y 40, Z 0 of 100. 60 × 2 > 100, so X wins in 1 round with 60.00%.
Other questions people ask
How does ranked choice voting work?
Voters rank the candidates. Each ballot first counts for its top choice. If a candidate has more than half of the votes, that candidate wins. If not, the candidate with the fewest votes is removed, and those ballots count for their next choice. This repeats until someone has a majority.
How do I calculate a ranked choice voting result?
Count first choices. With 40 for Ana, 35 for Ben and 25 for Cy out of 100, nobody has more than 50, so Cy is removed. Cy’s 25 ballots rank Ben next, so round 2 is Ben 60, Ana 40, and Ben wins.
What is an exhausted ballot?
A ballot that ranks no candidate still in the count. Maine law leaves exhausted ballots out of later rounds, so the majority is counted on the continuing ballots only.
What happens in a tie for last place?
Maine law decides a tie for last place by lot. The calculator cannot draw lots, so it stops and names the tied candidates. Remove the candidate your rules eliminate from the ballots and count again. Candidates with no votes at all are removed together, which changes nothing.
Is the winner the same if counting continues to the last two?
Yes. Maine counts until two candidates remain; this page stops when a candidate has more than half of the continuing ballots. Removing other candidates can only add ballots to the leader, so a candidate with a majority would win either way.
How do I type the ballots?
One row per distinct ranking, with the number of voters who cast it. Type the names in order, first choice first, separated by > or commas: Ana > Ben > Cy. Leaving names off the end is fine; ranking the same name twice is not.