Investing & Retirement Bonds & Fixed Income IRC §103 tax-exempt interest; §1411 NIIT

Tax-Equivalent Yield Calculator

A 3.6% municipal bond and a 5.2% corporate bond are not comparable until you tax them. This calculator converts a tax-free municipal yield into the tax-equivalent yield — the yield a fully taxable bond would have to pay to leave you with the same money after tax. It handles your federal marginal rate, your state rate, whether the bond is issued in your own state, the 3.8% net investment income tax, and the fact that Treasury interest escapes state tax. It also shows the after-tax yield on both sides, so you can see which bond actually wins.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Municipal bond yieldThe tax-free yield quoted on the municipal bond or muni fund — yield to worst for an individual bond, SEC yield for a fund.3.6 %
Yield on the taxable bond you are comparingThe quoted yield on the corporate bond, CD or Treasury you would otherwise buy.5.2 %
The taxable bond is aTreasury interest is exempt from state and local income tax, which changes the tax rate applied to the comparison.Corporate bond, CD or agency (fully taxable)
Federal marginal tax rateThe rate on your next dollar of ordinary income, not your average rate. The statutory schedule runs 10, 12, 22, 24, 32, 35 and 37 percent.35 %
State and local marginal tax rateYour combined state and city marginal rate on interest income. Enter 0 if your state has no income tax.6.0 %
Bond is issued in my state of residenceMost states exempt interest on their own bonds from state tax but tax interest on other states' bonds.Yes
Subject to the 3.8% net investment income taxThe NIIT applies once modified AGI exceeds $200,000 single or $250,000 married filing jointly. It never applies to tax-exempt municipal interest.Yes
State tax is deductible on my federal returnTick this only if you itemise and are below the state and local tax deduction cap; it lowers the effective state rate to state × (1 − federal).No

It returns

  • Tax-equivalent yield — What a taxable bond must yield to match this municipal bond after tax.
  • Combined tax rate on the taxable bond
  • After-tax municipal yield
  • After-tax yield of the taxable bond
  • Municipal advantage after tax — After-tax municipal yield minus after-tax taxable yield, in basis points. Negative means the taxable bond wins.

The formula

TEY=ymuni(1tstate)1tcomb
teff=tstate(1tfed)

In plain text: TEY = y_muni × (1 − t_state) / (1 − t_combined)

  • y_muniQuoted tax-free yield on the municipal bond (%)
  • t_stateState rate applied to the muni — zero for an in-state bond (decimal)
  • t_combCombined rate on the taxable bond: federal + NIIT + effective state (decimal)
  • TEYYield a taxable bond must pay to match the muni after tax (%)

For an in-state bond the numerator collapses to the quoted yield, giving the familiar TEY = y / (1 − t).

Updated Category Bonds & Fixed Income Verified against published test cases Reading time 11 min

Why a municipal yield cannot be compared directly with a corporate yield

Interest on most bonds issued by states, cities, counties and their agencies is excluded from gross income for federal purposes under section 103 of the Internal Revenue Code. Interest on a corporate bond is not. So a quoted municipal yield is money you keep, and a quoted corporate yield is money you have to share.

Tax-equivalent yield puts the two on the same footing by asking a single question: what would the taxable bond have to pay so that, after your taxes, it left you with what the muni leaves you? If your combined rate is 40% and the muni yields 3.6%, the taxable bond has to yield 3.6 ÷ 0.60 = 6.0%. Anything less and the muni is the better instrument at your rates.

The phrase at your rates carries the whole argument. The same bond is a good deal for someone in the top bracket in a high-tax state and a poor deal for someone in the 12% bracket in a state with no income tax. Municipal yields are set by a market clearing largely against the demand of high-bracket investors, which is why they look unattractively low to everyone else.

The three taxes that go into the denominator

Getting the combined rate right matters more than any other part of this calculation, because the answer is a division by one minus that rate and the result is convex — a percentage point of tax rate moves the answer much further at 40% than at 15%.

