US Presidential Elections 1789-2024: Electoral College and Popular Vote

Every US presidential election from 1789 to 2024: electoral votes by state and candidate, for President and for Vice President, from the National Archives (Office of the Federal Register) Electoral College results pages; the national popular vote by candidate as printed by official federal publications (Census Bureau, Historical Statistics of the United States, 1824-1968; Clerk of the House, 1972-1980; Federal Election Commission, 1984-2024); and one row per election with the winner, how he was chosen (Electoral College, or the House of Representatives in 1800 and 1824) and whether he also led the recorded popular vote.

Report an issue
Downloads
0
Last updated
Data files
3
Total size
403 kB
Format
csv
License
US-PD

Data Views

1 view

One row per presidential election, 1789-2024: winner, how chosen, popular vote

Electoral votes by election, state, office and candidate, 1789-2024

Every US presidential election from 1789 to 2024 in three tidy CSVs: the electoral votes each state's electors cast for each candidate for President and Vice President, the national popular vote by candidate from 1824 as printed by official federal publications, and one row per election saying who was elected, how (by the Electoral College, or by the House of Representatives in 1800 and 1824) and whether he also led the recorded popular vote.

What stands out

Of the 51 elections from 1824 to 2024 with a recorded national popular vote, four were won with a majority in the Electoral College by a candidate who got fewer popular votes than his main rival:

ElectionElected (electoral votes)Led the popular votePopular-vote margin
1876Rutherford B. Hayes (185 of 369)Samuel J. Tilden247,448 votes
1888Benjamin Harrison (233 of 401)Grover Cleveland90,728 votes
2000George W. Bush (271 of 537)Al Gore537,179 votes (0.51 points)
2016Donald Trump (304 of 538)Hillary Clinton2,868,686 votes (2.10 points)

In a fifth, 1824, no one won an electoral-vote majority and the House of Representatives chose John Quincy Adams, who trailed Andrew Jackson by 44,804 popular votes and by 84 to 99 in electoral votes. Hayes won by a single electoral vote, after a commission set up by Congress decided four states' disputed returns. Margins in percentage points are given only from 1972, where the sources print a total vote. The 1824–1968 Census table excludes unpledged tickets and minor candidates polling under 10,000 votes, and prints no national total.

Data

data/elections.csv: one row per election, 1789-2024 (60 rows). Who was elected President and Vice President with their electoral votes, the majority needed, the runner-up, how each was chosen (electoral_college, house_of_representatives in 1800 and 1824, senate for the Vice President in 1836), and from 1824 the President's popular votes, the popular-vote leader, the margin to the strongest other contender and whether the President led. notes explains unusual outcomes; nara_notes is the Notes row of NARA's election summary table, with HTML whitespace normalized (faithless electors, contested votes, deaths in office).

data/electoral-votes.csv: one row per election, state, office and candidate with at least one electoral vote (4,846 rows). office is president, vice_president, or president_or_vice_president for 1789-1800, when each elector cast two votes for President without distinction and the runner-up became Vice President. state_electors is the number of electors NARA lists for the state. note carries NARA's footnote or state-table note for the state: faithless electors (for example 2016 in Hawaii, Texas and Washington), split states (Maine and Nebraska), contested or uncounted votes (Georgia 1868 and 1872).

data/popular-vote.csv: national popular vote by candidate, 1824-2024 (496 rows), with the party label and the publication and page it comes from. kind separates candidates from write-ins, scattering, Nevada's "None of these candidates" and grouped "other" columns. share_of_total is the percentage of the total the source prints (1972 onwards).

How it was built

  • Electoral votes come from the National Archives (Office of the Federal Register) results page for each election. Where NARA groups votes as "Others", the named candidates are taken from NARA's own footnote for that state (archive/nara-others-expanded.csv); the build checks they add up to NARA's figure. Every state's votes are checked against its number of electors and every column against NARA's Totals row.
  • Two cells are corrected, because NARA's state table contradicts NARA's own totals: 1800 Virginia, Aaron Burr shown as "-" (corrected to 21; NARA's total for Burr is 73) and 1936 Colorado, John N. Garner shown as 9 vice-presidential votes for a state with 6 electors (corrected to 6; NARA's total for Garner is 523). Both are flagged in note and listed in archive/nara-corrections.csv.
  • Electoral votes not all cast or not all shown, kept as published: Kentucky 1808, Delaware and Maryland 1816, Mississippi, Pennsylvania and Tennessee 1820, Maryland 1832 (electors absent or dead), Rhode Island 1824 (NARA shows 3 of its 4 vice-presidential votes), Georgia 1872 (3 votes for Greeley, who had died, not counted) and the District of Columbia 2000 (one blank ballot). 1868 includes Georgia's 9 votes, which Congress did not agree whether to count.
  • Popular vote is transcribed from official federal publications. The Census historical table is itself a compilation of earlier sources:
    • 1824-1968: US Census Bureau, Historical Statistics of the United States, Colonial Times to 1970 (1975), Series Y 79-83, pages 1073-1074. Its source note attributes 1789–1832 to Stanwood, 1836–1892 to Burnham, 1896–1944 to two works by Robinson, and 1948–1968 to Governmental Affairs Institute publications; its general note also lists Clerk of the House statistics and other references. The 1824–1968 Census table excludes unpledged tickets and minor candidates polling under 10,000 votes, and prints no national total. It gives the 1836 Whig candidates (Harrison, White, Webster) one combined vote.
    • 1972-1980: Clerk of the House, Statistics of the Presidential and Congressional Election, the national table of popular votes for electors. For 1972 and 1980 the Clerk reports votes by party line, so the Democratic and Republican rows exclude the candidates' votes on other lines (for example New York's Liberal and Conservative lines). For 1976 it reports popular votes by candidate using surnames; Carter and Ford are identified by the fuller names printed in the adjacent electoral-vote columns.
    • 1984-2024: Federal Election Commission, Federal Elections reports (1984-2020) and Official 2024 Presidential General Election Results, the national summary of the popular vote for every candidate on at least one state ballot.
    • Printed totals are checked against the sum of the rows. They agree, except 1976, where the Clerk's candidate columns sum to one vote more than its printed total (81,603,347 against 81,603,346).

