Interested in Barack Obama?Add Barack Obama as an interest to stay up to date on the latest Barack Obama news, video, and analysis from ABC News.
Obama was named the best or second best president by 44 percent of Americans in the survey that came out Wednesday. Thirty-one percent ranked him as the best president in their lifetimes.
While 19 percent might seem low, 20 percent of Americans ranked Obama as the best or second best president in 2011, at a similar point in his first term and the last time Pew conducted this poll.
Pew found that rankings changed by generation. More than 60 percent of millennials view Obama as the best or second best president of their lifetime and 46 percent name him as the best.
Older Americans, baby boomers and the "silent generation," chose Reagan as the top president during their lives. Forty-two percent of 54 to 72-year-olds and 38 percent of 73 to 90-year-olds rank Reagan as the best or second best.
Partisanship also affects people’s choice of a top president, Pew found.
Among Democrats or Democratic-leaning Independents, 71 percent ranked Obama as the best or second best president. Clinton comes in second, with 49 percent ranking him as best or second best.
A majority of Republicans list Reagan as the top president, with 57 percent saying he’s the best of their lifetime. Trump comes in second among Republicans, with 40 percent naming him.
The survey was conducted from June 5-12 among 2,002 U.S. adults.