Federal marginal rate. Use the rate on your next dollar of ordinary income, not your effective rate. Bond interest stacks on top of your other ordinary income, so the marginal rate is the correct one. The statutory schedule under section 1 of the Code runs 10, 12, 22, 24, 32, 35 and 37 percent; our marginal versus effective tax rate calculator shows the difference between the two if you are not sure which figure you are holding.

The 3.8% net investment income tax. Section 1411 imposes an additional 3.8% on the lesser of net investment income and the excess of modified adjusted gross income over $200,000 (single) or $250,000 (married filing jointly). Taxable bond interest is net investment income; tax-exempt municipal interest is expressly excluded. That asymmetry is worth several tenths of a point of yield to a high earner and is the most frequently forgotten term in the stack.

State and local income tax. This one has two independent switches. First, most states exempt their own bonds and tax everybody else's, so an out-of-state muni loses part of its exemption. Second, Treasury interest is exempt from state and local income tax under 31 U.S.C. §3124 — so if you are comparing a muni against a Treasury rather than a corporate bond, the state rate drops out of the denominator entirely and the muni's advantage narrows.

A fourth wrinkle applies only if you itemise: state income tax paid can be deducted on the federal return, which lowers the effective state rate to state × (1 − federal). Since the state and local tax deduction is capped, many filers exhaust the cap on property tax alone, so the advanced checkbox that models this defaults to off.

Worked example: a 3.6% in-state muni for a top-bracket investor

You live in a state with a 6% marginal income tax, you are in the 35% federal bracket, your modified AGI puts you above the NIIT threshold, and you are choosing between an in-state general obligation bond yielding 3.60% and a corporate bond yielding 5.20%.

  1. Build the combined rate on the corporate bond. 35% federal + 3.8% NIIT + 6% state = 44.8%. You are not itemising above the state and local tax cap, so the state rate goes in undeducted.
  2. Check what the muni loses to state tax. The bond is in-state, so nothing. After-tax municipal yield = 3.600%.
  3. Divide. TEY = 3.60 ÷ (1 − 0.448) = 3.60 ÷ 0.552 = 6.522%. A taxable bond would have to yield 6.522% to match this muni.
  4. Compare directly. The corporate bond's after-tax yield is 5.20 × 0.552 = 2.870%, against 3.600% for the muni. The muni wins by 3.600 − 2.870 = 0.730 percentage points, or 73 basis points.

Now change one thing: suppose the bond is issued by another state. Your state taxes the interest, so the muni keeps 3.60 × (1 − 0.06) = 3.384%, the TEY falls to 3.384 ÷ 0.552 = 6.130%, and the advantage narrows to 3.384 − 2.870 = 0.514 points, or 51 basis points. Same bond, same investor, 22 basis points of difference from residency alone.

And change one more: suppose the taxable alternative is a Treasury at 5.20% rather than a corporate. Treasuries escape the 6% state tax, so the rate applied to them is 35 + 3.8 = 38.8%, they keep 5.20 × 0.612 = 3.182%, and the in-state muni's advantage shrinks from 73 basis points to 3.600 − 3.182 = 42 basis points.

How to use the answer

Compare the tax-equivalent yield with the yield actually available on taxable bonds of the same credit quality and the same maturity. That constraint does most of the work. A 10-year AA-rated general obligation bond belongs beside a 10-year AA-rated corporate, not beside a 2-year Treasury and not beside a high-yield fund. Comparing a muni's TEY against a longer or riskier taxable bond is the most common way people talk themselves into a bond they should not own.

The break-even is easy to carry in your head: the muni wins whenever the muni-to-taxable yield ratio exceeds one minus your combined tax rate. At a 44.8% combined rate, a muni yielding more than 55.2% of the comparable taxable yield is the better after-tax buy. Municipal-to-Treasury yield ratios are published daily, so you can make this comparison from a single number with no arithmetic at all.

