Florida real estate investors who used a 1031 exchange to defer capital gains face a particularly painful surprise when their replacement property heads toward foreclosure: the deferred gain they worked so hard to shelter comes back -- often with interest, penalties, and additional cancellation of debt income on top. Understanding how foreclosure unwinds a 1031 exchange is essential before you run out of time to act.
This guide covers how foreclosure triggers deferred 1031 exchange gains, how the tax is calculated, what options remain before the sale, and why a strategic exit before foreclosure almost always produces a better outcome than letting the lender take the property.
What Is a 1031 Exchange and Why Does Foreclosure Unwind It?
Under IRC Section 1031, a real estate investor can sell an investment property (the "relinquished property") and defer capital gains taxes by reinvesting the proceeds in a like-kind replacement property within strict deadlines: 45 days to identify the replacement and 180 days to close. The deferred gain is not eliminated -- it is carried forward through a lower adjusted basis in the replacement property.
When that replacement property is subsequently disposed of -- whether by sale, gift, or foreclosure -- the deferred gain is recognized and becomes taxable. The IRS treats foreclosure as a taxable disposition under IRC 1001. There is no exception for involuntary transfers through foreclosure.
How Foreclosure Triggers Deferred 1031 Exchange Gains
The tax impact works through your adjusted basis. In a 1031 exchange, your basis in the replacement property carries over from the relinquished property (reduced by any boot received and adjusted for depreciation taken on both properties). This carry-over basis is often far below the replacement property's actual value -- that is the entire point of the exchange, to defer the gain.
When the lender forecloses, the amount realized typically equals the outstanding debt that is discharged. The recognized gain is:
| Component | Description |
|---|---|
| Amount Realized | Outstanding loan balance discharged + any other consideration |
| Minus Adjusted Basis | Carry-over basis from original exchange (low due to prior gain deferral) |
| Recognized Gain | Amount realized minus adjusted basis = taxable gain |
| Depreciation Recapture | Prior depreciation deductions recaptured at up to 25% rate (IRC 1250) |
| Cancellation of Debt Income | If loan balance exceeds property FMV at sale, COD income is recognized separately |
A Concrete Example of the Tax Impact
Suppose an investor did a 1031 exchange five years ago. The relinquished property sold for $600,000 with an original cost basis of $200,000, producing a $400,000 deferred gain. The replacement property was purchased for $750,000. After depreciation taken over five years, the adjusted basis is now $170,000.
The replacement property is now in foreclosure. The outstanding loan balance is $680,000 and the property's fair market value is $620,000. The lender forecloses and bids in at $620,000 (the FMV).
- Amount realized: $620,000 (FMV bid-in by lender)
- Adjusted basis: $170,000
- Recognized gain: $450,000 (includes the prior $400,000 deferred gain plus $50,000 additional appreciation, less the depreciation recapture adjustment)
- Cancellation of debt income: $60,000 (loan balance $680,000 minus FMV $620,000 -- subject to insolvency exclusion if available)
This investor could face federal tax on $450,000+ in gain plus $60,000 in COD income -- a combined tax liability potentially exceeding $100,000 depending on their overall tax situation, filing status, and applicable rates.
Investment Property and the Mortgage Forgiveness Debt Relief Act
The Mortgage Forgiveness Debt Relief Act (MFDRA) exclusion applies only to debt discharged on a principal residence -- not on investment property, rental property, vacation homes, or commercial real estate. Florida investors whose replacement property is not their primary home have no MFDRA protection.
The only available exclusions for COD income on investment property are:
- Insolvency exclusion (IRC 108(a)(1)(B)): COD income is excluded to the extent total liabilities exceed total asset fair market values immediately before the foreclosure. File IRS Form 982. This does not protect recognized capital gains.
- Bankruptcy exclusion (IRC 108(a)(1)(A)): Applies if the debt discharge occurs in a Title 11 bankruptcy case. Capital gains recognized in the tax year of the foreclosure generally remain taxable.
Options Before the Foreclosure Sale
Acting before the foreclosure sale almost always produces better outcomes than waiting. Key options for investment property owners with 1031 exchange exposure:
Pre-Foreclosure Sale
A pre-foreclosure sale keeps you in control of the transaction. You can coordinate the closing date with your tax advisor, evaluate whether any partial installment sale election under IRC 453 applies, and negotiate a deficiency waiver with the lender in writing to avoid COD income. A voluntary sale also gives you time to plan for the tax liability -- opening a self-directed IRA, making estimated tax payments, or pursuing other strategies.
Short Sale with Deficiency Waiver
A short sale when the property is underwater can eliminate or reduce COD income if the lender grants a written deficiency waiver. The short sale does not avoid recognizing the 1031 carry-over gain, but it eliminates the additional COD income layer and lets you control the disposition.
Chapter 11 Bankruptcy for Investment Entities
If the investment property is held in an LLC or other entity, Chapter 11 reorganization may allow restructuring of the debt to avoid foreclosure entirely. Chapter 11 can also create the bankruptcy exclusion for COD income under IRC 108, though recognized capital gains remain taxable. Consult a bankruptcy attorney before pursuing this path.
Negotiate Loan Modification
CFPB Regulation X loss mitigation protections under 12 CFR 1024.41 apply only to principal dwellings -- not to investment or commercial property. However, lenders can still offer voluntary loan modifications on investment properties. Demonstrating that the property generates income supporting modified payments strengthens the negotiating position significantly.
Depreciation Recapture in the Foreclosure Year
Investment property owners who took depreciation deductions -- including accelerated depreciation through cost segregation studies -- must recognize depreciation recapture in the year of foreclosure. Unrecaptured Section 1250 gain is taxed at a maximum rate of 25% under current law, rather than the lower long-term capital gains rate. In a 1031 exchange, depreciation from both the original and replacement property stacks up against you on disposition.
Working with a CPA or tax attorney before the foreclosure sale is not optional -- it is essential. The interplay of carry-over basis, accumulated depreciation, COD income, and deferred gain creates a tax liability calculation that requires professional analysis of your specific situation.
What Barrett Henry Can Do for Florida Investment Property Owners
Barrett Henry is a Broker Associate at REMAX Collective with more than 23 years of Florida real estate experience. Barrett works with investment property owners across all 67 Florida counties, connecting them with experienced real estate professionals and coordinating pre-foreclosure sale strategies that preserve time for tax planning. Tampa Bay area investors receive direct service; investors statewide receive referral partnerships in their local market.
A free consultation with Barrett can help you understand your timeline, evaluate whether a pre-foreclosure sale or short sale is feasible, and connect you with a tax professional who handles investment property foreclosure matters -- before the lender controls the outcome.
Internal Links: Related Topics
- Commercial real estate foreclosure -- How Florida judicial foreclosure applies to investment and commercial property.
- LLC-owned property foreclosure -- Special considerations when the investment property is held in a limited liability company.
- Short sale tax consequences -- How cancelled debt from a short sale is taxed for principal residence vs. investment property.
- Deed in lieu tax consequences -- Tax treatment of a voluntary deed transfer as an alternative to foreclosure.
- Retirement accounts and deficiency -- Which assets are protected from deficiency judgment collection after investment property foreclosure.
- Florida deficiency judgments -- How the one-year filing window and FMV cap work after an investment property foreclosure sale.
Facing foreclosure on a Florida investment property? Contact us today for a free consultation -- no cost, no obligation. We help investors across all 67 Florida counties.

