Calcority
Guide

Depreciation recapture calculator

Formula reviewed by Tahir Asif, CMA

A rental bought for $400,000 and sold for $650,000 after eight years has a taxable gain of $299,487, not $250,000, because $94,487 of depreciation lowered the basis along the way. That $94,487 is unrecaptured section 1250 gain, taxed at your ordinary rate up to 25%. The other $205,000 is a long-term gain at 15%. For a single filer with $120,000 of other taxable income, the federal tax is $53,554, the net investment income tax is $8,952, and a 5% state tax adds $14,974: $77,481, or 25.9% of the gain.

The calculator works out the depreciation from the purchase and the months you held the property, or takes the amount you actually deducted. It splits the gain into its layers, stacks them on your other income the way the tax forms do, and shows the tax on each layer and the cash you keep.

Depreciation recapture calculator · 2026 federal rulesLive

What you paid and how long you held it

Cost segregation (leave at zero if you did none)

The sale

Your tax picture in the year of the sale

The starting values are illustrations. Depreciation is straight-line and approximated by months held.

Taxable gain

$299,487

Total tax on the sale

$77,481

Effective rate on the gain

25.9%

Cash after tax and loan

$253,519

How the gain is built

Total basis $406,000 − depreciation $94,487 = adjusted basisDepreciation reduces basis whether or not you claimed it. The IRS treats it as taken if it was allowable.

$311,513

Sale price less selling costs

$611,000

Gain

$299,487

Ordinary recapture (§1245)

$0

Unrecaptured §1250 gain

$94,487

Long-term capital gain

$205,000

The tax, layer by layer

Unrecaptured section 1250 gain$94,487 at ordinary rate, capped at 25%$22,804
Remaining long-term capital gain$205,000 at 0%, 15% or 20%$30,750
Net investment income tax$235,587 at 3.8%$8,952
State tax (flat rate you enter)$299,487 at 5%$14,974

Federal income tax is $53,554, plus $8,952 of net investment income tax and $14,974 of state tax: $77,481, 25.9% of the gain.

The depreciation trade

Tax the deductions saved you at 24%$94,487 of depreciation × your rate at the time.

$22,677

Federal tax on the recapture layers at the sale

$22,804

DifferenceExcludes the value of having the cash for the years in between, which is the real benefit.

−$127

The same sale at other prices

Sale priceGainTotal taxRate on the gain
$520,000$177,287$48,39727.3%
$585,000$238,387$62,93926.4%
$650,000$299,487$77,48125.9%
$715,000$360,587$92,02325.5%
$812,500$452,237$115,17225.5%

Federal 2026 rules only: ordinary brackets, the 25% cap on unrecaptured section 1250 gain, capital gains thresholds from Rev. Proc. 2025-32, and the 3.8% net investment income tax. Not modeled: installment sales, like-kind exchanges, opportunity zones, the alternative minimum tax, alternative depreciation, partial-year mid-month timing, state rules beyond the flat rate you enter, and the $250,000 exclusion for a former home. Not tax, legal or accounting advice.

Free download · .xlsx · no signup

A depreciation recapture workbook with the 2026 rates on their own sheet: adjusted basis, the three layers of the gain, the 25% layer stacked on your income, the 0%, 15% and 20% bands, the net investment income tax and the cash after tax. Every formula is editable, and the starting values are illustrations.

Download the workbook

Who reaches for this

A landlord thinking of selling

Wants to know how much of the sale price is left after federal and state tax, before listing the property.

An investor who did a cost segregation study

Wants to see how the accelerated depreciation comes back as ordinary income at the sale.

A buyer underwriting a hold period

Wants the tax at exit in the model, not just the cash flow.

An owner who never claimed depreciation

Wants to know whether skipping it avoided the tax. It did not.

A student or preparer

Wants the layers, the stacking order and the rates set out with numbers.

Section 01

How this depreciation recapture calculator works

