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!
29 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
Justin Chang
•That's a really important point about the rental income complexity! I'm actually leaning more towards just selling right away after reading all these responses. It sounds like with our gain being only around $140k and us being married, we're well under the exclusion threshold anyway, so there's no real tax advantage to waiting. Plus avoiding the hassle of dealing with rental income reporting, depreciation, and recapture for just a few months of rent seems like the way to go. Thanks everyone for all the detailed advice - this thread has been incredibly helpful in understanding our situation!
0 coins
Ethan Moore
Just wanted to add some practical advice based on your situation - since you're well under the capital gains exclusion threshold and planning to sell relatively soon after moving, I'd recommend getting a pre-listing inspection done on your current house while you're still living there. This way you can address any issues before putting it on the market, and you'll have time to get quotes and make repairs without the pressure of showings. Also, consider timing the listing strategically. Spring is typically the best selling season in most markets, so if you're closing on your new house soon, you might want to list the old one right after you move to take advantage of peak buying season. With your gain being only $140k and married filing jointly, you have plenty of cushion under the $500k exclusion, so there's really no tax benefit to waiting longer. One last tip - start decluttering and staging prep now while you're packing anyway. Makes the whole process much smoother!
0 coins
Mia Alvarez
•This is really solid advice! The pre-listing inspection tip is something I hadn't considered. Since we'll be juggling two closings relatively close together, getting ahead of any potential issues with the old house makes a lot of sense. Do you have any recommendations for what to prioritize during the inspection? I'm thinking HVAC, plumbing, and electrical basics, but wondering if there are other common issues that tend to come up during buyer inspections that we could address proactively. The timing advice about spring market is helpful too. We're hoping to close on the new place in early March, so listing the old house in late March or early April could work out perfectly.
0 coins
Camila Jordan
•Great question about inspection priorities! Beyond the big three you mentioned (HVAC, plumbing, electrical), I'd definitely add roof condition, foundation issues, and windows/doors. These are the items that buyers often negotiate hardest on or walk away over. Also check your water heater age and condition - it's one of those things that can kill a deal if it's near end of life. Same with any appliances you're including in the sale. If your dishwasher or garbage disposal is making weird noises, better to replace now than deal with repair requests later. One thing people often overlook is cosmetic issues that signal bigger problems to buyers - like caulking around tubs/showers, paint touch-ups where there might be water damage, and making sure all outlets/switches work properly. These small things can make buyers wonder what else might be wrong. Your March/April timeline sounds perfect for most markets! Just make sure to factor in any repair time when planning your listing date.
0 coins
Margot Quinn
I've been through a similar situation and wanted to share what I learned about the capital gains exclusion timing. The IRS Section 121 exclusion is really forgiving about the exact timing of when you move out versus when you sell. What matters is that you meet the "2 out of 5 years" test - you need to have owned and lived in the home as your primary residence for at least 2 years during the 5-year period ending on the date of sale. Since you've lived there for 6 years, you have a huge buffer. The key thing I discovered is that you can move out, establish a new primary residence, and still sell the old house months later while keeping the exclusion. The IRS doesn't require you to be living in the house on the actual sale date. With your $140k gain and married filing jointly status, you're well under the $500k threshold, so you should owe zero capital gains tax regardless of your exact timing. Just make sure to keep good records of your move-out date and new residence establishment in case you ever get questioned. Good luck with both transactions!
0 coins
Nia Davis
•This is exactly the kind of reassurance I needed to hear! The "2 out of 5 years" rule being so flexible really takes the pressure off the timing. I was getting stressed about whether we needed to coordinate everything perfectly, but it sounds like we have plenty of wiggle room. Your point about not needing to be living in the house on the sale date is particularly helpful. We were worried that officially changing our homestead exemption to the new house might somehow invalidate our exclusion, but from everything I'm reading here, the IRS treats property tax homestead status completely separately from the federal capital gains rules. Thanks for sharing your experience - it's really helpful to hear from someone who's actually been through this process. With our gain being so far under the threshold, it sounds like we can focus on the logistics of the move and sale without worrying about tax complications.
0 coins
Anastasia Sokolov
Just wanted to chime in with a slightly different perspective on timing your sale. While everyone's correctly pointing out that you'll easily qualify for the capital gains exclusion, don't forget about the potential benefits of holding onto the property a bit longer if the market conditions are right. Since you have such a large buffer under the $500k exclusion (your $140k gain), you might want to consider whether home values in your area are still appreciating. If the market is strong and you can comfortably handle carrying two mortgages for a few months, waiting could potentially increase your proceeds without any additional tax burden. That said, there are definitely costs to consider - two mortgage payments, insurance, utilities, maintenance, etc. Plus the stress factor of managing two properties. But if your local market is hot and inventory is low, listing in late spring might get you a higher sale price that more than offsets the carrying costs. Just another angle to consider as you make your decision. Either way, sounds like you're in a great position tax-wise!
0 coins