Small-Area Global Elections (SAGE) Dataset

by Noah Dasanaike

SAGE contains lower-house parliamentary and presidential election returns (and now many other elections!) for 134 countries at the smallest unit that each electoral authority publishes, which for most countries is a polling station with fewer than a thousand voters. I scraped, compiled, geocoded, and harmonized the data over the span of 2022-2026. In total, the data contain more than 32 billion votes, cast in more than 21 million polling units across all election years. In this count, the votes of each election are counted once, for its largest ballot.

The dataset is now archived and citable at Harvard Dataverse: doi.org/10.7910/DVN/YGJR1L.

Formats & access

The tabular data (Parquet) are partitioned by country and year and include coordinates (about 7 GB). Most analyses require only the tabular data. The polygons (GeoParquet) are stored in one file per country, for choropleth mapping. Using the R and Python packages, you can load the data for one country and year with a single line of code:

R:      install.packages("sage")
        sage_load("Germany", years = 2021)

Python: pip install "git+https://github.com/noahdasanaike/sage.git#subdirectory=sage_python"
        import sage; sage.sage_load("Germany", years=2021)

Coverage, sources, and column definitions for each country are in the codebook. R users who want the polygons joined to the vote rows can load the native sf objects. Instructions for loading these objects are in the code repository.

I release new versions as I add countries and election years and make corrections. To receive an announcement of each new version, sign up below:

Download

Single file download: The full tabular dataset, with the votes and coordinates for all countries and years, is available as a single Parquet file, sage.parquet (~3.1 GB), which can be read with Arrow, DuckDB, GeoPandas, pandas, or R arrow. Polygon boundaries are not included in this file. For geometry, use the per-country bundles below or the polygons/ tree.

By country: To download the files for a country, either for all years or for a single election, open the country in the Countries table below. The csv download is a ZIP archive with one CSV file per election year, which can be opened in Excel, Stata, R, or Python. The gpkg download contains the unit boundaries as a GeoPackage for use in QGIS, ArcGIS, R, or Python. The parquet download contains the vote rows as Parquet. For all years, the parquet download is a ZIP archive that also contains the GeoParquet boundaries. The rds download, which is available for all years only, is the native R sf object, with the polygons joined to the vote rows. The codebook download is the section of the codebook for that country, with the sources and notes for the country. The citable copy of the full dataset is the Harvard Dataverse deposit.

By administrative area: I also added up the results within standard administrative areas. These areas are the GADM 4.1 divisions (such as provinces, districts, and communes), the Eurostat NUTS regions for European countries, and U.S. counties. For each country, there is one CSV file per level. The files are listed under By area when you open the country in the Countries table, as well as on the page of the country. On the map, any level can be displayed under Aggregate to. A polling unit with a drawn boundary is assigned to the area that contains most of the unit. A polling unit that is placed by its point is assigned to the area that contains the point. I describe the assignment rules in the method note. In coverage.parquet, I report the share of the votes in each contest that was placed in an area.

Countries

Click the row of a country to open the downloads for that country and its elections by year, with the election type, the round (where there is one), and the number of units. The name of the country and the page button link to the page of the country, which contains the sources and notes. Units are the smallest units in the data. Located units are the units that have coordinates. Click a column header to sort the table by that column. The table of elections is also available as a CSV file.

