Sri Lanka Presidential Election Preference (Second Count) Calculator
Find out who wins a Sri Lankan presidential election. Enter the first-count votes to see whether anyone clears 50%, and — if not — add the transferred second preferences to the top two to settle the second count. Reproduces the 2024 result to the vote.
How it works
Sri Lanka elects its President by a contingent vote — a ranked system set out in Article 94 of the Constitution and the Presidential Elections Act No. 15 of 1981. On the ballot a voter may mark up to three preferences for different candidates. The count then runs in at most two stages.
- Total the valid votes.Add every candidate's first-preference votes to get
V. Each candidate's percentage is their votes ÷ V. - First-count majority test. Take the leading candidate. If their first-preference votes are strictly more than one-half of V (that is,
votes > V / 2), they are elected immediately and no further counting happens. Exactly half is not enough — the law requires more than one-half. - Elimination. If no one crosses that line, every candidate except the two highest is eliminated in a single step. Call the survivors A (higher first count) and B.
- Second count.Each eliminated candidate's ballots are re-examined. If a ballot's 2nd preference is for A or B, one vote is added to that candidate. If the 2nd preference is for another eliminated candidate but the 3rd preference is for A or B, the 3rd preference is used instead. Every transferred ballot adds at most one vote to at most one survivor; ballots with no usable preference are exhausted and transfer nothing.
- Final result.
A_final = A_first + transfers_to_Aand likewise for B. The higher final total is elected. Final percentages are reported against A_final + B_final — the votes effective at the final count, not the original V.
Transfers cannot be derived from first-count totals — they depend on how each eliminated ballot was actually marked — so this tool takes them as inputs from the published second-count data rather than guessing. To prove the arithmetic, the engine reproduces the Election Commission's official 2024 second count exactly: Anura Kumara Dissanayake's 5,634,915 first-preference votes plus 105,264 transfers gives 5,740,179, and Sajith Premadasa's 4,363,035 plus 167,867 gives 4,530,902 — the declared final figures, to the vote.
Worked examples
Frequently asked questions
Sources & references
- Constitution of Sri Lanka — Article 94 (marking of preferences, majority threshold, second count)
- Election Commission of Sri Lanka — Presidential Elections Act No. 15 of 1981 & official results
- Election Commission — official 2024 presidential election results (first and second count)
The rules and the 2024 validation figures on this page were last cross-checked against the Election Commission's published results on 2026-07-15. This page is reviewed after each presidential election and any amendment to the Presidential Elections Act.
Related tools
Comments & feedback
Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.
Found a bug, edge case, or want to suggest an improvement?
Email me at [email protected] — most fixes ship within 24 hours.