Back to IRS

Raj Gupta

Tax implications when selling a former primary residence turned rental property?

So I've got this situation I'm trying to figure out. I currently own my home but I'm thinking about moving into a rental and then renting out my current house. If I end up selling my house after renting it out for like 2 years, and I want to use that money to buy another primary residence, how does the tax situation work? Does the IRS make me pay taxes on the entire difference between what I initially paid for the house and what I sell it for? I'm worried about getting hit with a huge tax bill. The housing market in my area has gone up quite a bit since I bought, so there would be a decent gain. I think there's some kind of exemption if you live in your home, but not sure how it works once you convert it to a rental. Anyone familiar with capital gains on rental properties? I'm trying to plan ahead so I don't get surprised come tax time.

You're dealing with what's called the Section 121 exclusion, which can be partially available in your scenario. Here's how it works: If you owned and used the home as your primary residence for at least 2 out of the 5 years before selling, you can exclude up to $250,000 of capital gains ($500,000 if married filing jointly). The interesting part in your situation is that those 2 years don't need to be consecutive. Since you'll be converting to a rental, you'll need to consider depreciation recapture too. Any depreciation you claimed (or should have claimed) while it was a rental will be taxed at 25% when you sell, regardless of exclusions. Also, you'll need to allocate the gain between periods of qualified use (primary residence) and non-qualified use (rental). The gain allocated to the rental period won't be eligible for the Section 121 exclusion.

0 coins

Wait I'm confused. So if I lived in my house for 10 years, then rented it out for 3, then sold it, would I still get the whole exclusion? Or just part of it? And do I have to buy another house right away to avoid taxes?

0 coins

In your example, you would qualify for the full exclusion since you used it as your primary residence for at least 2 out of the 5 years before the sale. However, you would still face depreciation recapture on any depreciation taken during those 3 rental years. You don't have to buy another house right away to claim the Section 121 exclusion. That's a common misconception. The Section 121 exclusion is different from a 1031 exchange, which allows deferring taxes when selling an investment property and buying another investment property.

0 coins