Afghanistan2018–20192country page →
Albania2017–20255country page →
Argentina2011–20258country page →
Armenia2012–202615country page →
Australia2004–202517country page →
Austria1999–202418country page →
Bangladesh2018–20263country page →
Barbados2022–20262country page →
Belgium2014–20244country page →
Belize1984–202514country page →
Benin2023–20262country page →
Bhutan20181country page →
Bolivia2019–20254country page →
Bosnia and Herzegovina2018–20225country page →
Botswana2014–20192country page →
Brazil1998–202626country page →
Bulgaria2013–202614country page →
Cabo Verde2021–20262country page →
Cambodia20131country page →
Canada1997–202517country page →
Chile2013–20259country page →
Colombia2018–20265country page →
Costa Rica2018–20223country page →
Croatia2011–202512country page →
Cyprus2001–202617country page →
Czechia2002–202524country page →
Democratic Republic of the Congo20231country page →
Denmark1979–202631country page →
Dominica2014–20226country page →
Dominican Republic2000–202410country page →
Ecuador2002–202514country page →
Egypt2014–20183country page →
El Salvador2014–20214country page →
Estonia2011–20238country page →
Fiji20221country page →
Finland2003–202417country page →
France2002–202420country page →
Gambia20211country page →
Georgia2012–202413country page →
Germany1998–202511country page →
Ghana2012–20244country page →
Greece2012–20235country page →
Greenland2005–202615country page →
Grenada20221country page →
Guatemala20231country page →
Guyana2015–20252country page →
Honduras20211country page →
Hong Kong2016–20215country page →
Hungary2002–202615country page →
Iceland1952–202435country page →
India2019–20245country page →
Indonesia2019–20242country page →
Iran20171country page →
Iraq20211country page →
Ireland2002–202515country page →
Isle of Man2016–20263country page →
Israel2006–20228country page →
Italy1948–202253country page →
Ivory Coast20251country page →
Jamaica2007–202514country page →
Japan2009–202613country page →
Kenya20221country page →
Kosovo2017–20267country page →
Kyrgyzstan2015–202511country page →
Latvia2014–202610country page →
Lebanon2018–20222country page →
Lesotho2017–20222country page →
Liberia2011–20239country page →
Liechtenstein2001–202524country page →
Lithuania2016–20248country page →
Luxembourg2004–202311country page →
Madagascar2018–20244country page →
Malawi2019–20253country page →
Malaysia2008–20226country page →
Maldives20241country page →
Malta2003–202615country page →
Mauritania20241country page →
Mexico1991–202417country page →
Moldova2014–202512country page →
Mongolia2020–20212country page →
Montenegro2020–20234country page →
Morocco2016–20263country page →
Mozambique1994–20094country page →
Myanmar2010–20153country page →
Namibia2014–20245country page →
Nepal2017–20263country page →
Netherlands2010–202515country page →
New Zealand1996–202310country page →
Nicaragua20011country page →
Nigeria20191country page →
North Macedonia2016–20246country page →
Norway2001–202511country page →
Pakistan20181country page →
Palestine20061country page →
Panama2004–20246country page →
Papua New Guinea1987–20177country page →
Paraguay2003–20187country page →
Peru2006–202621country page →
Philippines2022–20252country page →
Poland1990–202526country page →
Portugal1976–202636country page →
Romania2014–20259country page →
Russia2000–202416country page →
Saint Lucia2021–20252country page →
Samoa20251country page →
Senegal20241country page →
Serbia2000–202212country page →
Seychelles2020–20252country page →
Singapore2020–20252country page →
Slovakia2002–202419country page →
Slovenia2012–20268country page →
Solomon Islands2006–201910country page →
South Africa2004–20249country page →
South Korea2002–202521country page →
Spain1982–202325country page →
Sri Lanka2020–20242country page →
Suriname20251country page →
Sweden2002–202614country page →
Switzerland1971–202353country page →
Taiwan1995–202411country page →
Thailand2023–20262country page →
Timor-Leste20181country page →
Trinidad and Tobago2015–20257country page →
Tunisia20141country page →
Turkey2011–20237country page →
Uganda2006–20214country page →
Ukraine20191country page →
United Kingdom2001–202413country page →
United States of America1992–202414country page →
Uruguay2014–20245country page →
Vanuatu2002–20256country page →
Venezuela20131country page →
Zambia20211country page →
Zimbabwe20181country page →

Release V2.0

December 1, 2026

[] [full changelog] [codebook] [country-level coverage]

Note for users of earlier versions. A given country and year can now contain several contests. Unless you set election_type, sage_load() returns all of these contests. Code that adds up votes by country and year without filtering on election_type will combine different elections.

