FREE · 501(c)(3) NONPROFIT · EDUCATION ONLY

Depreciation recapture calculator: what you will owe when you sell (2026)

By , founder, Retirement Literacy Foundation · Updated
Enrolled Agent, admitted to practice before the IRS.

Selling a rental or a commercial building? Enter what you paid, the depreciation taken and the sale price. See the recapture tax, taxed at up to 25%, and the rest of the bill.

1 · What you paid

If you exchanged into this property, the price of the replacement property.
Title, escrow, recording, transfer tax you paid to buy. Not loan fees.
Roof, additions, remodels. Not repairs.

2 · What lowered your basis

Total from every year’s Form 4562 / Schedule E. Enter it even if you never claimed it, because §1016(a)(2) lowers your basis by the depreciation you were allowed. If you exchanged into this property, include depreciation from the property you gave up; it carries over.
Don’t know it? Estimate it

§1245 property. Recaptured as ordinary income, not capped at 25%. Leave 0 if unsure.
The deferred gain carries in as a lower basis.
Both reduce basis (IRS Pub 551). Leave 0 if none.

3 · The sale

Commission + closing. 6% is typical.
Every loan secured by the property, including any cash-out refinance or HELOC.

4 · You

The example is a $1,400,000 rental bought for $500,000 with $180,000 of depreciation. Change any number and the result updates. 2026 rules.

ESTIMATED TOTAL TAX ON THE SALE

Key figures
Adjusted basis
Total gain
Unrecaptured §1250 gain (up to 25%)
Total estimated tax
Cash at closing after loan payoff
Cash left after tax
Your adjusted basis, line by line
Purchase price
+ Purchase closing costs
+ Capital improvements
− Depreciation (allowed or allowable) §1016(a)(2)
− Gain deferred from a prior 1031
− Casualty losses / insurance reimbursements
Adjusted basis §1011
Your gain
Sale price
− Selling costs
= Amount realized the loan is NOT subtracted (Reg. 1.1001-2)
− Adjusted basis
Total gain §1001(b)
  §1245 recapture (ordinary income)
  Unrecaptured §1250 gain (taxed up to 25%)
  Remaining long-term capital gain (0/15/20%)
The tax, layer by layer (2026)
§1245 recapture at ordinary rates
Unrecaptured §1250 gain
Capital gain at 0%
Capital gain at 15%
Capital gain at 20%
Net investment income tax 3.8% §1411
State income tax
Total estimated tax
Tax vs cash
Sale price
− Selling costs
− Loan payoff
Cash at closing
− Total estimated tax
Cash left after tax

Education, not tax advice. 2026 federal brackets. The 3.8% test uses modified AGI, estimated as your “other taxable income” plus the 2026 standard deduction ($16,100 single / $32,200 married) plus the gain. Unrecaptured §1250 gain is stacked on top of your other income and each slice taxed at the lower of its ordinary bracket or 25% (§1(h)(1)(E)); the remaining gain fills the 0/15/20% bands above that. Assumes the property was held more than a year, straight-line depreciation on the building, and that the 3.8% NIIT applies (it may not if you qualify as a real estate professional). No §121 home-sale exclusion, passive-loss carryforwards, AMT or state depreciation differences are modelled. Have a CPA confirm before you sign anything.

Audit trail / Sources

