The default: ordinary income at disposition, up to the accrued discount. IRC 1276(a)(1) provides that "gain on the disposition of any market discount bond shall be treated as ordinary income to the extent it does not exceed the accrued market discount on such bond. Such gain shall be recognized notwithstanding any other provision of this subtitle." Any gain above the accrued discount remains capital gain, and a loss is a capital loss. The same recharacterization reaches a partial repayment of principal: under 1276(a)(3), a partial principal payment "shall be included in gross income as ordinary income to the extent such payment does not exceed the accrued market discount." Under 1276(a)(4) the recharacterized amount "shall be treated as interest for purposes of this title," with a short list of exceptions beginning with section 103. That exception does not extend the municipal exclusion to the discount; it withholds it. Publication 550 states the result directly: "Market discount on a tax-exempt bond is not tax exempt." The municipal bond page covers that case and its worked example.
How the discount accrues. IRC 1276(b)(1) accrues it ratably: the accrued market discount bears the same ratio to the total discount as "the number of days which the taxpayer held the bond" bears to "the number of days after the date the taxpayer acquired the bond and up to (and including) the date of its maturity." A holder may instead elect, bond by bond, a constant-yield accrual under 1276(b)(2), which treats the bond as if it had been issued on the purchase date at the purchase price and accrues the discount the way OID accrues; 1276(b)(2)(C) makes that election "irrevocable" for that bond. Ratable accrual front-loads the discount relative to constant yield, so a holder who sells early recognizes more ordinary income under the default method.
The election to include the discount currently. Instead of waiting for a sale, a holder may elect under IRC 1278(b) to include the accrued market discount in gross income each year as it accrues, in which case sections 1276 and 1277 do not apply and basis rises by the amounts included under 1278(b)(4). The scope is wide and prospective: under 1278(b)(2) the election "shall apply to all market discount bonds acquired by the taxpayer on or after the 1st day of the 1st taxable year to which such election applies," and under 1278(b)(3) it continues for all later years "unless the taxpayer secures the consent of the Secretary to the revocation." It reaches bonds acquired from the first year of the election onward, not bonds already held. Publication 550 adds a procedural point: the election is made by a statement attached to a timely filed return, and a holder who revoked a prior election within the last five calendar years cannot make a new one.
Borrowing to buy a market discount bond defers the interest deduction. IRC 1277(a) allows the net direct interest expense on debt incurred to buy or carry a market discount bond "only to the extent that such expense exceeds the portion of the market discount allocable to the days during the taxable year on which such bond was held," with the disallowed amount generally deducted in the year of disposition. This is the one part of the regime that does not reach tax-exempt bonds: IRC 1278(a)(1)(C) excludes tax-exempt obligations from the definition of market discount bond "For purposes of section 1277" only, leaving them fully inside section 1276. A holder who makes the 1278(b) election is also outside 1277, since the discount is already being taxed.
What is not a market discount bond. IRC 1278(a)(1)(B) excludes short-term obligations with "a fixed maturity date not exceeding 1 year from the date of issue," United States savings bonds, and installment obligations to which section 453B applies. And a small discount is not market discount at all: under 1278(a)(2)(C), if it "is less than ¼ of 1 percent of the stated redemption price of the bond at maturity multiplied by the number of complete years to maturity (after the taxpayer acquired the bond), then the market discount shall be considered to be zero," in which case the eventual gain is simply capital gain. The de minimis rule page covers that threshold and its OID counterpart. One historical boundary survives in Publication 550, which still lists "Tax-exempt obligations you bought before May 1, 1993" among the bonds that are not market discount bonds: tax-exempt bonds were outside these rules until a 1993 amendment brought them in, so for such a bond the ordinary-income recharacterization does not apply.
What the broker reports, and when. The Instructions for Form 1099-INT direct a payer to enter accrued market discount in box 10 for a covered security only "if the recipient notified you that a section 1278(b) election was made." For the default holder who has made no election, that box stays blank year after year, and the recharacterization appears only when the bond is sold, on the Form 1099-B for the sale, where the broker reports the accrued market discount in box 1f alongside the proceeds. A holder who has never read about market discount therefore meets it for the first time on a sale confirmation, as ordinary income on a bond they expected to produce a capital gain. On a bond that also carries OID, the accruals are reported on Form 1099-OID instead.