Release V1.4

November 1, 2026

[] [codebook] [country-level coverage]

Release V1.3

October 9, 2026

[] [codebook] [country-level coverage]

Release V1.2

July 24, 2026

[] [codebook] [country-level coverage]

Release V1.1

July 7, 2026

[]

Added 2025 national elections (Germany, Vanuatu, Ecuador, Australia, Philippines, Portugal, Singapore, Poland, Kosovo, Bolivia, Norway, Moldova, Argentina, Netherlands, Kyrgyzstan) and 2026 national elections (Portugal, Japan, Thailand, Nepal, Colombia, Slovenia, Denmark, Hungary, Peru, Bulgaria, Cyprus, Armenia, Kosovo); expanded Taiwan to full legislative coverage; switched Malaysia to per-election parliamentary boundaries; updated the 2024 United States presidential precincts.

Earlier releases

v1.0 and before

[]

v1.0 (June 30, 2026): Public release; conditionally accepted at Nature Scientific Data
v0.895 (September 30th, 2025): Fixed Croatian vote-share aggregation
v0.89 (August 25th, 2025): Fixed party names in Chile and Slovakia; minor party name adjustments elsewhere
v0.88 (July 14th, 2025): Added 2025 South Korean presidential election; Fixed Danish eligible voter and turnout calculation
v0.875 (July 9th, 2025): Added Portugal parish boundaries back to 1976, fixed independent candidate reference
v0.87 (May 30th, 2025): Added elections for the Kyrgyz Republic, Liechtenstein, Mauritania, Uganda, making 110 total countries
v0.86 (May 6th, 2025): Added registered voter turnout in the United States for 2012 to 2020
v0.85 (April 5th, 2025): Redid all of the United States; presidential results only from 2008 to 2024
v0.81 (March 24th, 2025): Redid all of Greece from scratch, and added 2023 elections
v0.80 (March 17th, 2025): Added registered/eligible voter counts to elections in Canada, Denmark, Finland, Hungary
v0.78 (March 12th, 2025): Changed party columns corresponding to candidates in Myanmar to candidate columns
v0.75 (February 4th, 2025): Added turnout for most Russian elections
v0.7 (January 24th, 2025): Fixed Bosnia and Herzegovina Thiessen polygons
v0.6 (January 15th, 2025): Fixed bug in Thiessen generation code affecting polygon edges
v0.5 (January 9th, 2025): Added 2024 election results for multiple countries
v0.4 (January 7th, 2025): Added 2014 and 2018 Hungarian elections
v0.3 (December 20th, 2024): Added Icelandic presidential elections
v0.2 (December 8th, 2024): Fixed overseas France geometry (meridian Thiessen issues)
v0.1 (September 5th, 2024): Fixed vote count totals for Uruguay and the Solomon Islands
v0.0 (August 6th, 2024): Initial completion of the data

Citation

If you use SAGE, please cite both the dataset and the accompanying paper:

Dasanaike, Noah. The Small-Area Global Elections (SAGE) Dataset. Harvard Dataverse, https://doi.org/10.7910/DVN/YGJR1L (2026).
Dasanaike, Noah. “The Small-Area Global Elections (SAGE) Dataset.” Scientific Data (2026).

Please also cite

I scraped the data for nearly every SAGE country from official government sources and then geocoded and harmonized the results. However, for several countries, I started from data that other researchers had gathered and released first. If you use the data for one of these countries, please cite the original source alongside SAGE.

