The soda industry’s success at legally avoiding taxes shows why so many economists and tax experts believe the United States corporate-tax code is terribly flawed. It includes a notoriously high statutory rate that causes companies to devote resources to avoiding taxes. But it has so many loopholes that the effective corporate tax rate in the United States is slightly lower than the average for rich countries.

The decline in corporate-tax collection in recent decades has contributed to budget deficits. It has also aggravated income inequality: a company’s shareholders ultimately pay its taxes, and with a smaller tax bill, shareholders, who tend to be much more affluent than the average American, see their wealth increase.

“It’s clearly a broken system,” said Michelle Hanlon, an accounting professor at M.I.T.

Corporate taxes burst into the spotlight last week, with the release of a Senate committee report on Apple’s tactics to reduce its tax payments. More quietly, but perhaps more significantly, the House Ways and Means Committee has begun work on a potential overhaul of the tax code. Edward D. Kleinbard, a tax expert and former Democratic Congressional aide, said he had been impressed so far by the seriousness of the committee’s work.

The effort has a long way to go, but if it succeeds, both liberal and conservative tax experts hope it will reduce the statutory rate while also eliminating tax breaks. The net effect could be to close the gap between companies that pay relatively little in taxes and those that pay much more. The market, rather than the tax code, would then play a bigger role in determining companies’ success and failure.

Many voters, meanwhile, want to see companies paying higher taxes. In a Gallup poll last month, 66 percent of respondents said that corporations paid “too little” in taxes, compared with 61 percent who said the same about upper-income people, and 19 percent who said the same about lower-income people.