Tax Consequences of Foreclosure on Real Estate
A foreclosure on real estate creates two separate tax consequences: first, the difference between the loan balance and the sale price generates taxable cancellation-of-debt income (unless excluded), and second, the property itself is treated as sold at fair market value, potentially triggering a capital gain or loss. These events happen in the year of foreclosure even though the borrower may not receive any cash.
Cancellation-of-debt income in foreclosure
When a lender forecloses and sells a property at a sale price below the outstanding loan balance, the forgiven difference is cancellation-of-debt (COD) income under IRC Section 61. If a home with a $600,000 mortgage sells at foreclosure for $400,000, the $200,000 shortfall is treated as income to the borrower.
COD income is ordinary income, subject to tax at the borrower’s marginal rate, and must be reported on Form 1099-C by the lender (or foreclosure trustee). The borrower reports it on their tax return for the year of foreclosure. This can create a sudden, large tax liability in the year the foreclosure occurs, even though the borrower receives no cash—a harsh outcome for households already financially distressed.
However, the Mortgage Forgiveness Debt Relief Act provides a critical exclusion for primary residences. A homeowner can exclude up to $250,000 of forgiven mortgage debt on a principal residence ($500,000 for married couples filing jointly). To qualify, the debt must be from a loan used to buy, build, or improve the residence, and the property must have been used as a principal residence for at least two of the five years preceding the foreclosure.
This exclusion has been extended multiple times and, as of the current tax year, remains available. A homeowner with a $200,000 shortfall from a primary residence fully avoids the income. A homeowner with a $600,000 shortfall recognizes $350,000 of COD income (or $100,000 for married couples if only one spouse qualifies). This exclusion does not apply to vacation homes, rental properties, or commercial real estate.
The deemed sale and capital gain or loss
Simultaneously with the COD income event, the property itself is treated as sold by the borrower at its fair market value (FMV) on the date of foreclosure. This triggers capital-gain or capital-loss recognition.
If the borrower has substantial equity, foreclosure is unlikely; the lender simply accepts the sale proceeds. However, if the property has appreciated since purchase, even in a “underwater” loan scenario, a capital gain is recognized. The calculation is: sale price (FMV) minus adjusted basis. If the basis is $300,000 and FMV is $400,000, the capital gain is $100,000, taxed as a long-term capital gain if the property was held over one year.
Conversely, if the property has depreciated and FMV is less than the adjusted basis—say, FMV of $400,000 and basis of $500,000—the borrower recognizes a capital loss of $100,000. For primary residences, capital losses are not deductible. The capital-gains-tax-investor exclusion ($250,000 for individuals, $500,000 for joint filers) applies to primary residences only if gain is present; losses cannot be claimed.
For rental or investment real estate, capital losses are deductible but subject to complex carryover and limitation rules. A rental property foreclosed with a $100,000 loss can generate a current deduction, subject to passive-activity-loss limitations and the Section 1231 loss offset rules.
Deficiency judgments and additional COD
In many states, if the foreclosure sale does not cover the full loan balance, the lender can pursue a deficiency judgment against the borrower for the shortfall. This creates an additional unsecured debt owed to the lender. If the lender later forgives the deficiency or the borrower discharges it in bankruptcy, that forgiveness is also COD income unless it qualifies for an exclusion.
The $250,000 primary-residence COD exclusion applies to mortgage debt forgiveness but typically only if the loan was secured by the residence. A deficiency judgment, being unsecured, may not qualify for the exclusion, though courts have disagreed on this point. Borrowers facing deficiency exposure should consult a tax professional to determine whether additional COD income will be recognized.
Foreclosure and tax-deferred exchanges
A borrower facing foreclosure might consider a like-kind-exchange-related-party-rules exchange to defer the gain. However, foreclosure does not qualify for Section 1031 deferral. The deemed sale of the property at FMV triggers gain recognition immediately; the exchange rules do not apply because the foreclosure is a forced disposition, not a voluntary like-kind exchange.
Some investors have attempted to avoid foreclosure by arranging a quick like-kind exchange before the lender completes foreclosure, but this is fraught with legal and tax risk. The IRS scrutinizes transactions structured to dodge foreclosure tax consequences, and any exchange must be genuine and completed within the strict 45-day identification and 180-day exchange windows.
Recapture of depreciation
For rental or investment properties, the deemed sale also triggers depreciation recapture. Any depreciation deducted over the holding period is recaptured at a 25% rate on the gain, higher than the preferential capital-gains-tax-investor rate on unrecaptured gain. If a rental property with $50,000 of accumulated depreciation is foreclosed and generates a $100,000 capital gain, $50,000 of the gain is recaptured at 25% and $50,000 is long-term capital gain at preferential rates (currently 15% or 20% depending on income).
For primary residences, depreciation is rarely claimed; the property is a personal residence and depreciation does not apply. However, if a portion of the home was used as a rental (for example, a rented guest cottage), depreciation would apply to that portion and be recaptured at foreclosure.
Insolvency exception to COD income
Borrowers who are insolvent at the time of debt cancellation may exclude some or all COD income under the insolvency exception (IRC Section 108). Insolvency is measured as total liabilities exceeding total assets, both before and after the cancellation. If a borrower has $1,200,000 in liabilities and $1,000,000 in assets before foreclosure, they are insolvent by $200,000. Cancellation of a $200,000 debt reduces insolvency to zero; the entire cancellation may be excluded from income.
However, the insolvency exception is limited. It reduces tax attributes (like net operating loss carryforwards, capital-loss carryforwards, and basis in property) rather than creating a true exclusion. If the insolvency exception is used to exclude COD income, the borrower must reduce their tax basis in real estate and other assets by the excluded amount, potentially creating future tax liability. The primary-residence exclusion under Section 108(a)(1)(E) is often preferable because it does not require such adjustments.
Reporting and documentation
The lender reports the cancellation-of-debt income on Form 1099-C, issued in the year of foreclosure. The borrower reports this income and any applicable exclusions on their tax return. If the borrower disputes the amount or believes an exclusion applies, they must substantiate it with documentation: proof of purchase date, basis, improvements, tenure as primary residence, and the loan purpose.
For capital gains or losses from the deemed sale, the borrower reports the transaction on Schedule D. If a deficiency judgment is later forgiven, the borrower receives an additional Form 1099-C (or 1099-A if it is a mortgage) and reports that COD income as well.
Foreclosure on investment real estate
Rental and commercial properties face the same COD and deemed-sale mechanics but without the $250,000 primary-residence exclusion. A rental property foreclosed with a $300,000 shortfall generates $300,000 of COD income, reportable in full. This can create a substantial tax liability for landlords already experiencing rental-market downturns. Some investors facing foreclosure on investment properties have sought relief through bankruptcy, where the tax liability on COD income may be discharged or modified.
See also
Closely related
- Capital-gains-tax-investor — preferential rates on real-estate gains and losses
- Depreciation-recapture-investor — 25% tax on depreciation deducted on investment property
- Property-tax-deduction-rental-vs-primary — primary vs. investment real-estate taxation
- Like-kind-exchange-related-party-rules — deferral of gains in real-property exchanges (not available for foreclosure)
- Seller-financing-tax-treatment — alternative exit scenarios for distressed property
- Residential-real-estate — home ownership and taxation overview
Wider context
- Debt-financing — tax treatment of borrowed funds and loan forgiveness
- Schedule D — capital gains and losses reporting
- Form 1099-C — reporting cancellation-of-debt income
- Bankruptcy — debt discharge and tax implications