Gain on the sale
(Sale price − selling costs) − (cost + improvements − depreciation allowed or allowable)
Split the gain into section 1245 recapture (ordinary), unrecaptured section 1250 gain (ordinary rate, capped at 25%) and long-term capital gain (0%, 15% or 20%).

You enter the purchase price, closing costs, the share of the price that is land, any improvements, the months you held the property and the sale. The calculator computes straight-line depreciation over 27.5 years for residential rentals or 39 years for commercial property, or uses the depreciation you tell it you took. It reduces the basis, finds the gain and divides it into layers.

Then it stacks the layers on your other taxable income in the order the tax forms use: your ordinary income first, then any section 1245 recapture, then the unrecaptured section 1250 gain, then the remaining long-term gain. Each layer is taxed at its own rate, and the net investment income tax and a flat state rate are added. The result is the tax on the sale and the cash you keep after paying off the loan. Depreciation earlier in the property’s life is covered on the Section 179 and bonus depreciation calculator, and the return on the deal before tax is on the cash on cash return calculator.

Section 02

What depreciation recapture is

Depreciation lets you deduct part of the cost of a building or equipment each year against your income, even though the property may not be losing value. Each deduction also lowers the property’s tax basis, the number the sale price is compared with. When you sell for more than the lowered basis, the gain includes the amount you deducted. The tax system takes that part back at a rate higher than the one that applies to ordinary capital gains. That is recapture.

Take a building bought for $324,800 of depreciable cost and deducted at $11,811 a year. After eight years the deductions total $94,487 and the basis has fallen by that amount. If the building then sells for its original price, the whole $94,487 is a taxable gain, even though you did not make any profit on the property. It is the deductions reversing. The tax you pay on that piece is the price of having received the deductions earlier.

Section 03

The three layers of the gain

A gain on depreciable property is not taxed as one lump. It has layers with different rates, and the calculator shows each.

Layer
What it is
2026 federal rate
Section 1245 recapture
Gain on short-life property up to the depreciation taken
Ordinary rates, up to 37%
Unrecaptured section 1250 gain
Gain on the building up to its straight-line depreciation
Ordinary rate, capped at 25%
Long-term capital gain
The rest of the gain
0%, 15% or 20%
Net investment income tax
On the gain, above income thresholds
3.8%

Section 1245 covers personal property and short-life components: appliances, furniture, equipment, vehicles, and the parts of a building that a cost segregation study reclassifies. All of the depreciation taken on it, up to the gain, is recaptured as ordinary income.

Section 1250 covers the building. For property placed in service after 1986, depreciated straight-line, there is no ordinary-income recapture on the building itself. Instead, the gain up to the straight-line depreciation is unrecaptured section 1250 gain, taxed at your ordinary rate but no higher than 25%. Because a person in the 32%, 35% or 37% bracket pays only 25% on this layer, the cap is a real benefit at high incomes. A person in the 12% bracket pays 12% on it, since the cap is a ceiling and not a floor.

Section 04

Depreciation and adjusted basis

Everything starts with the adjusted basis, which is your cost plus capital improvements minus depreciation. Residential rental buildings are depreciated straight-line over 27.5 years and nonresidential buildings over 39 years, under a mid-month convention in the first and last year. Land is never depreciated, so the purchase price is split between land and building, usually from the property tax assessment or an appraisal.

The example price is $400,000 plus $6,000 of closing costs. With 20% allocated to land, the depreciable building basis is $406,000 × 80% = $324,800. Over 27.5 years, that is $11,811 a year, and over 96 months it is $324,800 × 96 ÷ 330 = $94,487. The adjusted basis is $406,000 − $94,487 = $311,513. The calculator uses months held and ignores the mid-month timing in the first and last year, which moves the total by about a month of depreciation.

Allowed or allowable

The rule that surprises owners is that depreciation reduces basis whether or not you claimed it. The word in the tax code is “allowed or allowable.” If you owned a rental for eight years and never deducted depreciation, the IRS treats your basis as reduced by the amount you could have deducted. You lose the deductions and still owe the tax.