Three situations make the tax-equivalent yield the wrong tool. In a tax-deferred account — a 401(k), a traditional IRA, a Roth — the exemption is worthless, because nothing inside the account is currently taxable; holding munis there simply gives up yield. If your marginal rate is low, the arithmetic rarely favours munis at prevailing ratios. And if you are buying a muni at a discount in the secondary market, part of your return arrives as accreted market discount, which is taxed as ordinary income — so a discount muni's yield to maturity is not entirely tax free, and the TEY computed from the quoted yield overstates its advantage.

Tax-equivalent yield of a 3.5% in-state municipal bond

3.5% divided by one minus the combined rate, at each statutory federal marginal rate, with no state tax. The right-hand column adds the 3.8% net investment income tax.
Federal marginal rateTEY without NIITTEY with 3.8% NIIT
10%3.889%4.060%
12%3.977%4.157%
22%4.487%4.717%
24%4.605%4.848%
32%5.147%5.452%
35%5.385%5.719%
37%5.556%5.912%

Add your state rate to the federal rate before dividing if the comparable bond is fully taxable and you hold an in-state muni. The NIIT applies only above $200,000 modified AGI single or $250,000 married filing jointly.

Tax-exempt is not the same as tax-free

Three things a municipal bond can still be taxed on. Capital gains on a sale are fully taxable, at the same rates as any other bond — the exemption covers interest, not price appreciation, and our capital gains tax calculator handles that side. Private activity bonds pay interest that is a preference item for the alternative minimum tax, so AMT payers can owe federal tax on a bond marketed as tax-exempt; check the official statement for the AMT designation. Social Security recipients include tax-exempt interest in the provisional-income test that determines how much of their benefit is taxable, so muni interest can raise a tax bill without itself being taxed.

Mistakes that make a tax-equivalent yield wrong

  • Using your effective rate instead of your marginal rate. Interest stacks on top of your other income, so the correct rate is the one on your next dollar — usually several points higher than your average rate.
  • Leaving out the 3.8% NIIT. It applies to the taxable bond and never to the muni, so omitting it understates the muni's advantage for anyone above the modified AGI thresholds.
  • Applying the state rate to an out-of-state bond's denominator instead of its numerator. State tax on an out-of-state muni reduces what the muni keeps; it does not change what the taxable bond keeps.
  • Comparing against a Treasury without removing state tax. Treasuries are state-exempt, so the correct denominator for a Treasury comparison excludes the state rate entirely.
  • Comparing different maturities or credit qualities. A tax-equivalent yield tells you about tax and nothing else. It says nothing about duration risk, call risk or default risk.
  • Holding munis in an IRA or 401(k). The exemption has no value inside a tax-deferred account, so you accept a lower yield for nothing.
  • Ignoring the market discount rules on a secondary-market bond bought below par. Accreted market discount is taxed as ordinary income at maturity or sale, so the yield to maturity is not entirely exempt.

Where this sits among the other bond calculations

Tax-equivalent yield is a comparison tool, not a pricing tool. It takes a yield you have already computed and restates it in taxable terms. To get the yield in the first place, start from the price: our yield to maturity calculator solves for the discount rate that makes the present value of coupons and principal equal the price, and the current yield calculator gives the simpler income-only measure. For a bond bought away from par, the premium and discount amortisation calculator shows how book value grinds back toward par.

For funds rather than individual bonds, use the SEC 30-day yield as the input here. It is a standardised, net-of-expenses figure computed under a Securities and Exchange Commission formula, and it is the only fund yield designed for exactly this kind of comparison. Distribution yield is not, because it reflects what was recently paid rather than what the portfolio currently earns.

Finally, remember what the calculation is silent on. The tax-equivalent yield assumes your marginal rate stays where it is. If you are two years from retirement and expect your bracket to drop, the muni's advantage shrinks over the holding period even though today's arithmetic favours it. Bond decisions run for a decade; tax brackets rarely hold still that long.

