NEW YORK -- When Detroit became the biggest city in U.S. history to file for bankruptcy last month, it turned public attention to the municipal-bond market, where cities and states go to borrow money. Was this sleepy, often-overlooked area of the financial world actually dangerous?

Like other cities, Detroit borrowed from investors to pay for roads, sewer lines and an array of other projects. Now Detroit says it can't afford to pay bond investors all of their money back.

Even if you don't own any muni bonds, it's important to understand what they are and how they work. They're what your city uses to keep itself running, but it can be tough to cut through the jargon and heated claims surrounding Detroit's bankruptcy. To help, here's a look at the nuts and bolts of what finance types call munis: who owns them, how they work and just what they are, anyway.

What are municipal bonds, exactly?

Cities, states, towns and other local governments sell municipal bonds to raise money for school renovations, sports stadiums or other projects. A fire district might need a few hundred thousand dollars for a new truck; a state might need a few billion to build highways and hospitals.

When investors buy a muni bond, they're lending to a local government. In return, they get a regular interest payment and the promise of all their money back at the end of the bond's life. That could be one year later or as many as three decades later.

Have local governments borrowed a lot?

The total amount of municipal debt outstanding is $3.72 trillion, according to the Federal Reserve's latest report. That may sound enormous, but it's less than a fifth of the total $21.7 trillion U.S. bond market. Corporations have borrowed more money, owing $5.9 trillion to bondholders. And the federal government has more publicly traded debt than both groups put together: $11.9 trillion.

For the sake of comparison, the value of the entire U.S. stock market is $18.7 trillion, according to S&P Dow Jones Indices.

What's the appeal?

It's mainly the tax-free income. The federal government taxes interest payments from savings accounts, corporate bonds and other investments, but doesn't touch income from muni bonds. To somebody in the top tax bracket, a New York State bond paying 3 percent is equal to a corporate bond paying 4.97 percent.

Who owns them?

They're mainly held by individuals, who buy them outright or through mutual funds. Individuals hold 44 percent of all munis, and mutual funds have another 25 percent, according to the Fed. Banks and insurance companies own much of the rest.

Buying municipal bonds directly tends to be the province of wealthy people who have the most to gain from the tax exemption.

"Tax-free bonds have been the best game in town for people who are well off and don't want to pay taxes," said Mark Schwartz, a former bond lawyer and investment banker who has a law practice in Bryn Mawr, Pa.

How can I buy them?

You can usually buy munis through your online brokerage account, but it's not exactly like buying stocks. They're traded "over the counter." That means there is no formal, centralized exchange with one agreed-upon price for a security. Instead, you have to buy them through a dealer, and the prices may vary.

"You can call up five dealers and get five different prices," said Daniel Berger, senior market strategist at Thomson Reuters, "although the prices would be closer than you think."

Dealers are supposed to offer "fair and reasonable" prices. They make money from the difference between what they paid and what they get from a sale.

What kind of return can you expect?

When there's little risk, there's little reward. Thanks to their solid credit history, municipalities pay very low rates to borrow money.

A type of muni called a "general obligation" bond is considered especially safe. They're backed by a city's full faith and credit, which essentially means a city will take extreme steps to repay them – even if it has to cut police and fire protection for its citizens or raise taxes.

The average yield on a top-rated, 10-year general-obligation muni bond is 2.71 percent, according to Thomson Reuters data. For a 30-year muni, it's 4.22 percent.

That's a bit more than the payout on U.S. government debt, and the tax break makes the benefit bigger for investors. The 10-year Treasury note yields 2.62 percent. The 30-year bond yields 3.70 percent.

What's going on in Detroit?

Detroit owes billions to bondholders and billions more in pensions to retired city workers. In its bankruptcy filing, the city proposed trimming pension benefits and paying bondholders a fraction of what they're owed. It also wants to treat retired city workers and bond investors as equals.

