Capital gains exclusion on California home sale during a pending divorce

We're in the middle of a divorce — nothing finalized yet, still legally married — and we're being pushed to sell the house before the settlement closes. We've lived there together for about six years so the ownership and use tests aren't the issue. What is the issue: I keep seeing different things about whether a pending divorce changes who can claim the capital gains exclusion and how much. We have a decent gain and I want to know if filing jointly still makes sense for the year of sale or whether we'd each be capped at the single-filer exclusion amount. Already asked the mediator but she said that's a tax question. Does filing status at year-end control the whole thing, or does the marital status at the date of sale matter?

37 comments

What's your expected close date relative to December 31? That's the detail that changes everything here. Your marital status for the entire tax year is set by your status on December 31 of that year — not the sale date. If the divorce is not final by December 31 you are still considered married for federal filing purposes for that full year.

Leah G.

Author

Closing is likely late summer, divorce probably won't be final until at least Q1 of next year. So we'd still be married on December 31 of the sale year. That changes my read on this.

Are you and your spouse both on the title? And did you both live there as your main home for at least 24 of the last 60 months? Both of those facts matter for how the exclusion applies on a joint return.

Leah G.

Author

Yes, both on title, both lived there the whole time. Neither of us bought another home or took the exclusion in the two years before this sale.

Then on a joint return you can exclude up to the married-filing-jointly limit on gain from the sale of your main home — only one spouse needs to meet the ownership test, but both need to meet the residence test. See Publication 523 at irs.gov for the eligibility steps, they lay it out clearly.

Had almost the same situation last year. Divorce wasn't final, sold in October, filed jointly. I uploaded my 1099-S, the closing disclosure, and the prior year return to taxr.ai and it walked through which lines of Form 8949 and Schedule D the numbers had to hit, and checked whether the gain after exclusion was actually zero or if something needed to be reported. Helped me see the filing status piece clearly. Worth doing before you file so nothing gets missed.

Leah G.

Author

Did it flag anything about the California side too, or just federal? That's another layer I haven't even gotten into yet.

The federal exclusion question and the California question are separate problems. California generally conforms to the federal exclusion for gain on a main home sale, but California has its own filing status rules and those don't always mirror the federal ones when a divorce is pending.

Leah G.

Author

So I need to look at both independently. I figured California followed federal on this but maybe not entirely.

Right. For the California piece I'd check the FTB instructions directly — the conformity details matter and they do occasionally differ from what you'd assume reading the federal rules.

If you sell and file jointly for the year of sale, do you have a sense yet of whether the gain clears the exclusion or if there's a taxable remainder? Because if there's a taxable remainder, the question of how that gets split and reported between two people mid-divorce gets complicated fast.

Leah G.

Author

We're not sure yet — depends on the final sale price. Could go either way. If there's a taxable overage we'd probably need to figure out who actually owes what given we're splitting the proceeds differently than 50/50.

Something I found useful: I had Taxr read through my Form 8949 draft and the closing disclosure together and it flagged that I had entered the cost basis wrong — I hadn't added back the improvements we'd documented. It listed exactly what adjustments were allowed and in what order per the Publication 523 worksheet. Took about ten minutes and I didn't have to pay a preparer just to check the basis math.

Basis is where people leave money on the table. Any major improvements — roof, addition, HVAC — those adjust the basis upward and reduce your recognized gain before the exclusion even applies.

Leah G.

Author

We have a lot of improvement records from about four years ago. I hadn't thought about whether all of them qualify. I'll need to work through the Publication 551 rules on what actually counts.

Does anyone know what happens if one spouse already used the exclusion on a different property in the two years before this sale? Does that knock out the whole joint exclusion or just that spouse's portion?

Per Publication 523, neither spouse can have excluded gain on another home sold in the 2-year period before the current sale in order to use the full joint exclusion. If one spouse is disqualified on that point it affects the joint return calculation.

That's a stricter rule than I remembered. Good to know before assuming you're eligible for the full amount.

If the divorce finalizes before December 31 — even by one day — you're each filing separately for that year and the exclusion limit drops to the single-filer amount per person. That's worth knowing if settlement timing is at all flexible.

Leah G.

Author

That's actually useful leverage in the settlement timing conversation. Even a few weeks can swing which exclusion limit applies.

Are you planning to file jointly anyway, or is the divorce contentious enough that you won't be cooperating on a tax return? Because filing jointly requires both signatures and both spouses agreeing on the numbers.

Leah G.

Author

It's mostly amicable. We'd both sign if the numbers make sense. That's exactly why I want to understand the exclusion picture before we agree on how to split the proceeds.

Worth noting: if you received a Form 1099-S at closing, you must report the sale on Form 8949 regardless of whether the full gain is excluded. In that case you'd use Part II (long-term, since you lived there more than a year), check box F, enter code H in column (f), and put the excluded gain as a negative number in column (g).

Leah G.

Author

We will definitely get a 1099-S. So we have to report it even if the whole gain is excluded — that part I didn't realize. Good to know before we assume we can just leave it off.

Correct, the 1099-S triggers the reporting requirement on Form 8949 even when the gain is fully excluded. The form just shows the exclusion netting it to zero taxable gain.

What happens to the basis split if the settlement gives one spouse more of the sale proceeds than the other? Does that change how the exclusion is calculated on a joint return for the year of sale?

On a joint return for the year of sale, the exclusion applies to the total gain on the home — the proceeds split in the settlement is a separate legal question from the tax calculation on the joint return. The tax calculation uses the home's total gain.

Have you talked to a CPA or enrolled agent who handles divorce-year returns? This isn't a reason to panic but the intersection of divorce timing, property settlements, and the exclusion eligibility test is exactly where people make errors that follow them into future years. Worth a professional set of eyes before you file.

Leah G.

Author

Haven't yet, but I'm going to after this. Want to understand the basics first so I'm not paying someone to explain the whole framework from scratch.

Six years of ownership puts you well past the one-year mark, so any gain that doesn't get excluded is long-term capital gain. That at least simplifies the Form 8949 part: everything goes in Part II, not Part I.

If the gain ends up exceeding the exclusion on a joint return, that taxable remainder doesn't go straight to Schedule D line 8a — since you'll have a 1099-S and the exclusion is an adjustment (code H), the sale has to go through Form 8949 Part II first, and the totals then carry to Schedule D. Net investment income tax may also be relevant depending on your income for the year — the Form 8960 instructions cover whether that applies.

Leah G.

Author

I hadn't even thought about net investment income tax on a home sale gain. Something else to look up before we finalize the numbers.

Something I want to make sure is clear: a few comments mentioned the residence test requiring 24 months out of the last 60. The 24 months don't have to be continuous — they just have to add up to 24 months within the 5-year lookback window before the sale date. See the eligibility steps in Publication 523.

Correct, and for a joint return only one spouse has to meet the ownership test, but each spouse individually has to meet the 24-month residence test. If one spouse moved out earlier in the marriage, that could be relevant.

Leah G.

Author

We both lived there continuously so that part is clean. But good clarification for anyone reading this who had a spouse move out before the sale.

To pull this together from a federal filing standpoint: if you're still legally married on December 31 of the sale year, you can file jointly, apply the joint exclusion limit to the full gain, report the sale on Form 8949 Part II with code H because you have a 1099-S, and carry any remaining taxable gain to Schedule D. California is a separate analysis. See Publication 523 for the full eligibility test and Worksheet 2 for the basis calculation.

Leah G.

Author

Seeing it all laid out step by step like that finally makes the federal side click for me. Thank you. I'll work through the basis worksheet carefully given the improvements we made, then get a CPA to review before filing.