Tax-Equivalent Yield Calculator – Municipal Bonds and Treasury Bills
Tax-equivalent yield is the fully taxable yield that leaves the same income after tax. The combined rate is the federal bracket, plus the 3.8% net investment income tax where it applies, plus the state rate. An in-state muni's yield is divided by one minus that rate. A Treasury's yield is first reduced by federal tax, and an out-of-state muni's by state tax. The calculator assumes state tax isn't deducted on the federal return.
Enter the yield on a municipal bond or Treasury, say what kind it is, and give your federal bracket, whether you pay the 3.8% net investment income tax and your state rate. The calculator returns the fully taxable yield that would leave you the same income after tax, your combined tax rate and what the security keeps after tax. Add the yield on a CD or corporate bond to see which one comes out ahead, and the table repeats the sum for all three kinds of security.
Which taxes reach which interest
The calculator sorts interest into three kinds, by which taxes reach it.
- Fully taxable interest, from a CD, a savings account or a corporate bond, pays federal income tax, state income tax and, above the income thresholds, the net investment income tax. The IRS lists "certificates of deposit, corporate bonds" among taxable interest.
- Municipal bond interest is federally exempt. Section 103 of the Internal Revenue Code says "gross income does not include interest on any State or local bond", with exceptions for private activity bonds that aren't qualified, arbitrage bonds and bonds that fail section 149. The net investment income tax in section 1411 starts from "gross income from interest", and its regulations list "interest on state and local bonds excluded from gross income under section 103" as excluded income. So the 3.8% doesn't reach it either.
- Treasury interest is the mirror image. Under 31 U.S.C. 3124, federal obligations "are exempt from taxation by a State or political subdivision of a State", and the IRS says this interest "is subject to federal income tax but is exempt from all state and local income taxes". Because it is in gross income, it also counts toward the net investment income tax.
State treatment of municipal bonds varies. The Municipal Securities Rulemaking Board says the interest "in some cases, is also exempt from state and local income taxes" and that "the buyer generally must be a resident of the state where the bond was issued, although there are exceptions". The calculator treats a bond from your own state as state-exempt and one from another state as state-taxable. Check your own state's rule before relying on either.
How the calculation works
The combined rate is the federal bracket, plus 3.8% if the net investment income tax applies, plus the state rate. That is the rate a fully taxable yield loses. The security's own after-tax yield is its yield times one minus only the taxes that reach it. Dividing that by one minus the combined rate gives the taxable yield that keeps the same amount:
TEY = y × (1 − tsecurity) ÷ (1 − tfed − tNIIT − tstate)
For an in-state muni tsecurity is zero, so the formula is just y ÷ (1 − combined rate). For a Treasury it is the federal rate plus any 3.8%, and for an out-of-state muni it is the state rate. The calculator adds the rates rather than letting state tax reduce federal tax, which is what happens when state tax isn't deducted on the federal return, for example when you take the standard deduction.
A worked example
The defaults are a 3.8% in-state municipal bond for someone in the 32% federal bracket who pays the 3.8% net investment income tax and 9.3% in state tax. The combined rate on fully taxable interest is 32% + 3.8% + 9.3% = 45.10%. The muni keeps its whole 3.80%, so the tax-equivalent yield is 3.8% ÷ (1 − 0.451), which is 6.92%. A CD or corporate bond would have to pay more than that to beat it.
The table runs the same 3.8% yield through the other two cases. A Treasury pays 35.80% in federal tax, including the 3.8%, and keeps 2.44%, which matches a taxable yield of 4.44%. An out-of-state muni pays the 9.30% state tax, keeps 3.45% and matches 6.28%. The comparison yield of 4.75%, the APY the CD calculator starts from, keeps only 2.61% after the full 45.10%. In tax-equivalent terms, the in-state muni wins by 2.17 points, the out-of-state muni by 1.53 points, and the Treasury loses by 0.31 points. The CD interest calculator shows what that 4.75% earns over a term.
Untick the net investment income tax and the combined rate falls to 41.30%. The in-state muni's tax-equivalent yield drops to 6.47%, the out-of-state muni's to 5.87% and the Treasury's to 4.40%. Tax-advantaged securities are worth most to people with the highest tax rates.
Comparing like with like
The yields you compare need the same basis. A CD's APY includes compounding, while a bond's yield may be a nominal annual rate, so convert one with the APY to APR calculator before setting them side by side. Tax-equivalent yield also compares one year's income only. Over many years the after-tax yield is the rate that compounds, which the compound interest calculator can project.
A short history of the exemption
The federal exemption for state and local bond interest is as old as the income tax itself. In South Carolina v. Baker, decided on 20 April 1988, the Supreme Court noted that Congress "exempted state bond interest from taxation by statute, beginning with the very first federal income tax statute". In Pollock v. Farmers' Loan & Trust Co., in 1895, the Court had treated that interest as immune from federal tax. Baker said later cases had "overruled the holding in Pollock that state bond interest is immune from a nondiscriminatory federal tax". The case upheld a 1982 law (TEFRA §310(b)(1)) that "removes the federal income tax exemption for interest earned on publicly offered long-term bonds" unless "those bonds are issued in registered form". The exemption survives today because Congress keeps it in section 103, not because the Constitution requires it.
The net investment income tax is much newer. Section 1411 was added by the Health Care and Education Reconciliation Act of 30 March 2010 and applies "to taxable years beginning after December 31, 2012". It charges "3.8 percent of the lesser of" net investment income or the amount by which modified adjusted gross income exceeds a threshold: $250,000 on a joint return or for a surviving spouse, half that for married filing separately, and $200,000 otherwise. The statute writes these as fixed dollar amounts. Below the threshold, untick the box.
What the calculator leaves out
The MSRB notes that interest on some bonds, such as private activity bonds, is subject to the federal alternative minimum tax, and that some issuers sell taxable municipal bonds. The calculator also ignores capital gains and losses, market discount, local taxes charged separately from the state, and the deduction of state tax on the federal return. Yields are for one year and don't compound. If only part of your interest falls above the net investment income tax threshold, the true rate on the rest is lower than the calculator assumes.
These figures are estimates for comparison, not tax or investment advice; tax rules differ by state and by your circumstances. See the site disclaimer.
Frequently asked questions
What is a tax-equivalent yield?
It is the yield a fully taxable investment, such as a CD or a corporate bond, would have to pay to leave you the same income after tax as a tax-advantaged one. A 3.8% in-state municipal bond, for someone paying 32% federal tax, the 3.8% net investment income tax and 9.3% state tax, matches a taxable yield of 6.92%.
How do you calculate the tax-equivalent yield of a Treasury bill?
Treasury interest is taxed federally but not by states, so take off the federal tax first, then divide by one minus your combined rate. At a 3.8% yield, a 35.8% federal rate including the net investment income tax and a 9.3% state rate, the Treasury keeps 2.44% after tax and matches a taxable yield of 4.44%.
Is municipal bond interest subject to the 3.8% net investment income tax?
Not when it is tax-exempt. The tax applies to net investment income, which starts from gross income from interest, and section 103 keeps qualifying state and local bond interest out of gross income. The Treasury regulations list that interest as excluded income. Treasury interest is in gross income, so it can be subject to the 3.8% tax.
Are out-of-state municipal bonds worth less?
They can be. The Municipal Securities Rulemaking Board says a state income tax exemption generally requires the buyer to live in the state that issued the bond, although there are exceptions. With the defaults, an out-of-state muni yielding 3.8% matches a taxable 6.28%, against 6.92% for one from your own state.
Should I buy a 3.8% muni or a 4.75% CD?
Compare after tax. With 32% federal tax, the 3.8% net investment income tax and 9.3% state tax, a 4.75% CD keeps 2.61% and a 3.8% in-state muni keeps all 3.80%, so the muni is ahead: its 6.92% tax-equivalent yield beats the CD's 4.75% by 2.17 points. A Treasury at 3.8% keeps only 2.44% and loses to the CD by 0.31 points.
Sources
- 26 U.S. Code § 103 – Interest on State and local bonds, Legal Information Institute, Cornell Law School
- 26 U.S. Code § 1411 – Imposition of tax, Legal Information Institute, Cornell Law School
- 26 CFR § 1.1411-1 – General rules, Legal Information Institute, Cornell Law School
- 31 U.S. Code § 3124 – Exemption from taxation, Legal Information Institute, Cornell Law School
- Topic no. 403, Interest received, Internal Revenue Service, 2026
- Municipal Bond Basics, Municipal Securities Rulemaking Board, 2026
- South Carolina v. Baker, 485 U.S. 505 (1988), Legal Information Institute, Cornell Law School, 1988