BRAZIL ELECTION ANALYSIS

About

Brazil Election Analysis makes official election results easier to explore. It is an independent, reproducible project for curious readers, friends and family.

The Python analysis determines the numbers. This site presents the validated publication; it does not estimate individual voting behavior or predict the runoff.

Sources and provenance

Election counts: Tribunal Superior Eleitoral (TSE). Map boundaries: Instituto Brasileiro de Geografia e Estatística (IBGE), municipal mesh 2025.

TSE ↗ · IBGE ↗

The numerical publication passed an independent review against canonical election tables. Visual presentation is reviewed separately.

Licence

Published data and site content are licensed under CC BY 4.0.

CC BY 4.0 ↗

Sources: TSE (election results) and IBGE (geography).

Methodology

Plain-language explanations of the numbers, with the calculations and limitations available when you want them.

How to read Flávio’s lead

The percentage-point figure compares the published valid-vote shares of the first- and second-place candidates in the first round. It describes a lead, not a victory, and does not predict how anyone will vote in the runoff.

Comparable places

A comparison needs a reported result for the same municipality identifier and state in both elections.

How is this calculated?

Boa Esperança do Norte has a 2026 result but no 2022 baseline. Its comparison is null. Name-only changes are accepted under the approved identifier/state rule. The map does not harmonize historical boundaries.

Flávio Bolsonaro vs Jair Bolsonaro

Flávio Bolsonaro's 2026 share is compared with Jair Bolsonaro's 2022 share in the first round.

How is this calculated?

They are different candidates. This is the approved leading-right-candidate comparison of places and is neither a political-bloc estimate nor evidence of individual voter switching.

Formula: 100 * (target_share - benchmark_share)

Local margin

The local gap is the difference between the two largest candidate shares.

How is this calculated?

This compares the top two in that place. It is distinct from the signed Lula-minus-Flávio national margin.

Formula: largest_share - second_largest_share

Lula since 2022

This compares Lula's first-round share in 2026 with his first-round share in 2022.

How is this calculated?

Change is measured in percentage points on comparable units. The national comparison uses comparable places including overseas and excludes new municipalities without a baseline.

Formula: 100 * (target_share - benchmark_share)

Municipality contribution

This shows how the national Lula–Flávio valid-vote margin changes when a place's votes are removed.

How is this calculated?

Positive values raise Lula's margin relative to Flávio and negative values lower it. This is descriptive rather than causal. Values are not additive. National counts include overseas; all valid candidate votes enter the denominator.

Formula: (A-B)/V - ((A-a)-(B-b))/(V-v)

Overseas voting

Overseas votes are included in the national result but have no Brazilian municipal polygon.

How is this calculated?

A separate combined ZZ record permits reconciliation of domestic municipal totals with the complete national result. It is not a municipality.

From sections to municipalities

Municipal results combine the electoral sections assigned to that municipality.

How is this calculated?

Candidate counts are summed separately from section totals so denominators are counted once per section. Overseas voting stays in national totals.

Source data

Official TSE presidential first-round results supply the electoral counts.

How is this calculated?

Section archives and geographic aggregates are pinned by SHA-256. IBGE provides map boundaries and identifiers.

Technical null votes

Technical null votes remain part of the official null-vote total.

How is this calculated?

Original nominal counts are preserved separately. Technical null votes are never added twice or counted as valid candidate votes.

Turnout

Turnout measures attendance relative to the registered electorate.

How is this calculated?

Attendance is a count of people. The rate is attendance divided by electorate; it is not the fraction of valid ballots. Source status residuals are preserved rather than corrected.

Formula: turnout / electorate

Vote shares

Each candidate's share uses all valid candidate votes as the denominator.

How is this calculated?

Blank and null votes are excluded from valid-vote shares. Zero valid votes make the share undefined.

Formula: candidate_votes / valid_votes

What these data cannot tell us

  • Place-level patterns do not show how individual people changed their votes.
  • The map's dated boundaries are for drawing and navigation, not historical area comparisons.
  • A first-round leader has not necessarily won the election.
Sources and provenance ↗

Cite this

Use this citation when referencing the published data. Add the access date when you cite it.

Brazil 2026, in data. Version site-v0-d6b6134fce32089d1a60105f4784dbc98dace887ef3fdac1e0b4669406f08a4c (manifest SHA-256 9967e759c05eb3d824c2ebc3c60f6731d0272a86e4b1243f0670c876f455a2dc). TSE final count: Oct 5, 2026, 12:51:47 PM (Brasília time). https://brasil-2026-em-dados.pages.dev/en/. Access date: [access date].

CC BY 4.0 · Sources: TSE (election results) and IBGE (geography).

Publication and provenance

Official first-round results · bulk_sections / passed

Publication generated: Oct 7, 2026 (UTC)

Download publication manifest ↗

Download source and dataset provenance ↗

TSE final count: Oct 5, 2026, 12:51:47 PM (Brasília time)

Sources and provenance

site-v0-d6b6134fce32089d1a60105f4784dbc98dace887ef3fdac1e0b4669406f08a4c

SHA-256: 9967e759c05eb3d824c2ebc3c60f6731d0272a86e4b1243f0670c876f455a2dc