Foreclosure is a taxable disposition
The IRS treats a foreclosure as a sale or exchange. Your \"amount realized\" depends on whether the debt is recourse or non-recourse. For non-recourse debt, the amount realized is the full outstanding loan balance — even if the property is worth less. For recourse debt, the amount realized is the fair market value of the property; the excess of the loan over FMV is cancellation of debt (COD) income, separately taxable (unless an exclusion applies, such as insolvency or qualified real property business debt).
In either case, if your amount realized exceeds your adjusted basis, you have a taxable gain — and the portion equal to accumulated depreciation is unrecaptured Section 1250 gain taxed at up to 25%.
Phantom income: when you owe tax but received nothing
Consider a rental with: $350,000 non-recourse mortgage, $270,000 adjusted basis (after $80,000 depreciation), FMV $310,000. At foreclosure, amount realized = $350,000 loan balance, gain = $350,000 − $270,000 = $80,000. Of that, $80,000 is depreciation recapture taxed at 25% = $20,000 federal tax — owed even though you received no cash and lost the property. This is the \"phantom income\" problem of foreclosures.
Short sales and the COD income risk
In a short sale, the lender accepts less than the outstanding balance. The deficiency (loan balance minus proceeds) may be forgiven, creating COD income taxable at ordinary rates. Some exclusions apply: Insolvency exclusion (assets minus liabilities at time of discharge), qualified principal residence indebtedness exclusion (only for a main home, not a rental), or bankruptcy discharge. Rental property COD income rarely qualifies for the principal residence exclusion.
Two separate tax events, computed separately
The most important idea in a distressed disposition is that a recourse foreclosure or short sale usually creates two distinct items of income, computed and taxed differently. The first is gain or loss on the disposition — amount realized (capped at fair market value for recourse debt) minus adjusted basis — reported on Form 4797, with the depreciation portion recaptured. The second is cancellation-of-debt income equal to the forgiven deficiency (loan balance over FMV), reported as ordinary income unless an exclusion applies. Non-recourse debt collapses these into a single computation because the full loan balance is the amount realized and there is no separate COD income. Keeping the two events separate is what lets you apply the right exclusions to the right piece — a recapture gain cannot be excluded under the insolvency rules, but the COD income often can.
A worked recourse example
Take a rental with a $400,000 recourse mortgage, $250,000 adjusted basis (after $90,000 of depreciation), and a $320,000 fair market value at foreclosure. Disposition: amount realized is the $320,000 FMV, so gain is $320,000 − $250,000 = $70,000, of which $70,000 (up to the $90,000 depreciation) is unrecaptured Section 1250 gain taxed at up to 25%. COD income: the deficiency is $400,000 − $320,000 = $80,000 of ordinary income. So the owner faces tax on $70,000 of recapture gain and $80,000 of ordinary COD income — $150,000 of taxable income with no sale proceeds in hand. That is the phantom-income trap. Whether the $80,000 of COD income is actually taxed depends on the exclusions below.
The insolvency exclusion and Form 982
Under IRC §108(a)(1)(B) you can exclude COD income to the extent you were insolvent immediately before the discharge — that is, to the extent your total liabilities exceeded the fair market value of all your assets. If your liabilities exceeded your assets by $60,000 right before the debt was cancelled, up to $60,000 of the COD income is excluded; the rest is taxable. You claim the exclusion on Form 982 and, in exchange, must reduce your tax attributes (net operating losses, credits, and the basis of remaining property) by the excluded amount. Bankruptcy discharge (§108(a)(1)(A)) excludes COD income entirely. Critically, these exclusions apply only to the COD income — they never shelter the depreciation recapture gain on the disposition, which is a separate Form 4797 item.
Qualified real property business indebtedness
A solvent landlord has another tool the insolvency rule does not offer: the qualified real property business indebtedness (QRPBI) election under §108(a)(1)(D) and §108(c). Debt incurred in connection with, and secured by, real property used in a trade or business generally qualifies, and rental real estate frequently does. You elect on Form 982 to exclude the COD income — capped at the excess of the debt over the property's FMV, and further capped at the aggregate adjusted basis of your depreciable real property — in exchange for reducing the basis of that depreciable real property. This defers rather than forgives the income: the lower basis means more gain or recapture on a later sale. It is unavailable to C corporations and does not cover the recapture gain, but for a solvent owner it can convert an immediate ordinary tax bill into a future, often lower-rate, capital exposure.
Suspended passive losses and how to report it
There is one silver lining. A foreclosure is a fully taxable disposition of the entire interest in a passive activity, which frees any suspended passive losses that had been trapped by the passive activity loss rules. Those released losses become deductible against your other income and can offset much or all of the recapture gain and even the COD income in the year of foreclosure — sometimes eliminating the phantom-income tax entirely. Expect a Form 1099-A (acquisition or abandonment of secured property) and, if debt is cancelled, a Form 1099-C (cancellation of debt) from the lender; reconcile the numbers on them to your own computation, because lender-reported FMV and balances are often wrong. Because the stakes and the ordering of these rules are high, run the numbers — and any Form 982 election — with a tax professional before the disposition closes.
Deed in lieu, abandonment, and the order of the rules
A deed in lieu of foreclosure — voluntarily transferring the property to the lender to settle the debt — is taxed like a foreclosure: a disposition (with recapture) plus, for recourse debt, potential COD income on any forgiven deficiency. Abandonment of the property is trickier: if the debt is non-recourse, abandonment is treated as a sale for the loan balance and can produce recapture gain; if recourse, there is no disposition until the lender actually forecloses or cancels the debt. In every version, the analysis runs in a fixed order that is worth memorizing. First compute the gain or loss on the disposition and its recapture on Form 4797 — this is never shelterable by the debt-cancellation exclusions. Then compute the COD income, and only then apply the exclusions in this sequence: bankruptcy, then insolvency, then (for a solvent owner) the qualified real property business indebtedness election. Getting the order right is what determines whether the phantom income is actually taxed or excluded, and it is the single most common place these returns go wrong.
Frequently asked questions
Do I owe depreciation recapture if I lose a property in foreclosure?
Yes. Foreclosure is treated as a sale; accumulated depreciation is recaptured as income, regardless of whether you received cash.
What is the difference between recourse and non-recourse debt in a foreclosure?
With non-recourse debt, the lender's only remedy is the property — the full loan balance is your amount realized even if it exceeds FMV. With recourse debt, amount realized is capped at FMV; the excess is cancellation-of-debt income, which is a separate type of taxable income.
Is there any way to avoid the tax on a foreclosure?
Not easily. Insolvency exclusion can eliminate some COD income. A 1031 exchange is not available because you don't control the sale timing. Consult a tax professional before foreclosure to explore options.
Can the insolvency exclusion wipe out my depreciation recapture too?
No. The insolvency and bankruptcy exclusions apply only to cancellation-of-debt income. The gain on the disposition — including depreciation recapture reported on Form 4797 — is a separate item and is not shelterable by those exclusions.
What is the qualified real property business indebtedness election?
It lets a solvent taxpayer (not a C corporation) exclude COD income on business real-property debt by reducing the basis of depreciable real property instead. It defers the income rather than forgiving it, because the lower basis produces more gain or recapture on a later sale. You elect it on Form 982.
Does a foreclosure free up my suspended passive losses?
Yes. A foreclosure is a fully taxable disposition of the passive activity, which releases suspended passive losses. They can offset the recapture gain and other income in the year of foreclosure, sometimes eliminating the phantom-income tax.
What tax forms will I receive after a foreclosure or short sale?
Typically a Form 1099-A for the acquisition or abandonment of the property, and a Form 1099-C if the lender cancels the deficiency. Verify the FMV and balances they report against your own records, as lender figures are frequently inaccurate.
Is a deed in lieu of foreclosure taxed differently than a foreclosure?
No, the tax treatment is essentially the same: it is a disposition that can trigger depreciation recapture, plus potential cancellation-of-debt income on any forgiven recourse deficiency. Voluntarily handing back the property does not avoid the recapture or the COD analysis.
In what order do the debt-cancellation exclusions apply?
Compute the disposition gain and recapture first (never shelterable), then the COD income, then apply exclusions in order: bankruptcy, insolvency, and finally the qualified real property business indebtedness election for a solvent owner. Applying them in the wrong order is a common and costly error.
Can I do a 1031 exchange to avoid recapture in a foreclosure?
No. A 1031 exchange requires you to control the disposition and reinvest the proceeds through a qualified intermediary. In a foreclosure the lender takes the property and you never receive proceeds to reinvest, so an exchange is not available. Planning options are limited to the debt-cancellation exclusions, using released suspended passive losses to offset the gain, and, where possible, negotiating the timing or structure of the deal before it closes.
Sources
- IRS Topic No. 409 — Capital Gains and Losses
- IRS Publication 544 — Sales and Other Dispositions of Assets
- IRS Publication 946 — How to Depreciate Property
Educational information and estimates only. Not tax advice. Tax rules change and vary by situation; consult a qualified tax professional before acting.
