Capital gains and depreciation recapture when converting rental property back to primary residence
I'm in a bit of a pickle with my home and hoping someone can clarify the tax situation. I purchased my house about 7 years ago and lived in it for 4 years. Then I got a job opportunity in another state so I decided to rent my house out instead of selling it. I've been renting it for the past 3 years. Now I'm moving back to my hometown and considering moving back into my house for 2 years before selling it. I was under the impression that if I lived in it for 2 years before selling, I could qualify for the full capital gains exclusion ($250K for single filers). But after reading some IRS publications, I'm confused. Does the capital gains exclusion get prorated based on the time I lived in it versus the total time I owned it? Like if I owned it for 9 years total (4 years living in it initially + 3 years renting + 2 years living in it again), would I only get 6/9 of the exclusion? Also, I've been taking depreciation deductions while it was a rental (about $13K per year, so roughly $39K total). How does depreciation recapture work in this situation? If my ownership is 9 years but I only rented it for 3 years, do I have to recapture all the depreciation or is that prorated too?
19 comments


Hugh Intensity
You're asking some great questions about a fairly complex tax situation. Let me help clarify how this works. When you convert a rental property back to a primary residence, the capital gains exclusion does indeed get prorated, but not quite how you described. Under current tax law, any period after January 1, 2009, where the property was used as a rental or for business purposes doesn't qualify for the exclusion. In your example, you'd qualify for the 2-of-5 years occupancy requirement to claim some exclusion, but it would be prorated. The formula looks at "qualified use" (when you lived there as your primary residence) versus total ownership period. As for depreciation recapture - this is completely separate from the capital gains exclusion. Any depreciation you claimed (or were entitled to claim) while the property was a rental must be recaptured as taxable income when you sell, regardless of how long you owned the property. This is typically taxed at a maximum rate of 25%, not your regular income tax rate.
0 coins
Sunny Wang
•Thanks for the detailed explanation! So if I'm understanding correctly, if I move back in for 2 years, I would meet the "2-of-5 years" requirement to qualify for some exclusion, but it would be reduced because of the rental period. If I own it for 9 years total (4+3+2), and lived in it for 6 of those years, would my exclusion be 6/9 of the full amount? And on the depreciation recapture - so I'll owe taxes on the full $39K of depreciation I took regardless of how long I live in it before selling? That's taxed at 25% even if my normal tax bracket is lower?
0 coins
Hugh Intensity
•You're on the right track with the capital gains calculation. If you owned the property for 9 years total, with 6 years of personal use and 3 years of rental use, you would be eligible for 6/9 (or 2/3) of the maximum exclusion. So if you're single, instead of excluding the full $250,000, you could exclude up to about $166,667 of gain. For the depreciation recapture, that's correct - you'll owe taxes on the entire amount of depreciation taken during the rental period, regardless of how long you subsequently live in the property before selling. The recapture is taxed at a maximum rate of 25%, even if your normal tax bracket is lower. However, if your tax bracket is higher than 25%, you'll pay the recapture at your normal rate, up to the 25% cap.
0 coins
Effie Alexander
After struggling with almost this exact situation last year, I found an amazing tool that saved me thousands in potential tax mistakes. I was converting my rental back to my primary home and was totally confused about capital gains exclusions and depreciation recapture. I spent hours trying to figure out the calculations myself, but kept getting different answers. Eventually I tried https://taxr.ai where I uploaded my previous tax returns and property documents. Their system analyzed everything and gave me a detailed breakdown of exactly how much exclusion I qualified for and precisely how the depreciation recapture would work in my situation. It even flagged that I had been miscalculating my basis adjustments for some improvements I made during the rental period! The tool showed me how to properly document everything to maximize my exclusion while staying compliant.
0 coins
Melissa Lin
•That sounds helpful but how accurate was it compared to what an actual accountant would say? I'm in a similar situation (owned 8 years, rented 4 of those) and worried about getting this wrong.
0 coins
Lydia Santiago
•Did it help with figuring out what improvements during the rental period could be added to basis vs what had to be expensed? I replaced windows during year 2 of renting my house out and im not sure if that counts as an improvement to basis or just a repair expense.
0 coins
Effie Alexander
•The results were spot-on accurate - I actually had my accountant review the report, and he was impressed. He said it caught nuances about the qualified use period calculation that many tax pros miss. The documentation it generated actually saved time during my tax prep. Regarding improvements versus repairs, it absolutely helped with that distinction. The system looks at the nature of what you did rather than just the cost. For windows, it would likely classify complete replacement as a capital improvement (added to basis), while simple repairs would be rental expenses. It explained the difference between maintaining value (repair) versus adding value (improvement).
0 coins
Lydia Santiago
I tried that taxr.ai site after seeing the recommendation here, and wow - it was exactly what I needed! My situation was even more complicated because I had converted my property between personal and rental use multiple times over 10 years. The system analyzed my documents and gave me a comprehensive breakdown of my qualified use percentage (which was way different than my simple calculation). It also created this cool timeline visualization showing how my basis had changed over the years with improvements and depreciation. The best part was that it explained everything in plain English! When I sold, I had complete confidence in claiming the correct exclusion amount and reporting the proper depreciation recapture. It even generated a PDF report that I attached to my tax return for documentation. Seriously saved me from a potential audit headache.
0 coins
Romeo Quest
I'm seeing a lot of differing advice about these capital gains calculations. After getting audited last year over this exact issue (I converted a rental back to primary), I can tell you trying to reach the IRS for clarification was IMPOSSIBLE. I spent weeks calling their number just to get disconnected. Finally used https://claimyr.com to get through to an actual IRS agent. You can see how it works here: https://youtu.be/_kiP6q8DX5c. They got me connected to an IRS specialist in about 20 minutes when I had been trying for weeks on my own. The agent confirmed exactly how to calculate my qualified use periods and explained that I needed to file Form 2119 along with my tax return to document the conversion periods. Literally saved me thousands in potential penalties because I was calculating it wrong.
0 coins
Val Rossi
•How does this service actually work? I don't get it... they somehow get you through the IRS phone tree faster?
0 coins
Eve Freeman
•Sounds sketchy tbh. I doubt anyone can actually get through to the IRS faster than just waiting on hold. Last time I called I waited 3+ hours. What's the catch? Do they have some insider connection or something?
0 coins
Romeo Quest
•It's actually pretty straightforward - they use an automated system that navigates through the IRS phone system and holds your place in line. When they reach a live agent, you get a call connecting you directly. No more listening to that awful hold music for hours! There's no insider connection or anything sketchy. It's just technology that does the waiting for you. The service basically sits on hold so you don't have to. I was skeptical too, but when I was facing potential penalties over my capital gains calculation, I was desperate. It genuinely works - I got connected to a real IRS expert who clarified exactly how the qualified use calculation should work with multiple conversion periods.
0 coins
Eve Freeman
I need to eat my words and apologize for my skepticism about Claimyr! After my accountant gave me conflicting information about depreciation recapture on my converted rental property, I decided to try it. Got connected to an IRS tax law specialist in about 25 minutes (after spending nearly 2 hours earlier that day getting disconnected). The agent walked me through exactly how Section 121(d)(6) applies to my situation and confirmed that ALL depreciation taken must be recaptured regardless of how the qualified use percentage applies to capital gains. The agent even sent me specific documentation I could reference when filing. Worth every penny for that peace of mind, especially with so much conflicting advice online. Definitely recommend for anyone dealing with these complicated primary residence conversion situations.
0 coins
Clarissa Flair
One thing nobody's mentioned yet - make sure to keep EXTREMELY detailed records of when you moved out, when tenants moved in, when you moved back, etc. I went through a similar situation and the IRS questioned my timeline during a correspondence audit. Had to provide lease agreements, utility bills in my name for both properties (the one I moved to AND the one I was renting out), change of address confirmations, etc. They were really digging into whether I truly lived in the property for the time I claimed. Also, document all improvements made during both the rental period and when it's your primary residence. Different tax treatments apply, and having those receipts organized by date and purpose saved me a major headache.
0 coins
Caden Turner
•Do you need to keep physical paper copies of everything or are digital scans ok? I've been taking pictures of all my receipts for improvements but worried that might not be enough if I get audited.
0 coins
Clarissa Flair
•Digital scans are perfectly fine as long as they're legible and you have a good organization system. The IRS accepts digital records - I submitted everything electronically during my audit. The key is how you organize them. I created separate folders for each year, then subfolders for "Rental Period Improvements" versus "Primary Residence Improvements." Label each receipt with the date and what it was for. For big items like a new roof or HVAC system, I also took before/after photos as additional proof.
0 coins
McKenzie Shade
The most annoying thing about this whole situation is that depreciation recapture still applies at 25% even if your actual depreciation deductions didn't save you that much in taxes! Like if you were in the 12% bracket when taking depreciation deductions, you still pay 25% on recapture. So unfair!
0 coins
Harmony Love
•Actually that's not entirely correct. The depreciation recapture rate is capped at 25%, but if your ordinary income tax rate is lower, you'll pay the lower rate. It's only for folks in higher tax brackets that it gets capped at 25%. That's still higher than long-term capital gains rates tho.
0 coins
Yuki Watanabe
This is such a helpful thread! I'm dealing with a similar situation but with one additional complication - I inherited the property from my parents 5 years ago, lived in it for 2 years, then rented it out for the past 3 years. Now I'm considering moving back in. Does the stepped-up basis from inheritance affect how the capital gains exclusion and depreciation recapture calculations work? I assume I still need to recapture the depreciation I claimed during the rental period, but I'm not sure if the inheritance changes the timeline for the "2 out of 5 years" rule or the qualified use percentage. Also, for anyone who's been through this - is it worth getting a professional appraisal when you convert back to primary residence? I'm wondering if having documentation of the property's value at the time of conversion could be helpful for tax purposes later.
0 coins