Depreciation recapture on sale of rental property IRS — how does this actually get calculated?

Finally sold my rental after 11 years and I'm staring at a tax bill that seems way higher than I expected. My CPA mentioned "depreciation recapture" but didn't have time to walk me through it before I had to sign. I've been depreciating the building basis over 27.5 years every year on Schedule E, and now apparently all of that comes back to bite me? I think I took around $38,000 in total depreciation over the years but I'm not sure if the number on my return is exactly right. I understand capital gains but this recapture piece is a separate tax rate? And where does it actually show up on my return — is there a specific form or line? Want to understand what I'm looking at before I meet with my CPA again.

38 comments

Form 4797, Sale of Business Property, is where this starts. When you sell a rental you've been depreciating, the gain attributable to that depreciation gets reported on Form 4797 and taxed as "unrecaptured Section 1250 gain." It is not the same as your regular long-term capital gain rate. The IRS taxes unrecaptured 1250 gain at a maximum rate of 25% for most taxpayers — but your actual rate depends on your total taxable income. The Schedule D Unrecaptured Section 1250 Gain Worksheet does the actual math.

Kelly F.

Author

So Form 4797 and Schedule D are both involved? I thought it would just be one place. Does the 4797 flow into Schedule D automatically if I'm using software?

Yes, in most software it flows automatically. Form 4797 Part III handles the depreciation piece, and that result feeds into Schedule D. The unrecaptured 1250 worksheet on Schedule D then determines the rate. You shouldn't have to enter it twice.

The number that gets recaptured is the total depreciation you actually claimed — or were allowed to claim — over your holding period. Even if you forgot to take depreciation one year, the IRS still counts it as if you did. So verify your cumulative depreciation from your prior Form 4562s, not just what you remember claiming.

Kelly F.

Author

That "allowed or allowable" rule is the part that worries me. I may have under-claimed one year early on. How do I find the right cumulative number?

Pull every Schedule E you filed for the property. The depreciation claimed each year should be on line 18. Add them up. If a year looks too low compared to what 27.5-year straight-line would give you, that year's correct amount still counts for recapture even if you didn't actually take it.

Form 4797 confused me badly when I sold my duplex last year. I uploaded the closing disclosure and all my prior Form 4562s to taxr.ai and had Taxr pull together a year-by-year depreciation schedule so I could see the cumulative total clearly before my preparer even started the return. It flagged one year where my depreciation looked short, which turned out to matter for the "allowed or allowable" rule. Saved me from understating the recapture basis. Definitely worth doing before you sit down with your CPA.

Kelly F.

Author

That's exactly the workflow I need — getting the numbers organized before the meeting so my CPA isn't billing me to do basic reconstruction. I'll try that.

One thing people miss: land doesn't get depreciated, so land value doesn't factor into recapture at all. Your recapture is only on the building basis you've been depreciating. If your original purchase contract allocated value between land and building, that's the split that matters. If it didn't, you would have used assessed value ratios at purchase — whatever method set your original depreciable basis is what controls now.

Worth adding: improvements made during ownership each have their own depreciation basis and their own recapture amount. A roof replaced in year 4 has been depreciating separately since then. All of it stacks into the total recapture figure.

Kelly F.

Author

I did replace the HVAC in year 3. I know I depreciated that separately on Form 4562. So I need to add that depreciation pool to the original building depreciation when I calculate total recapture?

Correct. The HVAC is a structural component, so it depreciates over 27.5 years just like the building itself under MACRS. Add whatever you've claimed on that asset since year 3 to the building's cumulative total. Both flows show up on Form 4797.

The recapture doesn't disappear in a 1031 exchange either — it carries forward into the replacement property's basis. I learned that the hard way when I thought I was deferring everything. The deferred recapture just reduces your basis in the new property, so you eventually pay it on the next sale unless you keep exchanging.

Form 8824 is where the 1031 is reported, and your replacement property basis comes out of that form. The deferred gain — including the unrecaptured 1250 piece — reduces that basis. Right, the recapture doesn't disappear, it just waits.

Exactly. And if you die holding the replacement property, your heirs get a stepped-up basis and the recapture effectively evaporates. That's the only way it fully goes away without paying it.

Don't confuse the Section 121 exclusion with any help on recapture. Section 121 lets you exclude up to a certain amount of gain if the home was your primary residence for the required period — but even if you qualify, the IRS does not let you use that exclusion to shelter unrecaptured 1250 depreciation. The recapture comes out first before Section 121 applies to the remaining gain.

This is a really important point. I've seen people assume the $250,000/$500,000 exclusion wipes everything clean. It doesn't touch the recapture portion. The IRS is clear that depreciation taken while the property was a rental still recaptures regardless of Section 121.

Kelly F.

Author

My property was always a rental, never a primary residence, so Section 121 doesn't help me anyway. But good to know for future planning.

