What depreciation recapture is
Each year you own a rental, depreciation lowers your taxable income. It also lowers your basis in the property. When you sell, the gain is measured from that lower basis. The part of the gain that comes from past depreciation is taxed differently from the rest. That part is called depreciation recapture.
The rates
For the building itself, the gain from straight-line depreciation is called unrecaptured Section 1250 gain. It is taxed at your ordinary rate, but no higher than 25%. Personal property, such as appliances, carpet, furniture, and the 5 and 7 year parts found by a cost segregation study, is Section 1245 property. Its recapture is taxed at ordinary rates, up to 37%. Bonus depreciation on 15 year land improvements is also recaptured at ordinary rates to the extent it beat straight-line. Gain above all the depreciation is long-term capital gain, taxed at 0%, 15% or 20% for most sellers. High earners may also owe the 3.8% net investment income tax, and most states tax the gain too.
How this calculator works
It subtracts total depreciation from your original basis to get adjusted basis. It subtracts selling costs from the sale price to get the amount realized. The gain is the difference. The ordinary-rate slice comes out of the gain first, then unrecaptured 1250 gain, then long-term capital gain. Each slice is taxed at its own rate, and NIIT and state tax are added on the whole gain if you choose them.
With the defaults, a $550,000 sale with $33,000 of costs, a $400,000 basis, and $90,000 of depreciation gives a $207,000 gain. Of that, $90,000 is unrecaptured 1250 gain, taxed at 25% because the 32% rate is capped. That is $22,500. The other $117,000 is long-term gain at 15%, or $17,550. The total is $40,050.
Worked example: a sale after a cost segregation study
This is an illustration, not a forecast. Take the same $400,000 property, but a cost segregation study and bonus depreciation brought total depreciation to $180,000 by the sale. Of that, $75,000 was on 5 and 7 year parts. The seller is in the 32% bracket, owes NIIT, and lives in a state with no income tax.
Adjusted basis is $400,000 minus $180,000, or $220,000. The amount realized is $550,000 minus $33,000, or $517,000. The gain is $297,000. The first $75,000 is Section 1245 recapture at 32%, which is $24,000. The next $105,000 is unrecaptured 1250 gain at 25%, which is $26,250. The last $117,000 is long-term gain at 15%, which is $17,550. NIIT at 3.8% of $297,000 adds $11,286. The total is $79,086, about 26.6% of the gain.
The study did not lose money here. It moved deductions into the early years, when the seller used them at 32% or more. The sale gives much of that back. That is why a study fits best when you plan to hold for years, exchange, or keep the property for heirs.
Where to find your numbers
Total depreciation is on your past Form 4562 filings and your preparer's depreciation schedule. If you had a cost segregation study, the report lists each asset class, so you can add up the 5 and 7 year parts. Original basis is the purchase price plus closing costs and later improvements, including the land. Report the sale on Form 4797.
Ways investors plan for it
A 1031 exchange into another investment property can defer both recapture and capital gain. Holding the property until death can step up the basis for heirs under current law. Selling in a lower-income year can lower the rates. Each path has rules, so model the options before you list.