Sen. Barbara Boxer plans to introduce a bill banning the Electoral College after Hillary Clinton lost the election but appears set to win the popular vote over President-elect Trump.

Boxer, a California Democrat who is retiring from the Senate, introduced the bill because she feels it's unfair Clinton lost the election despite having the most votes.

"In my lifetime, I have seen two elections where the winner of the general election did not win the popular vote," Boxer said. "When all the ballots are counted, Hillary Clinton will have won the popular vote by a margin that could exceed two million votes, and she is on track to have received more votes than any other presidential candidate in history except Barack Obama.

"This is the only office in the land where you can get more votes and still lose the presidency. The Electoral College is an outdated, undemocratic system that does not reflect our modern society, and it needs to change immediately. Every American should be guaranteed that their vote counts."

The bill will die in Congress if it's not passed through both chambers by the end of the session, which ends in December. It's unlikely a Republican-controlled Congress will bring up the bill.

Trump, who once tweeted the Electoral College is a "disaster for democracy" in the wake of Obama's 2012 re-election, said earlier on Tuesday the Electoral College is "genius."

Boxer said she agreed with his 2012 position.

"I couldn't agree more. One person, one vote," she said.