Every rule this calculator applies, and where it comes from. Rates are 2026 federal; state rates are the same table our capital gains calculator uses.

  1. IRC §1011: Adjusted basis is the starting point for gain or loss.
  2. IRC §1016(a)(2), Basis is reduced by depreciation “allowed or allowable”, claimed or not.
  3. IRC §1001(b): Gain = amount realized minus adjusted basis.
  4. Treas. Reg. §1.1001-2, Amount realized includes liabilities the seller is relieved of, debt does not reduce the gain.
  5. IRC §1(h)(1)(E) and §1(h)(6): Unrecaptured §1250 gain is taxed at no more than 25%; the 0/15/20% layers apply to the rest.
  6. IRC §1250: Recapture on depreciable real property (buildings).
  7. IRC §1245, Recapture on personal property (equipment, cost-segregation components), taxed as ordinary income.
  8. IRC §1411: 3.8% net investment income tax above $200,000 single / $250,000 joint MAGI (not indexed).
  9. IRC §453(i): In an installment sale, ordinary-income recapture (§1245 and any §1250 additional depreciation) is recognized in the year of sale.
  10. Treas. Reg. §1.453-12: Unrecaptured §1250 gain in an installment sale is taken into account as payments are received, before other long-term gain.
  11. Treas. Reg. §15a.453-1(b)(3): Qualifying debt assumed by the buyer in excess of basis is a payment in the year of sale.
  12. Treas. Reg. §1.1031(d)-2: Net debt relief in a like-kind exchange is treated as money received (mortgage boot).
  13. IRS Publication 544, Sales and Other Dispositions of Assets, recapture, installment sales, like-kind exchanges.
  14. IRS Publication 551, Basis of Assets, what increases and decreases basis (improvements, depreciation, casualty losses, insurance reimbursements).
  15. IRS Publication 946: 27.5-year residential and 39-year nonresidential recovery periods.
  16. 2026 brackets: Rev. Proc. 2025-32, which sets the 2026 ordinary brackets and the 0/15/20% capital gains breakpoints used here.
  17. California FTB rate schedules, R&TC §17041 and §17043: California taxes capital gain as ordinary income, 1% to 12.3% plus the 1% Mental Health Services Tax over $1M.

The Retirement Literacy Foundation is a 501(c)(3) public charity. This page is general education, not tax, legal or investment advice. Nothing is sold here.

Questions people ask

What is depreciation recapture on a rental property?
When you sell depreciated real estate, the part of your gain that comes from depreciation you took (or could have taken) is called unrecaptured section 1250 gain. It is taxed at your ordinary rate but capped at 25% under IRC 1(h)(1)(E), not at the 0/15/20% capital gains rates. The rest of the gain is ordinary long-term capital gain.
What is unrecaptured section 1250 gain?
It is defined in IRC 1(h)(6): the gain on real property that would be ordinary income if section 1250 recaptured all depreciation, not only the accelerated part. For buildings depreciated straight-line since 1987 that is simply the depreciation taken, limited to the gain on the sale.
I never claimed depreciation. Do I still pay recapture?
Usually yes. IRC 1016(a)(2) reduces your basis by depreciation “allowed or allowable”, meaning the amount you were entitled to take, whether or not you took it. If you missed depreciation, a CPA can often recover it with Form 3115 before the sale; ask before you close.
Is depreciation recapture always 25%?
No. 25% is the ceiling. If your ordinary bracket on that slice is lower (10%, 12%, 22% or 24%), that is the rate. This calculator stacks the recapture on top of your other income and taxes each slice at the lower of its bracket or 25%.
Does a 1031 exchange avoid depreciation recapture?
It defers it. The depreciation carries into the replacement property through a lower basis, and it is taxed when that property is sold in a taxable sale. Any boot you receive, including debt paid off and not replaced, is taxable in the year of the exchange, recapture first.
Residential rental vs commercial: what is the difference?
Residential rental buildings are depreciated over 27.5 years, commercial buildings over 39 years (IRS Pub 946). Land is never depreciated. The recapture rules are the same; the commercial building simply accumulates depreciation more slowly.
Hans Goldstein, founder of the Retirement Literacy Foundation
Who made this calculator
Hans Goldstein, EA, Founder and Executive Director, Retirement Literacy Foundation
Admitted to practice before the IRS

The Retirement Literacy Foundation is a 501(c)(3) public charity (EIN 41-5062266) that gives free, plain-English retirement education to Southern California retirees. Hans is its unpaid Executive Director and draws no salary from the Foundation.

What it costs: nothing. The calculator and the class are free. Nothing is sold.

If you leave a phone number: we may call you about your request. Those calls are educational, and nothing is offered or sold.

Questions: call 714-584-4921 or read about the Foundation. General education, not tax, legal or investment advice.

Free class on Zoom: Big sales and taxes. Thursday, October 22, 2026, 4:00 PM Pacific (7:00 PM Eastern). One hour on what a sale really costs in tax and the legal ways to spread it. From a 501(c)(3). Nothing is sold. Save a seat.

More free calculators for the year you sell: Rental property capital gains tax calculator · Home sale capital gains calculator · Estimated tax payment calculator

Hans Goldstein is an Enrolled Agent, admitted to practice before the Internal Revenue Service. Not affiliated with or endorsed by the IRS.