Frequently asked questions

What is the formula for tax-equivalent yield?

Tax-equivalent yield is the tax-free yield divided by one minus your combined marginal tax rate: TEY = y ÷ (1 − t). A 3.6% muni for someone facing a combined 44.8% rate is 3.6 ÷ 0.552 = 6.52%. If the bond is issued outside your state, multiply the numerator by one minus your state rate first, because your state taxes that interest even though the federal government does not.

Does the 3.8% net investment income tax apply to municipal bond interest?

No. Tax-exempt interest is excluded from net investment income under section 1411, so the 3.8% surtax never applies to it. It does apply to corporate bond interest, CD interest, Treasury interest and taxable bond fund distributions. Include the 3.8% in the combined rate you apply to the taxable side of the comparison whenever your modified AGI is above $200,000 single or $250,000 married filing jointly.

Are Treasury bonds taxed differently from corporate bonds in this comparison?

Yes, and it matters. Treasury interest is exempt from state and local income tax under 31 U.S.C. §3124, so only your federal rate and any NIIT apply to it. That narrows the gap against a municipal bond considerably in a high-tax state. Select the Treasury option above and the calculator removes the state rate from the denominator for you.

What tax rate should I enter — marginal or effective?

Marginal. Bond interest is added on top of your existing income, so the tax you avoid by holding a muni is the tax on your last dollar. Using your effective rate — total tax divided by total income — understates the value of the exemption, often by ten percentage points or more. If your interest income is large enough to push you into the next bracket, the honest answer is a blend, and you can bracket the result by running the calculation at both rates.

Should I buy in-state or out-of-state municipal bonds?

In-state bonds keep their state exemption, so they need a lower yield to beat an out-of-state bond for you. The trade-off is concentration: buying only your own state's debt ties your bond portfolio to one issuer's fiscal health and one regional economy. If you live in a state with no income tax, there is no in-state advantage at all and you should shop nationally. Use the residency switch above to compare the two after-tax yields directly.

Do municipal bonds make sense in an IRA or 401(k)?

No. Inside a tax-deferred or Roth account nothing is currently taxable, so the federal exemption you are paying for through a lower yield buys you nothing. The standard placement rule runs the other way: hold taxable bonds inside the tax-sheltered account and municipal bonds, if you want them, in the taxable account. Withdrawals from a traditional account are taxed as ordinary income regardless of what generated them, which is a separate argument about asset location rather than about munis.

Is a municipal bond completely tax free?

Interest is exempt from federal income tax, but three things can still be taxed. Capital gains on a sale are fully taxable. Interest on private activity bonds is a preference item for the alternative minimum tax. And tax-exempt interest counts toward the provisional-income test that determines how much of a Social Security benefit is taxable, so it can raise a tax bill indirectly. Check the bond's official statement for its AMT status before assuming otherwise.

What muni-to-Treasury yield ratio makes a municipal bond worth buying?

The break-even ratio is one minus your combined tax rate on the Treasury — federal plus NIIT, since Treasuries escape state tax. Someone at 37% federal plus 3.8% NIIT breaks even at a ratio of 0.612, meaning a muni yielding more than 61.2% of the comparable Treasury is the better after-tax buy. Someone at 24% with no NIIT breaks even at 0.76. Published muni-to-Treasury ratios let you make this comparison at a glance across the curve.

How do I use this for a municipal bond fund rather than a single bond?

Enter the fund's SEC 30-day yield, not its distribution yield. The SEC yield is a standardised, net-of-expense measure of the portfolio's current income and is designed to be comparable across funds; the distribution yield reflects what was recently paid out and can include amounts that are not current income. Check whether the fund is a single-state fund before ticking the in-state box, and check whether it holds AMT bonds if you are an AMT payer.

References