2026-03-10 · CalcBee Team · 11 min read
1031 Exchange Math: Defer Capital Gains and Grow Your Portfolio
A 1031 exchange is the most powerful tax deferral tool available to real estate investors. Named after Section 1031 of the Internal Revenue Code, it allows you to sell an investment property and reinvest the proceeds into a "like-kind" replacement property — deferring all capital gains taxes that would otherwise be due at closing.
For investors in high tax brackets, this can mean deferring $50,000 to $200,000 or more on a single transaction. Over a lifetime of exchanges, some investors defer millions in taxes, using that capital to acquire increasingly valuable properties and build generational wealth.
But 1031 exchanges have strict rules, tight timelines, and mathematical requirements that trip up even experienced investors. This guide breaks down every calculation you need to understand, with real numbers and practical examples.
How a 1031 Exchange Works: The Basics
In a standard sale, you'd pay capital gains tax on the profit:
Capital Gains Tax = (Sale Price − Adjusted Basis) × Tax Rate
Your adjusted basis is the original purchase price plus capital improvements, minus accumulated depreciation. For long-term capital gains (properties held over one year), the federal tax rate is 0%, 15%, or 20% depending on income, plus a potential 3.8% Net Investment Income Tax (NIIT) and state taxes.
In a 1031 exchange, you defer that entire tax bill by following these rules:
- Like-kind property — both the relinquished (sold) and replacement (purchased) properties must be held for investment or business use (not personal residences)
- Qualified intermediary — a third-party QI must hold the sale proceeds; you can never take possession of the funds
- Equal or greater value — the replacement property must be equal to or greater in value than the relinquished property
- All equity reinvested — you must reinvest all of the net equity from the sale
- Equal or greater debt — the new mortgage must be equal to or greater than the old mortgage (or you make up the difference with cash)
- Strict timelines — 45 days to identify, 180 days to close
The Timeline: 45 Days and 180 Days
The two most critical deadlines in a 1031 exchange are absolute and non-negotiable:
| Milestone | Deadline | What Happens |
|---|---|---|
| Sale closes (Day 0) | — | Clock starts; QI receives proceeds |
| Identification period | Day 45 | Must identify replacement property(ies) in writing |
| Exchange period | Day 180 | Must close on replacement property |
Identification Rules
You have three options for how many replacement properties you can identify:
| Rule | Description | Limit |
|---|---|---|
| 3-Property Rule | Identify up to 3 properties | No value limit |
| 200% Rule | Identify any number of properties | Combined FMV ≤ 200% of relinquished property |
| 95% Rule | Identify any number of properties | Must acquire 95% of total identified value |
Most investors use the 3-Property Rule for its simplicity. If you sold a property for $500,000, you could identify three potential replacements without any value cap — but you must close on at least one of the three within 180 days.
Understanding "Boot" (And How It Triggers Taxes)
"Boot" is the technical term for anything you receive in a 1031 exchange that isn't like-kind property. Boot is taxable. There are two types:
Cash Boot
If you receive any cash from the exchange — because the replacement property costs less than the relinquished property, for example — that cash is boot and triggers capital gains tax.
Mortgage Boot
If your new mortgage is smaller than your old mortgage, the difference is treated as boot unless you compensate with additional cash.
Mortgage Boot = Old Mortgage − New Mortgage
Let's work through a detailed example:
Example: Calculating Boot
You sell a rental property:
| Relinquished Property | Amount |
|---|---|
| Sale price | $600,000 |
| Existing mortgage payoff | $250,000 |
| Selling costs | $36,000 |
| Net equity to QI | $314,000 |
You purchase a replacement property:
| Replacement Property | Amount |
|---|---|
| Purchase price | $550,000 |
| New mortgage | $280,000 |
| Cash from QI used | $270,000 |
| Remaining cash with QI | $44,000 |
Analysis of boot:
Cash boot: $314,000 − $270,000 = $44,000 in cash boot
Mortgage boot: The new mortgage ($280,000) exceeds the old mortgage ($250,000), so there is $0 in mortgage boot.
Total taxable boot: $44,000
If your combined federal and state capital gains rate is 25%, you'd owe $11,000 in taxes on that boot — far less than the full tax bill you'd face without the exchange, but still a significant cost.
Use our 1031 exchange boot calculator to model different replacement property prices and mortgage amounts to find the structure that minimizes or eliminates boot.
Full 1031 Exchange Walkthrough: Zero Boot
Here's how to structure an exchange with zero taxable boot — the gold standard:
Scenario: Trading Up
You sell a single-family rental for $450,000 and want to exchange into a small apartment building.
| Step | Detail |
|---|---|
| Sale price (relinquished) | $450,000 |
| Existing mortgage | $180,000 |
| Selling costs (8%) | $36,000 |
| Net equity | $234,000 |
| Replacement property price | $750,000 |
| New mortgage | $516,000 |
| Cash from QI applied | $234,000 |
Boot analysis:
- Cash boot: $0 (all equity reinvested)
- Mortgage boot: New debt ($516,000) > old debt ($180,000), so $0
- Total boot: $0 — fully tax-deferred!
Tax savings: If the gain on the relinquished property was $180,000 and the combined tax rate is 28.8% (20% federal + 3.8% NIIT + 5% state), the deferred tax is:
$180,000 × 28.8% = $51,840 deferred
That $51,840 stays invested and working for you in the new property instead of going to the IRS. Over 10 years at a modest 7% return, that deferred tax grows to over $100,000 in additional wealth.
Depreciation Recapture: The Hidden Tax Factor
When you sell a rental property, you don't just owe capital gains on the appreciation. You also owe depreciation recapture tax on all the depreciation you've claimed (or could have claimed) during ownership.
Depreciation recapture is taxed at a flat 25% federal rate — higher than the standard long-term capital gains rate.
Example: Depreciation Recapture
| Item | Amount |
|---|---|
| Original purchase price | $300,000 |
| Land value (not depreciable) | $60,000 |
| Depreciable basis | $240,000 |
| Annual depreciation (÷ 27.5 years) | $8,727 |
| Years owned | 8 |
| Total depreciation claimed | $69,818 |
| Sale price | $450,000 |
| Adjusted basis ($300,000 − $69,818) | $230,182 |
| Total gain | $219,818 |
| Depreciation recapture portion | $69,818 × 25% = $17,455 |
| Capital gains portion | $150,000 × 20% = $30,000 |
| NIIT (3.8%) | $219,818 × 3.8% = $8,353 |
| Total tax without 1031 | $55,808 |
A proper 1031 exchange defers all of this — both the capital gains and the depreciation recapture. However, the depreciation recapture obligation carries forward to the replacement property. Eventually, when you sell without exchanging, you'll owe recapture on all accumulated depreciation across every exchanged property.
Many investors solve this through a strategy called "swap 'til you drop" — continuing 1031 exchanges until death, at which point heirs receive a stepped-up basis and all deferred taxes are permanently eliminated.
Advanced Strategies: Reverse and Improvement Exchanges
Reverse 1031 Exchange
What if you find the perfect replacement property before you've sold your current one? A reverse exchange allows you to acquire the replacement first, then sell the relinquished property within 180 days.
Reverse exchanges are more complex and expensive (QI fees typically run $5,000–$15,000 vs. $750–$1,500 for a standard exchange), but they eliminate the risk of losing your target property during the identification period.
Improvement Exchange (Build-to-Suit)
An improvement exchange allows you to use exchange funds to renovate or construct improvements on the replacement property before closing. This is powerful when you find a property that needs significant work — the improvements increase the property's value and help you meet the "equal or greater value" requirement.
The QI takes title through an Exchange Accommodation Titleholder (EAT), improvements are made, and you close on the improved property within 180 days.
What Happens to Your Cost Basis After a 1031 Exchange?
Your replacement property's tax basis isn't the purchase price — it's the carryover basis from the relinquished property, adjusted for any boot paid or received.
New Basis = Old Adjusted Basis + Boot Paid − Boot Received + Exchange Expenses
Using our zero-boot example above:
- Old adjusted basis: $230,182
- Boot paid: $0
- Boot received: $0
- Exchange expenses: $36,000
New Basis = $230,182 + $0 − $0 + $36,000 = $266,182
Even though you paid $750,000 for the replacement property, your depreciable basis is only $266,182. This means lower annual depreciation deductions going forward — the trade-off for deferring the capital gains.
To model how different exchange structures affect your capital gains outcome, use our capital gains home sale calculator.
Common 1031 Exchange Mistakes
- Missing the 45-day identification deadline — even one day late invalidates the entire exchange
- Touching the money — if proceeds pass through your bank account even briefly, it's a failed exchange
- Using a related party as QI — your attorney, CPA, or real estate agent cannot serve as your qualified intermediary
- Exchanging personal property — your primary residence doesn't qualify (vacation homes may, with restrictions)
- Failing to reinvest all equity — leaving $10,000 with the QI creates $10,000 of taxable boot
- Not accounting for mortgage boot — downsizing your mortgage without adding cash creates a tax bill
Key Takeaways
The 1031 exchange is the closest thing to a legal cheat code in real estate investing. When executed properly:
- All capital gains and depreciation recapture taxes are deferred — potentially forever
- Your full equity stays invested — compounding across increasingly valuable properties
- You can trade up — from single-family to multifamily, from residential to commercial
- Boot must be zero — reinvest all equity and maintain equal or greater debt
- Timelines are absolute — 45 days to identify, 180 days to close, no exceptions
Start modeling your next exchange with our 1031 exchange boot calculator to find the replacement property structure that keeps every dollar working for you.
Category: Real Estate
Tags: 1031 exchange, Capital gains, Tax deferral, Real estate investing, Like Kind exchange, Boot calculation, Investment property, Tax strategy