Suppose the example owner never claimed depreciation and assumes the basis is still $406,000. The gain would look like $205,000 and the tax like $46,362. The true gain is $299,487 and the tax $77,481, a difference of $31,119. There is a way to fix missed depreciation by filing an accounting method change, and a tax professional can do it. Skipping the deduction is never a way to avoid recapture.

Commercial buildings and long holds

A commercial building is depreciated over 39 years, so the annual deduction is smaller and the recapture layer builds more slowly. The same $324,800 building held 96 months has $66,626 of depreciation instead of $94,487, the gain is $271,626, and the total tax is $68,215.

Time works the other way for a residential rental. Depreciation stops once the building is fully depreciated, after 27.5 years, so the recapture layer has a ceiling equal to the depreciable basis. A rental held 20 years and sold for $900,000 has $236,218 of depreciation, a gain of $676,218 and a total tax of $193,852, or 28.7% of the gain. The recapture layer is larger in a long hold, and so is the share of the gain that is appreciation.

Section 05

A worked example

A single filer sells the rental after 96 months for $650,000. Selling costs are 6%, or $39,000, so the amount realized is $611,000. The loan payoff is $280,000. Other taxable income for the year is $120,000, and the state tax rate is 5%.

Step
Calculation
Amount
Adjusted basis
$406,000 − $94,487
$311,513
Amount realized
$650,000 − $39,000
$611,000
Gain
$611,000 − $311,513
$299,487
Unrecaptured section 1250 gain
Lesser of the gain or the depreciation
$94,487
Long-term capital gain
$299,487 − $94,487
$205,000
Tax layer
Amount
Rate
Tax
Unrecaptured section 1250 gain
$94,487
24% then 25%
$22,804
Long-term capital gain
$205,000
15%
$30,750
Net investment income tax
$235,587
3.8%
$8,952
State tax
$299,487
5%
$14,974
Total
25.9% of the gain
$77,481

After the $77,481 of tax and the $280,000 loan payoff, the owner keeps $253,519 of the $611,000. The recapture layer, $22,804 on $94,487, is an effective 24.1% and the capital gain layer 15%. The net investment income tax is a surprise to many sellers: because the sale pushes income over $200,000, it applies to the excess, which here is $235,587.

Section 06

Stacking and where the 25% layer falls

The order matters. The tax forms stack the pieces of income from the bottom: your other ordinary income first, then section 1245 recapture, then unrecaptured section 1250 gain, then the rest of the long-term gain. Each piece is taxed according to where it sits in the stack.

In the example, $120,000 of other income fills the brackets up to the middle of the 24% bracket. The unrecaptured 1250 gain of $94,487 sits from $120,000 to $214,487. The part from $120,000 to $201,775, $81,775, is in the 24% bracket, so the 25% cap does not bind and it is taxed at 24%, or $19,626. The last $12,712 crosses into the 32% bracket, where the cap does bind, so it is taxed at 25%, or $3,178. Together that is $22,804. The 25% is a ceiling: the blended rate on this layer is 24.1%.

The long-term gain sits above the recapture, from $214,487 to $419,487. All of it is below the $545,500 point where the 20% rate begins for a single filer in 2026, so it is taxed at 15%. If it had started below $49,450, the first part would be at 0%. Because recapture stacks first, it uses up any room in the 0% and low brackets before the rest of the gain does.

Section 07

Your income in the sale year

The tax depends on the other income in the year of the sale, not just on the gain. The same $299,487 gain produces very different bills.

Other taxable income
Federal income tax
Total with NIIT and 5% state
Rate on the gain
$30,000
$49,873
$70,379
23.5%
$120,000 (the example)
$53,554
$77,481
25.9%
$400,000
$62,071
$88,426
29.5%

