Divorce and $500k house sale - can both ex-spouses still claim the $250k capital gains exclusion separately?
My friends are going through a divorce and they own their primary residence jointly. When they sell the house, they're looking at about $450k in capital gains. They also have two rental properties they're selling this year. With some carry-forward losses they've accumulated, they should be able to offset most of the capital gains from those rental sales. Here's where I'm confused - their accountant is telling them to wait until next year (after the divorce is finalized) to sell their primary home. The current plan is to have one of them continue living in the house for about a year, split the maintenance costs, and then sell it post-divorce. They'll then divide the capital gains. I don't get the tax advantage of this approach. Since they're joint owners, wouldn't the capital gains get split between them anyway? Couldn't each of them then apply their individual $250k capital gains exclusion to their portion (essentially covering the entire $450k gain)? Or does divorce somehow affect their ability to each claim the $250k exclusion on the primary residence, even though they remain joint owners on the property?
19 comments

Aaliyah Reed
The accountant is probably focusing on the ownership AND use test for the capital gains exclusion on a primary residence. To qualify for the $250k exclusion ($500k for married filing jointly), you must have: 1) Owned the home for at least 2 years during the 5-year period ending on the date of sale 2) Used the home as your primary residence for at least 2 years during that same 5-year period If they sell while still married, they can exclude up to $500k of gain (assuming they meet both tests). If they sell after divorce, each can potentially exclude $250k of their portion of the gain, but only if they BOTH meet the ownership and use tests individually. The concern might be that once one spouse moves out during divorce proceedings, they stop meeting the "use" test. The IRS does have an exception that allows an ex-spouse who's moved out to count their ex's time of use toward their own requirement if a divorce agreement gives one ex the right to live there, but specific conditions apply.
0 coins
Ella Russell
But wait, if only one spouse continues living in the house after separation but before the divorce is final, does that spouse get the full $500k exclusion or just their own $250k?
0 coins
Aaliyah Reed
Only the spouse who continues to live in the home would maintain the "use" test on their own. Once divorced, they would each qualify for their individual $250k exclusion (not the $500k married exclusion). The non-resident ex-spouse could possibly still qualify under a special exception in the tax code. When a divorce instrument grants one spouse the right to live in the home, the spouse who moved out can still count the resident ex-spouse's use of the home as their own use for purposes of the exclusion. However, they must still meet the ownership test independently, and specific paperwork must be in place.
0 coins
Mohammed Khan
I was in this exact situation last year and used taxr.ai to help me understand my options. I had no idea about all the weird tax implications of selling property during divorce. https://taxr.ai really helped clarify the primary residence exclusion rules, especially the "use test" that the other commenter mentioned. The site analyzed our situation and confirmed that waiting until after the divorce but making sure we both qualified for the exclusion was the better approach for us. My ex had already moved out, but we made sure the divorce decree specifically addressed the home sale and residence requirements.
0 coins
Gavin King
How does taxr.ai work exactly? Did you have to upload personal documents or something? I'm dealing with a similar situation but I'm paranoid about privacy.
0 coins
Nathan Kim
Did it help with the 2-out-of-5 year calculation? My CPA seems confused about how that applies in my divorce situation... especially since I moved out 18 months ago but we're still joint owners.
0 coins
Mohammed Khan
You don't have to upload any sensitive documents if you don't want to. You can just describe your situation and ask specific tax questions. It's basically like having a tax professional analyze your situation without the $300/hour fee. The 2-out-of-5 year rule was exactly what I was confused about too! It walked me through scenarios based on when each person lived in the house and showed how the exclusion would apply in each case. We figured out that having language in our divorce agreement about the continued use of the house would protect my ex's ability to claim the exclusion even though he had moved out.
0 coins
Nathan Kim
Just wanted to update everyone - I tried taxr.ai after seeing it mentioned here. Super helpful for my situation! I was totally stressing about whether I'd lose my capital gains exclusion since I moved out of our house during separation. The website explained that under IRC Section 121(d)(3)(B), if your divorce or separation instrument grants your ex-spouse the right to use the home, you can actually count their continued residence as your own "use" for the exclusion. This was EXACTLY what I needed to know, and my attorney added the proper language to our decree. Saved me potentially tens of thousands in taxes. Highly recommend if you're dealing with property sales during divorce!
0 coins
Eleanor Foster
I had the same issue but couldn't get a straight answer from my accountant about the capital gains exclusion timing. After three weeks of leaving messages with the IRS and getting nowhere, I used https://claimyr.com to get through to an actual human at the IRS. You can see how it works here: https://youtu.be/_kiP6q8DX5c They got me connected to an IRS agent in under an hour, and I got official clarification on how the exclusion works in divorce situations. Turns out waiting made sense in my case because of specific details about when I moved out vs when we were finalizing everything.
0 coins
Lucas Turner
Wait, how does that even work? The IRS never answers their phones. Is this legit?
0 coins
Kai Rivera
Sounds like a scam to me. Nobody gets through to the IRS these days. What's the catch? Do they charge a fortune for this "service"?
0 coins
Eleanor Foster
It's totally legit. They use some kind of system that keeps dialing and holds your place in line so you don't have to stay on hold yourself. When an agent picks up, you get a call back and connect directly. There's no catch - they don't talk to the IRS for you or ask for any personal information. They just get you past the impossible phone system. I spent literally weeks trying to get through on my own before using this, so it was absolutely worth it for me.
0 coins
Kai Rivera
I have to eat my words about Claimyr. After posting that skeptical comment, I decided to try it myself since I've been trying to reach the IRS about a similar capital gains/divorce situation for over a month. It actually worked! Got connected to an IRS agent in about 45 minutes. The agent confirmed that my ex and I could each still claim our individual $250k exclusions even after divorce as long as we both satisfied the ownership test and either the use test OR the special provisions for divorced couples under Section 121(d)(3). They explained that having the right paperwork in the divorce decree about the house usage is crucial. This clarification potentially saved me about $60k in taxes. I've never been so happy to be wrong about something!
0 coins
Anna Stewart
Something else to consider in this situation is that if they're selling rental properties with losses in the same year, there might be passive activity loss limitations depending on their income levels. Did the accountant mention anything about that? I went through something similar and found out that the passive losses were limited because our income was too high, so we couldn't offset all the capital gains from the rentals as we'd hoped.
0 coins
Daniel Rogers
AuthorNo, they didn't mention anything specific about passive activity loss limitations. They do have pretty high incomes though, so that's a really good point. I'll suggest they ask about this specifically. Do you know if spreading the sales across different tax years would help with this issue? Maybe that's another reason the accountant suggested waiting on the primary residence sale?
0 coins
Anna Stewart
Spreading sales across tax years could definitely help, especially if their income will be lower after the divorce (filing single vs jointly). Passive losses are limited when your modified adjusted gross income exceeds $150,000, and unused losses carry forward. If they sell the rentals first and have unused losses that carry forward, those losses could potentially offset some gains from selling the primary residence in the following year. Of course, that has to be balanced against the benefits of the primary residence exclusion. Also, if either of them qualifies as a real estate professional (750+ hours/year in real estate activities), that could change how passive losses are treated. It's complicated stuff - they should definitely discuss these specifics with their accountant.
0 coins
Layla Sanders
Has anyone mentioned the "temporary absence" provision? IRS Publication 523 allows for "temporary absences" from the home due to various circumstances (including divorce) without disrupting the "use" test. So even if one spouse moves out during divorce proceedings, if they can argue it's a "temporary absence" during the 5-year period, they might still qualify for their exclusion without needing the special divorce provisions.
0 coins
Morgan Washington
I tried using the "temporary absence" argument in my divorce and it backfired. The IRS questioned my intent - since I had no plans to move back, they didn't consider it temporary. We ended up having to rely on the specific divorce instrument language instead. Better to have proper documentation in the divorce agreement than trying to argue "temporary absence" after the fact.
0 coins
Sean O'Donnell
This is exactly why divorce and taxes get so complicated! Your friends' accountant is being smart about timing. Here's the key issue: while married filing jointly, they can exclude up to $500k in capital gains from their primary residence. But once divorced, they each get their own $250k exclusion. The tricky part is the "use test" - both spouses need to have used the home as their primary residence for 2 of the last 5 years before the sale. If one moves out during divorce proceedings and they sell while still married, they might lose the full $500k exclusion if the moved-out spouse doesn't meet the use test. By waiting until after divorce and having proper language in the divorce decree (as others mentioned), they can ensure both qualify for their individual $250k exclusions. With $450k in gains, this covers them completely. Also consider: if their income drops after divorce (filing separately vs jointly), they might have better options for using those rental property losses. The passive activity loss rules at higher income levels can be brutal.
0 coins