What actually happens with depreciation when you sell a rental property?

Finally selling a duplex I've owned and rented for 11 years. I've been taking depreciation every year on Schedule E and I know something happens to it when I sell but I'm not totally sure what. My tax software is asking me to enter "accumulated depreciation" and I pulled together my old returns and added it up. The number is bigger than I expected. I've heard the word "recapture" but I don't really understand if that means I owe tax on the whole depreciation amount, what rate it's taxed at, or how it interacts with any capital gain. Do I report all this on the same form? Is there a separate form for the recapture piece? Just trying to understand what I'm walking into before I sit down with someone.

37 comments

How long did you hold the property and do you know your adjusted basis off the top of your head? Those two things drive most of what your tax bill looks like on the sale.

Isaac H.

Author

11 years, bought it for $210k. I've been depreciating based on the building value allocated at closing. Accumulated depreciation over the 11 years is roughly $63k by my count from my old Schedule E forms.

Depreciation recapture on rental real estate is its own layer of tax separate from your regular long-term capital gain. The IRS treats the portion of your gain equal to the depreciation you claimed (or were allowed to claim) as "unrecaptured Section 1250 gain." That gets taxed at a maximum rate of 25% for most people, while the remaining long-term gain above that gets the preferential capital gains rate. It is all reported on Schedule D and Form 4797.

Isaac H.

Author

So the $63k I depreciated doesn't get taxed as ordinary income? I keep reading conflicting things about this.

Correct for residential rental. Section 1250 recapture as ordinary income generally only bites if you used accelerated depreciation, which most residential landlords don't. Under MACRS straight-line, the unrecaptured Section 1250 gain is taxed at up to 25%, not your full ordinary income rate. The Form 4797 instructions walk through the distinction.

Before my sale closed last year I uploaded my depreciation schedules and the draft closing disclosure to taxr.ai and it mapped out exactly which accumulated depreciation figure fed into the unrecaptured Section 1250 gain calculation and flagged that my basis was understated because I had missed an HVAC replacement I capitalized in year four. Worth doing that kind of check before you file. On the mechanics: your adjusted basis is purchase price minus accumulated depreciation plus any capital improvements you made. The gain is sale price minus selling costs minus adjusted basis. The first slice of gain up to your total depreciation taken is the recapture piece.

Isaac H.

Author

The HVAC thing is a good catch — I did replace the roof in year six and capitalized it. I need to make sure that's in my accumulated depreciation total too.

Roof replacement on residential rental property depreciates over 27.5 years, same recovery period as the building itself. Since the roof went into service in year six, by the sale you've only taken about 5 to 6 years, roughly 20% of that roof's basis. Add what you actually claimed on that asset to your accumulated depreciation, not the full roof cost.

Are you selling outright or have you looked at a 1031 exchange? If you're buying another rental anyway, rolling into a 1031 defers the recapture entirely until you sell the replacement property.

Isaac H.

Author

Not doing a 1031 this time, just selling outright. Appreciate the mention though.

Got it. Then Form 4797 is your main form for the sale of the rental. Part III handles most residential rental property sales. The result flows to Part I and then to Schedule D. Your software should walk you through it if you enter the asset information correctly.

Does the Section 121 exclusion come into play at all here? Like if you lived in the duplex at any point?

Isaac H.

Author

I never lived there, pure rental the whole time. So 121 doesn't apply to me.

Then you're right, 121 is off the table. If you had lived there the exclusion can shelter some gain but the unrecaptured Section 1250 portion is never excludable under 121 even if you meet the two-of-five-year test. Important for anyone reading who has a mixed-use situation.

I ran my sale docs through Taxr when I sold a rental condo two years ago — gave it the HUD-1 and my prior year Schedule E and it pulled together a worksheet showing the adjusted basis calculation step by step, with the depreciation recapture amount separated from the remaining capital gain. Saved me from mixing those two buckets up on Form 4797. The separation between the 1250 gain and the remaining long-term gain matters a lot for which lines you use on Schedule D.

Isaac H.

Author

