Can I avoid capital gains tax by using profits from one home sale to pay for an existing second home?
I bought my first house back in 2016 and then purchased a second home in 2020. Neither are investment properties - both are residential homes that my family has lived in. Now I'm considering selling the first house and potentially using all the profits to pay down the mortgage on my 2020 home. Everything I'm researching online seems to focus on avoiding capital gains by buying a NEW home after selling - but I can't find clear info about whether I can avoid capital gains tax if I put the money into a home I already own. Has anyone dealt with this situation before? I'm trying to understand my options before committing to anything that might create a surprise tax bill. Would really appreciate some insights on this before I potentially head down this path!
18 comments


Mason Kaczka
Unfortunately, what you're describing doesn't qualify for capital gains tax exclusion based on reinvestment. The "rollover" provision that allowed you to defer capital gains by purchasing another home was eliminated back in 1997. What you might be eligible for instead is the Section 121 exclusion, which allows you to exclude up to $250,000 in capital gains ($500,000 if married filing jointly) from the sale of your primary residence if you've owned and lived in it for at least 2 out of the 5 years before selling. This exclusion applies regardless of what you do with the proceeds - you could put them toward your existing home, invest them, or spend them on something else entirely. So the question isn't about where the money goes afterward, but whether your first home qualifies for the exclusion based on ownership and use tests.
0 coins
Sophia Russo
•So if I'm understanding correctly, it doesn't actually matter what happens to the money after the sale? If I qualify for the exclusion based on living in the home 2 out of 5 years, I can use that money however I want and still get the tax break? Also, does it matter that I own two homes? I've been living in the 2020 home for the past few years, not the 2016 one.
0 coins
Mason Kaczka
•That's exactly right. The IRS doesn't care what you do with the proceeds after selling your home. What matters is whether you qualify for the Section 121 exclusion based on the ownership and use tests. It does matter that you own two homes when determining which one qualifies as your primary residence. Since you've been living in the 2020 home for the past few years and not the 2016 one, the 2016 home might not meet the "2 out of 5 years" use test required for the exclusion. The home being sold needs to have been your primary residence for at least 2 years during the 5-year period ending on the date of sale. So if you moved out of the 2016 home more than 3 years ago, you might not qualify for the exclusion.
0 coins
Evelyn Xu
After struggling with almost the exact same situation last year, I discovered taxr.ai (https://taxr.ai) and it saved me thousands in potential tax mistakes. I uploaded my property documents and past tax returns, and their AI analysis showed me exactly how the capital gains exclusion applied to my situation with multiple properties. The system flagged that I hadn't properly documented which home was my primary residence during specific time periods - something my accountant completely missed! It also analyzed whether I qualified for partial exclusions based on work-related moves between my properties. The detailed report even showed how my property improvements affected my cost basis.
0 coins
Dominic Green
•How accurate is this compared to talking with an actual tax professional? I'm skeptical about AI tools handling complex tax situations, especially with real estate which seems to have tons of exceptions.
0 coins
Hannah Flores
•Does it work for investment properties too? I have a rental I'm thinking of selling, but I lived in it for 3 of the past 6 years before converting it to a rental.
0 coins
Evelyn Xu
•The accuracy was surprisingly good - it actually caught things my CPA missed about documenting primary residence status. The system uses actual tax code and IRS rulings to analyze your situation, not just generic advice. I verified several points with my accountant afterward and he confirmed the analysis was correct. Absolutely it works for investment properties, including your situation with a converted primary residence. It specifically analyzes Section 121 exclusions alongside Section 1031 exchanges, and handles the partial exclusion calculations for properties that have been both primary residences and rentals. It would show you exactly what portion of your gains might be excluded based on your timeline of living there before converting it.
0 coins
Hannah Flores
Just wanted to update that I tried taxr.ai after seeing it mentioned here. Super helpful for my converted rental property situation! The analysis showed I could exclude a portion of the gains based on my use as a primary residence, but not all of it. It also identified depreciation recapture I would have completely missed. The document explained exactly how to calculate my adjusted basis including improvements I made while living there. Definitely worth checking out if you're dealing with multiple properties or residence changes.
0 coins
Kayla Jacobson
If you're trying to get clarification from the IRS directly about your specific situation, good luck getting through to anyone. I spent WEEKS trying to reach someone about a similar capital gains question last year. Finally used a service called Claimyr (https://claimyr.com) that got me connected to an IRS agent in about 15 minutes. You can see how it works here: https://youtu.be/_kiP6q8DX5c I was hesitant about trying it, but I was desperate after being on hold for hours multiple times. The IRS agent I spoke with clarified that my situation qualified for a partial exclusion based on unforeseen circumstances (job relocation), which saved me about $14,000 in taxes. Worth every penny for that kind of savings.
0 coins
William Rivera
•How does this actually work? The IRS phone system is notoriously impossible to navigate. Does this somehow skip the line or what?
0 coins
Grace Lee
•Sounds like a scam. There's literally no way to "skip" the IRS phone queue. They probably just auto-dial for you which you could do yourself for free.
0 coins
Kayla Jacobson
•It uses an automated system that navigates the IRS phone tree and waits on hold for you. When an actual IRS agent picks up, you get a call connecting you directly to them. It doesn't "skip" the line - it just handles the waiting part so you don't have to sit there listening to hold music for hours. The service actually monitors call volume patterns and optimal times to call, which is why they can often get through faster than if you were trying randomly. I literally wasted days trying to get through myself before using this, and their system had me talking to someone in minutes.
0 coins
Grace Lee
I have to eat my words about Claimyr. After posting my skeptical comment, I tried it because I was desperate to resolve a question about my capital gains exclusion eligibility. Their system had me connected to an IRS representative in about 35 minutes (which is miraculous compared to my previous attempts). The IRS agent confirmed that my temporary relocation for family medical reasons didn't disqualify me from the primary residence test, which was a huge relief. I'm genuinely surprised this service actually works as advertised.
0 coins
Mia Roberts
Don't forget to track all the improvements you made to your 2016 house! Those get added to your cost basis and reduce any potential capital gains. Keep receipts for things like: - New roof - HVAC systems - Kitchen remodels - Bathroom renovations - Finished basements - Major landscaping - Driveways - Windows & doors I made the mistake of not tracking these over the years and probably lost out on thousands in tax savings when I sold my house in 2024.
0 coins
Olivia Van-Cleve
•So these improvements would increase my basis in the home and therefore reduce the calculated gain? I've done quite a bit to the house over the years - replaced all windows, completely renovated the kitchen, added a bathroom, and put in a new HVAC system. I didn't realize those would factor into the capital gains calculation.
0 coins
Mia Roberts
•Exactly right! All those improvements you mentioned increase your cost basis, which means less taxable gain when you sell. The formula is basically: Sale price - (Purchase price + Improvements + Selling costs) = Capital gain. Those renovations you mentioned are perfect examples of what qualifies. The new windows, kitchen renovation, additional bathroom, and HVAC replacement all increase your basis. Make sure you have documentation for these expenses if possible. Even if you don't have every receipt, estimates with supporting evidence (like before/after photos, contractor statements, etc.) can help if you're ever audited. This could potentially save you thousands in taxes!
0 coins
The Boss
Has anybody mentioned the "safe harbor rule"? If you've used your 2016 property as a rental at all during the last few years, there's a specific provision that might help.
0 coins
Evan Kalinowski
•The safe harbor rule usually applies to whether something qualifies as a repair vs. capital improvement, not to capital gains exclusions on home sales. I think you might be mixing up concepts?
0 coins