
> Estimate depreciation recapture when you sell a rental: unrecaptured section 1250 gain at up to 25%, section 1245 recapture at ordinary rates, and the long-term gain. No signup.

Source: https://costsegsmart.com/depreciation-recapture-calculator/

Publisher: Cost Seg Smart (costsegsmart.com)

---

Free calculator · no signup

# Depreciation recapture calculator for selling a rental.

Enter the sale, your basis and the depreciation you took. You get the total gain, the part taxed at up to 25% (unrecaptured section 1250 gain), the part taxed at ordinary rates (section 1245 recapture), the long-term gain that is left, and an estimate of the federal tax on each.

Free Excel template

Get the cost segregation Excel template

Three sheets: property inputs, MACRS component classification (5, 7 and 15-year plus 27.5 and 39-year), and a Year-1 deduction summary. Works in Excel, Google Sheets and LibreOffice. We email you a copy.

No spam. Unsubscribe anytime.

Sale priceSelling costs

Building basisLand basis

Building basis is what you depreciate: price plus capitalized closing costs and improvements, minus land. If you had a cost segregation study, include the parts it split out. Land is not depreciated, but it is part of your gain, so enter it too.

Recovery period

Placed in service

Sold

Building depreciation takenEstimated: 27.5\-year straight line, mid-month, on $400,000 from July 2019 to June 2026. Replace it with the figure from your depreciation schedule.

I had a cost segregation study

Ordinary tax rateCapital gains rate

Total gain on the sale

$211,606

$611,000 after selling costs, minus an adjusted basis of $399,394 ($500,000 original basis less $100,606 of depreciation).

<table class="rdc__table tabular"><thead><tr><th>Part of the gain</th><th>Amount</th><th>Rate</th><th>Federal tax</th></tr></thead><tbody><tr data-testid="rcc-layer-u1250"><td><span class="rcc__lname">Unrecaptured section 1250 gain</span><span class="rcc__lnote">Building straight line, max 25%</span></td><td data-testid="rcc-amt-u1250">$100,606</td><td>25%</td><td data-testid="rcc-tax-u1250">$25,152</td></tr><tr data-testid="rcc-layer-ltcg"><td><span class="rcc__lname">Remaining long-term gain</span><span class="rcc__lnote">Capital gain rates</span></td><td data-testid="rcc-amt-ltcg">$111,000</td><td>15%</td><td data-testid="rcc-tax-ltcg">$16,650</td></tr><tr class="rcc__total"><td>Estimated federal tax on the sale</td><td>$211,606</td><td></td><td data-testid="rcc-tax-total">$41,802</td></tr></tbody></table>

Each part is capped at the gain that is left after the parts above it. The 25% part is taxed at your ordinary rate when that is lower than 25%.

Not sold yet?

A cost segregation study moves deductions forward while you own the property. See what one would add for your rental before you decide, or order the study.

Federal estimate only, not tax advice. It leaves out state tax, the net investment income tax, passive losses released on the sale, installment sales and 1031 exchanges. Your CPA confirms the result on Form 4797 and Schedule D.

## How the calculator splits your gain

Depreciation lowers your basis each year you own the rental. When you sell, the lower basis makes the gain larger, and the tax code taxes the part of the gain that came from depreciation differently from the rest. The calculator works through it in this order:

1.  **Total gain.** Sale price minus selling costs, minus your adjusted basis: land plus the original depreciable basis, less all the depreciation.
2.  **Section 1245 recapture.** Depreciation on 5- and 7-year property (appliances, carpet, furniture and similar items a cost segregation study identifies), up to the gain. Ordinary income.
3.  **Section 1250 ordinary recapture.** On 15-year land improvements, the depreciation above what straight line would have allowed by the sale. Bonus depreciation counts as above straight line. Ordinary income.
4.  **Unrecaptured section 1250 gain.** The building's straight-line depreciation plus the straight-line part of the 15-year property, up to the gain that is left. Taxed at your ordinary rate, but no more than 25%.
5.  **Remaining long-term gain.** Everything else, taxed at the long-term capital gain rate you choose (0%, 15% or 20%).

