< Back to IRS

QuantumLeap

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!

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Do you depreciate the land value too or just the structure? And does that affect the Section 121 calculation at all?

0 coins

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

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

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

@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

Based on your timeline, you should be able to use a partial Section 121 exclusion, but the calculation is more complex than using the $1.05M as your starting point. Here's what you need to know: **Qualified vs Non-Qualified Use Period:** - Qualified use: 2011-2016 (5 years as primary residence) - Non-qualified use: 2016-2025 (9 years as rental) - Total ownership: 14 years **Calculation Method:** The portion of your total gain that's ineligible for Section 121 exclusion = (Non-qualified use period ÷ Total ownership period) × Total gain So: (9 years ÷ 14 years) × ($1.5M - $750K) = 64.3% of your $750K gain would be ineligible for the exclusion. **Important Notes:** - Your cost basis remains $750K (original purchase price), not the $1.05M fair market value at conversion - You'll owe depreciation recapture tax (25% rate) on all depreciation taken during the rental period - The eligible portion for Section 121 exclusion is capped at $250K (single) or $500K (married filing jointly) I'd strongly recommend getting professional help for this calculation since you're dealing with significant amounts and multiple tax implications. The rules around partial Section 121 exclusions can be tricky to apply correctly.

0 coins

This is exactly the breakdown I needed! I've been struggling to understand how the qualified vs non-qualified use periods work. One question though - when you say depreciation recapture on "all depreciation taken," what if I didn't actually claim depreciation on my tax returns during some of the rental years? Do I still owe recapture tax on depreciation I should have taken but didn't?

0 coins

@Daniel Rivera - Yes, unfortunately you still owe depreciation recapture tax on the depreciation you *should have taken* even if you didn t'actually claim it on your returns. The IRS calls this allowed "or allowable depreciation." So if you were entitled to depreciate $20,000 per year but only claimed $15,000 or (claimed $0 ,)you ll'still owe recapture tax on the full $20,000 per year that was allowable. This is one of those gotcha "rules" that catches a lot of people off guard. The logic is that you benefited from owning a depreciating asset even (if you didn t'claim the tax benefit ,)so you need to recapture "that" benefit when you sell. If you didn t'take the depreciation you were entitled to, you essentially gave up tax deductions you could have claimed - but you still have to pay the recapture tax as if you had taken them. This is why it s'generally recommended to always claim the maximum allowable depreciation on rental properties, since you ll'pay the recapture tax either way when you sell.

0 coins

This is a great example of why timing matters so much with Section 121 exclusions! I had a similar situation where I converted my primary residence to a rental in 2019 and am now considering selling. One thing I'd add to the excellent responses here is to make sure you have solid documentation for the fair market value at the time of conversion. Even though your cost basis for capital gains remains at your original purchase price ($750K), you'll need that $1.05M figure for depreciation calculations during the rental period. Also, don't forget about potential 1031 exchanges if you're looking to defer some of the tax burden. While you can't use a 1031 exchange on the portion that qualifies for Section 121 treatment, you might be able to use it on the rental portion of the gain if you're planning to buy another investment property. The bifurcated calculation that @Drew Hathaway outlined is spot-on - approximately 64% of your gain won't qualify for the Section 121 exclusion based on your timeline. With a $750K total gain, that means about $482K would be subject to capital gains tax (plus any depreciation recapture), while roughly $268K could potentially qualify for the exclusion (though capped at $250K if you're single). Given the complexity and the dollar amounts involved, definitely worth getting professional tax advice to make sure you optimize the filing and don't miss any opportunities or make costly mistakes!

0 coins

IRS AI

Expert Assistant
Secure

Powered by Claimyr AI

T
I
+
20,087 users helped today