When asked to name the president who has done the best job over the past 40 years, a majority of Democrats name Barack Obama. Republicans, by contrast, are divided between a president who served in the 1980s – Ronald Reagan – and the one who left office this year, Donald Trump.

About four-in-ten Republicans and Republican-leaning independents (42%) say Reagan has done the best job as president over the past 40 years, while slightly fewer (37%) say Trump has done the best job.

Around six-in-ten Democrats and Democratic leaners (59%) say Obama has done the best job as president of any president of the past 40 years. Far fewer name Bill Clinton (19%) or Joe Biden (5%), who will complete his first year in office next month.