Free calculators

1031 exchange calculator

The federal tax a straight sale would trigger, including depreciation recapture and the 3.8 per cent tax, and what deferring it through a like-kind exchange is worth in today’s money. Free, in the browser, no sign-up.

A 1031 exchange defers the federal tax on the sale of investment real estate; it does not cancel it. With the defaults below, a commercial property bought for $6,000,000 and sold ten years later for $9,000,000 has a gain of $3,960,769 and $1,004,202 of tax deferred. If the replacement is sold and the tax paid ten years later, the deferral is worth $493,716 today at a 7 per cent discount rate.

Calculate

Results, updated as you type. The defaults reproduce the worked case.
ResultValue
Depreciation taken1,230,769
Adjusted basis4,769,231
Gain on sale3,960,769
of which unrecaptured section 1250 gain1,230,769
Federal tax on a straight sale (deferred by the exchange)1,004,202
Present value of paying it later instead510,485
What the deferral is worth today493,716

Runs in your browser: nothing you type is sent anywhere.

Using this for a real deal?

The formula

Gain = sale price − selling costs − (purchase price − depreciation taken)

Tax = depreciation recaptured × up to 25% + rest of the gain × 20% + whole gain × 3.8%

Value of deferral = tax − tax / (1 + discount rate)years deferred

How it works

Depreciation lowers the basis, so the gain is larger than the rise in price, and the part that reverses the depreciation (unrecaptured section 1250 gain) is taxed at up to 25 per cent. The calculator assumes straight-line depreciation without the mid-month convention, a seller in the top federal brackets subject to the net investment income tax, and no state tax. It is an illustration, not tax advice.

2027 figures: the 20 per cent capital gains rate applies above $563,200 of taxable income for a single filer and $633,600 for a joint return; recapture stays capped at 25 per cent and NIIT at 3.8 per cent (Rev. Proc. 2026-35). Brackets and examples: capital gains tax brackets for 2027.

The replacement property inherits the old basis, so it depreciates less than a property bought with fresh cash. Counting that lost depreciation brings the default deferral’s value from $493,716 to about $385,833, as worked in the article.

Go further with the worked example, step by step and the companion files for Commercial Real Estate Investing.

Embed this calculator

Free to embed on your website, blog or intranet, with no sign-up and no tracking. Copy the code below and paste it into any HTML block; the calculator resizes itself to fit.

Preview the embedded version

Questions people ask

How much tax does a 1031 exchange defer?

All the federal tax a straight sale would have triggered: recapture of depreciation at up to 25 per cent, capital gains at up to 20 per cent and the 3.8 per cent net investment income tax. On the default property it is $1,004,202.

Does a 1031 exchange eliminate the tax?

No, it defers it until the replacement is sold, unless the property is held until death, when heirs generally receive a stepped-up basis. The benefit of deferral is the time value of the tax, $493,716 over ten years at 7 per cent here.

What is unrecaptured section 1250 gain?

The part of the gain on real property that reverses depreciation taken, taxed at a maximum 25 per cent rather than the 20 per cent capital gains rate. Here it is the $1,230,769 of depreciation.

The book behind this calculator

This calculator comes from Commercial Real Estate Investing by Julian R. Sterling, which works the same case in full, with every figure in a free workbook.

Get the book on Amazon → DRM-free PDF edition, $19.99

If this book helped, or didn’t, a few lines on Amazon are worth more than they look: they are what the next reader goes on. Write a review.

Not on Amazon: 10 paperbacks by Julian R. Sterling on tax and incentives, printed on demand and shipped worldwide. Browse the bookshop →

All free calculators → · Free Excel templates →