Is there a depreciation recapture calculator I can use before I sell?

Selling a rental duplex I've owned for 11 years. I've been depreciating the building basis each year on Schedule E and I want to know roughly what I'll owe on recapture before I close, so I'm not blindsided at tax time. I know the recaptured depreciation gets taxed at 25% (unrecaptured Section 1250 gain), but I'm not sure how to add up the total depreciation I've taken and then figure out how that interacts with my regular capital gain on the sale. I tried pulling my old returns to add up the depreciation from Form 4562 each year but a few years are missing. Is there a depreciation recapture calculator somewhere, or is there a manual way to work through this before I list the place?

29 comments

The cleanest manual approach: pull every Schedule E you filed and add up the depreciation claimed each year in column (c) or the line for depreciation expense. That total is your cumulative depreciation taken. When you sell, that entire amount is subject to unrecaptured Section 1250 gain, taxed at a max 25% federal rate. The gain above that is your regular long-term capital gain. You don't need a dedicated depreciation recapture calculator — the math is just: sale price minus adjusted basis (original basis minus total depreciation taken). If years are missing, a tax return transcript from the IRS, or a full copy of the return ordered with Form 4506, can sometimes help reconstruct.

Tyler J.

Author

The return transcript — is that something I request through the IRS website or is it a specific transcript type? I've only ever pulled wage and income transcripts.

For the missing years, request a Tax Account Transcript for each of those years at irs.gov. It won't show the depreciation line directly, but it confirms what return was filed. The real reconstruction tool is a Record of Account Transcript — it includes what was reported. You may also look at your prior Form 4562s if you can get transcripts of the actual returns.

Tyler J.

Author

Didn't realize I could get the full return transcript. Going to try pulling those for the years I'm missing.

Before I sold my rental condo last year I uploaded about eight years of returns to taxr.ai and asked it to pull every depreciation figure from each Form 4562 and Schedule E, then total them up and lay out the recapture calculation. It listed the cumulative depreciation taken, estimated the unrecaptured 1250 gain at the 25% rate, and flagged one year where I had a mid-year improvement that reset that asset's basis separately. Saved me from understating the recapture by a few thousand dollars. Worth doing if your records are scattered like mine were.

Tyler J.

Author

That's exactly what I need — the improvement piece is something I forgot about. I put a new roof on in year 4 and I think that depreciation is tracked separately.

The roof improvement is depreciated over 27.5 years just like the building itself, per Publication 527, because it's a structural component made to residential rental property. So you'd have two separate depreciation streams to add up: the original building basis starting in year one, and the roof basis starting in year 4. Both feed into your total unrecaptured Section 1250 gain at sale.

Tyler J.

Author

That explains why my Form 4562 had two lines for a few years. I was wondering why there were two asset entries.

One thing people get wrong: land doesn't get depreciated, so it's not part of the recapture. Only the building basis. If your original purchase contract broke out land vs. building value, that's the split you use. If it didn't, you'd use the assessed value ratio from your property tax records at the time of purchase. Make sure you're only adding up depreciation on the building and improvements, not anything allocated to land.

I went through this when I sold a fourplex two years ago. The part that tripped me up was that the unrecaptured Section 1250 gain flows to your Schedule D and then to the Unrecaptured Section 1250 Gain Worksheet in the Schedule D instructions. It doesn't just sit as a flat 25% — your actual tax rate on it could be lower if your ordinary income puts you in a lower bracket. The 25% is a ceiling, not a guaranteed rate.

Good clarification. At lower income levels the actual tax on the 1250 gain can end up less than 25%. Worth modeling it out with your full income picture.

Does the recapture amount change if I do a 1031 exchange instead of a straight sale? Asking because I might go that route and I always assumed recapture just disappears.

It doesn't disappear — it defers. In a 1031 exchange you carry your adjusted basis forward into the replacement property. The recapture sits there until you eventually sell in a taxable transaction. Form 8824 is where the exchange is reported and where the basis carries over.

Makes sense. So the recapture clock just keeps running into the next property.

If your MAGI is high enough, you may also owe the Net Investment Income Tax on the gain, which is a separate 3.8% on top of the capital gain rates. That's calculated on Form 8960. It doesn't change how you calculate the recapture itself, but it's part of the total tax picture when you're estimating what you'll actually owe at closing.

When I was estimating my recapture last spring I ran my actual settlement statement and all my prior 4562s through Taxr. It built out the full gain calculation — adjusted basis, realized gain, the split between unrecaptured 1250 and long-term capital gain — and then mapped each piece to the right Schedule D worksheet line. What I'd been estimating by hand was off because I had forgotten to subtract selling costs from the amount realized. Those come off before you even get to the gain.

Tyler J.

Author

Selling costs — I hadn't thought to include commissions and closing fees in that. So the gain is sale price minus selling costs minus adjusted basis, not just sale price minus adjusted basis?

Exactly. Amount realized is sale price minus selling costs (commissions, transfer taxes, legal fees). Then you subtract adjusted basis from that. The IRS calls the result your gain on the sale; the "amount realized" is the figure before you subtract adjusted basis.

The Section 121 exclusion can sometimes shelter part of the gain if the property was ever your primary residence for the right number of years, but it doesn't eliminate the unrecaptured 1250 gain from depreciation taken during rental periods. That portion is always recaptured. Worth knowing before you count on the exclusion wiping everything out.

Tyler J.

Author

This one actually matters for me — I lived in the duplex for the first two years before renting it out. So I need to look at how those two periods interact.

To add specifics to what was said about Section 121: the exclusion covers up to a threshold of gain on your primary residence portion, but the IRS requires you to allocate between the residential and rental use periods if the property was used for both. Any depreciation you claimed during the rental period is recaptured regardless of the exclusion. For the exact limits, check Publication 523 for the current year.

My situation was mixed-use like yours — lived in half, rented the other half for years. I gave Taxr my purchase closing disclosure, all the Schedule Es, and my final HUD-1 and asked it to separate the basis between the owner-occupied half and the rental half and then run the recapture on only the rental portion. It drafted a worksheet showing each depreciation stream, the allocated gain, and which part the Section 121 exclusion could reach. Kept me from applying the exclusion to the wrong portion of the gain.

Tyler J.

Author

The allocation between halves is exactly what I was going to mess up. I was about to treat the whole building as rental because that's how it's been for the last nine years.

Another angle: state taxes. A lot of states don't conform to the federal 25% rate cap on unrecaptured 1250 gain — they tax the whole gain as ordinary income. So your state bill could be higher than you expect even if the federal side is capped. Definitely check your state's treatment separately.

Don't overlook passive activity loss carryovers either. If you have suspended passive losses from prior years on Form 8582, they release in full in the year of a fully taxable sale and offset the gain — including the recapture portion. That can materially change your net tax.

This is a real one. People forget they have years of suspended losses sitting on 8582 and don't realize the sale frees them all up. Can turn a big tax bill into a manageable one.

Tyler J.

Author

I do have passive loss carryovers from a few years where the duplex ran at a loss. Good to know those aren't just stuck there forever.

Given you've got the mixed primary residence period, the improvement depreciation streams, the passive loss carryovers, and potentially the NIIT, I'd seriously recommend sitting down with a CPA before you close — not after. The timing of when you close can affect which tax year the gain lands in, and a CPA can model that. This isn't a situation where you want to figure it out when you're preparing the return.

Tyler J.

Author

Agreed. I'm going to do my own estimate first to understand the numbers, then bring everything to a CPA before I sign anything.