Both groups plan to fight the city's proposal, for very different reasons. The retirees argue that Michigan's state constitution protects their pensions. Investors who hold the city's general-obligation bonds expect not only to rank first in the lineup of creditors but also to be paid in full. Laws often require local governments to pay bondholders before they pay anybody else.

Government borrowers generally stick to their promised interest payments as long as residents keep paying taxes. Even when trouble strikes, bondholders usually get all their money back. In 1994, for example, the bankruptcy of Orange County, Calif., shook financial markets, raising fears that bond investors would spurn local government borrowers. But Orange County's bondholders eventually got all of their money back, according to the rating agency Moody's.

One of Detroit's problems, though, is that its population and property values have plunged, shrinking the city's tax base.

Bond investors worry that if Detroit manages to pay them less than the full amount they're owed, it would set a precedent for other cities to follow.

"This fight could last for years," said Richard Larkin, director of research at Herbert J. Sims & Co. "Bond investors ain't going to sit back quietly."

Will it affect me?

Probably not, unless you worked for the city of Detroit or own its bonds.

Even if you blindly stashed most of your savings in muni-bond funds, it's unlikely that you loaned much to Detroit. Mutual funds tracked by the investor service Morningstar have $2.5 billion in bonds tied to the city. That's 0.003 percent of their muni-bond holdings, according to the Fed.

So I don't need to worry about losing my money?

Despite the high-profile problems of cities like Detroit, municipalities rarely miss an interest payment. The rating agency Moody's counted five defaults last year. Cities were behind three of them: Stockton, Calif., Oakdale, Calif. and Wenatchee, Wash.

Since the Great Recession hit in late 2007, a total of 26 municipal borrowers have defaulted on their debts, according to Moody's, and nearly all of them were hospitals and housing projects.

Corporations are much more likely to miss an interest payment. An average of 0.12 percent of all municipal borrowers default within 10 years, according to a Moody's study of defaults between 1970 and 2012. Nearly 12 percent of borrowers in the corporate bond market default over the same span.

How has the municipal market reacted to Detroit?

Interest rates on some bonds have crept up since the news broke, so some cities and towns will have to pay more to borrow from bond investors. Many investors, though, see Detroit as an isolated incident.

For the bond market to really freak out, said Schwartz, the former bond lawyer, "you're going to need a lot more Detroits."

