Presidents of the United States
All forty-seven presidencies (Grover Cleveland's two non-consecutive terms are numbered 22 and 24) with ordinal number, name, party, years in office, and term length. Every row is read live at build time from OnlyCSharp.Data.Catalogs.History.UsPresidents.All. Authored as .razor; rendered to static HTML.
Source: the public record of U.S. presidential terms (official U.S. Government works are public domain); each row links to its English Wikipedia biography. Term start/end years follow the March-4 / January-20 inauguration calendar.
| # | President | Party | Term | Years |
|---|---|---|---|---|
| 1 | George Washington | Unaffiliated | 1789–1797 | 8 |
| 2 | John Adams | Federalist | 1797–1801 | 4 |
| 3 | Thomas Jefferson | Democratic-Republican | 1801–1809 | 8 |
| 4 | James Madison | Democratic-Republican | 1809–1817 | 8 |
| 5 | James Monroe | Democratic-Republican | 1817–1825 | 8 |
| 6 | John Quincy Adams | Democratic-Republican | 1825–1829 | 4 |
| 7 | Andrew Jackson | Democratic | 1829–1837 | 8 |
| 8 | Martin Van Buren | Democratic | 1837–1841 | 4 |
| 9 | William Henry Harrison | Whig | 1841–1841 | 0 |
| 10 | John Tyler | Whig | 1841–1845 | 4 |
| 11 | James K. Polk | Democratic | 1845–1849 | 4 |
| 12 | Zachary Taylor | Whig | 1849–1850 | 1 |
| 13 | Millard Fillmore | Whig | 1850–1853 | 3 |
| 14 | Franklin Pierce | Democratic | 1853–1857 | 4 |
| 15 | James Buchanan | Democratic | 1857–1861 | 4 |
| 16 | Abraham Lincoln | Republican | 1861–1865 | 4 |
| 17 | Andrew Johnson | National Union | 1865–1869 | 4 |
| 18 | Ulysses S. Grant | Republican | 1869–1877 | 8 |
| 19 | Rutherford B. Hayes | Republican | 1877–1881 | 4 |
| 20 | James A. Garfield | Republican | 1881–1881 | 0 |
| 21 | Chester A. Arthur | Republican | 1881–1885 | 4 |
| 22 | Grover Cleveland | Democratic | 1885–1889 | 4 |
| 23 | Benjamin Harrison | Republican | 1889–1893 | 4 |
| 24 | Grover Cleveland | Democratic | 1893–1897 | 4 |
| 25 | William McKinley | Republican | 1897–1901 | 4 |
| 26 | Theodore Roosevelt | Republican | 1901–1909 | 8 |
| 27 | William Howard Taft | Republican | 1909–1913 | 4 |
| 28 | Woodrow Wilson | Democratic | 1913–1921 | 8 |
| 29 | Warren G. Harding | Republican | 1921–1923 | 2 |
| 30 | Calvin Coolidge | Republican | 1923–1929 | 6 |
| 31 | Herbert Hoover | Republican | 1929–1933 | 4 |
| 32 | Franklin D. Roosevelt | Democratic | 1933–1945 | 12 |
| 33 | Harry S. Truman | Democratic | 1945–1953 | 8 |
| 34 | Dwight D. Eisenhower | Republican | 1953–1961 | 8 |
| 35 | John F. Kennedy | Democratic | 1961–1963 | 2 |
| 36 | Lyndon B. Johnson | Democratic | 1963–1969 | 6 |
| 37 | Richard Nixon | Republican | 1969–1974 | 5 |
| 38 | Gerald Ford | Republican | 1974–1977 | 3 |
| 39 | Jimmy Carter | Democratic | 1977–1981 | 4 |
| 40 | Ronald Reagan | Republican | 1981–1989 | 8 |
| 41 | George H. W. Bush | Republican | 1989–1993 | 4 |
| 42 | Bill Clinton | Democratic | 1993–2001 | 8 |
| 43 | George W. Bush | Republican | 2001–2009 | 8 |
| 44 | Barack Obama | Democratic | 2009–2017 | 8 |
| 45 | Donald Trump | Republican | 2017–2021 | 4 |
| 46 | Joe Biden | Democratic | 2021–2025 | 4 |
| 47 | Donald Trump | Republican | 2025–present | 0 |