Do I owe depreciation recapture selling a former primary home that was rented?

Sold my house this spring. Lived there 8 years, then rented it out for 3 years before selling. I know about the Section 121 exclusion for the years I lived there, but I'm hung up on the depreciation I claimed during those 3 rental years. My accountant at the time put depreciation on Schedule E every year. Now I'm reading that I might owe something called depreciation recapture even if the rest of my gain is excluded. Is that actually true? The house sold for more than I paid, so there's a gain overall, but I'm not sure how the recapture piece layers on top of the 121 exclusion. Already tried reading the Form 4797 instructions and got confused about which part applies to me.

33 comments

Section 1250 unrecaptured depreciation is the piece that trips people up here. The Section 121 exclusion does NOT shelter the depreciation you claimed during the rental period. That depreciation gets recaptured and taxed as ordinary income up to a maximum rate, regardless of how much gain the exclusion covers. So yes, you owe depreciation recapture on every dollar of depreciation you deducted on Schedule E during those 3 rental years.

Olivia C.

Author

That's what I was afraid of but good to know it's confirmed. So the exclusion helps with the capital gain portion but the recapture sits outside it?

Exactly right. The exclusion reduces your recognized gain but the recaptured depreciation is carved out first. Publication 527 at irs.gov covers this, and the Form 4797 instructions walk through the ordering.

Form 4797 Part III is where residential rental property usually lands when you sell it. You figure your depreciation allowed or allowable, and that amount is recaptured. "Allowed or allowable" is the tricky phrase — if you should have taken depreciation but didn't, the IRS still treats it as if you did for recapture purposes.

Olivia C.

Author

Oh wow I didn't realize the "allowable" part applied even if you skipped a year. Good catch.

Yes, it matters a lot. If your accountant ever missed a year, you'd want to add up all the years using Form 4562 to confirm the total before you fill out 4797.

The way I think about the two separate buckets: first you figure your total gain on the sale, then you apply Section 121 to exclude the portion attributable to your primary residence period (subject to the ownership and use tests), then whatever depreciation you took during the rental years sticks around as unrecaptured Section 1250 gain. That piece is taxed separately at its own rate cap, not as a long-term capital gain at the lower rate.

Schedule D is where the unrecaptured 1250 gain ultimately flows for rate purposes, but getting to that number took me a while on my own sale last year. I uploaded my closing disclosure, my old Schedule E returns and Form 4562 to taxr.ai and it pulled out the total depreciation claimed across all three years, flagged that my adjusted basis was understated, and drafted a worksheet showing the recapture amount vs. the excludable gain side by side. Saved me from reporting the wrong figure on Form 4797 line 26.

Olivia C.

Author

That's really helpful to know the specific forms involved. Did it also handle the basis adjustment for the sale costs?

Yes, it accounted for selling expenses in the amount realized column. The worksheet it prepared laid out the full chain from original purchase price through depreciation deductions to adjusted basis, so I could see exactly where each number on Form 4797 was coming from.

One thing to double-check: the 27.5-year MACRS depreciation period for residential rental property means your annual deduction was your building basis divided by 27.5. Land doesn't depreciate, so if your original purchase price included land, only the building portion was depreciable. When you recalculate your total depreciation for Form 4797, make sure you're using the building-only basis.

This is correct and people miss it constantly. If the original contract or appraisal allocated $30k to land and the rest to structure, you should have been depreciating only the structure portion the whole time.

Right. And if land was never broken out, the IRS generally accepts a tax assessor's allocation ratio as a reasonable method. Publication 527 discusses this.

Worth noting: even if your overall gain is fully covered by the Section 121 exclusion, the recapture portion still gets reported. It doesn't just disappear because the total gain is small. I've seen people assume a zero-gain situation means nothing to report and that's not right.

Olivia C.

Author

So even if my capital gain after exclusion is zero or negative, I could still owe tax on the depreciation recapture amount?

Yes, that's the core point. The exclusion can bring your recognized gain to zero, but if that recognized gain includes recaptured depreciation, that recapture is still taxable. The ordering rules in the Form 4797 instructions are explicit about this.

