Municipal Bond Ordinary Income vs Capital Gain Tax Treatment
When you sell a municipal bond, the tax outcome depends on whether you realized a capital gain or loss, and whether the bond was purchased at a discount or premium. The interest you earned while holding the bond is typically tax-exempt from federal income tax, but if you sell above or below your cost basis, you owe or save capital-gains tax—and special rules trap unwary investors on market-discount bonds.
The Basic Structure: Interest vs. Gain
A municipal bond’s tax outcome has three potential components.
The coupon interest is what you earned while holding the bond—the semi-annual or annual payment from the issuer. For a tax-exempt muni bond, this interest is exempt from federal income tax, and usually also from state and local income taxes if you live in the state that issued the bond. You do not pay capital-gains tax on the interest itself.
The capital gain or loss is what you realized when you sold the bond. If you bought the bond at $1,000 and sold it at $1,050, you have a $50 capital gain. This gain is subject to capital-gains taxation—long-term rates if held over a year, short-term (ordinary income) rates if held less than a year. The fact that the underlying bond is tax-exempt does not shield the capital gain from tax.
Market-discount interest applies only to bonds you bought at a discount and is a special trap. More on this below.
Example: Buying and Selling at Par
Assume you buy a $1,000 par muni bond with a 4% coupon at $1,000 (i.e., at par, no discount or premium).
You hold it for two years, collecting $40 in interest twice per year: $40 + $40 = $80 per year × 2 = $160 total. This $160 is tax-free because it’s municipal bond interest.
You then sell the bond at $1,000 (still par). You have no capital gain. Your only tax consequence is the $160 tax-exempt interest you already pocketed. Total tax owed on this investment: $0.
Capital Gains and Holding Periods
If you buy the muni at $1,000 and sell it at $1,050 after 18 months, you have a $50 long-term capital gain (held over a year). This is taxed at long-term capital-gains rates (0%, 15%, or 20% federally, depending on income). The tax-exempt status of the bond’s interest does not apply to the gain.
If you buy at $1,000 and sell at $1,050 after 6 months, the $50 gain is short-term and taxed as ordinary income at your marginal tax rate, which could be 24%, 32%, or higher.
The coupon interest you collected during those 6 months is still tax-free. Only the gain is taxed.
The Market-Discount Trap
This is where most tax mistakes happen. A market discount occurs when you buy a bond in the secondary market for less than its par value, and that discount was not present at issuance. For example, interest rates rose after the bond was issued, so the bond trades at $950 on the secondary market.
If you buy that bond at $950 and hold it to maturity, the IRS taxes the $50 gain ($1,000 − $950) not as a capital gain, but as ordinary income. This is called market-discount interest or accrued market discount, and it is ordinary taxable income, not long-term capital gain.
This is worse than it sounds. A long-term capital gain on a $50 gain might be taxed at 15%. The same $50 as market-discount interest is taxed at your full marginal rate—possibly 24%, 32%, or 37%. You lose the capital-gains preferential rate simply because you bought the bond at a discount.
The discount is accrued ratably over the life of the bond if you hold it to maturity. If you buy the bond at $950 three years before maturity, you are deemed to have earned $50 / 3 ≈ $16.67 per year in market-discount interest. You report this as ordinary income on your tax return each year, even if you don’t sell.
If you sell the bond before maturity at a price between $950 and $1,000, things get more complicated. The portion of the sale price that exceeds the adjusted basis (your $950 cost plus accrued market discount) is capital gain. The rest is market-discount interest.
Electing Out of Market Discount
You can make an election (on Form 8949 or in a statement attached to your tax return) to amortize the market discount annually rather than waiting until maturity or sale. This locks in the tax—you pay ordinary income tax each year on the accrued discount, whether you sell or not. The benefit is that if you later sell the bond above par, the gain is entirely capital gain rather than mixed. This only makes sense if you expect the bond to appreciate and realize a large capital gain.
Bond Premium and Amortization
The reverse situation is when you buy a muni bond above par. If a $1,000 bond has a 4% coupon and interest rates fall to 2%, the bond’s price rises to around $1,050 or higher. If you buy it at $1,050, you have paid a $50 premium.
If you hold this bond to maturity, you will receive only par ($1,000) at maturity, not $1,050. You will lose the $50. The IRS allows you to amortize this premium against your future coupon interest.
For a tax-exempt muni bond, the amortizable premium is deducted from the tax-exempt interest you receive. If your bond pays $40 annually and your amortizable premium is $5 per year, you report $35 of tax-exempt interest instead of $40. The $5 reduction is the premium deduction.
This is a deduction against tax-exempt income, not ordinary income, so it does not reduce your overall taxable income. But it does reduce the amount of tax-exempt interest you get to exclude from taxable income.
If you sell the bond before maturity, the remaining unamortized premium reduces your cost basis for capital-gains purposes. You adjust your basis up by the premium as you hold the bond, so your gain on sale is smaller.
Acquisition Premium vs. Amortizable Premium
There is an important distinction. An acquisition premium is premium you paid over the original issue price (OIP) but the bond was already trading above par when you bought it. Some bonds, especially those with high coupons when issued, may have been issued above par.
If the bond was issued at a premium above par, you cannot amortize that original premium. You can only amortize premium that arose after issuance due to interest-rate changes. This distinction is technical and requires checking the bond’s prospectus or asking the broker, but it matters for tax reporting.
Capital Loss: Losing Money on a Muni
If you buy a muni at $1,000 and sell it at $950, you have a $50 capital loss (assuming you held it over a year, this is a long-term capital loss).
Capital losses can offset capital gains dollar-for-dollar. If you had other capital gains of $200 this year, a $50 capital loss reduces that to $150.
If you have more capital losses than gains, you can deduct up to $3,000 of net capital loss against ordinary income in a given year. Anything above $3,000 carries forward to future years.
This is valuable. A long-term capital loss on a muni is often worth more in tax savings than the same loss on an ordinary stock, because munis have lower volatility and fewer losses. If you can harvest a muni loss, it is often worth locking in.
However, be aware of the wash-sale rule. If you sell the muni at a loss and buy the same or substantially identical bond within 30 days, the IRS will disallow the loss and add it to your cost basis of the new bond. For muni bonds, “substantially identical” is narrowly defined (usually the same issuer and maturity), so you can often buy a different muni from the same issuer without triggering wash-sale. But check first.
State and Local Tax on Munis
Federal tax-exemption does not always mean state-and-local tax (SALT) exemption. A bond issued by a state or locality is usually exempt from that state’s income tax. A bond issued by a different state is usually taxable in your home state.
So a Californian holding a California muni is exempt from federal and California state and local taxes. That same Californian holding a New York muni is exempt from federal tax but owes California state tax on the interest.
Capital gains, however, are taxed in your home state regardless of the muni’s issuer, because capital gains are income from your home state’s perspective.
Reporting on Taxes
Muni bond issuers send Form 1099-INT or Form 1098-T (for educational bonds) showing the tax-exempt interest you received. This should match your broker’s record.
On your tax return (Form 1040), you report tax-exempt interest on line 2a (it goes in the box but is not included in taxable income, making it visible to the IRS). You separately report capital gains and losses on Schedule D and Form 8949.
Market-discount interest is reported on line 5 of Schedule B (taxable interest) and included in adjusted gross income.
Mistakes here invite audit. If you receive a 1099-INT or 1098-T with the wrong amount, get it corrected by contacting the issuer or financial institution.
See also
Closely related
- Municipal Bond — Overview of muni bond mechanics and issuance
- Long-Term Capital Gain Tax — Tax rates and holding-period rules
- Bond — General fixed-income fundamentals
- Credit Rating — How default risk affects muni values and trading
Wider context
- Tax Bracket — Why your marginal rate shapes muni value
- Yield Curve — How rates affect muni prices and discounts
- Tax Loss Harvesting — Using muni losses to offset other gains
- Estate Tax — Muni bonds and inheritance