Caveats

  • Early popular votes are incomplete. In early elections several state legislatures chose the electors themselves, so those states have no popular vote; the national totals cover only states that held one. Census warns that "because of the varied practices in choosing electors in earlier years, the record of popular votes is inadequate to explain the elections until after 1824". These sources do not list which states chose by legislature in each year, so this dataset does not either.
  • Sources differ slightly. Popular-vote counts vary between publications as returns were revised. NARA's notes quote some figures that differ from the tables used here (for example Perot 1992: NARA 19,741,065, FEC 19,742,267). Use one source per comparison; this dataset uses the ones listed above.
  • 1960: the Census table gives Kennedy 34,226,731 and Nixon 34,108,157, a margin of 118,574. Its footnote records that "6 Democratic electors in Alabama, all 8 unpledged Democratic electors in Mississippi, and 1 Republican elector in Oklahoma voted for Senator Harry F. Byrd"; it does not say how Alabama's popular vote for a mixed slate of Democratic electors was credited, so treat this margin with care. The table also excludes unpledged tickets. This dataset records Kennedy as the popular-vote leader under the Census table’s published figures.
  • 1872: Horace Greeley died after the election and before the electors met. His electors scattered their votes; three cast for Greeley in Georgia were not counted.
  • Names are as printed by each source and are not harmonised across years or between the files (NARA: "William J. Clinton"; FEC: "Bill Clinton").
  • The popular-vote margin in elections.csv is measured against the strongest other contender, which for 1836 is the combined Whig tickets; for 1972 and 1980 it compares party lines, not complete candidate totals.

Source and licence

Licence: public domain (US-PD). All four publishers are agencies or offices of the US federal government, whose works are not subject to copyright (17 U.S.C. 105), and vote counts are facts. The National Archives states: "Generally, materials produced by Federal agencies are in the public domain and may be reproduced without permission. Works of the U.S. Government that have been produced by the National Archives and Records Administration are in the public domain and may be copied and distributed without permission. These works are available for worldwide use and reuse under the terms of the Creative Commons CC0 1.0 Universal license." (https://www.archives.gov/global-pages/privacy.html). Please cite the National Archives, the Census Bureau, the Clerk of the House and the Federal Election Commission as the sources.

This is a frozen snapshot taken on 2026-11-29, covering elections to 2024; the next presidential election is in 2028. scripts/fetch-nara.mjs and scripts/fetch-fec.mjs download the sources, scripts/transcribe-popular-vote.py holds the popular-vote transcription (typed from the scanned Census, Clerk and early FEC pages; read from the text of the 1992-2020 FEC reports) and scripts/build.mjs rebuilds the CSVs and runs the checks.

API access

Access dataset files directly from scripts, code, or AI agents.

Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.

  1. Fetch datapackage.json to inspect schema and resources
  2. Download data resources listed in datapackage.json
  3. Read README.md for full context
/core/us-presidential-elections/6 files
  • README.mddocumentationhttps://datahub.io/core/us-presidential-elections/_r/-/README.md
  • config.jsonhttps://datahub.io/core/us-presidential-elections/_r/-/config.json
  • data/elections.csvhttps://datahub.io/core/us-presidential-elections/_r/-/data/elections.csv
  • data/electoral-votes.csvhttps://datahub.io/core/us-presidential-elections/_r/-/data/electoral-votes.csv
  • data/popular-vote.csvhttps://datahub.io/core/us-presidential-elections/_r/-/data/popular-vote.csv
  • datapackage.jsonmetadata & schemahttps://datahub.io/core/us-presidential-elections/_r/-/datapackage.json