📘 CodingMarble Learn

The Maths of Voting

A vote count is a rule, and the rule can change the winner. With the same ranked ballots, plurality (most first choices), runoff (drop the last and recount) and Borda count (points for each rank) can pick three different winners. A Condorcet winner beats every other candidate one-to-one, but it may not exist. No method is perfect for three or more candidates.

🎬 Step-by-step story

  1. Nine people choose a class captain. The candidates are A, B and C. Each voter has a list: first choice, second choice, third choice.
  2. Here are the lists. 4 voters want A, then B, then C. 3 voters want C, then B, then A. 2 voters want B, then C, then A.
  3. Plurality: count only first choices. A gets 4, C gets 3, B gets 2. A wins, but only 4 of the 9 voters picked A first.
  4. Runoff: B has the fewest, so B is dropped. B's 2 voters move to their next choice, C. Now A has 4 and C has 5. C wins!
  5. Borda count: 2 points for first place, 1 for second, 0 for third. A gets 8, B gets 11, C gets 8. B wins!
  6. Same votes, three different winners. Now you try. Change how many voters are in each group and choose a method.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why do we need a ranked list, not just one name?

One name hides what a voter thinks about the others. A ranked list lets us see second and third choices, which is how runoff and Borda work.

How can A win when 5 of 9 voters do not want A?

The 5 other voters split their votes between B and C. A gets 4, which is still more than 3 or 2. This is plurality.

Why do B's voters help C in the runoff?

B is dropped, so each of those 2 ballots goes to the next name on its list. That name is C. C then gets 3 + 2 = 5.

Why does B win with Borda although B has the fewest first choices?

B is second for 7 of 9 voters, and second place earns points. Many small scores add up to the biggest total.

Is there a fair winner in this story?

B beats A (5 to 4) and C (6 to 3) one-to-one, so B is the Condorcet winner. Many people feel this is the fairest answer, but a Condorcet winner does not always exist.

Does a perfect voting method exist?

No. Arrow's theorem says that with three or more candidates, no ranking method can obey all the basic fairness rules together. Try the three methods in free play and watch them disagree.

Ranked ballots and plurality

A ranked ballot lists the candidates from best to worst for one voter. It tells us much more than "one name". With 3 candidates there are 6 possible lists.

Plurality uses only the first choice. The candidate with the most first-choice votes wins. This is "most votes wins", used in many elections. A candidate has a majority only with more than half of all votes. In our 9-voter story, A wins with 4 votes. That is a plurality, not a majority, and 5 of 9 voters put A last.

Runoff (ranked-choice) voting

Runoff fixes part of the problem. Step 1: count first choices. Step 2: if nobody has more than half, drop the candidate with the fewest. Step 3: move each dropped voter's ballot to the next name on that list. Step 4: count again. Repeat until someone has a majority.

In the story B is dropped and the 2 ballots move to C. C gets 3 + 2 = 5 of 9 and wins. The winner changed from A to C. The votes did not change. Only the rule did.

Borda count and the Condorcet winner

Borda count gives points for every place. With n candidates, first place gets n − 1 points, the next gets n − 2, and the last gets 0. Add the points of all voters. It rewards a candidate who is liked by many, even if not first. In the story: B scores 4×1 + 3×1 + 2×2 = 11.

A Condorcet winner beats every other candidate in a one-to-one vote. B beats A by 5 to 4 and beats C by 6 to 3, so B is the Condorcet winner. Sometimes none exists. If three groups prefer A over B, B over C and C over A, the choices go round in a circle (a cycle).

Is any method fair? Kenneth Arrow proved in 1951 that with three or more candidates no ranking method can satisfy every fairness rule at once. Voters can also vote strategically (not honestly) to help a favourite. Choose the method that fits the purpose, and tell everyone the rule before the vote.

Try it: run your own election

At home: ask 9 family members or friends to rank 3 snacks on paper. Count by plurality, runoff and Borda. Do you get the same winner? Then in the 3D lab, predict the winner first, press the method, and check. Try to make all three methods agree, then try to make them disagree.

Key formulas and definitions

Worked examples

1. 5 voters: 3 pick X first, 2 pick Y first. Who wins by plurality? Is it a majority?

X has 3 first-choice votes, Y has 2. X wins. Half of 5 is 2.5 and 3 is more than 2.5, so it is also a majority.

2. 4 voters rank A,B,C and 3 voters rank C,B,A and 2 voters rank B,C,A. Find the Borda points of A and C.

A: first for 4 voters (4×2 = 8), last for the rest (0). A = 8. C: last for 4 voters (0), first for 3 (3×2 = 6), second for 2 (2×1 = 2). C = 8.

3. 100 voters. First choices: P 42, Q 33, R 25. All 25 R voters rank Q next for 20 of them and P next for 5 of them. Who wins the runoff?

No one has more than 50. R is dropped. Q gets 33 + 20 = 53. P gets 42 + 5 = 47. Q wins with 53.

4. In the 9-voter story find the Condorcet winner.

A vs B: 4 prefer A, 5 prefer B, so B wins. B vs C: B is above C for 4 + 2 = 6 voters, C above B for 3. B wins. B beats both, so B is the Condorcet winner.

5. Three groups of 3 voters rank A>B>C, B>C>A and C>A>B. Is there a Condorcet winner?

A beats B 6 to 3. B beats C 6 to 3. C beats A 6 to 3. It is a circle, so no candidate beats all others. There is no Condorcet winner.

Common mistakes

Practice quiz

1. In plurality voting the winner is the candidate with…
2. With 4 candidates, the first place in a Borda count gets…
3. A candidate who beats every other one-to-one is called a…
4. In a runoff, what happens to the ballots of the dropped candidate?
5. Who proved that no ranking method is perfect for 3 or more candidates?

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is the difference between plurality and majority?

Plurality means the most votes. Majority means more than half of all votes. A plurality winner may have less than half.

Is ranked-choice voting the same as runoff?

Ranked-choice voting is the common name for instant runoff. Voters rank candidates once, and the count removes the last one round by round.

Which voting method is the best?

None is best for every case. Plurality is simple, runoff avoids some unfair wins, Borda rewards broad support, and Condorcet looks at one-to-one wins. Pick by the goal of the vote.

Learn first

Learn next

Related lessons

All Maths lessons