When cancellation of debt (COD) income arises
If your lender forgives or cancels part of your rental property mortgage — through a short sale, deed-in-lieu, foreclosure on recourse debt, or loan modification — the forgiven amount is generally treated as cancellation of debt (COD) income under Section 61. The lender may issue a Form 1099-C reporting the cancelled amount.
The critical distinction is recourse vs. non-recourse debt. For non-recourse debt (the lender can only take the property, not pursue you personally), a foreclosure or short sale is treated entirely as a sale for the outstanding balance — producing gain or loss, but not COD income. For recourse debt where the lender forgives the deficiency, that forgiven amount is COD income.
Key exclusions under Section 108
Several exclusions in Section 108 can shield COD income from immediate taxation:
Insolvency exclusion: COD income is excluded to the extent you were insolvent at the time of cancellation (liabilities exceed assets). If your net worth was negative by $50,000 and you had $30,000 of COD income, all $30,000 is excluded. Use Form 982 to claim this exclusion.
Qualified real property business indebtedness (QRPBI): Section 108(c) allows taxpayers to exclude COD from debt incurred to acquire, construct, or substantially improve real property used in a trade or business. The exclusion is limited to the excess of the outstanding principal over the property's fair market value (adjusted for other excluded COD), plus unamortized acquisition discount. Excluding QRPBI reduces your basis in the property.
Bankruptcy exclusion: COD income while in a Title 11 bankruptcy case is fully excluded.
Basis reduction and the catch
Excluding COD income under most of these provisions is not free — it requires a basis reduction under Section 1017. When you exclude COD income, you must reduce the basis of your property (and potentially other assets) by the excluded amount. This deferred tax liability means the tax is not erased, it is deferred into a lower adjusted basis and higher gain (including recapture) on eventual sale.
Example: you exclude $80,000 of COD income under the insolvency exclusion on a rental property with $300,000 of remaining depreciable basis. The basis is reduced to $220,000. When you eventually sell, your gain is larger by $80,000, and more of it may be taxable as recapture or capital gain. The exclusion postpones the tax — often permanently if you do a 1031 exchange or hold until death.
Recourse vs. non-recourse: a worked example
The recourse/non-recourse distinction changes both the character and the amount of what you report, so work it through. Suppose a rental has an adjusted basis of $220,000, an outstanding mortgage of $300,000, and a fair market value of $250,000 at foreclosure.
Non-recourse debt. The entire transaction is a sale for the full $300,000 balance, regardless of the $250,000 value — the amount realized on a non-recourse loan is the debt discharged. Gain = $300,000 − $220,000 = $80,000, taxed as Section 1231/capital gain with depreciation recapture, and there is no COD income at all.
Recourse debt. The sale is treated as occurring at fair market value ($250,000), and the excess of the debt over FMV is COD income. So you have gain on the 'sale' of $250,000 − $220,000 = $30,000 (capital/1231 with recapture), plus COD income of $300,000 − $250,000 = $50,000 (ordinary income, unless excluded under Section 108). Same economics, very different tax reporting — and only the recourse case gives you COD income that the Section 108 exclusions can shelter.
Insolvency: how to measure it
The insolvency exclusion under Section 108(a)(1)(B) is measured immediately before the discharge, and only to the extent of insolvency. Insolvency means total liabilities exceed the fair market value of total assets. You add up everything you owe and everything you own — not just the rental — the instant before the cancellation.
Worked example: just before the lender forgives $50,000, your total liabilities are $600,000 and your total assets are worth $560,000. You are insolvent by $40,000. You can exclude COD income only up to that $40,000; the remaining $10,000 is taxable (unless another exclusion applies). If you had been insolvent by $60,000, the full $50,000 would be excludable.
Include all assets in the calculation — retirement accounts, cash, vehicles, other real estate, business interests — even assets that are exempt from creditors, because the insolvency test for Section 108 counts them. This is the step taxpayers most often get wrong, and overstating insolvency to exclude COD income is a frequent audit adjustment. Claim the exclusion on Form 982, checking the insolvency box and reporting the amount of basis (and other tax-attribute) reduction.
QRPBI election: the trade-off in depth
The qualified real property business indebtedness (QRPBI) exclusion under Section 108(c) is available specifically to non-C-corporation taxpayers on debt used to acquire, construct, or substantially improve real property held in a trade or business (and secured by that property). Unlike the insolvency and bankruptcy exclusions, QRPBI is elective — you choose it on Form 982 — and it comes with its own cap.
Two limits apply. First, the exclusion cannot exceed the excess of the outstanding principal (just before discharge) over the property's net fair market value (reduced by other qualified debt on it). Second, it cannot exceed the aggregate adjusted bases of your depreciable real property held immediately before the discharge (with certain adjustments). The excluded amount then reduces the basis of your depreciable real property under Section 1017.
The strategic point: because QRPBI is elective and reduces basis in real property specifically, it is often the right tool for a solvent investor who is not in bankruptcy — someone who cannot use the insolvency or bankruptcy exclusions but wants to defer the COD tax by trading it for lower basis and higher future gain/recapture. A tax professional should model whether taking the current ordinary-income hit or accepting the basis reduction (and larger future recapture) is better in your situation.
Reading Form 1099-C and the order of attribute reduction
Lenders report cancelled debt on Form 1099-C, typically in the year of an 'identifiable event' such as a foreclosure, short sale, or agreement to forgive. Box 2 shows the cancelled amount, Box 3 any interest included, Box 5 whether you were personally liable (a clue to recourse status), and Box 7 the property's FMV. Do not ignore a 1099-C — the IRS receives a copy and will match it. If you believe the amount is wrong or the debt was already resolved, address it rather than omitting it.
When you exclude COD income under Section 108, you generally must reduce tax attributes in a set order under Section 108(b): net operating losses, general business credits, minimum tax credits, capital loss carryovers, basis of property, passive activity loss and credit carryovers, and foreign tax credits — unless you elect under Section 108(b)(5) to reduce depreciable property basis first. The insolvency and bankruptcy exclusions follow this attribute-reduction regime; the QRPBI exclusion instead reduces depreciable real property basis directly. Form 982 is where all of this is reported.
Common mistakes with rental COD income
Ignoring a 1099-C. The most costly error is leaving cancelled debt off the return entirely. The IRS matches 1099-C forms; a discrepancy triggers a notice and, potentially, penalties.
Assuming all forgiven debt is excludable. The mortgage-forgiveness exclusion for a principal residence does not apply to rental property. Rental COD relief comes only from the insolvency, bankruptcy, or QRPBI provisions — and each has limits and conditions.
Miscounting assets in the insolvency test. Leaving out retirement accounts or other exempt assets overstates insolvency; the Section 108 test counts them.
Forgetting the basis reduction. Excluding COD income under most provisions requires a corresponding attribute or basis reduction. Skipping it understates future gain and overstates depreciation.
Confusing gain on disposition with COD income. A foreclosure or short sale of recourse debt can produce both a taxable gain (with depreciation recapture) on the deemed sale and separate COD income. They are computed and taxed differently, and both must be reported.
Frequently asked questions
Is forgiven mortgage debt on a rental property always taxable?
Not always. The insolvency exclusion, QRPBI exclusion, and bankruptcy exclusion can shelter all or part of the COD income. Whether you qualify depends on your net worth at the time of cancellation and the type of debt.
Does the principal-residence mortgage forgiveness exclusion apply to a rental?
No. The qualified principal residence indebtedness exclusion applies only to your main home. For a rental property you must rely on the insolvency, bankruptcy, or qualified real property business indebtedness (QRPBI) exclusions under Section 108.
What is Form 982 and when do I file it?
Form 982 (Reduction of Tax Attributes Due to Discharge of Indebtedness) is how you claim a Section 108 exclusion and report the required reduction of tax attributes or property basis. You file it with the return for the year the debt was cancelled, checking the box for the exclusion you're using (insolvency, bankruptcy, or QRPBI).
Can a foreclosure create both a gain and COD income?
Yes, on recourse debt. The transaction is split: a deemed sale at fair market value (which can produce capital/Section 1231 gain and depreciation recapture) plus cancellation-of-debt income equal to the excess of the forgiven debt over fair market value. On non-recourse debt there is no COD income — the whole amount is treated as sale proceeds.
How do I measure insolvency for the exclusion?
Compare your total liabilities to the fair market value of all your assets immediately before the debt cancellation. If liabilities exceed assets, you are insolvent by that difference, and you can exclude COD income up to the amount of insolvency. Include all assets, even those protected from creditors like retirement accounts.
What is the difference between a recourse short sale and a non-recourse short sale for tax purposes?
On a non-recourse loan, the entire transaction is treated as a sale for the outstanding debt — no COD income, but potentially a large taxable gain. On a recourse loan where the lender forgives the deficiency, the forgiven amount is COD income, separate from any gain or loss on the sale.
Does excluding COD income reduce my depreciation deduction?
Yes. Basis reduction under Section 1017 lowers the property's depreciable basis, which reduces future depreciation deductions and increases the eventual gain at sale.
Sources
Educational information and estimates only. Not tax advice. Tax rules change and vary by situation; consult a qualified tax professional before acting.