Municipal bonds are taxed lightly at the federal level and often at the state level too, but not as cleanly as the “tax-free” label suggests. Interest from most state and local government bonds is excluded from federal income tax, and interest from bonds issued in your home state is generally exempt from state and local income tax as well.1Office of the Law Revision Counsel. 26 USC 103 – Interest on State and Local Bonds Capital gains from selling bonds are fully taxable, certain private activity bonds can trigger the Alternative Minimum Tax, and even the exempt interest quietly pushes up the tax on Social Security benefits and the size of your Medicare premium.
The Federal Exemption on Interest
Interest you earn on bonds issued by state and local governments is not included in your gross income for federal tax purposes.1Office of the Law Revision Counsel. 26 USC 103 – Interest on State and Local Bonds The exemption covers standard public-purpose bonds funding schools, highways, water systems, and similar projects. Because the interest never enters your taxable income, no federal income tax applies at any bracket, and the higher your bracket, the more the exemption is worth.
Three categories of bonds are carved out of the exemption and taxed like ordinary interest: private activity bonds that don’t meet the “qualified bond” requirements, arbitrage bonds where the issuer reinvests proceeds at a higher yield than the bond pays, and bonds not issued in registered form.1Office of the Law Revision Counsel. 26 USC 103 – Interest on State and Local Bonds Most bonds you’ll see in the retail market are standard public-purpose issues that qualify, but confirming the type before you buy is worth the minute it takes.
State and Local Treatment
Whether you owe state tax depends almost entirely on where the bond was issued. Most states exempt interest on bonds issued within their own borders, so a bond from your home state or a local government inside it generally produces no state or local income tax. That’s the double exemption most investors are chasing.
Buy a bond issued by another state and your home state will typically tax the interest as ordinary income. In high-tax jurisdictions with top rates above 10 percent, that state-level bite can meaningfully reduce your after-tax return on an out-of-state muni.
One category avoids the problem regardless of where you live. Bonds issued by U.S. territories, including Puerto Rico, Guam, the U.S. Virgin Islands, American Samoa, and the Northern Mariana Islands, are exempt from federal, state, and local income taxes nationwide.2Internal Revenue Service. TEB International U.S. Territories / Possessions Federal law treats the territories as states for bond-issuance purposes, giving these bonds triple-tax-exempt status. That appeal has to be weighed against the credit risk of some territorial issuers.
Reporting Exempt Interest on Your Return
Tax-free doesn’t mean invisible. Municipal bond interest goes on line 2a of Form 1040. Your broker or the bond’s paying agent sends a Form 1099-INT with the tax-exempt amount in box 8; if you hold munis through a mutual fund, the exempt-interest dividends appear in box 12 of Form 1099-DIV.3Internal Revenue Service. 2025 Instructions for Schedule B (Form 1040)
The IRS uses that line 2a figure to determine whether your Social Security is taxable, whether you owe higher Medicare premiums, and whether you qualify for certain credits. Leaving it off doesn’t save you any tax and can create problems later.
Capital Gains When You Sell
The federal exemption applies to interest only. Sell a municipal bond in the secondary market for more than you paid and the profit is a capital gain, fully taxable.
Hold the bond more than a year and the gain is long-term, topping out at 20 percent for high earners.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses For 2026, single filers with taxable income up to $49,450 pay 0 percent on long-term gains, and 15 percent applies to most filers above that threshold. Sell within a year and the gain is short-term, taxed at your ordinary income rate. States apply their own capital gains taxes on top of the federal liability, which is why buy-and-hold makes more tax sense for most muni investors than active trading.
Buying Above or Below Face Value
The tax picture shifts when you buy at a price that differs from the bond’s face value. Three situations come up regularly, each with its own rule.
Market Discount
If you buy a bond on the secondary market below face value, the difference is a market discount. Gain attributable to that discount, whether at sale or at maturity, is taxed as ordinary income rather than capital gain.5Office of the Law Revision Counsel. 26 USC 1276 – Disposition Gain Representing Accrued Market Discount Treated as Ordinary Income Ordinary rates can run nearly double the long-term capital gains rate, so the distinction matters.
A de minimis rule softens the impact for small discounts. The threshold is one quarter of one percent of face value, multiplied by the full years to maturity from your purchase date.6Office of the Law Revision Counsel. 26 USC 1278 – Definitions and Special Rules On a $10,000 bond with 10 years remaining, the threshold is $250. Pay $9,800 and the $200 discount falls under it, so any eventual gain is capital gain. Pay $9,700 and the $300 discount exceeds it, sending the accrued portion into ordinary income.
Premium
Buy a tax-exempt bond above face value and you must amortize the premium over the bond’s remaining life. Amortization is mandatory for tax-exempt bonds, not optional.7Office of the Law Revision Counsel. 26 USC 171 – Amortizable Bond Premium Each year, part of the premium offsets the interest you received, and your basis in the bond drops by the same amount.8eCFR. 26 CFR 1.171-2 – Amortization of Bond Premium You report the net tax-exempt interest on line 2a after subtracting the year’s amortized premium.3Internal Revenue Service. 2025 Instructions for Schedule B (Form 1040)
If you hold to maturity, you receive face value back, which is less than what you paid. That loss is baked into the amortization schedule, so you can’t claim a capital loss at maturity; the annual basis adjustments already accounted for it.
Original Issue Discount
Some munis are issued below face value at the outset. For tax-exempt bonds held to maturity, that original issue discount accretes as additional tax-exempt interest rather than a taxable gain. OID bonds sit closer to the de minimis market discount threshold, though, so a small drop in secondary-market price can push a later buyer into ordinary income territory. If you’re buying an OID muni from another investor, check where the current price sits relative to the bond’s accreted value.
Private Activity Bonds and the AMT
Private activity bonds fund projects with a significant private-sector component, such as airport terminals leased to airlines, industrial parks, or nonprofit hospital facilities. Federal law defines them by how much of the proceeds flow to private business use.9Office of the Law Revision Counsel. 26 USC 141 – Private Activity Bond; Qualified Bond Interest on these bonds is still exempt from regular federal income tax, but it counts as a preference item for the Alternative Minimum Tax.10Office of the Law Revision Counsel. 26 USC 57 – Items of Tax Preference
The AMT is a parallel calculation with two rates: 26 percent on AMT income up to a statutory threshold and 28 percent above it.11Internal Revenue Service. Topic No. 556, Alternative Minimum Tax For 2026, the AMT exemption is $90,100 for single filers and $140,200 for married joint filers, phasing out starting at $500,000 and $1,000,000 respectively.12Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 Most muni investors never trigger AMT, but a large private activity position combined with other preference items can push interest that was supposed to be tax-free into the 26 or 28 percent range. Bond fund prospectuses disclose the percentage of holdings in private activity bonds, which is worth checking before you invest.
Net Investment Income Tax
The 3.8 percent Net Investment Income Tax applies to investment income for higher earners, and tax-exempt municipal bond interest is explicitly excluded from the calculation.13Internal Revenue Service. Topic No. 559, Net Investment Income Tax Capital gains from selling munis are not excluded, so the break covers the interest component only.
The Effect on Social Security Benefits
Here’s where the exemption gets sneaky. Municipal bond interest stays out of your taxable income, but it’s added back when the IRS calculates whether your Social Security benefits are taxable. The formula takes adjusted gross income, adds tax-exempt interest, then adds half of your Social Security benefits to arrive at “combined income.”14Office of the Law Revision Counsel. 26 USC 86 – Social Security and Tier 1 Railroad Retirement Benefits
The thresholds are low and have never been indexed for inflation:
- Up to 50 percent of benefits become taxable when combined income exceeds $25,000 for single filers or $32,000 for joint filers.
- Up to 85 percent of benefits become taxable above $34,000 for single filers or $44,000 for joint filers.
Those thresholds are low enough that many retirees with moderate muni holdings get pushed over.15Internal Revenue Service. IRS Reminds Taxpayers Their Social Security Benefits May Be Taxable A retiree with $30,000 in Social Security, $20,000 in AGI, and $10,000 in muni interest has combined income of $45,000, putting up to 85 percent of benefits on the taxable side. The muni interest itself isn’t taxed, but it caused thousands of dollars of Social Security income to become so. This is the most overlooked consequence of a large muni position in retirement.
The Effect on Medicare Premiums
Medicare Part B premiums follow a similar pattern. Medicare uses modified adjusted gross income from two years prior to set the premium, and MAGI includes tax-exempt interest.16Social Security Administration. Benefits Planner: Retirement | Medicare Premiums Above certain thresholds you pay an Income-Related Monthly Adjustment Amount on top of the standard premium.
For 2026, the standard Part B premium is $202.90 per month. IRMAA surcharges for individual filers:
- MAGI $109,000 or less: no surcharge, $202.90 total.
- $109,001 to $137,000: $81.20 surcharge, $284.10 total.
- $137,001 to $171,000: $202.90 surcharge, $405.80 total.
- $171,001 to $205,000: $324.60 surcharge, $527.50 total.
- $205,001 to $499,999: $446.30 surcharge, $649.20 total.
- $500,000 or more: $487.00 surcharge, $689.90 total.
For married couples filing jointly, those thresholds roughly double; the first surcharge kicks in above $218,000 in MAGI.17Centers for Medicare & Medicaid Services. 2026 Medicare Parts A and B Premiums and Deductibles Because muni interest counts here, a large muni portfolio can push you into a higher premium bracket. The difference between the lowest and highest brackets is nearly $6,000 per person per year; for a couple both on Medicare, the swing can exceed $11,000 annually.
Comparing a Muni Yield to a Taxable Yield
A 4 percent muni and a 5 percent corporate bond aren’t what they appear at face value. Because muni interest avoids federal (and often state) tax, the comparison has to be on an after-tax basis. The standard calculation is the tax-equivalent yield:
Tax-equivalent yield = Municipal bond yield ÷ (1 − your marginal tax rate)
In the 32 percent federal bracket, a 3.5 percent muni is worth 3.5 ÷ (1 − 0.32) = 5.15 percent in taxable-equivalent terms. A taxable bond would need to pay more than 5.15 percent to beat it after tax. If you also avoid state tax on an in-state bond, use your combined federal and state rate, which pushes the equivalent yield higher still.
The math tilts more in favor of munis as your bracket climbs. Investors in the 37 percent bracket keep about 59 cents of every dollar of taxable interest but the full dollar of muni interest. In the 12 percent bracket the advantage is small, and it often doesn’t justify the lower nominal yields munis usually offer. Running the calculation with your actual marginal rate, including state tax, is the most reliable way to decide whether a municipal bond earns a spot in your portfolio.