Schedule D Unrecaptured Section 1250 Gain Worksheet is the piece that actually calculates how much of your gain hits the 25% ceiling versus your regular long-term rate. When I sold a property two years ago I uploaded my Schedule D draft and Form 4797 numbers to Taxr and it walked through the worksheet line by line, showing me which portion landed at which rate. Made it easy to check that my preparer's numbers matched what the worksheet should produce. Really helped me feel confident about a number I couldn't have verified on my own otherwise.

Kelly F.

Author

The worksheet is what I keep skipping over when I look at my draft return. I'll actually read through it this time with that in mind.

Your adjusted basis at the time of sale matters a lot here. It's your original depreciable basis minus all the accumulated depreciation you've taken (or were allowed to take). The gain on Form 4797 is sale price minus adjusted basis minus selling costs. The portion of that gain equal to your total allowed depreciation is what recaptures at the 1250 rate. Any gain above that is long-term capital gain.

Just to be precise: selling costs (commissions, closing fees, legal fees directly related to the sale) reduce your amount realized, which reduces your overall gain. Keep those closing disclosure line items handy because they directly reduce what you owe.

Kelly F.

Author

I have the full closing disclosure. The agent commission alone was significant. Good to know that comes off the top before the gain is calculated.

The IRS's own rental guide, Publication 527 on irs.gov, goes deep on rental property depreciation, including the basis rules and what qualifies as a depreciable asset versus a land component. It's dense but the depreciation section is worth reading before your CPA meeting so you can ask better questions about where your numbers came from.

Something I'd double-check: state taxes on the sale. Some states do not follow federal recapture rates and have their own treatment of real estate gains. Your federal Form 4797 output is a starting point but your state might tax the whole gain at ordinary income rates, or have its own depreciation schedule that differs from MACRS. Worth a specific question to your CPA about your state's conformity.

Kelly F.

Author

I hadn't thought about state conformity at all. My state has its own income tax so this is relevant. Adding it to my list of questions for the meeting.

The "allowed or allowable" rule catches a lot of people. If you filed a year where you forgot to claim depreciation, the IRS treats you as if you claimed it. When you sell, your adjusted basis is reduced by what you should have claimed — so your gain and your recapture amount are both larger. The fix for years you missed is Form 3115, Change in Accounting Method, which lets you catch up without amending every old return. Worth asking your CPA if any of your years look light.

Form 3115 is the right tool but it needs to be filed correctly or it can create more problems. If the missed depreciation years are significant, that's a situation worth having a CPA or enrolled agent handle rather than DIYing.

Kelly F.

Author

One of my early years does look light on depreciation. I'll bring the Form 4562 from that year to the meeting and ask about 3115 specifically.

When I sold a rental a few years back the numbers on Form 4797 and the Schedule D worksheet didn't reconcile the way I expected. I gave Taxr all my Forms 4562 from every year of ownership and my draft 4797, and it built a summary showing what each asset's remaining basis was and where the gain allocation was coming from. Helped me find that my preparer had used the wrong cumulative depreciation figure for the HVAC — it was a small error but it would have understated my recapture and potentially caused an IRS notice later.

Understating recapture is exactly the kind of thing that triggers a CP2000 or an exam. The IRS gets the sale information from the closing and can compare it to what you reported. Getting the 4797 right the first time matters.

Agreed. The error wasn't huge in dollar terms but on a relatively straightforward return an obvious discrepancy on Form 4797 is an easy thing for the IRS to spot.

Part III of Form 4797 is for property that has been depreciated and is sold at a gain — which is what most long-term rental property sales look like. Part I handles long-term property that isn't fully covered by Part III. Make sure your preparer is using the right part; the wrong section produces the wrong character of income.

Part III recapture flows to Part II or Part I depending on the nature of the remaining gain. The software handles the routing but if you're reviewing manually, trace the line references carefully between the parts.

If your gain is large and your income is already high, the Net Investment Income Tax (NIIT) may also apply to the rental gain — that's a surtax on top of the capital gain and recapture rates. It applies to passive activity income for people above certain income thresholds. Your Form 8960 is where that calculation lives. Recapture income is included in net investment income for most rental sellers.

Real estate professionals who materially participated may avoid NIIT on the rental gain because the activity isn't passive for them. But for a typical landlord who doesn't qualify as a real estate professional under the IRS definition, the rental gain — including the recapture — is generally passive and subject to NIIT if income is above the threshold.

Pulling it all together for your CPA meeting: bring every Form 4562 from your ownership years, the original purchase closing disclosure showing land vs. building allocation, the sale closing disclosure, and any receipts or returns showing capitalized improvements. Your CPA needs those four things to build an accurate Form 4797 and verify the cumulative depreciation figure before the return is filed.

Kelly F.

Author

This is the clearest checklist I've gotten from this thread. I have all of those documents, it's just a matter of organizing them. Thank you — this whole conversation gave me a much better foundation going into that meeting.