Members of Congress participate in a joint session of Congress to ratify the 2024 Presidential election at the U.S. Capitol on January 6, 2025. —Chip Somodevilla—Getty ImagesAfter flipping several key state legislatures and gubernatorial seats in this month’s elections, Democrats now have a path to nullify an institution of U.S. elections that has cost the party at least two presidential contests so far this century: the Electoral College.Officially abolishing that longstanding system, in which presidents are selected via slates of electors representing each state rather than by a direct popular vote, would require a constitutional amendment. But it could effectively be neutralized if enough states join a pledge known as the National Popular Vote Interstate Compact. Read More: U.S. Takes Step Closer to Popular Vote for Presidential Elections as Virginia Joins CompactFor this to be achieved, the compact’s member-states would need to account for at least 270 electoral votes, the majority needed to secure the presidency. Over the past two decades, 18 Democratic-led states and the District of Columbia, collectively representing 222 electoral votes, have already signed on. And Democrats won control in enough additional states in the midterms to put the 270-vote threshold within reach—if they choose to go for it. Here’s what to know about the compact, and how it could change the future of U.S. elections if it goes into effect. What is the National Popular Vote Interstate Compact?The National Popular Vote Interstate Compact is an agreement among states to assign their electoral votes to the presidential candidate who wins the national popular vote.This would mark a significant change in the current electoral system. Presently, almost every U.S. state allocates all of its electors to the candidate who wins the most votes in that state. As a result of that “winner take all” approach and the disparity between states’ shares of the nation’s voters and electoral votes, a candidate is able to win the presidency even if they have lost the nationwide popular vote. This has happened five times in U.S. history, most recently when Donald Trump lost the popular vote to Hillary Clinton but won the Electoral College in 2016. Another instance occurred earlier this century, in 2000, when George W. Bush won the presidency but lost the popular vote to Al Gore. The compact, in contrast, aims to ensure that whoever wins the most votes across the country also wins the White House.The idea for states to coordinate to circumvent the Electoral College and adopt a national popular vote system in such a way arose in the aftermath of that contentious 2000 election. In 2001, brothers Akhil Amar, a professor at Yale Law School, and Vikram Amar, a professor at the University of California Davis Law School, wrote an article that laid out something similar to the National Popular Vote Interstate Compact, which was created roughly five years later, in 2006.Eighteen states—including California, Colorado, Connecticut, Delaware, Hawaii, Illinois, Maine, Maryland, Massachusetts, Minnesota, New Jersey, New Mexico, New York, Oregon, Rhode Island, Vermont, Virginia, and Washington—have since agreed to join the compact, as well as Washington D.C. Together, these pact members make up 222 of the 270 electoral vote majority needed to elect a president. The compact will take effect only if its membership collectively reaches that 270-vote mark.In order for a state to join the compact, it needs to pass legislation through both chambers of its legislature. The governor then needs to sign the legislation for it to become law—or, if they refuse to do so, the state legislature needs to marshal a supermajority to overturn a gubernatorial veto and enact the measure.Graphic showing results of the 2016 US presidential election by Electoral College and popular vote. —AFP/Getty ImagesHow Democrats’ midterms wins could enable them to circumvent the Electoral CollegeIn the midterm elections earlier this month, Democrats gained so-called “trifectas”—in which a single party controls both chambers of the state legislature and the governorship—in five additional states: Pennsylvania, Michigan, Arizona, Wisconsin, and Nevada. Together, those states account for 61 electoral votes, which would be more than enough to put the compact over the required threshold for it to take effect if they agree to sign on.In fact, the pledge could reach the required majority of electoral votes even if just four of those five states join—as long as Pennsylvania, with 19 electoral votes, and Michigan—with 15—are among the four.Pennsylvania Gov. Josh Shapiro said “the national popular vote makes sense” while speaking on the “Pod Save America” podcast this month, and added that he would “work with lawmakers to figure out what the right mechanism is for moving forward on that.”Incoming Michigan Senate Majority Leader Darrin Camilleri meanwhile told POLITICO that he is open to adopting a national popular vote system, but acknowledged that enacting it would lead to legal GOP pushback. “Other states that have done this are not going to be the tipping-point states. We very well could be one of those tipping point-states, and so I want to ensure that everybody is on the same page,” Camilleri said.Is the compact constitutional?The constitutionality of the National Popular Vote Interstate Compact is a matter of contention, and if enacted, it would likely face legal challenges, legal experts tell TIME. Lawrence Lessig, a professor at Harvard Law School, says that the compact is “clearly permissible” under the Constitution, which he asserts “plainly meant to give to state legislatures the power to decide how to allocate their electors.” Opponents of the compact, however, believe that it violates another part of the Constitution called the “compact clause,” explains Jennifer Hendricks, a law professor at the University of Colorado Boulder. That clause, she says, was designed to prevent “states getting together in a way that threatens the supremacy of the federal government.” But like Lessig, Hendricks herself does not believe the compact meets the bar for unconstitutionally challenging the federal government’s authority. “That's not a problem here, because this is clearly a matter for the states under the Constitution,” Hendricks tells TIME. “The federal government is not involved in deciding how to pick electors for the Electoral College.”How would the compact impact presidential elections?If it were to take effect, the compact would make the nationwide popular vote decisive in presidential elections. But the impact of that change would go beyond the final act of crowning a winner, experts tell TIME.Shifting to a popular vote system would “fundamentally change the dynamic of running for president” by leveling the playing field of every state, Lessig says. Currently, “every single election, candidates are focused on the swing states and not focused on the rest of the country, and that's an injustice,” he says. If the compact were adopted, in contrast, “you would go from a nine state strategy to a 51 jurisdiction strategy.”“The reason why this is a good idea,” he adds, “is that it means that every part of the country matters to the president,” which he contends would be “enormously beneficial to making this a much more representative democracy.”He also posits, however, that the shift in strategy would make campaigning exponentially more expensive, since presidential candidates would be required to win over voters all across the country, not just in the purple states—such as Wisconsin, Michigan, and Pennsylvania—that have traditionally been decisive in determining who wins the Electoral College. “The big pro is that it aims to vindicate the idea of equality: one person, one vote,” Akhil Amar says of the National Popular Vote Interstate Compact. “The cons are that there are some serious issues of implementation that could arise, and some of them actually could be catastrophic because it's a new scheme that has never been put into operation.”He tells TIME that there are a number of scenarios in which the stability of the compact could be threatened. States would likely “try to game the system,” he says, by changing, for instance, the parameters around who is eligible to vote to increase or decrease their favorability for specific candidates. If there were ever a close election that required a recount, he adds that states, especially those who are not part of the compact, may refuse to carry one out, if their vote counts weren’t close and they did not want to pay to count them again. Members of the compact could also attempt to drop out. “You cannot pick our president on the basis of a scheme that only one party likes,” Amar says, stressing that the partisan nature of the compact is its biggest flaw. “Because unless both parties buy in, one party will have an incentive to torpedo it.”Vikram Amar tells TIME that the partisan imbalance in the compact’s support could potentially be resolved by delaying the implementation of the compact. “There's no way to know in 2044 which party is going to be favored in the Electoral College versus a national popular vote, so if we if we agree as a matter of principle that this is a fairer and saner way to elect a president, then just commit to it now, but defer or delay its implementation,” he says. “That can overcome some of the partisan dimensions to it today.”Vikram Amar says that bipartisan support for a version of the compact could eventually lead to Congress rallying behind an effort to amend the Constitution. “If you had a few election cycles where [the compact] was up and operating in the 2030s or 2040s, and it seemed to work reasonably well, and people got used to it,” he says, “that might grease the skids to to create momentum for a constitutional amendment to to abolish the Electoral College.”