Republican
1. Abraham Lincoln
2. Ulysses S. Grant
3. Rutherford B. Hayes
4. James Garfield
5. Chester Arthur
6. Benjamin Harrison
7. William McKinley
8. Theodore Roosevelt
9. William Howard Taft
10. Warren Harding
11. Calvin Coolidge
12. Herbert Hoover
13. Dwight Eisenhower
14. Richard Nixon
15. Gerald Ford
16. Ronald Reagan
17. George Bush
18. George W. Bush
19. Donald Trump
Democrat
1. Andrew Jackson
2. Martin Van Buren
3. James K. Polk
4. Franklin Pierce
5. James Buchanan
6. Grover Cleveland
7. Woodrow Wilson
8. Franklin D. Roosevelt
9. Harry Truman
10. John F. Kennedy
11. Lyndon Johnson
12. Jimmy Carter
13. Bill Clinton
14. Barack Obama
Federalist
1. George Washington
2. John Adams
Democratic-Republican
1. Thomas Jefferson
2. James Madison
3. James Monroe
4. John Quincy Adams
Whig
1. William Henry Harrison
2. John Tyler
3. Zachary Taylor
4. Millard Fillmore
Union
1. Andrew Johnson
Notes:
a. The Republican party was renamed the Union party for the 1864 election. Therefore, Lincoln also served under the Union party label. For Washington’s initial election, political parties were not in existence. He became associated with the Federalist party after he was in office.
b. The Whig Party was a political party active in the middle of the 19th century in the United States. Alongside the Democratic Party, it was one of the two major parties in the United States during the late 1830s, the 1840s, and the early 1850s, part of the period some scholars describe as the Second Party System. (https://en.wikipedia.org/wiki/Whig_Party_(United_States))