If your primary investing objective is to preserve capital while generating a tax-free income stream, municipal bonds are worth considering. Municipal bonds (munis) are debt obligations issued by government entities. When you buy a municipal bond, you are loaning money to the issuer in exchange for a set number of interest payments over a predetermined period. At the end of that period, the bond reaches its maturity date, and the full amount of your original investment is returned to you.

Taxes

While municipal bonds are available in both taxable and tax-exempt formats, the tax-exempt bonds tend to get the most attention because the income they generate is, for most investors, exempt from federal and, in many cases, state and local income taxes. Investors subject to the alternative minimum tax (AMT) must include interest income from certain munis when calculating the tax, and should consult a tax professional prior to investing.

Types of Municipal Bonds

Municipal bonds come in the following two varieties:

General obligation bonds, issued to raise immediate capital to cover expenses, are supported by the taxing power of the issuer. Revenue bonds, which are issued to fund infrastructure projects, are supported by the income generated by those projects. Both types of bonds are tax exempt and particularly attractive to risk-averse investors due to the high likelihood that the issuers will repay their debts.

While buying municipals bonds is viewed as a conservative investment strategy, it is not risk-free.

Risk Factors of Municipal Bonds: Credit Risk

If the issuer is unable to meets its financial obligations, it may fail to make scheduled interest payments or be unable to repay the principal upon maturity. To assist in the evaluation of an issuer's creditworthiness, ratings agencies (such as Moody's Investors Service and Standard & Poor's), analyze a bond issuer's ability to meet its debt obligations, and issue ratings from 'Aaa' or 'AAA' for the most creditworthy issuers to 'Ca', 'C', 'D', 'DDD', 'DD' or 'D' for those in default.

Bonds rated 'BBB', 'Baa' or better are generally considered appropriate investments when capital preservation is the primary objective. To reduce investor concern, many municipal bonds are backed by insurance policies guaranteeing repayment in the event of default.

Every year, Moody's releases a report on more than 10,000 municipal bond issuers, with all four Moody's-rated municipal defaults in 2016 related to the Commonwealth of Puerto Rico debt crisis. Overall, the total default volume for 2016 was $22.6 billion—the highest in the 47-year study period, according to Moody's.

The rating agency said that the U.S. municipal sector, while broadly stable and highly rated, is "fundamentally evolving" and that the dominant headwind in the sector is "the growth in general government leverage and increasing fixed cost burdens on operations."

According to the Moody's data, there continues to be a very clear delineation in default rates beginning in 2007. Between 1970 and 2007, Moody's reported an average of only 1.3 defaults per year in the muni bond sphere. That number quadrupled after 2007, highlighted by seven defaults in 2013.

Interest Rate Risk and Tax Bracket Changes

The interest rate of most municipal bonds is paid at a fixed rate. This rate doesn't change over the life of the bond. If interest rates in the marketplace rise, the bond you own will be paying a lower yield relative to the yield offered by newly issued bonds.

Municipal bonds generate tax-free income and thus pay lower interest rates than taxable bonds. Investors who anticipate a significant drop in their marginal income-tax rate may be better served by the higher yield available from taxable bonds.

Call Risk and Market Risk

Many bonds allow the issuer to repay all or a portion of the bond prior to the maturity date. The investor's capital is returned with a premium added in exchange for the early debt retirement. While you get your entire initial investment plus some back if the bond is called, your income stream ends earlier than expected.

The underlying price of a particular bond changes in response to market conditions. When interest rates fall, newly issued bonds will pay a lower yield than existing issues, which makes the older bonds more attractive. Investors who want the higher yield may be willing to pay a premium to get it.

Likewise, if interest rates rise, newly issued bonds will pay a higher yield than existing issues. Investors who buy the older issues are likely to do so only if they get them at a discount. If you buy a bond and hold it until maturity, market risk is not a factor because your principal investment will be returned in full at maturity.

Should you choose to sell prior to the maturity date, your gain or loss will be dictated by market conditions, and the appropriate tax consequences for capital gains or losses will apply.

Buying Strategies for Municipal Bonds

The most basic strategy for investing in municipal bonds is to purchase a bond with an attractive interest rate, or yield, and hold the bond until it matures. The next level of sophistication involves the creation of a municipal bond ladder. A ladder consists of a series of bonds, each with a different interest rate and maturity date. As each rung on the ladder matures, the principal is reinvested into a new bond. Both of these strategies are categorized as passive strategies because the bonds are bought and held until maturity.

Investors seeking to generate both income and capital appreciation from their bond portfolio may choose an active portfolio management approach, whereby bonds are bought and sold instead of held to maturity. This approach seeks to generate income from yields and capital gains from selling at a premium.

Evaluating Municipal Bond Stability versus Fit

Stability is relative in the municipal bond market. Municipal bonds tend to be safer than many other types of investments, but they are less safe than U.S. Treasury bonds. You can also trade in multiple kinds of municipal bonds, such as assessment bonds, revenue bonds or general obligation bonds.

The issuer of the bond also matters; bonds issued from municipal authorities in a city with strong financials would be considered more stable than those from a city whose credit rating has been downgraded or has recently filed for bankruptcy.

Plenty of investors make an understandable mistake during tough or uncertain times and develop tunnel vision about stability and safety. In their flight from risk, however, they fail to consider how an investment fits in their financial plans.

Municipal bonds can be a tax haven, often generating higher returns than Treasuries. They can still lose to inflation and tie up large sums of money for much longer than a recession typically lasts.