HUNDREDS of millions of votes will be counted across the US from Tuesday onwards – but there's a chance that the candidate that wins the popular vote won't win the whole race.

That's because the popular vote does not directly choose the president – rather, something called the electoral college does.

Each US state, as well as the District of Columbia, are granted a certain number of seats out of the 538 in the electoral college, based on their number of congressional representatives.

READ MORE: How Americans living in Scotland feel about the impending US election

When Americans vote, they are making a selection for which candidate they want to win their state, and its electoral college votes.

Whichever candidate gets 270 or more votes in the electoral college goes on to win the election for president.

Why is it controversial?

This system of choosing presidents has been controversial since it was introduced, for a range of reasons.

One major point of contention is that it means that not every American's vote for president has the same weight.

READ MORE: Scottish Labour council leader arrested and charged over 'domestic assault'

The number of electoral college votes a state has is not directly proportional to how many people live there.

Instead, each state, as well as the District of Columbia, get a minimum of three votes automatically, with the remainder allotted based on population.

This means that a voter living in an extremely small state, like Wyoming, can have their vote for president be more than four times as powerful as one in a larger state like California.

Voters of residents in the rural state of Wyoming have more than four times as many as one in CaliforniaVoters in the state of Wyoming have more than four times as much power as those in California

In five elections, most recently in 2016, this effect has meant that the national popular vote winner – in that case Hillary Clinton – did not win the election.

Another issue is that the electoral college tends to place a great amount of importance on "swing states" – states where pre-election polls show no clear winner.

READ MORE: Why it's so hard to examine the royal family's Scottish finances

Such states historically get more attention – both in advertising spending and in candidate visits – than others where the outcome of the vote is easy to predict.

Two states, Nebraska and Maine, try to rectify some of these concerns by assigning some of their electoral votes proportionally based on the popular vote in the state.

And since 2006, many states have signed on to a measure that may eventually negate the negative consequences of the electoral college outright.

The National Popular Vote Interstate Compact would, if activated, see states that sign up dedicate all their electoral college votes to the candidate which wins the national popular vote.

So far, 17 states and the District of Columbia have agreed to it, representing 209 of the 270 electoral college votes it needs to become active.

But, at least for this election, the electoral college system – with all its faults – will go on as normal.