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:

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):

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.

Interactive Calculators Paired with This Guide