This is exactly the kind of double-check I need to do. I'm fine doing the return myself but I want to make sure the basis calculation is right before I start entering numbers.

One thing worth confirming — did you actually claim depreciation every year or did you skip any years? The IRS allows only the "allowed or allowable" depreciation when calculating your recapture, meaning even if you forgot to take it, they count it as if you did.

Isaac H.

Author

I took it every year. I confirmed by going through each Schedule E. But that's a good warning for people who skipped it — sounds like you get hurt on both ends.

Exactly right. If you skipped years, the fix is to file Form 3115 to catch up the missed depreciation. You can still file it for the year of the sale and get that benefit, and the recapture still applies.

How are you handling the land value? You can't depreciate land so your depreciable basis should only be the building portion. If your original basis allocation was off that could affect your adjusted basis calc.

Isaac H.

Author

My closing documents allocated the value between land and building, so I used the building figure as my depreciable basis from day one. Publication 527 at irs.gov has an example for this — it's pretty clear.

What state are you in? Some states don't conform to federal depreciation rules and you might end up with a different gain number on the state return.

Isaac H.

Author

Good point I hadn't thought about. I'm in a conforming state so it should track federal, but I'll double-check the state instructions.

Is your gain large enough that you might also owe the net investment income tax? That's a 3.8% surtax on investment income including gains from rental property sales if your MAGI crosses a threshold. It's on Form 8960 and would be on top of the capital gains and recapture tax.

Form 8960 yes. The threshold depends on filing status so worth checking the form instructions. The gain from the sale of a passive rental goes into the NIIT calculation for most people who are not real estate professionals.

Isaac H.

Author

I had not even thought about that form. I'll pull up Form 8960 and see where I land.

Just to make sure I understand this right — the recapture amount and the remaining long-term gain both show up on Schedule D, but they're taxed at different rates depending on your income? The software handles that automatically?

Yes, Schedule D has an Unrecaptured Section 1250 Gain Worksheet that the software runs behind the scenes. The 25% cap on that piece isn't a flat 25% — it's capped at 25%, so if your ordinary income tax rate is lower than 25%, the recapture gain is taxed at that ordinary rate, not at the long-term capital gains rate. High earners hit the ceiling.

Have you confirmed what your selling costs are? Real estate commissions, transfer taxes, legal fees at closing all reduce your amount realized and therefore reduce your gain. Easy to leave things out.

Isaac H.

Author

Agent commission, title fees, and a small transfer tax. I have the closing disclosure and I'm going through each line. The Form 4797 instructions list what counts.

Nobody above mentioned this yet but if you have any suspended passive activity losses from prior years on this property, the sale releases them. Those losses become deductible in the year of the sale and reduce your overall gain. Check Form 8582 from your prior returns.

Isaac H.

Author

I never had a suspended loss — my income was low enough that I could use the losses each year under the $25k special allowance. But good flag for people whose income was above the phase-out range.

Right, the special allowance phases out between $100k and $150k of MAGI for most filers. Above $150k the losses get suspended and pile up on Form 8582 until the property is sold. At sale they all free up at once.

Are you working with a CPA or doing this yourself? This isn't the most complicated return in the world but the interplay between Form 4797 Part III, Schedule D, and the unrecaptured 1250 gain worksheet is easy to mess up in ways that aren't obvious.

Isaac H.

Author

Planning to do it myself but I'm going to run everything past a CPA before I file just to confirm the basis and the form flows are right. The numbers are significant enough that I don't want to get it wrong.

The adjusted basis calculation is worth writing out longhand once before you enter anything in software: original purchase price, minus land value, gives you depreciable building basis. Add any capitalized improvements. Then subtract total accumulated depreciation taken. That is your adjusted basis for the building. Add land back in to get total adjusted basis for the sale.

Isaac H.

Author

Sale price minus selling costs, minus that adjusted basis, equals total gain. Then I need to separate out the unrecaptured 1250 piece from any remaining long-term gain above that. I think I have my head around it now. Thank you all — this thread gave me a real roadmap.