Free-market economic theory suggests that the American real estate market should not have been able to exist as it has for decades.

Americans have long paid unusually high commissions to real estate agents. The typical commission in the U.S. has been almost 6 percent, compared with 4.5 percent in Germany, 2.5 percent in Australia and 1.3 percent in Britain. As a recent headline in The Wall Street Journal put it, “Almost no one pays a 6 percent real-estate commission — except Americans.”

If housing operated as an efficient economic market should, competition would have solved this problem. Some real estate brokers, recognizing the chance to win business by charging lower commissions, would have done so. Other brokers would have had to reduce their own commissions or lose customers. Eventually, commissions would have settled in a reasonable place, high enough for agents to make a profit but in line with the rest of the world.

That didn’t happen. Instead, an average home sale in the U.S. has cost between $5,000 and $15,000 more than it would have without the inflated commissions. This money has been akin to a tax, collected by real estate agents instead of the government.

The situation finally seems to be ending, though. On Friday, the National Association of Realtors, the industry group that has enforced the rules that led to the 6 percent commission, agreed to change its behavior as part of an agreement to settle several lawsuits.

The settlement is important in its own right. Americans now spend about $100 billion a year on commissions. That number will probably decline by between $20 billion and $50 billion, Steve Brobeck, the former head of the Consumer Federation of America, told my colleague Debra Kamin.