hno4
Level 2

Depreciation recapture when selling primary residense

Hi, I plan to sell my primary residence which I first lived there for 5+ years, rented for 4 months and then I live there for another 2 years, I understand we need to recapture depreciation in the capital gain when selling, no matter the depreciation will be used to deduct my rent income or not, as other expenses may cover the full rent income.

 

My question is, does the recapture depreciation only account for the 4 months rental period or include my personal usage for 2 years afterwards? I don't think it's fair to recapture for personal usage period.

 

What if I do short term rentals occasionally and I converted to personal usage between them? How do we calculate the depreciation when selling?