Advanced Tax Planning13 min read

Depreciation Recapture When You Sell a Rental: The Layers, the Math, and the Traps

Jim Crider
Jim Crider, CFP®

August 29, 2026

The largest tax surprise in residential real estate almost never happens while you own the property. It happens the year you sell, when a decade of depreciation deductions comes back through the return in three different layers at three different rates, stacked in an order most sellers have never seen until their preparer walks them through the damage.

We have written about why recapture exists in our cost segregation article and about how a 1031 exchange defers it. This article is about the part those pieces deliberately left for later: the actual computation. What the layers are, what order they stack in, what rate each one really pays (25% is a ceiling, not a flat rate), and the four traps (never depreciating, installment notes, partial exchanges, and converted homes) that catch sellers who thought they understood the rules.

Recapture is a character rule, not a separate tax

Start by clearing up the most common misconception. There is no “recapture tax” line on a return. When you sell a depreciated rental, you compute one gain, the same way as for any asset: amount realized (price minus selling costs) minus adjusted basis. Depreciation enters through the basis: every dollar of depreciation you took reduced your basis, so every dollar of depreciation increases your gain at sale.

One immediate consequence: recapture exists only inside a gain. Sell for less than adjusted basis and there is nothing to recapture; the result is simply a loss, and for a rental it is generally an ordinary Section 1231 loss, which is the favorable kind. What the recapture rules do is change the character of slices of that gain. Instead of the whole gain enjoying long-term capital gains rates, the slices attributable to prior depreciation are pulled out and taxed less favorably. The mechanics run through Form 4797 and Schedule D, but the logic is simple: the government gave you deductions against ordinary income on the way in, and it takes some of that treatment back on the way out.

Nor can the layers be sidestepped by selling the entity instead of the property. An owner who holds the rental in an LLC taxed as a partnership and sells the membership interest doesn’t convert everything to capital gain; Section 751 looks through to the partnership’s depreciation-recapture assets and taxes that slice as ordinary income anyway.

One more definitional point that decides several of the traps below: basis is reduced by depreciation allowed or allowable. If you were entitled to depreciate the property and didn’t, your basis goes down anyway, and you owe tax at sale as if you had taken the deductions. We come back to the fix for this, because there is one, and it is better than most owners expect.

How depreciation recapture is calculated: the three layers

When a rental sells at a gain, the gain divides into up to three layers, and the order matters because each layer fills before the next.

Layer one: Section 1245 ordinary income. Depreciation taken on personal property, the 5- and 7-year assets a cost segregation study carves out (appliances, flooring, fixtures), is recaptured as ordinary income, up to the gain allocated to those assets. Ordinary means your marginal bracket, up to 37%. One genuine nuance the cost-seg marketing never mentions: Section 1245 recapture applies only to the gain allocated to that property in the sale. Purchase price allocation at sale is a real negotiation, and five-year-old appliances and carpet are not worth what they cost. A defensible allocation can legitimately shrink this layer; an undocumented one invites the IRS to do the allocating for you.

Layer two: unrecaptured Section 1250 gain. Depreciation taken on the building itself (straight-line, 27.5-year property) comes back as “unrecaptured Section 1250 gain,” taxed at the lesser of 25% or your ordinary rate. That lesser-of structure is why we keep saying 25% is a ceiling: a retired couple whose ordinary bracket is 12% pays 12% on this layer, not 25%. For a high-income seller the ceiling binds and the layer pays 25%. (Fifteen-year land improvements are technically Section 1250 property, but bonus depreciation pushes their write-offs past straight-line, and that excess is recaptured at ordinary rates like layer one. Another quiet cost of acceleration.)

Layer three: everything else. Gain beyond the depreciation layers, which is to say true appreciation, is long-term capital gain at 0%, 15%, or 20%. (Technically it is Section 1231 gain that becomes capital gain; a seller who deducted net Section 1231 losses in the prior five years would see some of it recharacterized as ordinary.) For 2026, joint filers pay 0% up to $98,900 of taxable income, 15% up to $613,700, and 20% above that.

