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.
One row per presidential election, 1789-2024: winner, how chosen, popular vote
Field
Type
Description
Constraints
year
integer
Election year (the year the electors were chosen; 1789 for the first election, then every fourth year from 1792).
electoral_votes_cast
integer
Electoral votes for President in NARA's state table (after the corrections described in the README). Before 1804 each elector had two votes; the figure is the number of electors voting (votes cast / 2). 1868 includes Georgia's 9 contested votes.
electoral_votes_needed
integer
Majority needed, as printed by NARA (Total/Majority).
president
string
Person elected President, named as on the NARA page.
president_electoral_votes
integer
Electoral votes for President received by the person elected (before 1804: votes received under the two-vote system).
president_chosen_by
string
electoral_college (a majority of electoral votes), or house_of_representatives (contingent election: 1800, 1824).
Candidate with the most electoral votes for President after the winner (before 1804, excluding the person elected Vice President).
runner_up_electoral_votes
integer
Electoral votes of runner_up.
vice_president
string
Person elected Vice President.
vice_president_electoral_votes
integer
Electoral votes for Vice President received by the person elected (before 1804: votes under the two-vote system).
vice_president_chosen_by
string
electoral_college; electoral_college_runner_up (before 1804 under the original constitutional system, including Burr becoming Vice President after the House selected Jefferson from their 1800 tie); or senate (1836).
true if the sources give a national popular vote for this election (1824 onwards).
popular_vote_source
string
Publication the popular vote comes from.
popular_vote_total
integer
Total popular vote as printed by the source (1972 onwards). Empty for 1824-1968: the Census table excludes unpledged tickets and minor candidates polling under 10,000 votes, and prints no national total.
president_popular_votes
integer
Popular votes of the person elected President, from data/popular-vote.csv. For 1972 and 1980 this is his party's line only (see README).
president_popular_share
number
president_popular_votes as a percentage of popular_vote_total, 2 decimals. Empty where no total is printed.
popular_vote_leader
string
Candidate (or party line, or 1836's combined Whig tickets) with the most popular votes in data/popular-vote.csv, ignoring write-ins, scattering and grouped 'other' columns.
popular_vote_leader_votes
integer
Popular votes of popular_vote_leader.
president_won_popular_vote
boolean
true if the person elected President is the popular_vote_leader; empty where no popular vote is recorded.
president_popular_vote_margin
integer
President’s recorded popular votes minus those of the strongest other contender (margin_against). For 1972 and 1980, compares party lines rather than complete candidate totals; for 1836, the opponent is the combined Whig tickets. Negative when the President trailed.
margin_against
string
The contender the margin is measured against.
margin_share_points
number
president_popular_vote_margin as percentage points of popular_vote_total (1972 onwards).
notes
string
How the result was decided where unusual, source caveats (1960), and any state whose electoral votes were not all cast or not all shown by NARA.
nara_notes
string
Notes from NARA’s election summary table, with HTML whitespace normalized.
Electoral votes by election, state, office and candidate, 1789-2024
Field
Type
Description
Constraints
year
integer
Election year.
state
string
State (or District of Columbia, from 1964) whose electors cast the votes.
state_electors
integer
Value printed in NARA’s ‘Electoral Vote of Each State’ column; for 1789, its ‘Total electoral vote’ row. This is not consistently the number allocated or appointed: Nevada 1864 is printed as 2, although NARA notes that three votes were allocated and one elector did not vote.
office
string
president, vice_president, or president_or_vice_president (1789-1800, when each elector cast two undifferentiated votes).
Person who received the votes, as named by NARA (column heading without 'of <state>', or the name in NARA's footnote for votes NARA groups as 'Others'). Names are not harmonised across years (e.g. 'Donald Trump' in 2016, 'Donald J. Trump' in 2020 and 2024).
electoral_votes
integer
Electoral votes cast by the state's electors for the candidate for this office. Only non-zero cells are included.
note
string
NARA's footnote or unmarked state-table note for the state where it has one (faithless electors, split states, contested or uncounted votes), and any correction made here.
National popular vote by candidate, 1824-2024, as printed by official sources
Field
Type
Description
Constraints
year
integer
Election year.
label
string
Row label: candidate if given, else party. Unique within a year.
candidate
string
Candidate name from the source; for 1976, Carter and Ford are expanded using the same publication’s electoral-vote headings. Empty where the source reports a party line without a candidate.
party
string
Party label(s) as printed by the source (2024: the FEC's party codes).
kind
string
candidate; party_line (1972 and 1980: the Clerk reports votes by party line, so a candidate's votes on other lines are not included); write_in; scattering; none_of_these (Nevada's 'None of these candidates'); other or other_parties (grouped columns in the Clerk's tables).
popular_votes as a percentage of the total printed by the source, 2 decimals (1972 onwards; empty for 1824-1968, where no total is printed).
source
string
Publication: Census Historical Statistics (1824-1968), Clerk of the House (1972-1980) or Federal Election Commission (1984-2024).
source_page
string
Printed page number of the table in the source (2024: page of the FEC results file).
note
string
Source footnotes and caveats for the row.
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:
Election
Elected (electoral votes)
Led the popular vote
Popular-vote margin
1876
Rutherford B. Hayes (185 of 369)
Samuel J. Tilden
247,448 votes
1888
Benjamin Harrison (233 of 401)
Grover Cleveland
90,728 votes
2000
George W. Bush (271 of 537)
Al Gore
537,179 votes (0.51 points)
2016
Donald Trump (304 of 538)
Hillary Clinton
2,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.
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.