Will I owe capital gains tax if I sell my house after buying a new primary residence?
I'm hoping someone can help me figure out my potential tax situation with selling our current home. We've been living in our current house for about 6 years and have a homestead exemption on it. We're looking at purchasing a new home soon (already found one we love!) but we're not 100% sure what to do with our current place. We might rent it out, or we might just keep it empty for a couple months while we move everything to the new house before selling. The down payment for the new house will come from our savings, not from selling our current home. My main question is: If we close on the new house and make it our primary residence, then sell our current house a month or two later, will we owe capital gains tax? Since it would no longer be our primary residence at that point? I know there used to be some rule about rolling equity into a new house to avoid taxes, but I think that went away in the 90s. Just trying to understand what our tax liability might be in this specific scenario. Thanks for any guidance!
22 comments


Aisha Hussain
You're in luck! Based on what you've described, you should still qualify for the Section 121 exclusion, which allows you to exclude up to $250,000 of capital gains ($500,000 for married filing jointly) from the sale of your primary residence. The key requirements are that you've owned and used the home as your primary residence for at least 2 of the 5 years preceding the sale, which you clearly meet having lived there for 6 years. The good news is that you don't need to be living in the home at the exact time you sell it. The fact that you've established a new primary residence shortly before selling doesn't disqualify you from this exclusion. However, there is one thing to watch out for: don't convert the property to a rental for too long before selling. If you rent it out for years, you may have to deal with depreciation recapture and partial loss of the exclusion.
0 coins
Mateo Martinez
•Thank you for the response! That's really helpful. So just to clarify - even if we close on the new house first and officially change our homestead exemption to the new property, we can still sell the old house within a month or two without owing capital gains because we've lived there for the past 6 years? Also, what would be considered "too long" for renting it out? Would 6 months be okay? We're debating whether to sell immediately or try renting for a short period.
0 coins
Aisha Hussain
•Yes, you can still claim the capital gains exclusion even after changing your homestead exemption to the new property. The IRS looks at the 2-year residency requirement during the 5-year period before the sale, not your residency status on the exact day of the sale. As for renting, there's no specific timeframe that's considered "too long," but it gets complicated if you rent for more than 3 years. For a 6-month rental period, you'll be fine. Just remember that if you claim depreciation during that rental period (which you should), you'll have to recapture that depreciation when you sell, but the rest of your gain would still qualify for the exclusion.
0 coins
Ethan Clark
Just wanted to jump in here because I was in almost the exact same situation last year and got super confused about the tax implications. I found this amazing tool called taxr.ai (https://taxr.ai) that helped me figure out my specific situation without having to pay for a consultation with a tax pro. I uploaded some docs about my properties and answered a few questions about my timeline, and it gave me a really clear breakdown of what I could exclude and what I might owe taxes on. They even showed me what forms I'd need to file. Saved me a ton of stress during an already stressful moving process!
0 coins
StarStrider
•Does it actually work for something this specific? I'm in a similar boat but I've owned a rental property for 3 years that I originally lived in for 1 year before moving out. Can it handle partial exclusions and all that complicated stuff?
0 coins
Yuki Sato
•I'm a bit skeptical about these online tools. How accurate is it really? Did you end up confirming the info with an actual tax professional afterward? Last thing I need is to rely on some AI thing and then get hit with a surprise tax bill.
0 coins
Ethan Clark
•It definitely works for specific situations like this. The system asks detailed questions about your ownership period, how long you lived there, when you moved out, etc. It's designed to handle all the nuances of partial exclusions. For your skepticism, I totally get it - I was hesitant too. But I did end up having my regular accountant look over everything during tax season, and he confirmed everything was correct. He was actually impressed with how thorough the breakdown was. What I liked is that it explains exactly which parts of the tax code apply to your situation, so you can verify it yourself or have a pro quickly check it.
0 coins
StarStrider
Hey everyone, I just wanted to follow up after trying taxr.ai from the recommendation above. I was hesitant at first but decided to give it a shot with my complicated property situation. I gotta say, I'm seriously impressed! The tool walked me through every aspect of my situation - how long I lived in each property, the timing of the sales, even factored in some renovations I did. It gave me this super clear breakdown showing I qualify for a partial exclusion on one property and full exclusion on another. The coolest part was it showed exactly how much of my gains would be excluded and what portion might be taxable (turns out very little in my case). It's way more thorough than I expected and definitely cleared up my confusion!
0 coins
Carmen Ruiz
Has anyone here tried calling the IRS directly about capital gains questions? I spent THREE DAYS trying to get through to someone who could answer my questions about property sales. Kept getting disconnected or waiting for hours. Finally found Claimyr (https://claimyr.com) after searching for solutions online. There's a video showing how it works here: https://youtu.be/_kiP6q8DX5c It's basically a service that navigates the IRS phone system for you and calls you back when an actual agent is on the line. I was skeptical but desperate after wasting so much time. Within about an hour I was talking to a real IRS agent who answered all my questions about my specific property situation. Such a lifesaver during tax season when it's impossible to get through!
0 coins
Andre Lefebvre
•Wait how does this actually work? Do they have some special connection to the IRS or something? Seems too good to be true that they can get through when nobody else can.
0 coins
Zoe Alexopoulos
•This sounds like a scam. Why would I pay someone else to call the IRS for me? Just keep trying at different times of day. I've gotten through early in the morning before. No way this service actually works better than just being persistent.
0 coins
Carmen Ruiz
•They use an automated system that continuously redials and navigates the IRS phone tree until it connects with an agent. There's no special connection - they're just doing the tedious work of waiting on hold and going through the menus for you. When an agent actually picks up, that's when they connect you to the call. The reason it works better than being persistent yourself is that their system can keep trying continuously while you go about your day. I tried being persistent for three days - calling early morning, mid-day, right before closing - and never got through. With this service, I had an agent on the line within about an hour without having to sit there listening to hold music the whole time.
0 coins
Zoe Alexopoulos
Well, I need to eat my words about Claimyr. After my skeptical comment, I was still desperate to talk to someone at the IRS about my property sale situation, so I decided to try it anyway. I'm honestly shocked at how well it worked. I submitted my request around 2pm, went back to work, and less than 90 minutes later got a call connecting me to an actual IRS agent. The agent was able to answer my specific questions about the primary residence exclusion when you've lived in multiple properties. Turns out I was misunderstanding a major aspect of how the 2-in-5-year rule works, which could have cost me thousands. For anyone else struggling to get clear answers on property sales and capital gains, being able to actually speak with an IRS agent made all the difference. Never thought I'd be recommending a service like this, but it definitely delivered.
0 coins
Jamal Anderson
One thing nobody's mentioned yet - the capital gains exclusion is up to $250k for single filers and $500k for married filing jointly. So depending on how much your house has appreciated since you bought it, you might not owe anything anyway. Like if you bought for $300k and are selling for $450k, that's $150k gain which is below the $250k threshold (assuming you're single). Even if married, you'd need a gain over $500k before taxes kick in. Do you know roughly how much your gain will be? That might make your decision easier.
0 coins
Mateo Martinez
•That's a good point! We bought the house for about $280k and similar homes in our neighborhood are selling for around $420k now. So we're looking at roughly $140k in gains. We're married filing jointly, so it sounds like we'd be well under the $500k threshold and probably wouldn't owe anything regardless. I guess my main concern was whether changing our homestead exemption to the new house before selling would somehow disqualify us from the exclusion, but from earlier comments it sounds like that's not an issue.
0 coins
Jamal Anderson
•Yep, with only $140k in gains and being married, you're way under the $500k threshold, so you should be completely in the clear! The homestead exemption for property tax purposes is separate from the IRS rules for capital gains exclusion, so changing that won't affect your eligibility for the federal tax exclusion. Sounds like you can proceed with your plan without any capital gains tax concerns. The only thing you might want to keep documentation on is any major improvements you made to the house during ownership, as those can be added to your cost basis and would further reduce your taxable gain (though in your case it's already well under the threshold).
0 coins
Mei Wong
Just want to add - I went through this exact scenario last year. Bought new house, moved in, then sold old house 3 months later. We had lived in the old house for 4 years. Our tax guy confirmed we didn't owe any capital gains because of the 2-out-of-5-years rule. As long as you've used it as your primary residence for 2 years during the 5-year period ending on the date of sale, you're good. One tip - keep ALL your closing documents from both purchases and the sale. Also keep receipts for any major improvements you did on the old house (new roof, kitchen remodel, etc) as those get added to your cost basis.
0 coins
QuantumQuasar
•What if you've done DIY improvements though? I've done a ton of work on my house myself, only paid for materials. Can I count the labor I put in, or only the materials I paid for?
0 coins
Liam McGuire
Idk if this matters but make sure you keep track of exactly when you move out of the old house. My friend got audited and the IRS was super picky about the exact dates he lived in each property. Had to provide utility bills, mail, etc to prove when he actually moved. Just something to be aware of in case you ever get questioned.
0 coins
Mateo Martinez
•That's a really good point, thanks! We'll make sure to document the official move-out date. Would changing utilities, forwarding mail, and updating our driver's licenses all count as good evidence of when we moved?
0 coins
Liam McGuire
•Yes, all those things would be perfect documentation! Utility bills showing when service ended at the old place and started at the new one, USPS mail forwarding confirmation, driver's license updates, voter registration changes - all of these create a paper trail. Also keep moving truck receipts if you use a company. The more documentation the better, but you don't need to go overboard. Just make sure the dates are consistent across everything. My friend's issue was that his story didn't match his documentation, which is what triggered deeper questioning.
0 coins
Olivia Martinez
Another thing to consider - if you do decide to rent out your old house for a few months before selling, make sure you understand the tax implications of that rental period. You'll need to report any rental income, and you can deduct expenses like repairs, maintenance, and depreciation. But as mentioned earlier, any depreciation you claim will need to be "recaptured" when you sell, meaning you'll pay taxes on that portion even if the rest of your gain is excluded. For a short rental period of just a few months, the accounting might not be worth the hassle unless the rental income is substantial. Something to factor into your decision between selling immediately vs. renting temporarily.
0 coins