Is depreciation recaptured when selling former rental converted to primary residence after two years?

Hoping someone can help me understand what happens with depreciation recapture in my situation. I owned a house as a rental for about six years, took depreciation every year on Schedule E, then moved in and made it my primary residence. After living there two years I sold it. I know the Section 121 exclusion covers a big chunk of the gain, but I keep reading that depreciation recapture is treated differently. My return preparer mentioned "unrecaptured Section 1250 gain" and I didn't fully follow what she said. I pulled up Form 4797 and Form 8949 and I can see numbers flowing but I'm not sure which part of my gain is excluded and which part gets taxed no matter what. Is depreciation recaptured when selling a former rental converted to primary residence after two years?

43 comments

Section 121 does not shelter the depreciation you claimed during the rental years. The IRS refers to this as unrecaptured Section 1250 gain, and it is taxed as ordinary income up to a maximum rate — look at the Unrecaptured Section 1250 Gain Worksheet in the Schedule D instructions. The Section 121 exclusion can reduce the total gain, but the IRS specifically carves out any depreciation you were allowed or allowable during periods of non-qualified use, which includes the rental period.

Sam D.

Author

So even though I lived there two years and qualify for the full exclusion, the depreciation from those six rental years still comes back as taxable gain?

That's right. Total allowed or allowable depreciation during the rental period is recaptured first, before the exclusion is applied to any remaining gain. The Schedule D instructions walk through the worksheet step by step.

Form 4797 is where the unrecaptured 1250 gain flows for property that was depreciable. If the property was residential rental it falls under Section 1250 rules. The depreciation you claimed on Form 4562 and deducted on Schedule E over those six years gets reported there. Worth reading the Form 4797 instructions on what lines to use for property held longer than a year — Part III vs Part I matters for how the numbers land.

Sam D.

Author

Is Part III only for the depreciation recapture piece, or does the whole sale go through 4797?

For residential rental depreciated straight-line, there's no ordinary income recapture to calculate in Part III of 4797. The depreciation comes back as unrecaptured 1250 gain (max 25% rate), and a home you lived in rather than rented in the year of sale generally goes on Form 8949 and Schedule D rather than 4797. But the interaction with the 121 exclusion complicates it — your preparer is right to work through the worksheets carefully.

I sold a condo last year that I had rented for four years before moving in. Had the same question about whether depreciation recapture survived the 121 exclusion. Uploaded my closing disclosure and all my old Schedule E returns to taxr.ai and it listed out exactly how much accumulated depreciation I had allowed vs. allowable, flagged the unrecaptured 1250 gain amount, and drafted a summary showing which piece of my gain was excludable and which wasn't. Helped me confirm the numbers my CPA had before we finalized. Depreciation absolutely does not get excluded — that part is taxable at the unrecaptured 1250 rate regardless of how long you lived there after.

Sam D.

Author

Did it matter at all that you lived there two full years before selling, or does the rental depreciation always come back no matter what?

Meeting the two-year residency test gets you the 121 exclusion on the appreciation gain, but the accumulated depreciation is walled off from that exclusion entirely. Living there longer doesn't change it — the IRS wants that depreciation back.

One thing worth flagging: the phrase "allowed or allowable" is important here. Even if you forgot to claim depreciation in a particular year on Schedule E, the IRS treats it as if you claimed it. So you can't reduce your recapture amount by pointing to a year you didn't take the deduction. If you underreported depreciation, you'd actually need to file Form 3115 to catch up — but that's a separate issue. For your recapture calculation, add up everything you should have claimed.

This tripped up a friend of mine — he skipped depreciation for two years thinking it would lower his recapture, and the IRS still counted it as allowable. Ended up owing the same amount with no benefit from skipping it.

The unrecaptured Section 1250 gain worksheet in the Schedule D instructions is honestly pretty clear once you sit with it. You enter the total depreciation allowed or allowable, it caps the rate on that piece, and then whatever gain is above that (from appreciation) is what the 121 exclusion hits. The order matters: recapture first, exclusion second.

Sam D.

Author

That order — recapture first, exclusion second — is what I was missing. So the exclusion can't be used to wipe out the recapture piece?

Correct. The 121 exclusion applies to the remaining gain after the unrecaptured 1250 amount is separated out. Those are two different pots taxed at different rates.

Worth mentioning that the period of non-qualified use also factors into how much of the gain is even eligible for the 121 exclusion. The rental years before you moved in are considered non-qualified use, which means a portion of the appreciation gain (not just the depreciation) may also be excluded from the exclusion. The IRS calculates this as a ratio of non-qualified use days to total ownership days. That piece flows through on the Schedule D worksheets too.

Sam D.

Author

Wait — so even some of the appreciation gain might not be fully excludable because of the rental years?

Yes. The non-qualified use rule means the exclusion is prorated. If you owned the property eight years total and rented for six, a portion of the appreciation gain — not the recapture, which is separate — is also ineligible. The Schedule D instructions have the allocation calculation.

This is an important point that often gets overlooked. The 121 exclusion is not all-or-nothing once you've had a rental period before moving in. The gain is allocated between qualified and non-qualified use periods.

