Start with the tax treatment stated in the question. Municipal bonds can pay federally tax-exempt or taxable interest. State taxes and the alternative minimum tax can affect some comparisons.
Suppose a federally tax-exempt municipal bond yields 3.80% and the investor’s marginal federal tax rate is 24%. For this exercise, consider federal income tax only and assume the comparison bond’s interest is fully taxable.
Divide 3.80% by 0.76. The taxable bond would need to yield 5.00% to match.
Check the result from the other direction. A 4.90% taxable yield leaves 3.72% after federal tax, slightly below the muni’s 3.80%.
Use this calculation to compare income. Evaluate credit risk, maturity and call features separately.