Free calculators

Depreciation recapture calculator

The tax on selling a rental or commercial building: depreciation taken, unrecaptured section 1250 gain at up to 25 per cent, the rest at capital gains rates and the 3.8 per cent tax. Free, in the browser, no sign-up.

When you sell depreciated real property, the part of the gain that reverses the depreciation taken is unrecaptured section 1250 gain, taxed at a maximum 25 per cent; the rest is long-term capital gain. With the defaults below, a building bought for $6,000,000 and sold ten years later for $9,000,000 has $1,230,769 of depreciation to recapture and $307,692 of tax on the recapture, in a total federal bill of $1,004,202.

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
Unrecaptured section 1250 gain (depreciation recaptured)1,230,769
Tax on the recapture307,692
Tax on the rest of the gain546,000
Net investment income tax150,509
Total federal tax on the sale1,004,202

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

Using this for a real deal?

The formula

Depreciation = building cost / recovery period × years held (straight line)

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

Recapture = MIN(depreciation, gain) at up to 25%; rest of the gain at the capital gains rate; NIIT on the whole gain

How it works

Unrecaptured section 1250 gain is taxed at your ordinary rate, but at no more than 25 per cent; the taxable part of the remaining gain at 0, 15 or 20 per cent; and sellers above the thresholds pay the 3.8 per cent net investment income tax on top. Land is not depreciated. The calculator uses straight-line depreciation without the mid-month convention and ignores state tax; personal property (section 1245) recaptured from a cost segregation study is taxed at ordinary rates and is not modelled. Sources: IRS Topic no. 409; IRS, Net investment income tax. 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; the 25 per cent ceiling on unrecaptured section 1250 gain and the 3.8 per cent NIIT thresholds do not change (Rev. Proc. 2026-35). If your income is lower, set the capital gains rate to 15. Brackets and examples: capital gains tax brackets for 2027.

Depreciation is recaptured whether or not you claimed it: the basis falls by the depreciation “allowed or allowable”. A 1031 exchange defers the whole bill; see the 1031 exchange calculator.

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 is depreciation recapture taxed on rental property?

The gain up to the depreciation taken is unrecaptured section 1250 gain, taxed at your ordinary rate but at no more than 25 per cent. In the default case $1,230,769 of depreciation costs $307,692.

Do I pay recapture if I did not claim depreciation?

Generally yes: the basis is reduced by the depreciation allowed or allowable, so the gain and the recapture are computed as if it had been claimed.

Can I avoid depreciation recapture?

A like-kind exchange under section 1031 defers it, and property held until death generally receives a stepped-up basis. Selling outright triggers it.

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 →