Presidential precinct data for the 2020 general election
The Upshot scraped and standardized precinct-level election results from around the country, and joined this tabular data to precinct GIS data to create a nationwide election map. This map does not have full coverage for every state: data availability and caveats for each state are listed below, and statistics about data coverage are available here. We are releasing this map's data for attributed re-use under the MIT license in this repository.
The GeoJSON dataset can be downloaded at: https://int.nyt.com/newsgraphics/elections/map-data/2020/national/precincts-with-results.geojson.gz
Properties on each precinct polygon:
GEOID
: unique identifier for the precinct, formed from the five-digit county FIPS code followed by the precinct name/ID (eg,30003-08
or39091-WEST MANSFIELD
)votes_dem
: votes received by Joseph Bidenvotes_rep
: votes received by Donald Trumpvotes_total
: total votes in the precinct, including for third-party candidates and write-insvotes_per_sqkm
: total votes divided by the area of the precinct, rounded to one decimal placepct_dem_lead
:(votes_dem - votes_rep) / (votes_total)
, rounded to one decimal place (eg,-21.3
)
Due to licensing restrictions, we are unable to include the 2016 election results that appear in our interactive map.
Please contact [email protected] if you have any questions about data quality or sourcing, beyond the caveats we describe below.
General caveats
- Where possible, we used official precinct boundaries provided by the states or counties, but in most cases these were not available and we generated boundaries ourselves, using L2 voter-file points to guess the precinct for each census block group; this results in generally accurate precinct boundaries, but can be rough in no- or very-low-population places like business parks or uninhabited rural land.
- Because of this, spatially joining our precinct GeoJSON to other geographic datasets will most likely yield less-than-ideal output.
- Some of the results we gathered are slightly incomplete:
- A few states' data are unofficial, since the certified results hadn't been released at time of collection.
- Wherever write-ins are not reported by the data source, our vote totals are marginally off.
- A very small portion of the tabular precinct results (roughly 0.01%) could not be joined to the precinct boundaries, and thus these results are not present in the GeoJSON.
- A few areas, such as rural Vermont, Hawaii, Nevada, and Nebraska, contain no voters, and those polygons are excluded from the GeoJSON.
State-by-state data availability and caveats
symbol | meaning |
---|---|
have gathered data, no significant caveats | |
have gathered data, but doesn't cover entire state or has other significant caveats | |
precinct data not usable |
Note: One of the most common causes of precinct data being unusable is "countywide" tabulations. This occurs when a county reports, say, all of its absentee ballots together as a single row in its Excel download (instead of precinct-by-precinct); because we can't attribute those ballots to specific precincts, that means that all precincts in the county will be missing an indeterminite number of votes, and therefore can't be reliably mapped. In these cases, we drop the entire county from our GeoJSON.
AL
:β absentee and provisional results are reported countywideAK
:β absentee, early, and provisional results are reported district-wideAZ
:β AR
:β οΈ we could not generate or procure precinct maps for Jefferson County or Phillips CountyCA
:β CO
:β CT
:β οΈ township-level results rather than precinct-level resultsDE
:β DC
:β FL
:β GA
:β HI
:β ID
:β οΈ many counties report absentee votes countywideIL
:β IN
:β οΈ state publishes machine-readable precinct results for only about half of countiesIA
:β οΈ Scott County does not provide machine-readable precinct-level dataKS
:β KY
:β οΈ only certain counties report results at the precinct levelLA
:β early and provisional results are reported countywideME
:β οΈ township-level results rather than precinct-level resultsMD
:β MA
:β MI
:β οΈ data collection not yet completeMN
:β MS
:β MO
:β οΈ almost all counties report absentee votes countywideMT
:β NE
:β NV
:β NH
:β οΈ township-level results rather than precinct-level resultsNJ
:β οΈ township-level results rather than precinct-level resultsNM
:β NY
:β NC
:β ND
:β OH
:β OK
:β οΈ Tulsa County and Oklahoma County report absentee ballots countywideOR
:β PA
:β RI
:β οΈ township-level results rather than precinct-level resultsSC
:β SD
:β οΈ three counties report absentee ballots countywide, and seven counties report all votes countywideTN
:β οΈ Davidson County reports absentee ballots countywideTX
:β UT
:β VT
:β οΈ township-level results rather than precinct-level resultsVA
:β provisional and absentee votes are reported countywideWA
:β WV
:β WI
:β WY
:β
Credits
- Alice Park and Miles Watkins compiled the precinct results, manually joined them to the precinct boundries, and built the data processing pipeline
- Derek Willis and Open Elections aggregated and extracted vote counts from PDFs in Michigan, Mississippi, Oregon, Pennsylvania, and Utah, and provided raw data for Missouri
- Benjamin Rosenblatt collected results and boundaries for New York State
- The Voting and Election Science Team collected results and boundaries for Kansas
- Charlie Smart provided geospatial technical support
- Rachel Shorey and Matthew Bloch calculated the precinct boundaries wherever official GIS files weren't available
- Amanda Cox and Kevin Quealy provided editorial guidance
- Additional scraping work by Rachel Shorey, Quoctrung Bui, Thu Trinh, and Ben Smithgall
- Don Johnson provided assistance matching Tennessee's precinct boundaries