List of Presidents of the United States by political affiliation
This article is intended to be a comprehensive list of all presidents, grouped by political party.
Eighteen members of the: Republican Party have served as president, governing for 88 years in total. Four served two full terms and five served one full term. Three were elected twice but either died or were assassinated(Abraham Lincoln and William McKinley) or resigned (Richard Nixon) during their second term. Two were elected once but died before completing their first term. Four succeeded to the presidency following the death or resignation of their predecessor: two (Theodore Roosevelt and Calvin Coolidge) were subsequently elected to a full term; two (Chester A. Arthur and Gerald Ford) were not.
- Abraham Lincoln (1861–1865)[n 1]
- Ulysses S. Grant (1869–1877)
- Rutherford B. Hayes (1877–1881)
- James A. Garfield (1881)
- Chester A. Arthur (1881–1885)
- Benjamin Harrison (1889–1893)
- William McKinley (1897–1901)
- Theodore Roosevelt (1901–1909)
- William Howard Taft (1909–1913)
- Warren G. Harding (1921–1923)
- Calvin Coolidge (1923–1929)
- Herbert Hoover (1929–1933)
- Dwight D. Eisenhower (1953–1961)
- Richard Nixon (1969–1974)
- Gerald Ford (1974–1977)
- Ronald Reagan (1981–1989)
- George H. W. Bush (1989–1993)
- George W. Bush (2001-2009)
Fifteen members of the Democratic Party have served as president, governing for a total of 85 years. Five served at least two full terms (Franklin Roosevelt was elected four times; he served three full terms and died during his fourth) and five served one full term. Three succeeded to the presidency after the death of their predecessor (of which two were subsequently elected to a full term [i.e., Harry Truman and Lyndon Johnson] ) and one, Andrew Johnson, did not seek election). John F. Kennedy was assassinated before his first term was finished and Barack Obama is currently in office.
- Andrew Jackson
- Martin Van Buren (1837–1841)
- James K. Polk (1845–1849)
- Franklin Pierce (1853–1857)
- James Buchanan (1857–1861)
- Andrew Johnson (1868)[n 2]
- Grover Cleveland (1885–1889), (1893–1897)
- Woodrow Wilson (1913–1921)
- Franklin D. Roosevelt (1933–1945)
- Harry S. Truman (1945–1953)
- John F. Kennedy (1961–1963)
- Lyndon B. Johnson (1963–1969)
- Jimmy Carter (1977–1981)
- Bill Clinton (1993–2001)
- Barack Obama (2009–present)
Four members of the United States Democratic-Republican Party have governed for a total of 28 years:
- Thomas Jefferson (1801–1809)
- James Madison (1809–1817)
- James Monroe (1817–1825)
- John Quincy Adams (1825–1829)
Four members of the United States Whig Party have governed for a total of 8 years:
- William Henry Harrison (1841)
- John Tyler (1841–1845)[n 3]
- Zachary Taylor (1849–1850)
- Millard Fillmore (1850–1853)
National Republican 
1 member of the United States National Republican Party has governed for a total of 2 years:
- John Quincy Adams(1825-1829) was the president when the Democratic-Republican Party split. He led the National Republicans (aka: Anti-Jacksonians) along with Henry Clay ( who later founded the Whig Party).
- George Washington (1789–1797) is currently the only president to have been elected without any official endorsement by a political party. Generally speaking, Washington's policies reflected a moderate Federalist agenda. He governed for 8 years in total.
- John Tyler (1841–1845)[n 3]
National Union 
The National Union Party was the name used by the Republican Party for the national ticket in the 1864 presidential election. Both Abraham Lincoln and Andrew Johnson associated with the National Union Party during the 1864 election and Andrew Johnson remained a member until he joined the Democratic Party at the end of his second term. Lincoln and Johnson served as President while members of the National Union party for 4 years.
- John Adams (1797–1801) was the only president elected as a member of the United States Federalist Party. He governed for a total of 4 years.
- Lincoln served his first term (from 1861-1865) as a member of the Republican Party, but ran for his second term as a member of the National Union Party and served only a short part of his second term in 1865 before being assassinated.
- Andrew Johnson did not identify with the two main parties of Democrats and Republicans, though he did try for the Democratic nomination in 1868, and so while President he attempted to build a party of loyalists under the National Union label. Asked in 1868 why he did not become a Democrat, he said, "It is true I am asked why don't I join the Democratic Party. Why don't they join me ... if I have administered the office of president so well?" This failure to build a new National Union Party made Johnson effectively an independent.
- Although John Tyler was elected vice president on the Whig ticket, his policies soon proved to be opposed to most of the Whig agenda, and he was expelled from the party in 1841, a few months after taking office as President.