How many years did you actually rent it and do you have your Schedule E from each of those years? The total allowed or allowable depreciation is the number that drives everything. If you're missing a year's return you can get a tax transcript from the IRS that shows what was filed.

Form 4797 line 25b is where you enter the smaller of the depreciation or the gain — that's your ordinary income recapture amount for Section 1245 property. But residential rental is Section 1250 property, so the recapture calculation works differently. For 1250 property the additional depreciation concept applies, which for MACRS property held more than a year is usually zero, but the unrecaptured 1250 gain (the straight-line depreciation) still flows to the 25% rate bucket on the Schedule D Unrecaptured Section 1250 Gain Worksheet.

This is the detail that confuses most people. For MACRS residential rental, there's typically no Section 1250 "additional depreciation" recapture as ordinary income the way there is for 1245 property, but the straight-line amount still gets taxed at the unrecaptured 1250 rate. The Form 4797 instructions and the Schedule D worksheet walk through the distinction.

The Unrecaptured Section 1250 Gain Worksheet inside the Schedule D instructions is what actually computes the rate on that recaptured amount. When I sold my rental-converted-from-primary last year I ran my numbers three different ways and kept getting confused about the ordering. I gave Taxr my Form 4797 draft, the Schedule D worksheet and my three years of Schedule E and it compared all three documents, found that I had the total depreciation on 4797 line 22 lower than the sum on my Schedule E filings, and flagged the discrepancy so I could fix it before filing. Caught a real error.

Olivia C.

Author

The discrepancy catch sounds like exactly the kind of thing I'd miss doing this by hand. I'll try that before I finalize anything.

If you used the home partly as an office or had any other business-use component during the rental years, that could create a small Section 1245 recapture piece on top of the 1250 unrecaptured gain. Worth checking if any portion was ever depreciated as personal property (appliances, etc.) rather than as the structure.

Don't forget your adjusted basis calculation. Start with purchase price, add any capital improvements made during both the primary residence and rental periods, subtract total depreciation allowed or allowable during the rental years. That adjusted basis is what you subtract from the amount realized to get your total gain before applying Section 121.

Olivia C.

Author

So improvements during the years I lived there still add to basis even though I wasn't renting yet?

Yes, capital improvements increase basis regardless of which period they happened in. Roof replacement, addition, HVAC — all of it. Repairs don't, only improvements. Keep the receipts.

Section 121 ownership and use tests: you need 2 of the last 5 years for both ownership and use as a primary residence to get the full exclusion. With 8 years lived in and sold after 3 years of renting, you likely still qualify since the rental started less than 5 years before the sale — but confirm you meet both tests. The exclusion amount also has a cap; check the Form 4523 — wait, it's the Schedule D instructions and Publication 523 that govern the 121 exclusion limits.

Yes, it's Publication 523 and the Schedule D instructions for Section 121. The ownership and use tests are both required and both must be met within the 5-year window ending on the sale date.

Given the mix of primary residence history and rental history, and the interplay of Section 121, Form 4797, Schedule D and the unrecaptured 1250 worksheet, this is honestly a situation where having a CPA or enrolled agent review the return before you file is worth the cost. The moving parts are small but the ordering errors are easy to make and can mean reporting the wrong income type.

Olivia C.

Author

Yeah I'm leaning that direction. At least now I know the right forms to bring to that conversation.

The depreciation rules for residential rental property, including the 27.5-year recovery period and the allowed-or-allowable rule, are laid out in detail in Publication 527 at irs.gov. That's the best starting point before you finalize any numbers.

Form 8582 sometimes comes up in these situations if you had passive losses from the rental years that were suspended. When you sell, those suspended passive losses are released and can offset other income in the year of sale. Check whether you have any carryforward from those Schedule E years.

Olivia C.

Author

I actually did have a small suspended loss from one year because my income was too high for the $25,000 allowance. Good reminder to look for that on the prior year Form 8582.

Yes, that full suspended loss releases in the year of sale. It's a separate line from the recapture — it offsets income, it doesn't reduce the recapture amount itself — but it can reduce your overall tax bill for the year.