And the surcharge on top. The 3.8% net investment income tax applies to the entire gain, all three layers, for a passive owner whose modified AGI exceeds $200,000 (single) or $250,000 (joint). This is one of the quieter arguments for participation status: for a real estate professional whose rental is a non-passive trade or business, the gain on sale is generally outside NIIT, which on a large sale is 3.8% of the whole stack. (An ordinary rental stays passive by statute no matter how many hours the owner logs; the paths out are in our passive activity loss article.)

The worked example, continued

In our passive activity loss article we followed an Austin couple who bought a $900,000 long-term rental, cost-segregated $160,000 into short-life property, suspended a $170,000 year-one loss, and sold in year seven for $1.2 million. Their W-2 income has grown to roughly $480,000 by the sale year. Here is what the sale year actually looks like on their return.

Amount realized: $1,140,000 after $60,000 of selling costs. Adjusted basis: roughly $600,000 ($900,000 cost minus $160,000 of bonus depreciation minus roughly $142,000 of building depreciation over seven years). Total gain: roughly $540,000.

The layers, assuming the sale allocation supports full recapture of the short-life property (and that the reclassified basis is all 5- and 7-year property):

  • $160,000 of Section 1245 ordinary income. With W-2 income of $480,000, this lands in the 32% and 35% brackets: roughly $54,000 of tax.
  • $142,000 of unrecaptured Section 1250 gain. Their ordinary rate exceeds 25%, so the ceiling binds: roughly $35,500 of tax.
  • $238,000 of long-term capital gain. For the 0/15/20 breakpoints, this layer stacks on top of everything else on the return, including the 25%-rate layer. With well over $600,000 of ordinary income and unrecaptured Section 1250 gain beneath it, even after the loss offset, essentially the whole layer clears the $613,700 joint threshold and pays 20%: roughly $47,500 of tax.
  • NIIT at 3.8%. The surcharge applies to the net investment gain, and the regulations let the released suspended loss (below) reduce the base: 3.8% on roughly $400,000 is about $15,200.

That brings the income-tax layers to roughly $137,000, plus the $15,200 surcharge: about $152,000 before the offset. Then the other half of the story arrives: the roughly $140,000 suspended passive loss releases on the full disposition and deducts against their highest-taxed ordinary income, saving roughly $48,000. Net, the exit costs about $104,000 of federal tax on a $540,000 gain, an effective rate near 19%. (Texas adds nothing; sellers in most other states owe state income tax on all three layers as well.) Not the disaster the word “recapture” suggests, and not the 15% capital-gains daydream either.

How a $540,000 rental sale gain divides into three tax layers A stacked bar divides a $540,000 gain into three layers. Bottom: $160,000 of Section 1245 recapture taxed as ordinary income at 32 to 35 percent, roughly $54,000 of tax. Middle: $142,000 of unrecaptured Section 1250 gain taxed at the lesser of 25 percent or the ordinary rate, roughly $35,500. Top: $238,000 of long-term capital gain at 20 percent because it stacks above the other income, roughly $47,500. The 3.8 percent net investment income tax applies for a passive owner on the gain net of the released loss, roughly $15,200. A released suspended passive loss of roughly $140,000 offsets ordinary income and saves roughly $48,000, bringing the net federal cost to roughly $104,000, an effective rate near 19 percent. Total gain: $540,000 Long-term capital gain $238,000 at 20% Unrecaptured §1250 $142,000 at ≤25% §1245 ordinary income $160,000 at 32–35% ≈ $47,500 tax ≈ $35,500 tax ≈ $54,000 tax + 3.8% NIIT on the net gain ≈ $15,200 (passive owner) THE OFFSET Suspended loss releases ≈ $140,000 against ordinary income ≈ $48,000 saved Net federal cost of the exit: ≈ $104,000 on a $540,000 gain Effective rate near 19%
The Austin couple’s sale year: three gain layers at three rates, NIIT on the net gain, and the released suspended loss working in the other direction.

