Your business parks $500,000 in corporate bonds. Interest rates spike, and the market value of those bonds drops to $430,000. Here is the uncomfortable question: does your balance sheet show $500,000 or $430,000? Under U.S. GAAP, the answer depends not on what the bonds are worth, but on what you intended to do with them when you bought them. Pick the wrong category — or the right category for the wrong reasons — and you can report steady earnings while sitting on losses large enough to sink the business, as depositors at Silicon Valley Bank discovered in March 2023.
ASC 320, Investments — Debt Securities, sorts every debt security you hold into one of three buckets: trading, available-for-sale (AFS), or held-to-maturity (HTM). The bucket decides whether the security sits on your balance sheet at fair value or amortized cost, and whether unrealized gains and losses flow through net income, through other comprehensive income, or nowhere at all. This guide walks through all three, where each kind of gain lands, and the infamous "tainting" rule that punishes an early sale from the HTM bucket.
The one-paragraph version
Classification happens at acquisition and turns on management's intent. Securities bought to sell in the near term are trading securities, carried at fair value with unrealized gains and losses in earnings. Securities you have the positive intent and ability to hold all the way to maturity can be held-to-maturity, carried at amortized cost with market swings ignored (but disclosed). Everything else — the default, residual bucket — is available-for-sale: carried at fair value on the balance sheet, with unrealized gains and losses parked in accumulated other comprehensive income (AOCI) until the security is sold.
| Trading | Available-for-sale | Held-to-maturity | |
|---|---|---|---|
| Balance sheet measurement | Fair value | Fair value | Amortized cost |
| Unrealized gains and losses | Net income | Other comprehensive income | Not recognized (fair value disclosed in footnotes) |
| Interest income (including premium/discount amortization) | Net income | Net income | Net income |
| Realized gains and losses on sale | Net income | Net income (recycled out of AOCI) | Net income (sales should be rare) |
| Typical balance sheet home | Current assets | Current or non-current, by maturity | Current or non-current, by maturity |
Trading securities: bought to sell
A debt security is a trading security when you bought it principally to sell it in the near term — the classic dealer or active-treasury posture. Think of a company treasury desk that buys T-bills and investment-grade commercial paper and turns the portfolio over as cash needs shift.
Accounting is straightforward: carry the securities at fair value every reporting date, and run everything through earnings — interest income, realized gains and losses, and unrealized holding gains and losses. There is no OCI involvement at all. Because the portfolio turns over quickly, trading securities are generally presented as current assets.
The earnings volatility is the price of honesty here. If your portfolio drops 5% in a quarter, net income drops with it, even if you never sold a bond. For an active trading book that is the economically truthful answer: the portfolio is managed on a fair-value basis, so the income statement should reflect fair-value changes.
Available-for-sale securities: the default bucket
AFS is where a debt security lands when it is neither trading nor HTM. For most small and mid-size businesses that hold bonds as a liquidity reserve — money you want earning a yield but might need before maturity — AFS is the natural home.
Like trading securities, AFS securities are carried at fair value on the balance sheet. The difference is where the unrealized movement goes: unrealized holding gains and losses bypass net income and accumulate in AOCI, a separate component of equity. Interest income, including amortization of any premium or discount under the effective interest method, still flows through net income each period.
When you sell, the realized gain or loss hits net income, and whatever unrealized amount was sitting in AOCI for that security is "recycled" — removed from AOCI so the same gain is not counted twice. In other words, AOCI is a waiting room: market swings wait there until a sale moves them into earnings.
This split treatment is exactly why AFS exists. It keeps short-term market noise out of net income while still showing the portfolio at its true market value on the balance sheet. A lender reading your statements sees the $430,000 fair value, not the $500,000 you paid — even though your earnings never took the $70,000 hit.
Held-to-maturity securities: amortized cost, with strings attached
HTM is the only category that lets you ignore market prices entirely. Qualifying securities are carried at amortized cost: acquisition cost, adjusted each period as any premium or discount is amortized into interest income via the effective interest method. At maturity the carrying amount equals face value, principal is collected, and the investment leaves the books with no gain or loss. Fair value still has to be disclosed in the footnotes, but it never touches the face of the statements.
The entry ticket is strict. Management must have both the positive intent and the ability to hold each security to maturity — not as an aspiration, but as something demonstrable. If the bonds are your operating cash buffer and a slow quarter could force a sale, you do not have the ability, and HTM is off the table. Certain instruments cannot qualify at all, notably securities that can be prepaid or otherwise settled in a way that would keep you from recovering substantially all of your recorded investment.
The effective interest method is the engine. Each period you multiply the bond's current carrying amount by its yield at acquisition; that product is interest income. For a premium bond, recognized income is less than the cash coupon, and the shortfall chips away at the carrying amount. For a discount bond, income exceeds the coupon and the carrying amount grows. Either way, carrying amount glides toward face value by maturity.
Why anyone bothers with HTM
Stability. A bank or insurer holding high-quality bonds it genuinely intends to keep can report smooth interest income and a stable balance sheet through rate cycles that would whip an AFS portfolio's equity around. The 2023 banking crisis showed the dark side of that stability: Silicon Valley Bank had classified roughly 40% of its assets as HTM, and when rates rose, more than $15 billion of unrealized losses sat invisible on the balance sheet — visible only to readers who checked the fair value footnotes. When the bank sold its AFS portfolio at a near-$2 billion loss to raise liquidity, analysts did the HTM math within hours, and the resulting bank run ended the bank within days. The lesson is not that HTM is dishonest; it is that amortized cost answers "what did we pay and what will we collect," while only fair value answers "what is it worth today." Know which question your readers are asking.
Where unrealized gains land: the cheat sheet
It is worth stating the map explicitly, because this is the point examiners and lenders probe:
- Trading: unrealized gains and losses go to net income immediately.
- AFS: unrealized gains and losses go to OCI (AOCI on the balance sheet), net of tax, until realized.
- HTM: unrealized gains and losses are not recognized anywhere in the statements; fair value appears only in footnote disclosure.
- All three: coupon interest plus premium/discount amortization goes to net income as interest income.
Equity securities play by different rules now
One common source of confusion: since ASU 2016-01, most equity securities are no longer in ASC 320's world at all. They fall under ASC 321 and are generally measured at fair value with all changes — realized and unrealized — in net income. The old "available-for-sale equity security" category is gone. The exceptions are narrow: equities accounted for under the equity method or consolidated, and equities without a readily determinable fair value, which may use a practicability exception (cost, adjusted for observable price changes and impairment). If you hold both stocks and bonds, the stocks almost certainly mark through earnings while the bonds follow the three-bucket sorting above.
Credit losses: the CECL split
The current expected credit loss (CECL) model in ASC 326 treats the two non-trading buckets differently:
- HTM securities are inside the CECL model (ASC 326-20), like loans. You estimate lifetime expected credit losses and book them through an allowance with an offsetting provision in earnings — from day one, not when a loss looks probable.
- AFS securities use a separate model (ASC 326-30). When fair value falls below amortized cost, you ask how much of the shortfall is a credit loss versus market movement (rates, liquidity). The credit portion goes through an allowance — capped at the total unrealized loss, so the allowance can never drive carrying amount below fair value — with the rest staying in OCI. Unlike the old permanent write-down regime, the allowance can be reversed through earnings if conditions improve.
The practical upshot: an AFS bond battered purely by rising rates needs no earnings charge for the rate-driven portion, while an HTM bond whose issuer is deteriorating needs a CECL allowance even though its market slide otherwise stays off the books.
The tainting rule: sell one HTM bond, reclassify them all
This is the rule the HTM category is famous for. If you sell or transfer an HTM security before maturity outside a narrow set of exceptions, you have contradicted your own assertion of intent to hold — and the penalty applies to the entire HTM portfolio, not just the bond you sold. Every remaining HTM holding is reclassified to AFS, triggering an immediate mark to fair value with the cumulative unrealized gain or loss landing in AOCI. In a rising-rate environment that single sale can erase a large chunk of reported equity overnight. Worse, practice then bars you from using the HTM category for new purchases for roughly two years, until you can credibly reassert hold-to-maturity intent.
Sales driven by interest rate moves, routine liquidity needs, or a desire to lock in a gain will essentially always taint. The exceptions that avoid tainting are specific:
- Significant credit deterioration of the issuer, such as a published rating downgrade.
- A change in tax law that eliminates or reduces the tax-exempt status of the interest (a mere rate change does not count).
- A major business combination or disposition that forces sales to preserve your interest rate or credit risk position.
- A regulatory change affecting permissible investments, capital requirements, or risk weights.
- A sale close enough to maturity that rate changes could not move fair value much — in practice, roughly within three months of maturity — or after you have collected at least 85% of the principal outstanding at acquisition.
- An event that is isolated, nonrecurring, unusual for you, and could not reasonably have been anticipated. All four conditions must hold.
Document the justification before the sale, not after. Auditors treat an undocumented HTM sale as guilty until proven innocent.
Transfers between categories
Reclassifying from HTM to AFS outside the exceptions above is treated like a sale: it taints. The voluntary transfer that actually happens in practice runs the other way, AFS to HTM, when strategy shifts from "might sell" to "will hold." The mechanics preserve history: the security enters HTM at its amortized cost basis plus or minus the unrealized gain or loss sitting in AOCI at the transfer date, and that frozen AOCI balance amortizes over the remaining life as a yield adjustment — unwinding the market-value component through interest income rather than all at once. You also set up any required CECL allowance as of the transfer date.
Booking an HTM bond in plain-text accounting
If you keep your books in Beancount, the HTM mechanics map cleanly onto separate accounts for face value and unamortized premium. Say you buy $100,000 face of 5% corporate bonds at 102 with semiannual coupons, classifying them held-to-maturity:
2026-01-02 open Assets:Investments:Bonds:Face
2026-01-02 open Assets:Investments:Bonds:Unamortized-Premium
2026-01-02 open Assets:Checking
2026-01-02 open Income:Interest
2026-01-02 txn "Buy $100,000 face 5% bonds at 102, HTM"
Assets:Investments:Bonds:Face 100,000.00 USD
Assets:Investments:Bonds:Unamortized-Premium 2,000.00 USD
Assets:Checking -102,000.00 USD
2026-07-02 txn "Semiannual coupon received"
Assets:Checking 2,500.00 USD
Income:Interest -2,500.00 USD
2026-07-02 txn "Amortize premium, effective-interest method"
Income:Interest 200.00 USD
Assets:Investments:Bonds:Unamortized-Premium -200.00 USDThe coupon books the full $2,500 of cash as interest income; the amortization entry then trims it by the period's premium slice, so recognized income equals the bond's true yield times its carrying amount. The premium account glides to zero by maturity, at which point carrying amount equals face value — exactly the amortized-cost glide path ASC 320 describes. For an AFS portfolio you would add periodic fair-value marks against an equity subaccount standing in for AOCI. The Beancount documentation covers price directives and balance assertions if you want to automate the mark-to-market leg, and the Fava dashboard renders the resulting balance sheet so you can see carrying amount and market value side by side.
Mistakes that trip up first-time classifiers
Claiming HTM on your liquidity buffer. If a slow quarter, a delayed receivable, or a credit-line covenant could force you to sell, you lack the ability to hold — classify AFS and accept the equity volatility, which at least tells the truth.
Forgetting the AOCI recycling on sale. When an AFS security sells, the realized gain in earnings must be net of what AOCI already holds, or you double-count. Reconcile the AOCI balance for each lot sold.
Assuming HTM hides losses from lenders. Sophisticated readers go straight to the fair value footnotes. SVB's HTM losses were disclosed; they just required reading past the balance sheet. Price your covenants and your credibility accordingly.
Treating equity like debt. Stocks do not get an AFS waiting room anymore. If your portfolio mixes equities and bonds, the equities mark through earnings every period under ASC 321.
Selling HTM without a memo. Every pre-maturity HTM sale needs a written exception analysis before execution. "We needed the cash" is the one justification the standard explicitly rejects.
Your next reporting date is the deadline that matters
Classification is reassessed on intent that must hold up at every balance sheet date, not just at purchase. Before your next close, pull the bond portfolio, confirm each holding still sits in the right bucket, verify that anything labeled HTM could genuinely survive a liquidity squeeze without being sold, and make sure the AFS footnote reconciles amortized cost to fair value lot by lot. The category you pick is a promise about the future — make it one your cash flow can keep.





