Most Americans want to see the president elected by a nationwide popular vote and to abolish the Electoral College.

But the popular vote idea is more popular among Democrats and independents than it is among Republicans.

Last week Gallup published new poll results showing 58% of Americans want to amend the Constitution to elect presidents based on the popular vote.

Over 80% of Democrats support a popular vote, as do 60% of independents. While just 32% of Republicans support switching from the Electoral College to a popular vote.

Generally, the election winner captures both the popular vote and the electoral vote — but there are exceptions.

Hillary Clinton won the popular vote but lost the electoral vote to former President Donald Trump in 2016.

Gallup has asked this question since 2000, and Americans consistently favor the popular vote route. But it was close in late November 2016, when just 49% favored a popular vote compared to 47% for the Electoral College.

Trump and Vice President Kamala Harris are in a race for the 270 electoral votes needed to win this election.

“We are not democratic at the highest level of office in the land,” Casey Burgat, the legislative affairs program director at George Washington University, said. “We go through a different route written within the Constitution, going all the way back to the founders, the framers.”

There are 538 available electors.

“So, we think we’re voting for president directly. We’re not really doing that,” Burgat said. “What we’re doing is electing electors within our individual states to then go and vote for the president and vice president of our choosing.”

The 538 is based on the number of senators and representatives each state has in Congress, plus representation for Washington, D.C.

California, which has the most people, also has the most electors at 54.

Montana, an example of a state with a small population, has just four electoral votes.

In most cases, a candidate will get all of a state’s electors for winning that state’s popular vote. Maine and Nebraska are exceptions to that winner-take-all formula.