I was in a similar situation last year and found taxr.ai (https://taxr.ai) super helpful for figuring out the capital gains calculation. I was totally lost trying to figure out how much of my gain would be taxable after renting my old house out for a few years. The depreciation recapture part was especially confusing for me. I didn't even realize I needed to have been claiming depreciation all along (even though I wasn't). The tool analyzed all my documents and showed me exactly how to calculate the adjusted basis, which portions were eligible for the capital gains exclusion, and what my tax liability would be.

0 coins

How does that work exactly? Do you just upload your documents and it figures everything out? I'm in a similar situation but I've owned my house for 15+ years and have been renting it out the last 3. Trying to figure out if I should sell this year or wait.

0 coins

Does it handle situations where you've done improvements to the property? I've added a new roof, HVAC, and did some bathroom remodeling while it was a rental. I'm worried I'll mess up what gets added to the basis.

0 coins

Yes, you just upload your closing documents from when you bought the house, any documentation of improvements, and information about when you converted it to a rental. It then gives you a complete analysis of your tax situation including adjusted basis calculations. For property improvements, it absolutely handles those. It actually helped me identify several improvements I had made that I could add to my basis, which reduced my gain. It walks you through categorizing which improvements are repairs (immediately deductible) versus capital improvements (added to basis).

0 coins

Just wanted to follow up - I tried taxr.ai after seeing it mentioned here and it was incredibly helpful! I had a really complicated situation with my rental property (converted from primary, made improvements, partial year rental, etc.) and was stressing about how to calculate everything correctly. The document analysis feature saved me tons of time sorting through 7 years of records. I was actually about to pay my accountant an extra $400 to figure this all out, but the tool walked me through every step and showed me that I qualified for a partial exclusion I didn't know about. Most importantly, I now understand exactly how the taxes work rather than just blindly following someone else's advice.

0 coins

If you're struggling to get clear answers directly from the IRS about your specific situation (which is pretty common with these complex property scenarios), you might want to try Claimyr (https://claimyr.com). I spent DAYS trying to get through to the IRS to ask about the specifics of my rental property conversion and capital gains. With Claimyr, I got through to an actual IRS agent in about 15 minutes instead of waiting on hold for hours. They have this system that holds your place in line and calls you back when an agent is available. You can check out how it works here: https://youtu.be/_kiP6q8DX5c It was worth it to get definitive answers directly from the IRS about my specific situation rather than trying to interpret the tax code myself.

0 coins

How do they actually get you through? I've called the IRS like 5 times this year and either get disconnected or told the wait time is over 2 hours. Do they have some special number or something?

0 coins

Sounds like a scam tbh. Nobody can magically get through to the IRS faster. They probably just have someone pretending to be an IRS agent. I'd be careful giving them any personal info.

0 coins

They don't use a special number - they use technology that continuously redials and navigates the IRS phone tree until they get through, then they transfer the call to you. It's basically doing what you would do if you had unlimited time and patience. No, it's definitely not a scam. They never ask for your personal information and don't pretend to be IRS agents. They simply connect you with the actual IRS. They're just solving the problem of getting through the phone system. When you get the call, you're speaking directly with a real IRS employee, not someone from Claimyr.

0 coins

I need to apologize for my skepticism. I actually tried Claimyr after posting that comment because I was desperate to talk to someone about my rental property situation. I got connected to an IRS agent in about 20 minutes after trying unsuccessfully for weeks on my own. The agent clarified that in my case (primary residence for 4 years, rental for 3 years, then selling), I qualified for the full capital gains exclusion since I met the 2-out-of-5-years test. But they also explained exactly how the depreciation recapture would work, which was super helpful since I had been calculating it wrong. Saved me a ton of stress and potentially a costly mistake on my taxes.

0 coins

One thing nobody's mentioned yet - if you're planning to buy another property after selling, look into a 1031 exchange. It lets you defer (not eliminate) capital gains tax if you're exchanging one investment property for another. But there are strict timelines - you need to identify potential replacement properties within 45 days and close within 180 days. The catch is both properties must be investment properties. So your current rental would qualify, but if you're planning to live in the new property as your primary residence, a 1031 exchange won't work.

0 coins

Don't you also need to use a qualified intermediary for a 1031? I heard you can't just sell and then buy - the money has to go through some special third party or something.

0 coins

Yes, absolutely correct. You need a Qualified Intermediary (QI) to handle the funds - you can't touch the money yourself or it disqualifies the exchange. The QI holds the proceeds from your sale and then uses those funds to purchase the replacement property. This is called the "no touch" rule and it's one of the most common mistakes people make with 1031 exchanges. Once you touch the proceeds, even for a day, the exchange is invalidated and the entire gain becomes taxable.

0 coins

Something else to consider is your state tax situation. The federal rules about capital gains exclusions ($250k/$500k) are one thing, but states sometimes have different rules. For example, I sold a rental in California that I had previously lived in, and while I got the federal exclusion, California had some additional requirements.

0 coins

Good point. I'm in Massachusetts and they basically follow the federal rules, but I know some states have their own thing going on. Has anyone dealt with this in New York? Moving there soon and might sell my current place after renting it for a while.

0 coins

Another strategy if you're close to the 2-out-of-5-years mark: move back into your rental for a while before selling. I did this - lived in my home for 3 years, rented it for 4 years, then moved back in for 6 months before selling. That qualified me for a portion of the exclusion. Talk to a tax professional though! The rules around "primary residence" can get complicated, especially if you're only moving back temporarily with the intent to sell.

0 coins

Raj Gupta

Author

I'd actually considered doing something like that! But wouldn't I lose rental income during those months? Did you find that the tax savings outweighed the lost rental income in your case?

0 coins

In my case, yes, the tax savings significantly outweighed the lost rental income. I was looking at about $180,000 in capital gains, so the tax savings was approximately $27,000 (15% capital gains rate). My monthly rental income was around $2,000, so for 6 months that's $12,000 in lost income. Even after accounting for moving expenses, it was worth it financially. Plus, it gave me time to do some cosmetic updates that helped the house sell for more. Just make sure you're genuinely using it as your primary residence - the IRS looks at factors like where you get mail, where you're registered to vote, etc.

0 coins

This is a really complex situation and I appreciate everyone sharing their experiences! One thing I'd add is to make sure you're keeping meticulous records of everything - purchase price, improvements, conversion date to rental, depreciation schedules, etc. The IRS can be pretty strict about documentation when it comes to these mixed-use property situations. I learned this the hard way when I got audited a few years back on a similar rental conversion. They wanted to see everything down to receipts for minor repairs vs. capital improvements. Also, don't forget about potential state depreciation recapture rules - some states handle this differently than the federal rules. And if you're planning to do this conversion soon, consider the timing. Converting early in the year vs. late in the year can affect your depreciation calculations for that first rental year. Definitely consult with a tax professional who specializes in real estate before making any final decisions. The potential tax savings from proper planning can easily pay for the consultation fees.

0 coins

This thread has been absolutely invaluable! I'm currently in year 3 of renting out my former primary residence and have been dreading the eventual sale because I wasn't sure how all the tax implications would work out. Reading through everyone's experiences, I realize I may have made some mistakes early on - I don't think I've been claiming all the depreciation I should have, and now I'm learning I'll still owe recapture tax on the "allowable" amount even if I didn't claim it. That's a hard lesson! The point about the non-qualified use period calculations really hit home. I lived in my house for 12 years before converting to rental, so I should still qualify for at least a partial Section 121 exclusion when I sell. But I had no idea about having to allocate gains between qualified and non-qualified periods. I'm definitely going to look into some of the tools mentioned here like taxr.ai to help me figure out my exact situation, and probably bite the bullet on consulting with a tax professional. The potential tax savings from proper planning clearly outweigh the consultation costs. One question for the group - for those who did get professional appraisals at conversion, did you use the same appraiser you might use when selling, or is any licensed appraiser sufficient for IRS documentation purposes?

0 coins

For the appraisal question, any licensed appraiser should be sufficient for IRS documentation purposes - you don't need to use the same one you'd use when selling. The key is making sure they provide a detailed written appraisal report that clearly states the fair market value as of your conversion date. I'd actually recommend against using the same appraiser you plan to use for selling, since you want independent valuations for each purpose. When I converted my property, I used a local appraiser who specialized in investment properties and was familiar with documentation requirements for tax purposes. Regarding the depreciation situation, definitely look into filing amended returns to claim the depreciation you missed. Since you'll owe recapture tax on the "allowable" amount anyway, you might as well get the tax benefit you were entitled to during those rental years. A tax professional can help you determine if the statute of limitations has passed on any of those years. The non-qualified use calculations can definitely be tricky, especially when you've had the property for a long time like you have. With 12 years of qualified use before converting, you should be in a pretty good position for the exclusion, but getting the exact allocation right is crucial for minimizing your tax liability.

0 coins

IRS AI

Expert Assistant
Secure