1031 Exchange · Capital Gains · Tax Strategy

How a 1031 Exchange Works: Rules, Deadlines, and Tax Savings Explained

By Thao Nguyen, CPA  ·  Updated June 2026  ·  12 min read

When you sell a rental property, the IRS expects its share — capital gains tax, depreciation recapture, and potentially the Net Investment Income Tax. On a property with significant appreciation, that combined tax bill can easily reach 30–40% of your gain. A 1031 exchange lets you defer all of it by rolling your proceeds into a like-kind replacement property.

Done correctly, a 1031 exchange converts a large tax payment into continued investment capital. Done incorrectly, it fails entirely and the full tax bill comes due immediately.

Bottom line: A 1031 exchange defers capital gains tax, depreciation recapture, and NIIT by reinvesting sale proceeds into a like-kind replacement. You have 45 days to identify the replacement and 180 days to close. A Qualified Intermediary must hold all funds — touching the money yourself disqualifies the exchange.

The Tax You're Deferring

Tax ComponentRateApplies To
Long-term capital gains0%, 15%, or 20%Appreciation above adjusted basis
Depreciation recapture (§1250)25% maxAll building depreciation claimed over hold period
Net Investment Income Tax (NIIT)3.8%Gain if AGI exceeds $200K single / $250K married

Example: Investor sells with $200,000 gain and $80,000 accumulated depreciation. At a 20% capital gains rate, 25% recapture, and 3.8% NIIT, combined federal tax exceeds $75,000 — an amount that compounds significantly if deferred.

The 1031 Exchange Timeline

1

Before closing — Engage a Qualified Intermediary (QI)

Must be in place before you close on the sale. Cannot be your attorney, CPA, or anyone who acted as your agent within the past two years. QI fees typically $800–$1,500.

2

Day 0 — Close on the relinquished property

Exchange clock starts at closing. Proceeds go directly to the QI — never to you. Both deadlines run from this date.

3

Day 1–45 — Identify replacement property in writing

Identify potential replacements in writing to your QI by midnight of Day 45. Options: (a) 3-property rule — up to 3 properties regardless of value, or (b) 200% rule — any number as long as combined value ≤ 200% of sale price.

4

Day 46–180 — Close on the replacement property

Close on one or more identified properties by Day 180. QI transfers proceeds to closing. File a tax return extension if your return due date falls before Day 180.

DEADLINE WARNING: The 45-day identification deadline is ABSOLUTE. No extensions for weekends, holidays, illness, natural disasters, or financing delays. Miss Day 45 without a written identification and the entire exchange fails — the full tax becomes due immediately. Most experienced investors identify all 3 properties within the first 2 weeks.

DEADLINE WARNING: The 180-day closing deadline is equally absolute. Financing delays, title problems, and seller defaults are NOT grounds for extension. Always identify backup properties and build adequate contingency time into your purchase contracts.

Boot: When the Exchange Is Only Partial

ScenarioBoot CreatedTax Result
Equal/higher price, reinvest all equityNone100% deferred
Trade down to lower-priced propertyPrice differenceTaxable in year of exchange
Keep some cash proceedsCash receivedTaxable in year of exchange
Replace with lower mortgage balanceDebt reductionTaxable in year of exchange

Boot example — partial exchange

Investor sells for $500,000 with a $200,000 mortgage. Net equity = $300,000. Buys a $450,000 replacement with $200,000 cash + $250,000 mortgage, keeping $100,000 cash.

Basis Carryover in the Replacement Property

ItemAmount
Replacement property purchase price$600,000
Less: deferred gain from exchange($180,000)
= Carryover basis in replacement property$420,000
Annual depreciation (80% building ÷ 27.5)$420,000 × 80% ÷ 27.5 = $12,218/yr

The replacement is depreciated on its carryover basis — not its full purchase price. Annual deductions are smaller than on a fresh purchase. This is the cost of tax deferral.

Many investors chain 1031 exchanges throughout their career. At death, heirs receive a stepped-up basis under current law — potentially eliminating all accumulated deferred gain.

Reverse and Improvement Exchanges

Reverse exchange — buy first, sell later

Buy the replacement property first, then sell the relinquished property within 180 days. An Exchange Accommodation Titleholder (EAT) holds the replacement during the exchange period. More complex ($3,000–$6,000 extra cost), but solves the problem of finding the ideal replacement before selling.

Improvement (build-to-suit) exchange

Use exchange proceeds to fund improvements on the replacement before it is transferred to you. Improvements must be substantially completed before Day 180. Useful when the replacement requires renovation to meet your investment criteria.

Calculate Your 1031 Exchange Tax Savings Free

Enter your sale price, basis, and depreciation taken — see exactly how much tax a successful exchange defers and what your replacement property basis will be.

Use the Free 1031 Exchange Calculator →

Frequently Asked Questions

Can I do a 1031 exchange on my primary residence?

No. Section 1031 applies only to investment or business-use property. Converting a primary residence to a rental and holding it as a rental for 1–2 years may then qualify it for a 1031.

What happens if I miss the 45-day identification deadline?

The exchange fails completely. The entire gain is taxable in the year the relinquished property was sold — not the year you missed the deadline. No exceptions, no extensions, no cure. Most experienced investors identify properties within the first 2 weeks and use all 3 identification slots as backups.

What happens if I can't close by Day 180?

The exchange fails and the full deferred tax is due in the year of the original sale. Financing delays, seller defaults, and title problems are not grounds for extension. Always identify backup properties and build adequate contingency time into contracts.

Do I have to reinvest all the equity, or just the sale price?

Both. The replacement must equal or exceed in (1) purchase price AND (2) equity reinvested. Example: $400,000 sale, $150,000 payoff = $250,000 equity. You must reinvest all $250,000 AND buy a replacement worth at least $400,000.

Can I exchange into multiple replacement properties?

Yes. The 3-property rule allows identifying up to 3 properties and closing on one or more. Common for investors diversifying out of a single large asset into multiple smaller ones.

Can I combine a 1031 exchange with cost segregation?

Yes — one of the most powerful combinations available. After acquiring the replacement, commission a cost segregation study immediately. Accelerated deductions offset current income while the deferred gain continues compounding across multiple investment cycles.

Why These Calculations Matter

Tax calculators provide estimates only. Actual results depend on your filing status, income level, passive activity limitations, state tax rules, and other factors.

RealtyTaxTools was built by a licensed CPA to help investors understand common real estate tax calculations using IRS rules and publicly available guidance. For complex transactions — including 1031 exchanges, cost segregation studies, and depreciation recapture planning — always work with a qualified CPA and a licensed Qualified Intermediary.