Almost every election question gives the winner's share as a percentage and the winning margin as a number of votes. The trick is to express the margin as a percentage as well.

Margin % = winner's % − loser's %    and    Total = margin in votes ÷ margin %

With two candidates and only valid votes, the loser's share is 100% minus the winner's.

Worked example 1: two candidates

The winner gets 60% of the valid votes and wins by 1,200. The loser has 40%, so the margin is 20%. Valid votes = 1,200 ÷ 0.20 = 6,000.

Worked example 2: given the loser's share

A candidate polls 35% and loses by 9,000. The winner has 65%, a margin of 30%, so total votes = 9,000 ÷ 0.30 = 30,000.

Some questions reverse the direction: they give the winner's votes and the margin, and ask for a percentage. Find the loser's votes first, add to get the total, then divide.

Worked example 3: finding the winner's share

The winner polls 4,500 votes and wins by 1,000. The loser has 3,500, so 8,000 valid votes were cast. The winner's share is 4,500 ÷ 8,000 = 56.25%.

A quick sanity check for any two-candidate answer: the winner's share must be above 50%, and the margin percentage is twice the amount by which it exceeds 50%. A winner on 56.25% is 6.25 points above half, so the margin is 12.5% of 8,000, which is 1,000 votes, as given.

Real elections have three layers: registered voters, votes cast and valid votes. Percentages may refer to any of them, so build a short chain and work backwards one layer at a time.

  1. Registered voters × turnout % = votes cast.
  2. Votes cast × (100 − invalid %) = valid votes.
  3. Valid votes × candidate's % = that candidate's votes.

Worked example 4: 20% invalid

20% of votes cast are invalid. The winner gets 55% of the valid votes and wins by 2,400. Margin = 10% of valid votes, so valid = 24,000. These are 80% of votes cast, so votes cast = 24,000 ÷ 0.8 = 30,000.

Worked example 5: all three layers

80% of registered voters vote, 10% of those votes are invalid, and the winner gets 60% of the valid votes, which is 4,320. Valid = 4,320 ÷ 0.6 = 7,200. Cast = 7,200 ÷ 0.9 = 8,000. Registered = 8,000 ÷ 0.8 = 10,000.

Dividing by each percentage in turn is faster than setting up an equation with x for the registered voters.

With more than two candidates, the shares no longer pair up, but the margin idea still works for any two of them.

Worked example 6: three candidates

A gets 45%, B 35% and C the remaining 20%. A beats C by 5,000 votes, a margin of 25%, so total = 20,000. B therefore polled 35% of 20,000 = 7,000.

Check that the stated shares add up to 100% (or to 100% minus the invalid share). If they do not, a candidate or a category is missing from your reading of the question.

When a vote moves from the winner to the loser, the winner loses one and the loser gains one, so the gap closes by two. Half the gap gives a tie; one more vote flips the result.

Worked example 7: 10,000 votes, 55% to the winner

Winner 5,500, loser 4,500, gap 1,000. 500 switches make it a tie, so at least 501 votes must switch for the loser to win.

  • Using the winner's share instead of the margin. 1,200 votes is 20% here, not 60%.
  • Mixing up bases. Shares are usually of valid votes; turnout is of registered voters.
  • Subtracting percentages from different bases. 10% invalid of votes cast cannot be subtracted directly from 60% of valid votes.
  • Forgetting the +1 in switching questions. Half the gap only ties the contest.
  • Assuming two candidates. Check whether the shares add to 100%.

For passing-marks questions, which use the same margin idea, see passing marks problems, and for chained percentages see successive percentage change.

Q1. In a two-candidate election, the winner gets 58% of the valid votes and wins by 1,920 votes. How many valid votes were cast? easy

✅ Answer: (a) 12,000

💡 Explanation: The loser gets 42%, so the margin is 16% of the valid votes. 1,920 ÷ 0.16 = 12,000.

Q2. 15% of the votes cast are invalid. Of the valid votes, the winner gets 60% and wins by 6,800 votes. How many votes were cast in total? medium

✅ Answer: (b) 40,000

💡 Explanation: Margin = 20% of valid votes, so valid votes = 34,000. These are 85% of the total, so total = 34,000 ÷ 0.85 = 40,000.

Q3. A candidate gets 40% of the votes in a two-way contest and loses by 3,000 votes. How many votes does the winner get? easy

✅ Answer: (d) 9,000

💡 Explanation: The margin is 60% − 40% = 20%, so total votes = 15,000. The winner gets 60% of that: 9,000.

Q4. 75% of registered voters voted, and 4% of the votes cast were invalid. The winner got 62.5% of the valid votes, which was 9,000 votes. How many registered voters were there? hard

✅ Answer: (c) 20,000

💡 Explanation: Valid = 9,000 ÷ 0.625 = 14,400. Cast = 14,400 ÷ 0.96 = 15,000. Registered = 15,000 ÷ 0.75 = 20,000.

Q5. In an election with 8,000 valid votes and two candidates, the winner gets 55%. What is the smallest number of votes that must switch from the winner to the loser for the loser to win? hard

✅ Answer: (b) 401

💡 Explanation: The winner has 4,400 and the loser 3,600, a gap of 800. Each switched vote changes the gap by 2, so 400 switches make a tie and 401 give the loser a win.

Why is the margin the key number?

Questions usually give the winning margin in votes and the shares as percentages. The margin is the difference of the two percentages, so dividing the margin in votes by that percentage gives the total directly.

Are percentages of valid votes or of total votes?

Read carefully. Shares are normally of valid votes, while invalid votes and turnout are percentages of votes cast and of registered voters. Work from valid votes back to cast votes, then to registered voters.

Why does one switched vote count twice?

A vote that moves from the winner to the loser takes one away from the winner and adds one to the loser, so the gap between them shrinks by two.

All problems and solutions on this page are original. No outside facts are relied on; every numeric answer is recomputed by software before publishing.

How this page was prepared. Drafted with AI assistance (Claude (Anthropic AI model)) from the sources listed above. 12 calculations on this page were recomputed by software and matched. Automated checks also covered structure, internal links and duplicate text. Software checks cannot confirm facts.

Found an error? Report it and we will correct the page.