Schedule D instructions have a lot of moving parts here. When I sold my former rental two years ago I gave Taxr my return draft, the Form 4562 from each rental year, and the closing statement. It went through and found that my prior preparer had used the wrong basis figure — the land value hadn't been correctly stripped out, so the depreciable basis was overstated. That meant my accumulated depreciation was wrong and my recapture number was off. Worth having a second set of eyes on the basis calculation before you finalize anything.

Sam D.

Author

How do you correctly separate land from building value if the original purchase contract didn't break it out?

Publication 527 at irs.gov addresses this — you can use the assessed values from your property tax records to allocate between land and building. The ratio of assessed building value to total assessed value is applied to your purchase price to get the depreciable basis.

That's the standard method and what the IRS expects. County assessment records work for this. Some people also use an appraisal from the time of purchase if they have one.

Don't overlook the basis adjustments that reduce your gain calculation too — things like selling costs and any capital improvements you made during the rental years. Capital improvements are added to basis, which lowers total gain. They also get their own depreciation stream on Form 4562, which matters for the recapture calculation. Keep all the receipts and permits you have.

Sam D.

Author

I did a roof replacement during the rental years — does that get its own depreciation line and its own recapture amount?

Yes. A roof on a residential rental takes the same 27.5-year MACRS GDS recovery period as the building itself, per Publication 527. It gets its own line on Form 4562 and its own unrecaptured 1250 gain amount. Add up all the separate components when you total your recapture.

Something I want to flag: earlier in the thread there was a phrase about the exclusion applying "before" recapture. Want to make sure the direction is clear — the unrecaptured Section 1250 gain from depreciation is taxable first and is not shielded by the 121 exclusion at all. The exclusion then reduces whatever gain remains from appreciation. So the sequencing is: identify depreciation recapture (fully taxable), then apply 121 to the rest. That's consistent with what others said but I wanted it stated plainly.

Sam D.

Author

That's the clearest way I've seen it put. Recapture is not excludable, period — then 121 applies to what's left.

Practical note on what rate applies: unrecaptured Section 1250 gain for residential rental is taxed as ordinary income up to a maximum rate. It's not the same rate as short-term capital gain and it's not the same as long-term capital gain on appreciation. The Unrecaptured Section 1250 Gain Worksheet in the Schedule D instructions is what determines how much of your gain falls in that bucket and what rate applies given your overall income.

Does the rate change based on your total taxable income for the year?

If your total gain (before exclusion) is less than your accumulated depreciation, the entire gain is unrecaptured 1250 gain and none of it is excludable under 121. The exclusion only applies to gain above the depreciation amount. So if the property didn't appreciate much, you might owe recapture tax on the whole thing.

Sam D.

Author

That scenario didn't occur to me — if I had barely any appreciation, the exclusion might be worth nothing here?

Exactly. The 121 exclusion is most valuable when appreciation is large. If the sale price barely exceeds your adjusted basis, most or all of the gain is recapture and the exclusion gives you nothing on it.

I uploaded my Form 4797 draft and old Schedule E returns to Taxr last spring when I was in basically this same situation — rented for five years, then moved in and sold after two. It cross-referenced my accumulated depreciation across all the Form 4562 entries year by year and built out the recapture figure with a clear line showing what was going to be taxable no matter what. Saved me a lot of time reconciling the numbers myself. I still had a CPA review and sign the return, which I'd recommend for anyone with multiple depreciation schedules.

Sam D.

Author

Did having the CPA review after that change anything, or were the numbers solid going in?

CPA caught one state-level adjustment but the federal recapture figure held. For something this complex — multiple years of depreciation, the 121 exclusion interaction, non-qualified use proration — having a CPA or enrolled agent finalize it is worth it.

Form 8949 is where the final sale of the residence lands after the 4797 and Schedule D worksheets are done. The exclusion amount gets reported there as a negative adjustment in column G with code H in column F. The unrecaptured 1250 gain flows separately through the worksheet and doesn't appear as an adjustment on 8949 — it hits the Schedule D Unrecaptured Section 1250 Gain Worksheet. Make sure your preparer is using both forms.

Sam D.

Author

So on Form 8949 I should see the full proceeds and basis, the exclusion as a negative, and then the net taxable gain — but the recapture rate is determined somewhere in the Schedule D worksheets separately?

That's the correct read. The 8949 shows the gain after exclusion; the Schedule D worksheet determines how much of your total gain is taxed at the unrecaptured 1250 rate vs. regular long-term capital gain rates. Two separate calculations feeding one return.

Has anyone dealt with a situation where they also claimed passive activity losses on the rental that were suspended under Form 8582? Do those released losses interact with the recapture calculation or are they completely separate?

Suspended passive losses from Form 8582 are released in the year of sale and become deductible against ordinary income in that year. They don't reduce the recapture amount itself — recapture is calculated on the depreciation taken regardless — but they can offset other income in the same year, which may help the overall tax picture.

That's helpful. So the 8582 release and the 1250 recapture are parallel items, not sequential ones.

To anyone working through this: the key documents you want before you finalize are (1) every Form 4562 from each rental year showing depreciation claimed, (2) your original closing disclosure from purchase showing your cost basis, (3) records of any capital improvements and when they were placed in service, and (4) the closing disclosure from the sale. With all of that you can build the recapture figure and the 121 exclusion calculation from scratch and verify whatever your software or preparer produces.

Sam D.

Author

This is the most practical checklist I've seen — I'm going to pull all of these together before my appointment. Thank you.