A low-income year leaves room in the low brackets for the recapture layer, and it brings the overall federal rate down. A high-income year pushes the recapture into the 25% cap and part of the capital gain into the 20% bracket. Selling in a year when other income is lower, for example after retiring or between jobs, can reduce the tax by tens of thousands of dollars on a large gain. The calculator lets you change the other income to test it, and the table of other sale prices shows how the rate on the gain falls as the price rises, since a larger share of the gain is taxed at the 15% rate.

Section 08

Net investment income tax and state tax

The 3.8% net investment income tax applies to the smaller of your net investment income and the amount your modified adjusted gross income exceeds a threshold: $200,000 for single filers, $250,000 for joint filers and $125,000 for married filing separately. Those thresholds are set by statute and are not adjusted for inflation. A gain on a rental is generally net investment income, unless you are in a real estate business that is not passive.

In the example, income before the sale is $120,000 of taxable income plus the $16,100 standard deduction, and the gain adds $299,487, for modified adjusted gross income of about $435,587. That is $235,587 over the threshold, less than the $299,487 gain, so the tax is 3.8% of $235,587, or $8,952. A larger gain or smaller other income changes which of the two limits applies.

State tax varies from nothing to over 10% of the gain, and many states tax gains as ordinary income and have their own rules for depreciation. The calculator applies a flat rate you enter. It is a simplification, and your state may differ. Check its rules.

Section 09

Cost segregation and section 1245 recapture

A cost segregation study reclassifies parts of a building, such as flooring, fixtures, appliances and site work, as short-life property that can be depreciated over 5, 7 or 15 years. With 100% bonus depreciation available for property acquired after January 19, 2025, much of that cost can be deducted in the first year. The deductions come early. The catch is the character of the gain at the sale.

Suppose the owner had a study move $60,000 of the building into short-life property and deducted all of it. The remaining building depreciation falls to $77,033. If the components are worth $45,000 at the sale, their basis is zero, so $45,000 of gain is section 1245 recapture, taxed as ordinary income. Unrecaptured section 1250 gain is $77,033, and the long-term gain is $220,000. Total gain is $342,033, and the tax is $90,361, or 26.4% of the gain, against $77,481 without the study.

That is not a verdict against cost segregation. The study brought $42,546 more depreciation deductions, worth about $10,200 at a 24% rate when taken. The sale costs $12,880 more, so on the surface the owner is behind by about $2,700. The benefit is the timing: the deductions arrived years before the tax, and the money could work in between. Whether the study pays depends on how long you hold, what rate you were in, and how you use the cash. The Section 179 calculator shows the present value of faster depreciation.

Section 10

The depreciation trade

It helps to see depreciation as a trade and not a trap. You took $94,487 of deductions. At a 24% rate, they saved $22,677 of tax in the years you owned the property. At the sale, the recapture layer costs $22,804. On those numbers the two roughly cancel, and the owner is $127 behind before considering time.

The time is the point. Tax saved each year could be spent, invested or used to pay down a loan, and tax owed at the sale is paid years later. The trade also improves if your rate when you sold is lower than when you deducted, and it worsens if it is higher. And it can end at zero if the property passes to heirs with a stepped-up basis, since the gain disappears with the recapture.

None of this changes the rule that you owe the tax whether or not you deducted. It only explains why claiming depreciation is almost always right: skipping it gives up the deductions and leaves the recapture.

Section 11

Ways to defer or reduce it

The calculator shows the tax if you sell and pay. Several strategies can change the picture. They need professional advice, and the calculator does not model them.

A like-kind exchange (section 1031)

Exchanging into other qualifying real property can defer the gain and the recapture. The deferred gain carries into the new property’s basis, so the tax is delayed, not removed.

A stepped-up basis at death

Property held until death generally passes to heirs at fair market value, which typically eliminates the accumulated gain and recapture.

An installment sale

Spreading receipts over years can spread the capital gain, but recapture income is generally recognized in the year of sale.

Timing the sale

A year with lower other income can move the layers into lower brackets and can reduce the net investment income tax.

Releasing suspended passive losses