The four traps

Trap one: never depreciating. Some owners skip depreciation, reasoning that it just creates recapture later. The allowed-or-allowable rule makes that the worst of both worlds: basis drops as if the deductions were taken, so the sale-year bill is identical, and the deductions themselves were simply forfeited. The fix is Form 3115. An accounting-method change with a Section 481(a) adjustment lets the owner catch up all the missed depreciation as a deduction in the current year, and it can be filed for the year of sale, landing the catch-up deduction in the same return as the recapture it offsets. (One caveat: if depreciation was missed for only a single year, no accounting method has been established yet, and the fix is an amended return rather than a 3115.) If you have ever inherited a self-prepared Schedule E with no depreciation on it, this is the repair, and it should happen before closing, not after.

Trap two: the installment note. Sellers who carry financing often assume the tax spreads out with the payments. The capital gain layers do. Section 1245 recapture does not: under Section 453(i), all of it is recognized in the year of sale, even if the first payment hasn’t arrived. A seller who cost-segregated aggressively and then carries a note can owe six figures of ordinary-rate tax in a year they received a 10% down payment. The same acceleration applies to any true Section 1250 recapture from the land-improvement excess. And even the gain that does spread has an ordering rule: as payments arrive, the regulations recognize the 25%-rate unrecaptured Section 1250 layer before the 15/20% layer, so the cheap gain comes last. The structure also dilutes the offset: a suspended passive loss that would have released all at once on a cash sale now releases only in proportion to the gain recognized each year, so most of it arrives with the later payments rather than alongside the year-one recapture bill. If a sale is heading toward seller financing, this belongs in the negotiation, because it is a cash-flow problem, not just a tax problem. (The business-sale version of this dynamic runs through our installment sale article.)

Trap three: the partial exchange. A full 1031 defers everything, recapture included. A partial exchange, where the replacement property costs less or the seller takes cash out, recognizes gain to the extent of the boot, and recognized gain is characterized as recapture before capital gain. Taking $100,000 of cash off the table in an otherwise deferred exchange doesn’t pull $100,000 of 15% capital gain; it pulls the ordinary-rate and 25%-rate layers first. Section 1245 has a sharper edge still: if the replacement property contains less Section 1245 property than what was given up (cost-segregated apartments exchanged into raw land, say), Section 1245 recapture can be triggered even without cash boot. And deferral is not erasure: recapture carries through every exchange in the chain, accumulating, until a taxable sale or a basis step-up ends the story.

Trap four: the converted home. Owners who convert a primary residence to a rental and later sell within the Section 121 window sometimes expect the exclusion to wipe out everything. It never covers depreciation. Gain attributable to depreciation taken after May 6, 1997 is excluded from the exclusion and comes back as unrecaptured Section 1250 gain, even on a sale that is otherwise fully sheltered. Three years of rental depreciation on a converted home is a modest number, but it is not zero, and it surprises people at exactly the moment they think they’ve engineered a tax-free sale.

Paying, deferring, or erasing it

Every depreciated rental leaves by one of three doors, and recapture behaves differently at each.

Pay the toll, ideally in a cheap year. Because unrecaptured Section 1250 gain pays the lesser of 25% or your ordinary rate, and Section 1245 pays your ordinary rate outright, the same sale costs meaningfully less in a low-income year. A retiree in the 12% bracket pays 12% on the building layer that a working seller pays 25% on, and 12% instead of 35% on the ordinary layer. For owners approaching retirement, sequencing the sale into the gap years before Social Security and RMDs begin is often worth more than any structuring.

Defer it. A 1031 exchange rolls the whole stack forward. The suspended-loss interaction cuts the other way, though: an exchange is not a taxable disposition, so suspended passive losses do not release; they follow the replacement property. An owner choosing between selling and exchanging is choosing between recognizing the stack with the loss offset now, or deferring both.

