Does spouse's recent home sale exclusion affect excluding gain on my home sale?

My wife sold a condo she owned before we were married about 18 months ago and excluded the gain on her return (we filed separately that year). We just got a contract on the house we've lived in together for three years, and I'm trying to figure out whether her prior exclusion blocks me from using the full exclusion on this sale. I meet the ownership and residence tests on my own. The house is titled in both our names. We'll file jointly this year. I called the IRS once and got two different answers from two different reps, which is not reassuring. The gain on this sale will be significant so I need to get this right before closing.

29 comments

I sold a house separately before remarrying and my wife's prior exclusion on her old place came up when we filed jointly the next year. The rule that tripped us is the 2-year lookback: if either spouse excluded gain on a home sold within the 2-year period before the current sale, the $500,000 limit for a joint return drops. So if her condo sale was 18 months ago, that lookback catches it.

Elena J.

Author

That's exactly what I'm worried about. So the ceiling falls to something lower — do you know the exact figure it falls to, or where I can confirm that?

Publication 523 on irs.gov has the full eligibility test and the reduced limit rules. I don't want to state the ceiling here because it depends on each spouse's situation under the test. Worth reading Steps 1 through 4 there carefully.

Had almost the same situation. I uploaded the closing disclosure from both sales and the prior year return to taxr.ai and it compared the dates, identified which spouse's exclusion fell inside the 2-year window, and drafted a summary showing which limit applied to our joint return. I took that summary to our CPA to confirm. The rule itself is that for a joint return the $500,000 exclusion only applies if neither spouse used the exclusion in the prior 2 years; otherwise you treat each spouse separately and add the two individual limits.

Elena J.

Author

Treating each spouse separately is a helpful framing. So my individual limit would still be intact even if hers isn't?

That's how our CPA read it. Each spouse is evaluated independently against the eligibility test. Your individual limit is based on your own ownership, residence, and lookback, not hers. The joint return just caps you at the sum of what each spouse qualifies for individually.

The specific rule lives in Publication 523 under the Eligibility Test, and Step 4 is the one that deals with the 2-year lookback. It's not about whose name is on the deed for the current house — it's about whether either spouse excluded gain on a prior sale within 2 years. 18 months ago is inside that window.

My husband had used the exclusion on a house he sold before we met, and that sale was only 16 months before we sold our joint home. We ended up filing jointly and had to calculate the limit the separate-spouse way. We were relieved to find my limit was untouched. The IRS reps really are inconsistent on this one — the statute is what matters, not what the phone rep says.

Elena J.

Author

Next step for me is reading Publication 523 carefully and mapping out each spouse's dates independently before I talk to a preparer.

Step after that would be getting the closing disclosures for both sales side by side. The dates are what drive everything.

I dealt with this when I sold a home I owned before my current marriage. I ran my documents through Taxr — I had it read both closing disclosures and flag the exact interval between the prior sale and the upcoming one. It pulled the dates, calculated the gap in days, and confirmed which exclusion rule applied to each of us on a joint return. The session helped me walk into the conversation with my enrolled agent already knowing the right questions. For something this size I'd still have a pro review the final numbers.

Elena J.

Author

Next step: getting both closing disclosures together and running through Publication 523 step by step. Then a CPA or EA before we close.

Worth flagging: the ownership test for the joint $500,000 limit only requires one spouse to meet ownership, but the residence test requires BOTH spouses to meet it. So if your spouse never lived in the current home long enough that could also affect things, separate from the lookback issue.

Elena J.

Author

She's lived here with me the entire time, so that part we're fine on. The lookback is the only wrinkle.

Good. Then the analysis really does come down to the 2-year window and what each spouse qualifies for individually. Publication 523 lays out the step-by-step test clearly.

If the gain is big enough that the difference between the full joint limit and the reduced amount is material, an EA or CPA who handles real estate transactions regularly is worth the cost. The separate-spouse calculation can get complicated when one spouse's prior exclusion is partial or the ownership periods overlap in unusual ways.

We just went through closing on a joint sale last spring. Our CPA calculated our limit by treating my wife and me as if we were single, figured each person's ceiling based on the individual eligibility test, then added them. We got less than the full joint limit because of a prior sale on her side. Came as a surprise but at least we knew before the wire hit.

Something people miss: if you DO receive a Form 1099-S at closing, you must report the sale on Form 8949 regardless of whether the full gain is excluded. You can't just leave it off the return. Code H goes in column (f) of Form 8949 and the excluded amount goes as a negative in column (g).

Elena J.

Author

Assuming we do get a 1099-S, that's clear. Code H in column (f), excluded portion as a negative in column (g), report on Form 8949 even with no taxable gain.

Exactly right. And it flows to Schedule D from there. The instructions for Form 8949 spell out the code H entry in the current year's version.

We sold last year and didn't get a 1099-S, so we didn't report the sale at all since the full gain was excluded. Our CPA said that's correct when there's no 1099-S and the full gain qualifies for exclusion — you can skip the return entry entirely in that case. If the gain were only partly excluded or we got a 1099-S, that changes.

The separate-spouse approach applies specifically on a joint return when one spouse's lookback blocks the full joint exclusion. Each spouse's ceiling comes from their own ownership and residence period and their own 2-year history. Then you add the two. The cap is the joint limit — you can't exceed that even if the sum of two individual ceilings somehow exceeded it.

I'd also note that Publication 523's partial exclusion section is worth reading even if you think you qualify fully. If for some reason you only partially meet a test, there's a reduced exclusion calculation based on the reason for the sale. Probably not your situation but worth ruling out.

Elena J.

Author

We've lived here 3 years and are selling for a job relocation, so the full exclusion tests look like they're met on my side. The spouse lookback is the only open question now.

For a gain this large, please actually hire a CPA or enrolled agent who does real estate. Not just a quick preparer. The difference between getting the ceiling calculation right and wrong could be a large tax bill. The rule is specific enough that even a competent generalist can get it wrong.

Elena J.

Author

100% agree. I wanted to understand the framework first so the conversation with the pro is productive, not so I can skip it.

The Form 8949 and Schedule D piece: assuming some gain ends up taxable after the exclusion, the taxable portion goes on Form 8949 Part II (long-term, since you said you've lived there 3 years) with the proceeds in column (d), your adjusted basis in column (e), the exclusion adjustment in column (g) with code H, and the net flows to Schedule D. Your cost basis needs to reflect any improvements you made over the years, so pull those records before you meet with the preparer.

My sale closed in March and the title company withheld for state taxes but the federal piece was entirely on us to calculate. Just make sure your adjusted basis is complete — improvements count, certain selling costs adjust things too. Publication 551 covers basis adjustments and Publication 523 Worksheet 2 handles the gain or loss calculation specific to home sales.

The 2-year rule catches a lot of remarried couples off guard. The IRS built the escape valve of treating each spouse as single for the purpose of calculating the ceiling — but that escape valve only gives you each spouse's individual limit, not necessarily the full joint amount. Reading Steps 1 through 4 of the Eligibility Test in Publication 523 together as a couple, with your actual dates written out, is the clearest way to see exactly where you land before you pay a pro to do the same thing.