Passive losses that could not be deducted in earlier years are generally released when you fully dispose of the activity, and they can offset other income. Enter them in the calculator to see the effect.

Each of these has conditions and costs. An exchange has strict identification and closing deadlines. A step-up is not a plan you can choose to use. An installment sale carries the risk of the buyer’s payments. Treat the list as a set of questions for your tax adviser.

Keep the records

Recapture is computed from your depreciation history, so the records matter. Keep the closing statement showing the price and costs, the land and building allocation, receipts for every capital improvement, each year’s depreciation schedule and any cost segregation report. Rebuilding them years later from tax returns is possible, and it is easier when they are in one place. A preparer who has to guess the basis will often guess conservatively, and that can cost you.

Section 12

Common mistakes

Assuming that skipping depreciation avoids recapture

Basis is reduced by depreciation allowed or allowable, and you owe the tax either way.

Treating 25% as a flat rate on the whole gain

It is a maximum on the depreciation layer only, and the rest is taxed at 0%, 15% or 20%.

Forgetting land

Land is not depreciable. Allocating too little to land overstates depreciation and the recapture.

Leaving out selling costs

They reduce the amount realized and so the gain.

Ignoring the net investment income tax

It can add 3.8% on a large part of the gain.

Not tracking improvements

Capital improvements raise basis and are depreciated. Missing them overstates the gain.

Forgetting that cost segregation changes the character

The accelerated deductions come back as ordinary income to the extent of the gain on those components.

Ignoring the year’s other income

It decides which brackets the layers land in.

Section 13

What this calculator can't tell you

It applies 2026 federal rules to the inputs you enter: the ordinary brackets, the 25% maximum rate on unrecaptured section 1250 gain, the capital gains thresholds and the net investment income tax. It approximates straight-line depreciation from months held and does not apply the mid-month convention exactly. It does not model installment sales, like-kind exchanges, opportunity zones, the alternative minimum tax, alternative depreciation systems, partnerships, or the $250,000 exclusion on a former home.

State tax is a flat rate you supply. The example is an illustration. Real returns depend on the depreciation schedule you actually filed, the allocation between land and building, any cost segregation report, and facts about your involvement in the property that decide whether the gain is net investment income.

This is a planning aid, not tax, legal or accounting advice. Confirm the result with a tax professional before selling.

Section 14

Sources

The rules follow Internal Revenue Code sections 1245, 1250 and 1(h), covered in IRS Publication 544 and IRS Topic 409 on capital gains and losses, and the net investment income tax under section 1411. Recovery periods of 27.5 and 39 years are set by section 168. The 2026 long-term capital gains thresholds ($49,450 and $545,500 for single filers, $98,900 and $613,700 for joint filers, and the head of household and separate figures) are from IRS Revenue Procedure 2025-32, as reported by several tax sites. The 100% bonus depreciation reference is to Public Law 119-21. The examples were computed with the same engine as the calculator and checked by hand: $22,804 = $19,626 + $3,178 on the 25% layer.

Section 15

Frequently asked questions

Depreciation recapture is the tax on the part of a gain that reverses the depreciation deductions you took while you owned the property. Depreciation lowers your basis, so when you sell for more than the lowered basis, the gain includes the deductions you already used. For buildings, that part is taxed at your ordinary rate, up to a maximum of 25%. For equipment and other short-life property, it is taxed as ordinary income. The rest of the gain is a capital gain.

Gain on a building, up to the straight-line depreciation you took, is unrecaptured section 1250 gain, taxed at your ordinary rate but no higher than 25%. Gain on section 1245 property, such as appliances or components moved out of the building by a cost segregation study, is ordinary income up to the depreciation taken, at rates up to 37%. Any remaining gain is long-term capital gain at 0%, 15% or 20%. High earners also owe the 3.8% net investment income tax.

