Depreciation Recapture and Rental Sale Tax Calculator
TL;DR: Selling a rental splits your gain in two. The part equal to depreciation is unrecaptured Section 1250 gain, taxed at your ordinary rate but no more than 25%. The rest is long-term capital gain at 0%, 15% or 20%. The 3.8% NIIT and state tax may apply on top. This calculator estimates each piece.
Educational only, not tax, legal, or investment advice. Examples are illustrations, not predictions. Rules and limits change; verify current figures and talk to a qualified professional about your situation.
Depreciation lowers your taxes every year you own a rental, then sends part of the bill when you sell. Knowing the exit tax before you list the property helps you decide between selling, a 1031 exchange, or holding. Enter your numbers below; the explanation follows.
CPA Warning Label: Depreciation "allowable" reduces basis even if you never claimed it. Suspended passive losses, installment sales, 1031 exchanges, Section 121 exclusions and AMT are not modeled.
How the calculation works
- Adjusted basis = original cost (land and building) + capital improvements - depreciation allowed or allowable (IRS Publication 544 and Publication 551).
- Amount realized = sale price - selling costs. Gain = amount realized - adjusted basis.
- Unrecaptured Section 1250 gain is the smaller of total gain or depreciation taken. It is taxed at your ordinary rate, capped at 25% (IRS Topic 409).
- Remaining gain is long-term capital gain if you held over a year. For 2026, the 0% rate applies up to $98,900 of taxable income for joint filers and $49,450 for single filers, and 15% up to $613,700 joint and $545,500 single, with 20% above (Rev. Proc. 2025-32). Pick the rate that fits your taxable income; a large gain can straddle brackets.
- NIIT of 3.8% applies to the gain if modified AGI exceeds $200,000 single or $250,000 joint, unless the rental is a trade or business in which you materially participate or qualify as a real estate professional. Those thresholds are not inflation-indexed.
- State tax is a flat rate on the gain here; real state rules vary.
Illustration
Illustration: Default inputs: sale price $400,000; selling costs $24,000; original basis $250,000; improvements $20,000; depreciation $60,000; 24% bracket; 15% capital gains; no NIIT; 5% state.
- Adjusted basis: $250,000 + $20,000 - $60,000 = $210,000.
- Amount realized: $376,000. Gain: $166,000.
- Unrecaptured 1250 gain: $60,000 at 24% = $14,400.
- Remaining capital gain: $106,000 at 15% = $15,900.
- State: $166,000 x 5% = $8,300.
- Total: $38,600. Cash after tax before paying off the mortgage: $337,400.
If the sale price were $235,000, the gain would be just $1,000, all of it unrecaptured 1250 gain, and the capital gain portion would be zero.
Limits of this estimate
The calculator applies one rate to each layer of gain. In reality, a large sale can push you through several brackets, and the gain itself raises your taxable income, which can move part of it from 0% to 15% or 15% to 20%. It does not model suspended passive losses, Section 1245 recapture on personal property from a cost segregation study (taxed as ordinary income), the Section 121 exclusion for a former home, AMT or state-specific rules. Treat the result as a planning range and confirm with a full return projection.
Allowed or allowable
Basis is reduced by depreciation you were entitled to take, even if you skipped it (Publication 544). Skipping depreciation does not avoid recapture; it just loses the deduction. If you missed years, a Form 3115 accounting method change can catch up the missed amount before you sell. See the catch-up depreciation guide.
Ways to reduce or defer the tax
- 1031 exchange: defers gain, including the depreciation portion, when you reinvest in like-kind real property (IRS like-kind exchange guidance).
- Installment sale: spreads capital gain over the years payments arrive, but depreciation recapture under Section 1245 is recognized in the year of sale; unrecaptured 1250 gain is taken first from payments (Publication 537).
- Suspended passive losses are freed on a fully taxable sale and offset ordinary income, which can make the effective rate much lower than this calculator shows.
- Low-income years: selling in a year with little other income may put more of the gain in the 0% bracket.
- Hold until death: heirs generally get a stepped-up basis, eliminating both the recapture and the gain. Estate rules, including the $15 million 2026 exclusion, are separate.
Each comes with its own requirements and audit risk; document basis, improvements and depreciation carefully.
FAQ
Is depreciation recapture always taxed at 25%?
No. Unrecaptured Section 1250 gain is taxed at your ordinary rate, but no higher than 25%. In the 10% or 12% bracket the rate is lower.
What if I never claimed depreciation?
Your basis is still reduced by the allowable amount, so you can owe tax on depreciation you never deducted. A Form 3115 can claim missed depreciation before the sale.
Does a 1031 exchange avoid recapture?
It defers it. The deferred gain, including depreciation, carries into the replacement property and comes due when that property is sold in a taxable sale.
Do selling costs reduce the gain?
Yes. Commissions, title fees, transfer taxes and similar costs of the sale reduce the amount realized, which lowers the total gain.
Does the net investment income tax apply to rental sales?
It can, if your modified AGI exceeds $200,000 single or $250,000 joint and the rental is not a trade or business in which you materially participate.
Sources & fact-check notes
- IRS Publication 544, Sales and Other Dispositions of Assets (accessed 2026-10-27)
- IRS Publication 551, Basis of Assets (accessed 2026-10-27)
- IRS Topic 409, Capital gains and losses (accessed 2026-10-27)
- IRS Rev. Proc. 2025-32 (2026 inflation adjustments) (accessed 2026-10-27)
- IRS Publication 537, Installment Sales (accessed 2026-10-27)
- IRS: Like-kind exchanges, real estate tax tips (accessed 2026-10-27)
- IRS Topic 559, Net investment income tax (accessed 2026-10-27)
Figures checked October 27, 2026. Rules and limits change; verify with the official source before acting.