Ranked-choice voting calculator


Lenient mode: Normalize ballots

 

The data format is as follows:

<optional string [ignored]>,<candidate1>,<candidate2>,<candidate3>,<candidate4>,<candidate5>,...,<candidateN>
<voter1>,<voter1 rank of cand. 1>,<voter1 rank of cand. 2>,<voter1 rank of cand. 3>,...,<voter1 rank of cand. N>
<voter2>,<voter2 rank of cand. 1>,<voter2 rank of cand. 2>,<voter2 rank of cand. 3>,...,<voter2 rank of cand. N>
<voter3>,<voter3 rank of cand. 1>,<voter3 rank of cand. 2>,<voter3 rank of cand. 3>,...,<voter3 rank of cand. N>
.
.
.
<voterM>,<voterM rank of cand. 1>,<voterM rank of cand. 2>,<voterM rank of cand. 3>,...,<voterM rank of cand. N>

— where M is the number of voters and N is the number of candidates. Where the voter did not express a preference, the rank is the empty string.

Example

Here, 5 voters rank their choices of cereal:

,Honey Nut Cheerios,Raisin Bran,Rice Krispies,Wheaties,Froot Loops
Smith,,1,3,2,
Jones,2,3,1,4,5
Lee,1,3,,2,
Kim,3,1,4,2,
Torres,1,,3,2,