Brazil (polling-station coordinates)
Since release 1.2, the polling-station coordinates for 2014, 2018, and 2022 are drawn from F. Daniel Hidalgo’s geocoded Brazilian polling stations instead of the official TSE coordinates.
Afghanistan
The results for the 2018 parliamentary and 2019 presidential elections were compiled by Colin Cookman from the Independent Election Commission.
Pakistan
The polling-station data for the 2018 general election were transcribed from Election Commission of Pakistan scans by Colin Cookman and his team (pakistan_polling_stations_2018).
Uganda
The polling-station results for 2006, 2011, and 2016 are drawn from the Uganda Elections Data Portal, a project of the International Republican Institute in which the PDFs of the Electoral Commission were converted into machine-readable form.
United States
Since release 2.0, I collect the results of every presidential election from 1992 to 2024 from the result documents of each state, and I reconcile them with the certified totals. Where a state’s own documents could not be used, the results are drawn from OpenElections transcriptions, the Harvard Election Data Archive, and the collection of Stephen Ansolabehere and Jonathan Rodden. The California results are drawn from the Statewide Database at the University of California, Berkeley. Some precinct boundaries are drawn from VEST (Voting and Election Science Team) and from The New York Times’ 2024 presidential precinct map. See also Baltz et al. under related projects below.
Malaysia
Since release 1.2, the polling-district results are drawn from ElectionData.MY (Thevesh Thevananthan), which compiled the results from Form 14 returns obtained from stakeholders. The polling-district boundaries are drawn from Tindak Malaysia.
Mexico
For 1991 through 2021, I use the returns compiled by Eric Magar (Magar 2019), elecRetrns, to which I added the coordinates myself. I collected the results of the 2024 election directly from INE.
Papua New Guinea and Solomon Islands
The constituency results were compiled by Terence Wood (2019).
Russia
The polling-station returns are drawn from the compilations of Sergey Shpilkin and Ivan Shukshin, which were scraped from the Central Election Commission and distributed at dkobak/elections. The Commission has never released station-level results in bulk. Over time, the Commission has also closed many of the pages on which it published results. The collection therefore cannot be rebuilt from the official source. The station addresses that I used for geocoding are drawn partly from the GIS-Lab CIK commission directory and the UIK GEO crowdsourcing project.
South Africa
The boundary files are drawn from SA-Maps.
Ghana, Zambia, and Botswana
The parliamentary constituency boundaries are drawn from Brian Engelsma’s African parliamentary constituency shapefiles.
Belgium, DR Congo, Myanmar, and Uruguay
The data are drawn from openly released compilations by José Parreiras (Belgium), Bernard Ng’andu (DR Congo 2023), Thomas Cunningham (Myanmar 2015), and ale-uy (Uruguay 2019).

SAGE is one of several projects that make election returns comparable across localities. For some research questions, one of the following projects will be better suited than SAGE.

Constituency-Level Elections Archive (CLEA)
CLEA contains constituency-level results for lower and upper chambers in 183 countries. The coverage of CLEA extends much further back in time than that of SAGE. I use CLEA to check the country totals in SAGE.
GERDA: The German Election Database
GERDA contains local, state, and federal German election results by municipality and county over three decades, harmonized across boundary changes and mail-in districts. GERDA covers far more German elections than SAGE does. An R package for GERDA is also available.
American election results at the precinct level (Baltz et al. 2022)
This collection contains nearly all available U.S. precinct results for 2016, 2018, and 2020, for each office from president down to ballot initiatives. The collection covers many more offices than SAGE does.
Precinct-Level Election Data (Ansolabehere, Palmer and Lee)
This collection contains U.S. precinct returns by state for 2002 to 2012, the years before the U.S. precinct data in SAGE begin.
Adrian Frith, South African election and census maps
Adrian Frith provides an interactive map of South African general election results from 2004 to 2019, down to the level of the voting district, along with census and boundary maps.
elecRetrns (Eric Magar)
This collection contains Mexican federal and state election returns, which Eric Magar has kept up to date for many years. Unlike SAGE, which contains only federal races, the collection also includes state races.
Electoral precinct-level database for Mexican municipal elections (Calderón-Hernández, Larreguy, Marshall and Pérez-Castellanos 2025)
This database contains precinct-level returns for Mexican municipal elections from 1994 to 2019, with identifiers for the incumbent coalition, registration, and turnout. Because SAGE contains only federal elections, users who study local Mexican contests should use this database.