The worked example the calculator opens with: a rental bought for $500,000 ($100,000 land, $400,000 building), placed in service in July 2019 and sold in June 2026 for $650,000 with $39,000 of selling costs. Straight-line depreciation through the sale is $100,606, so the gain is $211,606: $100,606 of unrecaptured section 1250 gain and $111,000 of long-term gain. At a 32% ordinary rate and a 15% capital gains rate, the federal estimate is $41,802. The same sale with a cost segregation study is worked through in our [depreciation recapture guide](https://costsegsmart.com/blog/cost-segregation-depreciation-recapture/#worked-example).

## What this calculator leaves out

It is a planning estimate of federal tax on a simple cash sale. It does not include:

-   **State income tax** on the gain.
-   **The net investment income tax** (3.8% for taxpayers above the income thresholds).
-   **Passive losses released on the sale.** Passive losses you could not use in earlier years can generally be deducted when you sell your entire interest in the rental in a fully taxable sale.
-   **Section 1231 losses from earlier years**, which can turn part of this year's gain into ordinary income.
-   **Installment sales** and **1031 exchanges**, which change when the gain is taxed.
-   **Asset-by-asset limits.** Each part above is capped by your total gain. Form 4797 figures recapture asset by asset, so if your contract allocates little of the price to furniture or finishes, the ordinary-income part can be lower than shown.
-   **Bracket stacking.** The calculator uses one ordinary rate and one capital gains rate. Your return stacks the gain on top of your other income, so part of it can fall in a different bracket.
-   **Other situations:** property held one year or less, a corporation as seller, low-income housing, and property received by gift or in an exchange.

Your CPA confirms the result on Form 4797 and the Schedule D worksheets.

## The building depreciation estimate

If you leave the building depreciation as the calculator's estimate, it uses straight line over 27.5 or 39 years with the mid-month convention: the month you placed the rental in service and the month you sell each count as half a month. If you claimed a different amount, or none, enter what was allowed or allowable from your depreciation schedule. The IRS reduces your basis by the depreciation you could have taken even when you did not take it. For the year-by-year schedule, use the [rental property depreciation calculator](https://costsegsmart.com/rental-property-depreciation-calculator/).

## Where to go next

The full rules, with the 1031 and inheritance cases, are in our [depreciation recapture guide](https://costsegsmart.com/blog/cost-segregation-depreciation-recapture/). Ways to plan around recapture are in [how to reduce depreciation recapture](https://costsegsmart.com/blog/how-to-reduce-depreciation-recapture/), and the property classes behind it are in [section 1245 vs 1250 property](https://costsegsmart.com/blog/section-1245-vs-1250-property-real-estate/).

## Sources

-   [26 U.S.C. §1245](https://www.law.cornell.edu/uscode/text/26/1245): ordinary income on section 1245 property, up to the gain.
-   [26 U.S.C. §1250](https://www.law.cornell.edu/uscode/text/26/1250): additional depreciation on real property, and the straight-line comparison.
-   [26 U.S.C. §1(h)](https://www.law.cornell.edu/uscode/text/26/1#h): the 25% maximum rate on unrecaptured section 1250 gain.
-   [Treas. Reg. §1.168(k)-1(f)(3)](https://www.law.cornell.edu/cfr/text/26/1.168(k)-1): bonus depreciation is not a straight-line method for section 1250.
-   [IRS Publication 544](https://www.irs.gov/publications/p544): sales of business and rental property, section 1245 and 1250 recapture.
-   [Instructions for Form 4797](https://www.irs.gov/instructions/i4797) and the [Schedule D instructions](https://www.irs.gov/instructions/i1040sd) (Unrecaptured Section 1250 Gain Worksheet).
-   [IRS Topic 409](https://www.irs.gov/taxtopics/tc409): capital gain rates of 0%, 15% and 20%, and the 25% maximum on unrecaptured section 1250 gain.

## Depreciation recapture FAQ

How is depreciation recapture calculated on a rental property?

Start with the gain: the sale price minus selling costs, minus your adjusted basis (what you paid for the land and building, less all the depreciation allowed or allowable). The part of that gain equal to the straight-line depreciation on the building, up to the gain, is unrecaptured section 1250 gain, taxed at a maximum federal rate of 25%. Depreciation on 5- and 7-year property is section 1245 recapture, taxed as ordinary income. Whatever gain is left is taxed at long-term capital gain rates. In the example on this page, a $500,000 rental sold for $650,000 has $100,606 of unrecaptured section 1250 gain.

What is the depreciation recapture tax rate?

It depends on the property. Unrecaptured section 1250 gain from a building's straight-line depreciation is taxed at your ordinary rate, but no more than 25%. Section 1245 recapture on personal property, such as appliances, carpet and furniture, is ordinary income. So is any depreciation on 15-year land improvements above what straight line would have allowed, such as bonus depreciation.

Do I owe recapture if I never claimed depreciation?

Yes, if you sell at a gain. Your basis goes down by the depreciation that was allowed or allowable, whether or not you claimed it, so the gain is the same as if you had taken it. If you missed depreciation, ask your CPA about catching it up with Form 3115 before you sell.

Is there recapture if I sell at a loss?

Generally no. Recapture only changes how part of a gain is taxed, so with no gain there is usually nothing to recapture. A loss on a rental held more than a year is generally a section 1231 loss.

Can I avoid depreciation recapture?

A like-kind exchange under section 1031 can defer the gain when the rules are met, but recapture on section 1245 property can still come due in an exchange. Property you still own at death is not subject to recapture on the transfer, and your heirs generally take a basis equal to its value at your death. Talk to your CPA before you sign a sale contract.

## Still own the rental?

A cost segregation study moves depreciation into the years you own the property. Get a free 1-page estimate for your rental first, or order the study.

[Get my free estimate](https://costsegsmart.com/preliminary-cost-segregation-analysis/?css_ref=recapture_calc_footer) [Order my study](https://costsegsmart.com/order/?css_ref=recapture_calc_footer)

Estimates for planning only, not tax advice. Confirm the result with your CPA before you sell.
