Tax Code Section 108: Canceled Debt Exclusions and Form 982

Section 108 of the Internal Revenue Code lets you exclude canceled debt from taxable income in five specific situations: bankruptcy, insolvency, qualified principal residence indebtedness, qualified farm indebtedness, and qualified real property business indebtedness. Outside those categories, forgiven debt of $600 or more is generally ordinary income in the year the lender cancels it, and the lender reports the amount to you and the IRS on Form 1099-C.1Internal Revenue Service. About Form 1099-C, Cancellation of Debt To claim any of the five exclusions, you file Form 982 with your return for that year.

Why Canceled Debt Is Taxable Unless You Qualify

The tax logic is that forgiven debt increases your net worth. Borrow $50,000, repay $30,000, have the lender write off the rest, and you have received $20,000 in economic benefit. That is why the default rule treats cancellation of debt as ordinary income for the year it occurred.2Internal Revenue Service. Topic No. 431, Canceled Debt – Is It Taxable or Not?

Section 108 carves out exceptions for taxpayers in genuinely distressed situations. Each exception has its own eligibility rules, its own dollar limits, and its own consequences for your other tax attributes. If more than one could apply, the statute decides which one you use.

The Five Exclusions

Bankruptcy

Debt discharged in a Title 11 bankruptcy case is fully excluded from income. This is the broadest exclusion because it has no dollar cap and covers all types of debt. You must be a debtor under the jurisdiction of the bankruptcy court, and the discharge must be granted by the court or result from a court-approved plan.3Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness If the cancellation happens during a bankruptcy case, this exclusion applies automatically and overrides the others. You cannot elect insolvency or principal residence treatment instead.

Insolvency

If you were insolvent at the time the debt was canceled, you can exclude the forgiven amount up to the amount of your insolvency. Insolvent means your total liabilities exceeded the fair market value of your total assets immediately before the cancellation.3Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness

The cap matters. If your liabilities exceeded your assets by $30,000 and the lender forgave $50,000, only $30,000 is excludable. The remaining $20,000 is taxable. The calculation itself is where most insolvency claims go wrong. You have to list everything you own at fair market value and everything you owe, including assets people commonly overlook such as retirement accounts and the cash value of life insurance policies.

Qualified Principal Residence Indebtedness

Forgiven mortgage debt on your main home can be excluded if the discharge occurred before January 1, 2026, or under a written arrangement entered into before that date.3Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness The cap is $750,000 ($375,000 if married filing separately) for discharges after 2020 and before 2026.4Internal Revenue Service. Instructions for Form 982 – Reduction of Tax Attributes Due to Discharge of Indebtedness

The debt must have been used to buy, build, or substantially improve your principal residence, and it must be secured by that home. If you refinanced and pulled cash out for other purposes, only the portion used for home improvements qualifies. And if the cancellation happened during a bankruptcy case, this exclusion is off the table; the bankruptcy exclusion takes over.

Qualified Farm Indebtedness

Farmers can exclude forgiven debt if two conditions are met: the debt was incurred directly in the operation of a farming business, and at least 50% of the taxpayer’s total gross receipts over the three preceding tax years came from farming.5Office of the Law Revision Counsel. 26 U.S. Code 108 – Income From Discharge of Indebtedness The cancellation must come from a “qualified person,” generally a lender actively and regularly engaged in lending, not a related party or the seller of the property that secured the debt. Government agencies also qualify.

The excludable amount is limited to the sum of your adjusted tax attributes plus the adjusted bases of qualified property you held at the start of the following tax year. This exclusion does not apply if the discharge occurs in a bankruptcy case or to the extent you were insolvent.

Qualified Real Property Business Indebtedness

This one covers debt incurred in connection with real property used in a trade or business and secured by that property. C corporations cannot use it.3Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness The debt must be either pre-1993 indebtedness or “qualified acquisition indebtedness” taken on to acquire, construct, or substantially improve the property. You have to affirmatively elect the exclusion on your return.

Two caps apply. The exclusion cannot exceed the difference between the outstanding principal on the debt (immediately before discharge) and the fair market value of the securing property, and it cannot exceed your total adjusted basis in depreciable real property. Any excluded amount reduces the basis of your depreciable real property directly rather than following the normal attribute-reduction order.5Office of the Law Revision Counsel. 26 U.S. Code 108 – Income From Discharge of Indebtedness

What Priority Applies When More Than One Could Fit

The statute stacks the exclusions. Bankruptcy takes precedence over everything else: if the cancellation happens in a Title 11 case, that is the exclusion you use. Insolvency comes next and displaces the farm and real property business exclusions to the extent you were insolvent. The principal residence exclusion is generally chosen when it applies, but a taxpayer who is both insolvent and has qualifying home debt can elect to apply insolvency instead. The point to take away: you do not get to pick freely, and using the wrong exclusion on Form 982 invites correction.

The Trade-Off: Reduction of Tax Attributes

Excluding canceled debt from income is not the same as making it disappear. For most of the exclusions, you have to reduce your tax attributes by the excluded amount. The government is agreeing not to tax the income now in exchange for taking away future tax benefits you would otherwise use.

Section 108(b)(2) sets the order of reduction:3Office of the Law Revision Counsel. 26 USC 108 – Income From Discharge of Indebtedness

  • Net operating losses for the discharge year and any NOL carryover to that year, dollar for dollar.
  • General business credit carryovers to or from the discharge year, at 33⅓ cents per dollar of excluded income.
  • Minimum tax credits available as of the beginning of the year after the discharge.
  • Net capital loss for the discharge year and capital loss carryovers to that year.
  • Basis of your property, following Section 1017.
  • Passive activity loss and credit carryovers from the discharge year.
  • Foreign tax credit carryovers to or from the discharge year.

You can elect on Form 982 to jump straight to reducing the basis of depreciable property before running the normal order. That election is one-way. The principal residence exclusion works differently from all of this: the only attribute you reduce is the basis of the residence itself, not the full list.

How to Claim the Exclusion on Form 982

You claim any Section 108 exclusion by attaching Form 982, Reduction of Tax Attributes Due to Discharge of Indebtedness, to your federal income tax return for the year the cancellation occurred.6Internal Revenue Service. About Form 982, Reduction of Tax Attributes Due to Discharge of Indebtedness (and Section 1082 Basis Adjustment)

Part I of the form has a checkbox for each exclusion type: line 1a for Title 11 bankruptcy, 1b for insolvency, 1c for qualified farm indebtedness, 1d for qualified real property business indebtedness, and 1e for qualified principal residence indebtedness. You check the box that fits, then enter the excluded amount on line 2. Part II is where you report the required reductions to your tax attributes.4Internal Revenue Service. Instructions for Form 982 – Reduction of Tax Attributes Due to Discharge of Indebtedness

Filing the form is not optional. If the creditor sent you a 1099-C and you do not file Form 982, the IRS sees unreported income and will likely send a notice asserting tax on the canceled amount. Before you fill it out, gather the exact amount of canceled debt from the 1099-C, the date the cancellation occurred, and, for an insolvency claim, a detailed calculation of your assets and liabilities immediately before the discharge. Keep the supporting records for at least seven years, the retention period the IRS recommends for returns involving bad debt deductions or losses from worthless securities.7Internal Revenue Service. How Long Should I Keep Records

If you file electronically, Form 982 attaches as a PDF through the e-file system. If you mail your return, include it with the paper filing.