If your lender forgives part of your mortgage in 2026 — through a short sale, a foreclosure, or a loan workout — the IRS will generally treat every forgiven dollar as taxable income. The federal shield that let homeowners exclude up to $750,000 of canceled mortgage debt expired on December 31, 2025, and Congress did not renew it. A $60,000 short-sale shortfall that would have been tax-free last year can now arrive as a Form 1099-C and a five-figure tax bill.
This guide explains what expired, how each type of mortgage cancellation is taxed now, and which exceptions — insolvency, bankruptcy, and a few others — can still shelter you.
What Expired on December 31, 2025
Since 2007, Section 108(a)(1)(E) of the tax code let taxpayers exclude "qualified principal residence indebtedness" discharged on their main home. Over the years Congress extended it repeatedly, most recently covering discharges completed before January 1, 2026, plus discharges completed later if they were made under an arrangement entered into and evidenced in writing before that date.
That is the entire grandfather rule, and it is narrow:
- Discharged before January 1, 2026: still excludable, up to $750,000 ($375,000 if married filing separately).
- Discharged in 2026 or later under a written arrangement signed before January 1, 2026: still excludable. A short-sale approval letter or binding workout agreement dated in 2025 counts; a verbal promise does not.
- Everything else discharged in 2026: generally taxable cancellation-of-debt (COD) income.
Note what "qualified" always meant, because it still matters for the grandfathered cases: only acquisition indebtedness — debt used to buy, build, or substantially improve your principal residence, secured by that residence. Cash-out refinance proceeds spent on cars, credit cards, or college were never qualified, and home-equity lines used for anything other than substantial home improvements were never qualified either.
How Canceled Mortgage Debt Becomes Taxable Income
The mechanics are straightforward and unforgiving. When a lender cancels $600 or more of debt, it files Form 1099-C with the IRS and sends you a copy. The canceled amount in Box 2 is ordinary income, reported on your return and taxed at your marginal rate — not at preferential capital-gain rates.
A homeowner in the 22% bracket who has $50,000 of mortgage debt canceled in 2026 without an exclusion owes roughly $11,000 in additional federal tax, plus any state tax. There is no withholding on a 1099-C, so the bill arrives all at once at filing time.
Do Not Ignore the 1099-C
Every filing season, taxpayers toss the 1099-C envelope assuming forgiven debt cannot be income. The IRS receives its own copy and its matching program will flag the omission, sending a notice that proposes tax, penalties, and interest. If you receive a 1099-C — or a 1099-A after a foreclosure — assume the IRS knows about it and deal with it on your return, either by reporting the income or by claiming an exclusion on Form 982.
Short Sales: Two Tax Events, Not One
A short sale produces two separate tax consequences, and the expired exclusion only ever covered one of them.
Event 1: gain or loss on the sale. You sold your home, so you compute gain as the sale price minus your adjusted basis (purchase price plus improvements, minus depreciation if you ever took any). For a principal residence, the Section 121 exclusion — up to $250,000 of gain ($500,000 joint) if you owned and used the home for two of the last five years — is still fully in force and usually wipes out this gain.
Event 2: cancellation-of-debt income on the shortfall. If you owed $320,000 and the lender accepted $260,000 in full satisfaction, the $60,000 difference is COD income. Through 2025, the principal-residence exclusion erased it. In 2026, it is taxable unless another exception applies.
A 2026 Short-Sale Example
You bought your home for $280,000, made no improvements, and sell short for $260,000 against a $320,000 mortgage balance:
- Sale gain: $260,000 − $280,000 = $20,000 loss. Personal-residence losses are not deductible, so this event is tax-neutral.
- COD income: $320,000 − $260,000 = $60,000 of ordinary income.
At a 22% marginal rate, that is about $13,200 in federal tax on a transaction where you walked away with nothing. This is the outcome the expired exclusion used to prevent, and it is why checking the insolvency exception below is now essential for every short seller.
Foreclosures: Recourse vs. Nonrecourse Changes Everything
Foreclosure tax treatment turns on one question: could the lender come after you personally for the deficiency?
Recourse Debt: Possible COD Income
With recourse debt, the foreclosure is bifurcated. The amount realized on the deemed sale equals the property's fair market value (Form 1099-A, Box 4), and any remaining unpaid balance the lender later forgives is COD income (Form 1099-C, possibly in a later year).
Example: $300,000 recourse mortgage, home worth $240,000 at foreclosure, lender forgives the $60,000 deficiency. You report gain or loss measured against $240,000 of amount realized, plus $60,000 of COD income when the debt is canceled. Before 2026 the $60,000 could be excluded as qualified principal residence indebtedness; now it needs a different exception.
Watch the timing trap: the 1099-A (foreclosure) and the 1099-C (debt cancellation) can arrive in different tax years. Report the sale in the 1099-A year and the COD income — or its exclusion — in the 1099-C year. Do not double-count the shortfall as both sale proceeds and canceled debt.
Nonrecourse Debt: No COD Income, but Possible Gain
With nonrecourse debt, the lender's only remedy is the property itself. The full outstanding loan balance counts as your amount realized — there is no COD income at all, so the expired exclusion is irrelevant.
That is not the same as tax-free. If the $300,000 nonrecourse balance exceeds your $220,000 adjusted basis, you have an $80,000 gain. On a principal residence the Section 121 exclusion often absorbs it, but on a second home, a rental, or a home you have not lived in long enough, that "phantom gain" is taxable with no cash in hand to pay it.
How to Tell Which You Have
Check Form 1099-A, Box 5: the lender indicates whether you were personally liable. State law matters too — several states bar or limit deficiency judgments on purchase-money home loans, effectively making them nonrecourse. When in doubt, ask a local tax professional before filing, because guessing wrong misstates both the character and the amount of income.
Loan Workouts and Modifications: The Quiet Trigger
You do not need to lose your home to face COD income in 2026. Lenders routinely reduce principal, cut interest rates, or extend terms to keep borrowers paying — and a principal reduction outside bankruptcy or insolvency is COD income when granted.
Common 2026 triggers include:
- Principal writedowns in a permanent loan modification. A $25,000 balance reduction is $25,000 of income.
- Rate-and-term workouts that the tax rules treat as a "significant modification" deemed to be an exchange of the old loan for a new one, which can generate COD income on the spread.
- Deed-in-lieu of foreclosure, taxed like a sale for the debt relief plus COD income on any forgiven deficiency, just like a short sale.
If your servicer offers a modification, ask for the tax reporting in writing before you sign: will they file a 1099-C, for what amount, and in which year? A workout that saves your home but creates a surprise tax bill is still usually worth taking — but you want the bill anticipated, with an exclusion lined up or estimated payments planned.
The Exceptions That Still Shelter You
The principal-residence exclusion is gone for new discharges, but Congress left the rest of Section 108 intact. These are now your first lines of defense.
1. Insolvency: The Most Important Remaining Exclusion
If your total liabilities exceeded the fair market value of your assets immediately before the discharge, you can exclude COD income up to the amount of that insolvency. This is now the main shelter for underwater homeowners, and it applies to any kind of canceled debt, not just mortgages.
Key mechanics:
- Measure at the moment before cancellation. List every liability (mortgage balances, car loans, credit cards, medical bills, student loans, taxes owed) and every asset at fair market value (bank accounts, retirement accounts, vehicles, household goods, the property itself). The excess of liabilities over assets is your insolvency amount.
- Exclude up to the insolvency amount. Insolvent by $80,000 with $60,000 of canceled mortgage debt? The full $60,000 is excludable. Insolvent by only $20,000? You exclude $20,000 and report the remaining $40,000 as income.
- Claim it on Form 982. Check the insolvency box, enter the excluded amount, and attach the form to your return. You do not file the insolvency worksheet itself, but complete it — Publication 4681 includes a detailed one — and keep it with your records. The IRS asks for it often.
- Reduce tax attributes. Excluded COD income is not entirely free: you must reduce net operating losses, credit carryovers, and eventually the basis of property by the amount excluded. For most homeowners with no carryovers, this means reducing the basis of the retained property, which slightly increases gain on a future sale.
Document asset values contemporaneously — Kelley Blue Book printouts, brokerage statements, a written estimate of household goods — because reconstructing "immediately before the discharge" a year later under audit is painful.
2. Bankruptcy: The Strongest Exclusion
Debt discharged in a Title 11 bankruptcy case is fully excludable, with no dollar cap and no insolvency measurement required. Bankruptcy exclusions take precedence: if a debt qualifies under both bankruptcy and insolvency, you claim bankruptcy. Like insolvency, the exclusion comes with tax-attribute reduction on Form 982.
Timing matters. Only debt discharged in the bankruptcy case qualifies. Mortgage debt forgiven in a short sale six months before you file is tested under insolvency, not bankruptcy.
3. Exceptions Worth a Quick Check
- Qualified farm and qualified real property business indebtedness can still be excluded under their own rules — relevant if the property secures farm or business debt rather than a personal residence.
- Nonrecourse debt, as explained above, generates no COD income in a foreclosure by definition.
- Section 121 still excludes up to $250,000/$500,000 of gain on the sale of a principal residence. It never covered COD income and still does not — but it usually neutralizes the sale half of a short sale or foreclosure.
- Debts canceled as a gift, bequest, or deductible payment (for example, a seller-financed note the seller forgives out of generosity) are not COD income at all.
- Student loan discharges have their own evolving rules and are outside this article's scope — do not assume mortgage logic transfers.
Exclusion Ordering
When more than one exclusion could apply, Section 108 imposes an order: bankruptcy first, then insolvency (to the extent not covered by bankruptcy), then qualified farm, then qualified real property business indebtedness. Only one exclusion per dollar of canceled debt — you cannot stack insolvency and bankruptcy on the same amount.
State Taxes: A Second Bill You Must Check
States do not automatically follow the federal expiration. Some conform to the Internal Revenue Code as of a fixed date and may still carry an older version of the exclusion; others decoupled years ago; a few never had one. That cuts both ways: you could owe state tax on mortgage debt that was federally excluded in a grandfathered 2025-arrangement case, or you could get a state exclusion the federal return no longer offers.
Before filing, check your state's conformity date and its specific treatment of COD income and Form 982 exclusions. If you moved between the discharge and filing, check both states' rules.
Protect Yourself: A 2026 Checklist
If a short sale, foreclosure, or workout is in progress or behind you this year:
- Pin down the discharge date and paperwork. Was anything completed or put in a signed written arrangement before January 1, 2026? Find the approval letters and agreements — they are your only path to the grandfathered exclusion.
- Run the insolvency worksheet immediately. Asset values and liability balances must reflect the moment before cancellation. Reconstructing them at filing time invites error and audit trouble.
- Match every information return. Reconcile Forms 1099-A and 1099-C against your loan statements. Lenders miscode boxes — wrong fair market value, wrong discharge date, recourse mislabeled as nonrecourse. Dispute errors with the lender in writing and keep copies.
- Track your adjusted basis. Settlement statements, improvement receipts, and prior depreciation all feed the gain computation on the sale half of the transaction.
- Plan for the cash. If no exclusion covers the COD income, adjust withholding or make estimated payments. The tax on phantom income is very real, and underpayment penalties stack on top.
- Get professional help early. COD cases combine information-return matching, attribute reduction, state conformity, and sometimes deficiency-judgment law. A review before you file costs far less than responding to a notice after.
Track Every Dollar of the Workout
Canceled-debt cases are won or lost on records: the basis of your home, the balance history of the loan, the asset-and-liability snapshot that proves insolvency, and the attribute reductions you carry forward on Form 982. Spreadsheets scattered across email threads are how discharge dates get misremembered and exclusions get lost. Keeping a clean, chronological ledger of the loan, the property's basis, and every notice the servicer sends turns an audit-ready file from a weekend project into a printout. If you want a head start on organized records, the Beancount documentation walks through double-entry plain-text bookkeeping you can adopt for exactly this kind of paper trail.
Keep Your Finances Organized Through the Workout
A short sale, foreclosure, or modification is stressful enough without tax surprises compounding it. Maintaining clear financial records — loan balances, basis adjustments, insolvency worksheets, and every 1099 — is what lets you claim every exclusion you are entitled to. Beancount.io provides plain-text accounting that gives you complete transparency and control over your financial data — no black boxes, no vendor lock-in. Get started for free and see why developers and finance professionals are switching to plain-text accounting.





