1031 Exchange Calculator
A 1031 exchange lets you sell an investment property and reinvest into a like-kind one while deferring the capital gains tax and depreciation recapture. This calculator estimates your taxable gain and the total tax you could defer — federal, recapture, state and the 3.8% NIIT.
Use this 1031 exchange calculator to see how much tax a like-kind exchange could postpone when you sell a rental or investment property. Enter your basis, the sale, and your tax rates, and it works out the adjusted basis, the total gain, and the combined tax — capital gains, depreciation recapture and state — that a properly structured 1031 exchange defers.
Enter your original cost, depreciation, sale price and tax rates, then press Calculate to see the gain and the tax you could defer.
How the 1031 exchange calculator works
When you sell a rental for more than its depreciated cost, two taxes come due: capital gains tax on the appreciation and depreciation recapture on the write-offs you claimed along the way. A 1031 exchange — a “like-kind” exchange under Section 1031 of the tax code — lets you roll the proceeds into another investment property and postpone both. This calculator estimates what that postponed bill would be, so you can see the value of the deferral before you commit to an exchange.
It works in the natural order the tax follows. First it finds your adjusted basis — original price plus improvements, minus the depreciation you deducted. Then it subtracts that basis from the net sale price to get your total gain. Finally it splits the gain into the part taxed as depreciation recapture (up to 25%) and the part taxed at your capital gains rate, adds any state tax and the 3.8% net investment income tax, and totals the result — the tax a properly structured exchange defers. If you would rather see the bill on an outright sale, the capital gains tax calculator covers that case.
The 1031 deferral formulas
- Recapture tax — depreciation taken × 25% (capped at the gain)
- Capital gains tax — remaining gain × your federal rate
- State tax — total gain × state rate
- NIIT — total gain × 3.8%, if it applies
Boot: how to defer the full amount
To defer the entire tax, a 1031 exchange generally has to be complete: you reinvest all of the net proceeds into the replacement property and take on at least as much debt as you paid off. Anything you keep back — cash in your pocket, or a mortgage that shrinks and is not replaced — is called boot, and boot is taxable up to the size of your gain. Trade “up or equal” in both value and debt and there is no boot; trade down and you pay tax on the difference. Because this calculator estimates the full gain, it shows the maximum tax at stake if you did not exchange at all.
The rules that make or break an exchange
A 1031 exchange is powerful but unforgiving on process. The properties must be like-kind investment or business real estate — not your home or a quick flip. A qualified intermediary must hold the sale proceeds; if the money touches your hands, the exchange fails. And two clocks start the day you close: 45 days to formally identify replacement candidates and 180 days to close on one, running together and almost never extended. Miss a step and the whole deferral collapses, so exchanges are planned well in advance with professionals in place.
Types of 1031 exchange (and what does not qualify)
Most exchanges are a delayed exchange: you sell first, then a qualified intermediary holds the cash while you find and close on the replacement inside the 45- and 180-day windows. Two variations solve specific problems. A reverse exchange flips the order — you buy the replacement first (parked with an accommodation titleholder) and sell the old property afterward, handy in a competitive market, though it is costlier and the same clocks apply. A partial exchange reinvests only some of the proceeds; the part you keep is taxable boot, but you still defer tax on the rest. What does not qualify matters just as much: your primary residence, a property held mainly to flip, and (since 2018) anything other than real property. Like-kind is read broadly for real estate — an apartment building can be exchanged for raw land or a retail unit — as long as both are held for investment or business use.
Estimate only — not tax or legal advice. This is a simplified model using flat rates; it does not reflect your full income, brackets, partial exchanges or state-specific rules. Use a qualified intermediary and a tax professional before relying on it.
How to use it & key terms
Enter your original cost, improvements, depreciation, sale price and selling costs, choose your tax rates, then press Calculate to see the adjusted basis, gain and the total tax you could defer.
| Term | What it means |
|---|---|
| 1031 exchange | A like-kind swap of investment property that defers tax on the gain. |
| Adjusted basis | Purchase price plus improvements, minus depreciation taken. |
| Depreciation recapture | Tax (up to 25%) on the depreciation you deducted while owning. |
| Capital gain | The remaining gain, taxed at your long-term capital gains rate. |
| Boot | Cash or debt relief you keep — taxable up to the gain. |
| Qualified intermediary | The third party who must hold the proceeds during the exchange. |
Sources & methodology
The calculator estimates the deferred tax by computing the adjusted basis (original price plus capital improvements minus depreciation), subtracting it from the net sale price (sale minus selling costs) for the total gain, then taxing the depreciation portion as unrecaptured Section 1250 gain at 25% (capped at the gain), the remainder at the chosen federal long-term capital gains rate, plus a flat state rate on the gain and, optionally, the 3.8% net investment income tax. It is a simplified flat-rate model and does not account for income brackets, partial exchanges or state-specific conformity.
Sources: IRS Section 1031 like-kind exchange rules, unrecaptured Section 1250 depreciation recapture (max 25%), long-term capital gains rates (0/15/20%) and the 3.8% net investment income tax.
Is a 1031 exchange worth it? Weighing the trade-offs
A 1031 exchange is not automatic, and the first real decision is whether to do one at all. The investors who face it are usually landlords trading up from a starter rental to a larger building, owners consolidating several small properties into one, or people tired of active management who want something more passive. For all of them the appeal is the same: keep the money that would otherwise go to tax working inside the next property rather than handing a slice to the government today. But the benefit is a deferral, not a gift — the gain rides along on a lower basis into the replacement, waiting to be taxed later, so it is a planning move rather than a reflex. The size of the deferral shown above is only worth capturing if the rest of the deal stands up on its own.
That is why the sharper question is not “how much can I defer?” but “is the replacement worth buying on its own merits?” The strict 45-day identification and 180-day closing clocks create real pressure, and in a competitive market that pressure can push people into a mediocre property just to avoid the tax bill — letting the tax tail wag the dog. Because the money must pass through a qualified intermediary and never your own hands, the logistics have to be arranged before you close the sale, not after. There is also the trade-down trap: if the replacement costs less, or carries less debt than you paid off, the shortfall becomes taxable boot and quietly shrinks the benefit you were chasing.
When does it clearly make sense? When you already have a stronger property in view, when the deferred tax is large relative to the deal, and when you intend to keep building. Because exchanges can be chained for years and heirs may receive a stepped-up basis, a disciplined investor can defer for a lifetime — the “swap till you drop” idea. If instead you want to cash out, simplify, or move into a different asset class entirely, paying the tax now and sizing the bill with the capital gains tax calculator may be the cleaner path. The exchange is a powerful tool, but only when the next property is one you genuinely want to own — there is no prize for deferring tax on a deal you would not otherwise do, so treat the deferral figure here as one input in the decision rather than the answer to it.
Frequently asked questions
What is a 1031 exchange?
Named after Section 1031 of the US tax code, it lets you sell an investment or business property and reinvest into a like-kind property while deferring the capital gains tax and depreciation recapture you would otherwise owe. The tax is postponed, not erased.
How much tax does a 1031 exchange defer?
It defers the entire tax due on the sale: federal capital gains on the appreciation, depreciation recapture (up to 25%), any state income tax, and the 3.8% net investment income tax if it applies. This calculator adds those together.
What is depreciation recapture?
While you own a rental you deduct depreciation, which lowers your income and your basis. On sale, the IRS taxes that benefit back — the unrecaptured Section 1250 gain — at up to 25%. A 1031 exchange defers this along with the capital gain.
What is boot in a 1031 exchange?
Boot is any non-like-kind value you receive — cash you keep or debt that shrinks and is not replaced. It is taxable up to your gain, so to defer the full tax you generally reinvest all proceeds and replace at least as much debt.
What are the 1031 exchange deadlines?
Two strict clocks start at closing: 45 days to identify replacement properties in writing, and 180 days to close on one. They run together, are rarely extended, and a qualified intermediary must hold the proceeds — you cannot take the cash.
What is adjusted basis?
Original purchase price plus capital improvements, minus depreciation claimed. Gain equals the net sale price minus this basis. Because depreciation lowers the basis, it raises the taxable gain when you sell.
Is the deferred tax ever eliminated?
A 1031 defers rather than eliminates tax, but you can chain exchanges for years. Hold the final property until death and heirs may get a stepped-up basis that wipes out the deferred gain. Tax law can change — confirm with a professional.
Does a 1031 exchange defer state tax too?
Usually, at the federal level and in most conforming states, so the calculator includes a state rate. A few states have clawback or reporting rules for exchanges into out-of-state property, so check your state and confirm with an advisor.
Is this 1031 calculator tax advice?
No. It is a simplified estimate applying flat rates to your gain, ignoring your full income, brackets, partial exchanges and state-specific rules. A 1031 exchange has strict requirements — use a qualified intermediary and a tax professional.
Can you do a 1031 exchange on a primary residence?
No. A 1031 exchange only applies to property held for investment or business use, not the home you live in. A primary residence instead uses the Section 121 exclusion, which can shelter up to $250,000 of gain for a single filer or $500,000 for a married couple. Converting a rental into a residence (or the reverse) has extra rules, including a five-year ownership test, so get tax advice first.
What is a reverse 1031 exchange?
You buy the replacement property before selling the one you are giving up. Because you cannot hold title to both at once, an exchange accommodation titleholder parks one property for you. It helps when you find the right replacement first, but it is more complex and costly, and the same 45-day and 180-day deadlines still apply.
What is a partial 1031 exchange?
A partial exchange reinvests only some of the proceeds and keeps the rest. The portion you take out — cash or debt relief — is taxable boot, but you still defer tax on the amount you reinvest. It lets you pull some money out of a sale while deferring tax on the remainder rather than all or nothing.
What is a 721 exchange (UPREIT)?
A 721 exchange (Section 721), also called an UPREIT, lets you contribute investment property into a REIT's operating partnership for operating-partnership units, deferring capital gains tax much like a 1031 — but it moves you from active ownership into a passive, diversified REIT interest. It is often used as a final exit after years of 1031 exchanges. Converting the units into REIT shares or cash later is generally taxable, so get tax advice.