Tax on Capital gains when converting primary residence to rental property - can I use partial section 121 exemption?
I bought my house back in 2011 for $750K and lived in it until 2016 when I had to relocate for work. Instead of selling it then (when it was worth about $1.05M), I decided to keep it as a rental property. Fast forward to today - I'm finally selling the place for $1.5M in 2025. My question is about the capital gains tax situation. Since I lived in the house for 5 years as my primary residence before converting it to a rental, can I use Section 121 to exclude some of the gains? Specifically, can I use the $1.05M value from when I converted it to a rental as my cost basis for the sale, and then exclude the first $300K of capital gains under Section 121 since I lived there for at least 2 of the last 5 years before converting it? I know the rules get complicated when you convert a primary residence to a rental and then sell years later. Any insight would be appreciated!
19 comments

Malik Johnson
Yes, you can partially use the Section 121 exclusion in your situation, but there are some important details to understand. Since you lived in the property as your primary residence for 5 years (2011-2016), you meet the requirement of living in the home for at least 2 out of the 5 years before the conversion to a rental. However, because you're selling in 2025, which is more than 5 years after you moved out, you don't qualify for the full Section 121 exclusion on the entire gain. What you can do is calculate a partial exclusion based on the period of "qualified use" as your primary residence. Your gain will be split into two portions: 1) gain attributed to the period it was your primary residence, and 2) gain attributed to the rental period. Only the first portion is eligible for the Section 121 exclusion. The basis for depreciation purposes when you converted to rental would be the lower of the fair market value at conversion ($1.05M) or your adjusted basis. You'll also need to account for any depreciation you've claimed during the rental period, as this will be recaptured and taxed at 25%.
0 coins
Isabella Santos
Wait, so does this mean they can't use the $1.05M as the starting point for calculating the capital gains on the rental portion? I thought you could step up the basis to fair market value when converting to rental. I'm confused...
0 coins
Malik Johnson
For depreciation purposes, you use the lower of your adjusted basis or fair market value at the time of conversion ($1.05M). However, for calculating capital gains, you still use your original purchase price ($750K) as your starting basis. The capital gain is calculated as total gain multiplied by the ratio of ownership that was non-qualified use (rental period). The qualified use portion (when it was your primary residence) would be eligible for the Section 121 exclusion up to the limit ($250K for single, $500K for married filing jointly).
0 coins
Ravi Sharma
I went through almost this exact situation last year and was pulling my hair out trying to figure it all out. I used https://taxr.ai to analyze all my documents and property records, and it was seriously a game-changer. The AI analyzed my purchase docs, the estimated value when I converted to rental, and my depreciation schedule over the years. It showed me exactly how to calculate the split between "qualified use" and "non-qualified use" periods, and how much of my gain would be eligible for the Section 121 exclusion. It even helped me figure out the depreciation recapture amount I owed, which was something I didn't even know about until then! Honestly would have paid my accountant hundreds to figure this all out, but taxr.ai broke it down perfectly for me in minutes.
0 coins
Freya Larsen
Did it help with figuring out how to document the fair market value at the time of conversion? I converted my primary to a rental in 2018 but didn't get an official appraisal at the time, just used Zillow estimates. Wondering if I'll have issues if audited.
0 coins
Omar Hassan
I'm skeptical about using AI for something this complex. How does it calculate depreciation recapture correctly? And does it give you actual forms to fill out or just general guidance?
0 coins
Ravi Sharma
It actually has a specific feature for documenting fair market value at conversion. You can upload Zillow estimates, comparable sales in your area from that time period, property tax assessments, or any other documentation you have. It organizes everything and suggests which would be strongest for supporting your claimed value at conversion. For depreciation recapture, it calculates this based on the depreciation you should have taken (even if you didn't actually take it). It outputs a detailed report showing all calculations for the Section 121 partial exclusion, capital gains on the rental portion, and the depreciation recapture amount. It doesn't fill out the forms for you, but it gives you the exact numbers to enter on each line of Form 4797 and Schedule D, with explanations for each entry.
0 coins
Freya Larsen
Just wanted to follow up - I tried taxr.ai after seeing the recommendation here, and it was incredibly helpful for my situation! I had been stressing about documenting the fair market value when I converted my property to rental, but the platform accepted my Zillow screenshots, tax assessments, and even pulled some historical comps from my area. It produced a detailed report breaking down exactly what portion of my gains qualified for Section 121 exclusion and what would be taxable. The step-by-step explanation of how depreciation recapture works was super clear - I finally understand why my accountant kept warning me about it! Worth every penny for the peace of mind.
0 coins
Chloe Taylor
If you're still trying to get clarification on this from the IRS directly, good luck getting through to anyone who actually understands Section 121 partial exclusions. I spent THREE WEEKS trying to reach someone at the IRS who could help with almost this exact situation. Finally found https://claimyr.com and their service got me connected to an actual IRS agent in about 20 minutes. You can see how it works here: https://youtu.be/_kiP6q8DX5c The agent I spoke with confirmed that I could use a partial Section 121 exclusion in a similar situation and explained exactly how to document everything on my tax forms. Saved me from potentially making a huge mistake on my taxes.
0 coins
ShadowHunter
How does this even work? I thought it was impossible to get through to the IRS these days - I've literally spent hours on hold only to get disconnected.
0 coins
Omar Hassan
Yeah right. No way this actually works. I've tried calling the IRS over 30 times this year and never got through. If this service actually worked, everyone would be using it.
0 coins
Chloe Taylor
It works by essentially holding your place in line with the IRS while you go about your day. They have technology that navigates the phone tree and waits on hold for you. When an actual IRS agent picks up, you get a call connecting you directly to that agent. I was skeptical too until I tried it. The way the IRS phone system works, some people get through in 15 minutes while others never get through at all - it's partly luck of the draw. This service basically gives you multiple attempts simultaneously to maximize your chances, then alerts you when one connects. It's not magic, just smart use of technology to solve a frustrating problem.
0 coins
Omar Hassan
I can't believe I'm saying this, but I tried the Claimyr service and it actually worked. After my skeptical comment above, I figured I'd try it since nothing else was working. Got connected to an IRS agent in about 30 minutes who actually specialized in real estate transactions. The agent confirmed that for my situation (primary residence → rental → sale years later), I needed to do a "bifurcated" calculation. The portion of appreciation during primary residence years can qualify for Section 121 exclusion, but I still have to pay capital gains on the appreciation during rental years. Plus depreciation recapture on all depreciation taken (or that should have been taken). Saved me from making a major mistake on my taxes. Still can't believe I actually got through to a knowledgeable IRS person!
0 coins
Diego Ramirez
One thing nobody has mentioned yet is that you need to file Form 4797 for the sale of the rental property AND Schedule D for the capital gains portion. The way you allocate the gain between the two forms depends on how long you owned vs. used as primary residence. The formula is actually: divide the rental period by the total ownership period to determine what percentage of gain is not eligible for the Section 121 exclusion. For example, if you owned for 14 years total and it was a rental for 8 years, then 8/14 = ~57% of the gain would be ineligible for the exclusion.
0 coins
Anastasia Sokolov
Do you depreciate the land value too or just the structure? And does that affect the Section 121 calculation at all?
0 coins
Diego Ramirez
You only depreciate the structure value, not the land. For residential rental property, you typically depreciate the building over 27.5 years. The land value does affect your Section 121 calculation indirectly, because you need to know the building value to calculate proper depreciation. Depreciation recapture will be taxed at 25% (instead of your normal capital gains rate) on the amount you actually depreciated or should have depreciated during the rental period. So getting an accurate land-to-building ratio is important for both your annual rental property tax returns and your final sale calculations.
0 coins
Sean O'Connor
I hate to make things more complicated, but there's another factor to consider: if your state has different rules for capital gains on real estate. In my state, we don't get the same Section 121 exclusions for state income tax purposes that we do federally, so I ended up with a much bigger state tax bill than I expected when I sold my rental (former primary residence).
0 coins
Zara Ahmed
That's a really good point! I'm in California and got hit with a state tax bill I wasn't expecting for a similar transaction. Does anyone know if there's a resource that shows which states follow federal treatment of Section 121 and which have their own rules?
0 coins
Brooklyn Knight
@Zara Ahmed - I don t'know of a comprehensive resource, but from my research, most states that have income tax do follow federal Section 121 treatment. However, some notable exceptions include New Jersey which (has its own exclusion limits ,)Pennsylvania which (doesn t'recognize the federal exclusion at all ,)and as you mentioned, California has some quirks. Your best bet is to check your state s'tax agency website or consult with a local tax professional who knows your state s'specific rules. The differences can be significant - I ve'seen people get surprised by five-figure state tax bills because they assumed their state would mirror the federal treatment.
0 coins