Erase it. Death is the one exit where the recapture never happens. The basis step-up resets the property to fair market value, the depreciation history disappears for the heirs, and they begin depreciating the stepped-up basis fresh. In Texas, community property makes this stronger: both halves of a community-owned rental step up at the first spouse’s death, not just the decedent’s half. A surviving spouse can sell shortly after with little or no gain, or keep the property with a full new depreciation schedule. (We ran the hold-until-death numbers on a rental in our estate tax exemption article.) For long-held property in a community property state, “hold and step up” usually beats every structuring idea on this page, which is why we model the exit before recommending any of them.

How we think about it

Recapture is the second half of a bargain the owner struck years earlier, usually without noticing. Depreciation, and especially accelerated depreciation, is a deferral: deductions now, income later, with the government as counterparty on both legs. The owners who feel ambushed at sale are almost always the ones who priced only the first leg.

So we model the full arc at purchase: the deduction at today’s rates, the layers at the expected exit, the suspended-loss release if the losses were trapped, and the step-up if the realistic plan is to never sell at all. Run that way, cost segregation is sometimes brilliant, sometimes a wash, and occasionally a mistake, and the difference is knowable in advance. A bad purchase with a good tax return attached is still a bad purchase; a good purchase with its exit modeled is a plan.

Common Questions

Is depreciation recapture a flat 25% tax?

No, twice over. The 25% rate applies only to the building-depreciation layer (unrecaptured Section 1250 gain), and even there it is a ceiling: you pay the lesser of 25% or your ordinary rate. Depreciation on cost-segregated personal property is recaptured as ordinary income at up to 37%, and true appreciation above the depreciation layers is regular long-term capital gain. The whole computation runs through Form 4797 before it reaches Schedule D.

Do I owe recapture if I never claimed depreciation?

Yes. Basis is reduced by depreciation allowed or allowable, so skipping the deduction doesn’t skip the tax. The repair is a Form 3115 accounting-method change, which catches up all the missed depreciation as a current-year deduction, and it can be filed for the year of the sale.

Does an installment sale spread out the recapture?

Only partly. The capital gain layers are recognized as payments arrive, but Section 453(i) forces all Section 1245 recapture (and any true Section 1250 recapture) into income in the year of sale, regardless of what has been collected. Sellers carrying a note after a large cost segregation deduction should model the year-one cash need before signing.

Does a 1031 exchange eliminate recapture?

It defers it. The depreciation history carries into the replacement property and accumulates through every subsequent exchange. The stack comes due at the first taxable sale, or disappears at death through the basis step-up.

Does the home-sale exclusion cover depreciation from when I rented the house out?

No. The Section 121 exclusion never applies to gain attributable to depreciation taken after May 6, 1997. That slice is taxed as unrecaptured Section 1250 gain even when the rest of the sale is fully excluded.

What happens to recapture when the owner dies?

It disappears. Heirs receive a stepped-up basis at fair market value, the accumulated depreciation is never recaptured, and a new depreciation schedule begins on the stepped-up amount. In Texas, both halves of community property step up at the first spouse’s death.

Does the 3.8% net investment income tax apply to recapture?

For a passive owner above $200,000 (single) or $250,000 (joint) of modified AGI, yes, on the entire gain including the recapture layers. Gain from a rental that is non-passive in the seller’s hands, generally meaning a real estate professional materially participating in a rental that rises to a trade or business, is outside NIIT, which is one more reason status matters in the exit year.

Jim Crider

About the Author

Jim Crider, CFP®

Jim Crider, CFP® is the founder of Intentional Living FP, a fee-only fiduciary wealth management firm in New Braunfels, Texas, serving clients across Texas and nationwide. Learn more at intentionallivingfp.com or read more about Jim.

This information is for educational purposes only and should not be considered specific financial, tax, or legal advice. Consult with a qualified professional before making financial decisions.

Thinking about selling a rental and want the sale-year math first?

If a sale, an exchange, or a hold-and-step-up decision is on your table, we’d be glad to run the layers with you: the recapture, the loss release, the NIIT, and what each exit would actually cost.

Fee-only fiduciary · No commissions · Always on your side of the table.