It is the smaller of the gain on the building or the straight-line depreciation taken on it. It is not recaptured as ordinary income, which is why it is called unrecaptured, but it is taxed at a higher rate than other long-term gain: your ordinary rate, capped at 25%. If part of it falls in the 10%, 12%, 22% or 24% brackets, that part is taxed at the lower rate. In the example, $94,487 of the $299,487 gain is unrecaptured section 1250 gain.

Start with the adjusted basis: cost plus improvements minus depreciation allowed or allowable. Subtract it from the sale price less selling costs to get the gain. Then split the gain: section 1245 recapture up to the depreciation on short-life property, unrecaptured section 1250 gain up to the straight-line depreciation on the building, and long-term capital gain for the rest. Tax each layer at its own rate. A $400,000 rental held 96 months has $94,487 of depreciation on a 27.5-year schedule.

Yes. The rules treat depreciation as reducing your basis if it was allowed or allowable, whether or not you claimed it. If you owned a rental for eight years and never deducted depreciation, your basis is still reduced by the depreciation you could have taken, and the gain is taxed as if you had taken it. You lose the deductions and still pay the tax. In the example, ignoring depreciation would understate the gain by $94,487 and the tax by $31,119.

Section 1245 covers personal property and short-life components: appliances, furniture, equipment, vehicles and the parts of a building reclassified by a cost segregation study. Gain up to the depreciation taken is ordinary income. Section 1250 covers the building itself. Straight-line depreciation on it becomes unrecaptured section 1250 gain, taxed at up to 25%. The distinction matters because ordinary rates reach 37% while the 25% cap is a ceiling on building depreciation.

It changes the character of the recapture. A study moves part of the cost into short-life property, which you can depreciate faster, often with 100% bonus depreciation for property acquired after January 19, 2025. On a sale, the depreciation on those components can be recaptured as ordinary income rather than as 25% gain. In the example, $60,000 reclassified and worth $45,000 at the sale adds $45,000 of ordinary recapture, and total tax rises from $77,481 to $90,361.

No. It applies only to the part of the gain equal to straight-line depreciation on the building, and it is a maximum, not a flat rate. In the example, $94,487 of a $299,487 gain is taxed at your ordinary rate up to 25%, and the other $205,000 is taxed at 15% because it falls under the 20% threshold. The blended federal rate is about 17.9% of the gain, before the net investment income tax and state tax.

Usually, for a passive rental. The 3.8% tax applies to the lesser of your net investment income or the amount by which modified adjusted gross income exceeds $200,000 for single filers, $250,000 for joint filers or $125,000 for married filing separately. Those thresholds are set by statute and not indexed. A gain on rental property is generally net investment income unless you are a real estate professional with a business, in which case it may not be. Ask a tax professional which applies.

A like-kind exchange under section 1031 can defer the gain, and the recapture with it, if you reinvest in qualifying real property under the rules. Holding the property until death typically gives heirs a stepped-up basis that wipes out the accumulated gain. An installment sale spreads the gain, though recapture income is generally recognized in the year of sale. Timing the sale for a lower-income year can reduce the rate. These are planning ideas that need professional advice.

Generally not for a home you never used for business or rental. If you rented part of a home or used it for business and claimed depreciation, the exclusion for the sale of a main residence generally does not cover the gain up to depreciation taken after May 6, 1997. That part is taxed as unrecaptured section 1250 gain. The rules for former rentals and home offices are specific, so check the IRS guidance for your situation.

Form 4797 reports the sale of business and rental property and splits the gain into ordinary recapture and section 1231 gain. The Schedule D tax worksheet and its unrecaptured section 1250 gain worksheet apply the 25% maximum rate, and Form 8960 reports the net investment income tax. Form 8949 and Schedule D handle capital gain reporting. Keep depreciation schedules for every year, since you need them to compute the recapture.

Read the return on the deal before tax with the cash on cash return calculator, or see the value of faster depreciation with the Section 179 calculator.

Glossary:Depreciation Recapture,Unrecaptured Section 1250 Gain,Bonus Depreciation,Cash-on-Cash Return

Related calculators