People who lose property to foreclosure usually assume the tax side is simple. They lost money. How can they owe tax?
Here is how. The IRS treats a foreclosure as a sale. A sale has an amount realized, a basis, and a gain or loss. And if the lender wrote off part of the loan, that write-off may be income on its own. Two separate calculations, sometimes running in opposite directions, on the worst year of your financial life.
Which calculation applies depends on one question most borrowers cannot answer without pulling their loan documents: was the debt recourse or nonrecourse?
The two kinds of debt
Recourse debt makes you personally liable. If the property sells for less than the loan, the lender can pursue you for the difference, called a deficiency. Most Florida residential mortgages are recourse loans because the borrower signs a promissory note and Florida law allows lenders to seek deficiency judgments.
Nonrecourse debt limits the lender to the property. If the property is worth less than the loan, the lender takes the property and absorbs the loss. Nonrecourse loans show up more often in commercial real estate and some seller-financed deals.
Look at the note. If it says the lender's only remedy is the collateral, it is nonrecourse. If it does not, assume recourse and confirm.
The governing regulation
Treas. Reg. 1.1001-2 controls the math. Its general rule in paragraph (a)(1) is that the amount realized on a sale or other disposition includes the liabilities you are relieved of. Paragraph (a)(4)(iii) confirms that a transfer of property in satisfaction of liabilities is a disposition. So a foreclosure counts.
Then the regulation splits:
- Nonrecourse. Paragraph (b) says the fair market value of the property is irrelevant. The full nonrecourse debt is the amount realized, even if the property is worth much less.
- Recourse. Paragraph (a)(2) says the amount realized does not include amounts that are income from the discharge of indebtedness. In practice, the amount realized is generally the property's fair market value, and any debt canceled above that value is canceled debt income.
Nonrecourse: all gain, no canceled debt
Example 7 in the regulation involves property subject to a $19,000 nonrecourse note, worth $15,000, with an adjusted basis of $16,500. When the property is transferred to satisfy the debt, the amount realized is the full $19,000, and the realized gain is $2,500. No canceled debt income. The entire shortfall is folded into the sale.
Apply that to a rental. You bought a condo for $400,000 with a $360,000 nonrecourse loan and took $80,000 of depreciation, so your adjusted basis is $320,000. The loan balance is $350,000 and the condo is worth $250,000. The lender forecloses. Your amount realized is $350,000. Your gain is $30,000 ($350,000 minus $320,000). You never saw a dime, and you have a taxable gain.
That is not a mistake. The depreciation you deducted over the years reduced your basis, and the foreclosure recaptures it. Part of that gain may be taxed as unrecaptured section 1250 gain, covered in the depreciation recapture guide.
The upside of nonrecourse treatment is that gain is usually capital or section 1231 gain, not ordinary canceled debt income. And because there is no canceled debt, the IRC 108 exclusions are not relevant to that piece.
Recourse: two calculations
Example 8 in the regulation shows the recourse split. An asset worth $6,000 is transferred to a creditor, who discharges $7,500 of debt for which the owner is personally liable. The amount realized on the disposition is $6,000. Separately, the owner has $1,500 of income from the discharge of indebtedness.
Run the same condo as a recourse loan. Loan balance $350,000, value $250,000, adjusted basis $320,000. The lender forecloses and forgives the deficiency.
| Step | Calculation | Result |
|---|---|---|
| Amount realized | Fair market value | $250,000 |
| Gain or loss on the sale | $250,000 minus $320,000 basis | $70,000 loss |
| Canceled debt | $350,000 minus $250,000 | $100,000 potential income |
Same property, same numbers, completely different tax picture. Under recourse treatment you have a $70,000 loss on the disposition and $100,000 of potential ordinary income from canceled debt. On a rental, the loss may be deductible. On a personal residence it is not. The canceled debt is taxable unless an exclusion applies.
When the lender does not forgive the deficiency
If a recourse lender forecloses but reserves the right to collect the deficiency, there is no canceled debt yet. The disposition still happens at foreclosure, measured at fair market value. Canceled debt income arises later, if and when the lender actually forgives or settles the deficiency. That can push the income into a later year, which matters for exclusions that turn on dates or on your solvency at the time of discharge.
That timing is one reason the information returns you receive can be confusing. A Form 1099-A may arrive in the year of foreclosure and a Form 1099-C years later. See the Form 1099-A and 1099-C guide.
Exclusions that can wipe out canceled debt income
Canceled debt is gross income under IRC 61(a) unless IRC 108 says otherwise. For real estate owners, the exclusions that matter most:
- Title 11 case: debt discharged in a bankruptcy case, under IRC 108(a)(1)(A).
- Insolvency: debt discharged while you are insolvent, up to the amount of insolvency, under IRC 108(a)(1)(B). See the insolvency guide.
- Qualified real property business indebtedness: an elective exclusion for certain business real estate debt, under IRC 108(a)(1)(D). See the QRPBI guide.
- Qualified principal residence indebtedness: under IRC 108(a)(1)(E), but only for discharges before January 1, 2026, or under a written arrangement entered into before that date. See the mortgage forgiveness guide.
Each exclusion carries a price. IRC 108(b) requires you to reduce tax attributes such as net operating losses, capital loss carryovers, and the basis of your property by the amount excluded. Form 982 is where you report both the exclusion and the reductions.
Getting the facts right before you file
To report a foreclosure correctly you need:
- The note and mortgage, to confirm recourse or nonrecourse status
- Your adjusted basis: purchase price, improvements, and depreciation allowed or allowable
- The fair market value at foreclosure, which may appear on Form 1099-A
- The loan balance at the time of the disposition
- Any written waiver or settlement of the deficiency, with its date
- A balance sheet of your assets and liabilities just before any discharge, if insolvency is in play
Missing any one of those turns the return into a guess. The IRS matching program will compare what you report to the 1099-A and 1099-C it received. A mismatch generates a notice. A notice generates a balance due with penalties. Learn more about how mortgage debt forgiveness is taxed.
Foreclosure takes the property. Do not let it take the next three years of tax returns too.
Property on the line? Get the plan right first.
Closings, refinances, audits, and exchanges all run on deadlines. Talk with a tax attorney before the clock decides for you.
Call (813) 229-7100Frequently asked questions
Is a foreclosure a sale for tax purposes?
Yes. A foreclosure, deed in lieu, or short sale is a sale or other disposition of the property. You compare the amount realized to your adjusted basis to find gain or loss, and then separately consider whether any canceled debt is income.
What is the difference between recourse and nonrecourse debt?
With recourse debt, you are personally liable and the lender can pursue you for a deficiency. With nonrecourse debt, the lender can look only to the property. Treas. Reg. 1.1001-2 treats the two differently when the property is lost.
Can I deduct a loss on my foreclosed home?
No. A loss on the sale or foreclosure of a personal residence is a nondeductible personal loss. A loss on rental or investment property may be deductible, subject to the rules for that type of property.
Does canceled debt income always mean I owe tax?
No. IRC 108 excludes canceled debt in a bankruptcy case, to the extent you are insolvent, and in certain other situations. You report the exclusion on Form 982. Without an exclusion, the canceled amount is ordinary income.
This article is general information about federal tax law as of October 2026, not legal advice for your situation. Reading it does not create an attorney-client relationship.