Dozens of states, cities coping with bad bond bets

When it comes to interest rate swaps, Detroit is not alone.

More than five years after the 2008 financial crisis upended the world of credit and debt, dozens of states, counties, cities, school districts and other public entities tapping the $4 trillion muni bond market are still feeling the hangover from these risky bets.

As the architects of Detroit's bankruptcy are trying to negotiate a deal to end the nearly $4 million a month in payments to holders of the city's swaps contracts, dozens of other states and cities are spending millions of taxpayer dollars on swaps contracts currently in force.

The windows of a house are boarded-up with plywood in the Roseland neighborhood of Chicago, Aug. 28, 2013.
Tim Boyle | Bloomberg | Getty Images
The windows of a house are boarded-up with plywood in the Roseland neighborhood of Chicago, Aug. 28, 2013.

A full accounting is not possible, because there is no single list of swaps outstanding. Unlike the muni bonds that these hedges are attached to, states and cities are not required to register them with regulators. Instead the details of these deals are buried in the Comprehensive Annual Financial Reports that municipalities file every year—months after the end of each fiscal year.

A review of these CAFR reports by the Service Employees International Union—the second-largest public employee union representing more than 1 million local and state government workers—found more than 500 swaps contracts—were still in force with more than 70 public entities representing annual payments of than $1.3 billion a year, as of the latest publicly available reports.

Those reports represent a snapshot in time; some swaps may have been terminated since they were filed.

These complex derivatives—cousins of the credit instruments used to package subprime mortgages—were sold as a surefire hedge against the risk to taxpayers that rising interest rates could raise borrowing costs for cities, states and schools. Instead, the bet backfired.

After the Federal Reserve flooded the financial system with cash in 2008 to protect the shattered banking system, interest rates fell to zero—turning many of the these swaps upside down and saddling the government entities on the losing side of the bet with annual payments to Wall Street bankers who arranged the deals and the counterparties who ended up on the winning side.

(Read more: Damage to city budgets: Some was self-inflicted)

Like other critics of these deals, the union contends that these swaps are diverting precious taxpayer funds from badly needed public service—and the pensions owed to the public employees they represent.

But municipal finance experts note that some cities and states saved millions of dollars in borrowing costs on these deals before the 2008 crisis. In any case, the swap represents a binding commitment with the same force as the bond the swap is attached to.

Some cities and states have decided to bite the bullet and pay a hefty "termination fee" which, not unlike a homeowner paying off a mortgage, ends the burden of annual swap payments. In 2012, for example, New York state paid $243 million to terminate its swap deals, using $191 million in new borrowing to do so.

(Read more: Here's what you need to know in the muni bond market)

Terminating swaps may help free up cash in the short run but—depending on the terms of the swap—it may mean throwing good money after bad.

The cost of canceling the deal also varies based on changes in interest rates. Just as the drop in rates increased the cost of these deals, rising rates will gradually ease financial pain.

In some cases, say municipal finance advisors, states and cities holding costly swaps may be better off waiting for rates to rise to more historical levels before trying to restructure them with fresh debt.

By CNBC's John Schoen. Follow him on Twitter @johnwschoen or email him.