Loading Slideshow...
  • Could Detroit Come Back After Bankruptcy?

    We combed through Detroit Emergency Manager Kevyn Orr's 150-page-plus restructuring plan he released to the public in June 2013, weeks before the city's bankruptcy filing, after meeting with bondholders. Orr met with those creditors to negotiate Detroit's structural long-term debt, now said to total over $18 billion. Along with finances, the plan proposes 10 years' worth of improvements, priorities and changes that will affect residents, businesses, neighborhoods and visitors. Click through the slideshow to read our analysis of how Detroit could change after bankruptcy. You can see the nitty-gritty details for yourself by <a href="" target="_blank">reading the full report here</a>.

  • Vacant Buildings

    Mayor Dave Bing launched a program in April 2010 with the goal of demolishing 10,000 vacant structures by the end of his term. Over 5,000 of those abandoned buildings have been torn down, with the remainder scheduled to go by the end of 2013. But there was never enough money to fully rid Detroit of its blighted buildings. Orr's report says a funding gap of $40 million exists before Bing's goal can be completed. And while 10,000 demolitions is an insanely high number, Orr's report says that only covers 13 percent of the city's vacant buildings, and 26 percent of those that have been deemed dangerous.

  • Neighborhoods

    Orr's restructuring plan presents a number of ways the city can speed up blight removal. One tactic involves coordinating and simplifying the myriad local, regional and national agencies and statutes that regulate demolitions. Another priority is moving blighted land through the demolition process faster, in order to return those properties to private ownership (Pages 72 and 73). Police and fire departments will integrate their data so demolitions can be targeted to reduce crime and arson. Orr's budget calls for $50 million annually in 2014 and 2015 to battle blight, to be increased to $100 million each year for 2016 through 2018. Some of that money will have to be raised through grants and public-private partnerships.

  • Pensions

    According to the city's preliminary analysis, Detroit hasn't kept up on its obligations to beneficiaries of the General Retirement System and Detroit's Police & Fire Retirement System. By how much? A staggering $3.5 billion, says Orr, who writes, "At this level of underfunding, the City would have to contribute approximately $200 million to $350 million annually to fully fund currently accrued, vested benefits. Such contributions will not be made under the plan."

  • Retiree Health Benefits

    Under Orr's plan, pension funds would receive a proportional (pro rata) share of $2 billion in notes that the city would issue. But since that share of $2 billion won't equal the total amount of unfunded pension costs, the report notes, pensioners should expect "significant cuts in accrued, vested pension amounts for both active and currently retired persons." According to the Detroit Free Press, retiree health benefits will likely be<a href="" target="_blank"> transferred to modified medical benefit plans</a> that will come into effect with the Affordable Care Act. Those over the age of 65 would be transitioned to Medicare.

  • Detroit Police

    Hiring a new police chief was the first task on Kevyn Orr's Detroit Police checklist, but it's not the only change he recommends. Orr envisions using a data-driven approach to restructure DPD from top-to-bottom. Another priority is improving officer morale and giving the force the tools they need to do their jobs: bulletproof vests, tasers, vehicles and functional IT. He's also a fan of the "Broken Windows" policing theory piloted last year in the city's Rosedale Park neighborhood. In total, Orr plans to spend $26 million more on DPD in 2014, with an additional $66 million investment over the next four years.

  • Unsecured Creditors

    It should come as no surprise to readers that Detroit is bonded to the hilt. Creditors may take a <em>huge</em> hit on payments from the city, reportedly as little as 10 cents on the dollar. Orr has stopped paying some debts entirely, and his plan calls for reinvesting that money into city services after bankruptcy.

  • Detroit Fire Department

    Aging fleets of fire engines and facilities to maintain them threaten the impact of the Detroit Fire Department, which responds to around 30,000 calls every year. The restructuring plan calls for at least $6 million in additional investment over the next five years, with an $18.4 million facility investment in 2017. But the restructuring plan doesn't talk about hiring any more fire investigators -- as of Dec. 2012, the <a href="" target="_blank">department only had 12 on staff</a> to investigate more than 5,000 suspicious fires set in the city's neighborhoods every year.

  • Public Transit

    The restructuring plan mentions that DDOT, Detroit's underfunded bus system, could eventually be merged with a private company or SMART, the suburban public transportation system. There's also talk of bringing DDOT under the control of the new <a href="" target="_blank">regional transit authority</a>. A consultant is apparently studying long-term solutions, including outsourcing (Pages 74 and 75). While it could make more sense long-term to have all of the region's transit under one umbrella, the RTA is too new to make that determination and doesn't yet have funding. In the event of a merger, gains in savings and efficiency may be balanced with layoffs.

  • Belle Isle

    Managing and maintaining the 982-acre Belle Isle Park costs the city of Detroit some $6 million annually. Orr's verdict on Belle Isle comes as no surprise: He says the city "intends to enter into lease transaction with State on generally the same terms as the State’s prior proposal," though no timetable is given (Page 87). That means "Detroit's crown jewel" is slated to become a state park managed by the Michigan Department of Natural Resources. Under the <a href="" target="_blank">previous 30-year lease proposal</a>, pedestrians and bikers would still be able to access the park for free. Motor vehicles would have to pay an annual $11 Recreation Passport fee to the MDNR, good for accessing any state park.

  • 36th District Court

    Orr proposes possibly transitioning to "paperless" transactions at the 36th District Court (Page 73). Welcome to the 21st century, guys!

  • Residents Who Work Outside The City

    Orr's report proposes levying an income tax for reverse commuters -- those who live in Detroit but work outside the city (Page 81). The City loses approximately $30 to $45 million of income tax revenue every year, claimed to be 15 to 20 percent of the total tax collected, from reverse commuter non-filers. Expect new legislation to tax these residents.