Real Estate & Mortgages • 13 min read • Updated October 2026
IRC Section 1031 Like-Kind Exchanges Explained: Timelines, Debt Replacement & Tax Deferral
Understand how real estate investors defer federal capital gains and 25% depreciation recapture taxes under IRC Section 1031, including strict 45/180-day rules and how to avoid taxable mortgage boot.
1. Why Selling an Appreciated Rental Property Triggers Four Separate Taxes
When a real estate investor sells an investment property that they have owned and depreciated for a decade or more, a conventional taxable sale triggers a surprisingly steep tax bill. Unlike a primary residence—which enjoys a $250,000 ($500,000 married filing jointly) capital gains exclusion under IRC Section 121—an investment property is subject to four stacked layers of taxation:
- Federal Long-Term Capital Gains Tax (15% or 20%): Assessed on the appreciation above your original purchase price plus capital improvements.
- IRC Section 1250 Depreciation Recapture Tax (Up to 25%): Every dollar of straight-line building depreciation (27.5 years residential; 39 years commercial) you claimed—or were allowed to claim—during ownership reduces your Adjusted Cost Basis and is recaptured at a maximum federal rate of 25% upon sale.
- Net Investment Income Tax / NIIT (3.8%): Enacted under IRC Section 1411, high-earning households with Modified Adjusted Gross Income above $200,000 ($250,000 married) pay an additional 3.8% Medicare surtax on net investment gains.
- State Income / Capital Gains Tax (0% to 13.3%): Depending on the state where the property and investor reside, state taxes take another substantial bite out of sale proceeds.
Combined, these four taxes routinely consume 28% to 38% of your net equity when you sell. Internal Revenue Code (IRC) Section 1031 allows investors to defer 100% of those taxes by rolling the entire proceeds into one or more "like-kind" replacement investment properties using our 1031 Exchange Tax Shield Calculator.
2. Adjusted Cost Basis, Realized Gain, and Taxable Boot Equations
To calculate the exact dollar amount of taxes deferred in a Section 1031 exchange—and to ensure you do not accidentally trigger partial taxation through "boot"—you must compute your Adjusted Cost Basis and compare the Relinquished Property against the Replacement Property:
Adjusted_Cost_Basis = Original_Purchase_Price + Capital_Improvements - Cumulative_Depreciation_Taken Net_Sales_Price = Contract_Sale_Price - Broker_Commissions - Title_And_Exchange_Closing_Fees Total_Realized_Gain = Net_Sales_Price - Adjusted_Cost_Basis Appreciation_Capital_Gain = Net_Sales_Price - (Original_Purchase_Price + Capital_Improvements) Depreciation_Recapture_Gain = Cumulative_Depreciation_Taken Cash_Boot_Received = Net_Cash_Proceeds_Not_Reinvested Mortgage_Boot (Debt_Relief) = Max(0, Old_Loan_Paid_Off - New_Loan_Or_Additional_Cash_Added) Total_Taxable_Boot = Cash_Boot_Received + Mortgage_Boot
To achieve 100% tax deferral (zero recognized gain), the investor must satisfy two ironclad financial rules: (1) the net purchase price of the Replacement Property must be equal to or greater than the net sales price of the Relinquished Property, and (2) 100% of the net equity cash proceeds must be reinvested, while replacing an equal or greater amount of mortgage debt (or offsetting any debt reduction with fresh out-of-pocket cash).
3. Worked Case Study: Selling a $750,000 Duplex after 10 Years
Suppose an investor bought a residential fourplex 10 years ago for $420,000 (allocated as $80,000 land value and $340,000 building structure), invested $30,000 in capital roof/HVAC improvements, claimed $123,636 in cumulative 27.5-year straight-line depreciation, and now sells the building for $750,000 with $45,000 in selling commissions/closing costs and a remaining mortgage payoff of $245,000:
| Tax & Equity Metric | Option A: Taxable Outright Sale | Option B: 1031 Exchange into $950K Property |
|---|---|---|
| Gross Sale Price / Net Sales Price (After $45K Fees) | $750,000 / $705,000 | $750,000 / $705,000 |
| Adjusted Cost Basis ($420K + $30K - $123.6K Depr.) | $326,364 | $326,364 (Carries Over to New Asset) |
| Total Realized Gain ($705,000 - $326,364) | $378,636 | $378,636 (100% Deferred) |
| 25% Federal Depreciation Recapture ($123,636 * 25%) | -$30,909 | $0 Paid at Closing |
| 20% Federal Cap Gains + 3.8% NIIT ($255K * 23.8%) | -$60,690 | $0 Paid at Closing |
| State Capital Gains Tax (Assumed 6.0% on $378.6K) | -$22,718 | $0 Paid at Closing |
| Total Tax Liability Triggered at Sale | -$114,317 Paid to IRS/State | $0 Taxes Paid ($114,317 Saved) |
| Net Equity Available to Reinvest | $345,683 | $460,000 (33% More Buying Power) |
By executing a Section 1031 exchange rather than cashing out, the investor preserves $114,317 in tax capital and deploys the full $460,000 net equity as a down payment on a $950,000 commercial or multifamily asset. At a 7.5% Cap Rate, keeping that $114,317 working in real estate generates an extra $8,573 per year in permanent annual Net Operating Income.
4. The Strict 45-Day Identification and 180-Day Closing Clocks
The Internal Revenue Service enforces Section 1031 procedural rules with zero flexibility—even if Day 45 or Day 180 falls on a weekend or federal holiday, there are no extensions (except for federally declared presidential disaster areas):
- Mandatory Qualified Intermediary (QI) Before Closing: You cannot touch the sale proceeds—even for five minutes. Before closing the sale of your Relinquished Property, you must execute an exchange agreement with an independent Qualified Intermediary (Accommodator) who holds the funds in a segregated escrow account. If the title company wires proceeds to your personal bank account, constructive receipt occurs and the exchange is immediately disqualified.
- The 45-Calendar-Day Identification Window: Starting on the exact calendar day your Relinquished Property closes, you have 45 calendar days to submit a signed, written identification notice to your Qualified Intermediary listing the specific street addresses of your candidate Replacement Properties. Most investors use the Three-Property Rule (identify up to 3 properties of any value) or the 200% Rule (identify 4+ properties whose combined fair market value does not exceed 200% of the sold property's value).
- The 180-Calendar-Day Closing Deadline: You must close on and take legal title to one or more of your identified Replacement Properties within 180 calendar days of the Relinquished Property sale (or the due date of your federal tax return, including extensions, whichever comes first). These two clocks run concurrently—meaning you have 135 days after Day 45 to complete closing.
5. What Qualifies as "Like-Kind" Real Property?
Since the Tax Cuts and Jobs Act of 2017, Section 1031 applies exclusively to real property held for productive use in a trade, business, or for investment within the United States. Fortunately, the definition of "like-kind" for real estate is remarkably broad: you can exchange a residential single-family rental house for a commercial retail strip center, raw agricultural land, an industrial warehouse, or a Delaware Statutory Trust (DST). Fix-and-flip properties held primarily for immediate resale ("dealer inventory") and personal primary residences do not qualify.