Is It Better to Sell a House Before or After Divorce? The Tax Answer (and the Buyout Trap)
For federal capital-gains tax, it is often better to sell the house before the divorce is final: a couple still married on December 31 can file a joint return for that year and exclude up to $500,000 of gain on their main home, while a single filer's exclusion caps at $250,000. But taxes are only one input — the settlement, the market, and what each of you can afford next matter too, and divorced co-owners can often still reach $500,000 combined. The expensive mistake usually isn't selling after the divorce — it's one spouse buying the other out, then selling alone years later.
Quick disclosure: we're Easy Exit Home Buyers, a family-owned direct home buyer in Crystal Lake — not CPAs, not attorneys, and not licensed agents. We've bought houses through plenty of local divorces, but this is general education, not tax advice — run your numbers past a CPA and your divorce attorney before committing to a timeline.
The $500,000 vs. $250,000 Rule, in Plain English
The federal home-sale exclusion (Section 121, per IRS Topic 701) wipes out gain on your main home if you pass two tests in the five years ending on the closing date: the ownership test (you owned the home at least 24 months) and the use test (it was your main home at least 24 months). The months don't have to be continuous.
The full $500,000 on a joint return requires three things: either spouse meets the ownership test, both spouses individually meet the use test, and neither excluded gain from another home sale in the prior two years.
Why divorce timing matters: your filing status for the entire year is set by your marital status on December 31 (IRS Publication 504). If the final decree is entered by year-end, you're treated as unmarried for that whole year — no joint return, no $500,000 exclusion.
Not the day someone moves out — the tax year of the closing versus the date of the final decree. Close in a year you're still married on December 31 and file jointly: up to $500,000 excluded. Decree signed by year-end: a $250,000 cap each that year.
Get a fair cash offer in 24 hours
No fees. No repairs. No obligation. See what your home is worth.
Get My Cash Offer or call (224) 267-9324Divorced Already? You Haven't Automatically Lost the $500,000
The usual advice — "sell before the divorce or lose half your exclusion" — oversells it. The code has divorce-specific carve-outs:
Both stay on title, sell later: you can generally each exclude up to $250,000 of your half of the gain — $500,000 combined, just reported on two returns. Many Illinois settlements do exactly this — hold until the kids finish school, then sell and split.
House transferred to you in the divorce: you inherit your ex's ownership clock. Under Section 121(d)(3), time your ex-spouse owned the home counts toward your two-year ownership test.
You moved out: the use test can keep running — with the right paperwork. Under the same rule, a spouse who left is still treated as using the home while their ex is granted use of it under a divorce or separation instrument. If the decree gives your ex the right to live there, your $250,000 exclusion can survive years of living elsewhere. With nothing in writing, your qualifying use runs out about three years after you leave.
Forced to sell before two years? IRS Publication 523 lists divorce or legal separation among the unforeseeable events qualifying for a partial exclusion, prorated for the time you did meet — 12 of the 24 months supports roughly half the cap.
If one of you will stay in the house for years while the other moves out, have the decree or separation agreement explicitly grant the resident spouse use of the home. That written grant keeps the departing spouse's use test alive under the IRS divorce rules. Ask your attorney before the decree is entered, not after.
The Real Trap: Buy Out Your Ex, Then Sell Alone
The scenario that quietly costs suburban sellers real money: one spouse keeps the house — often for the school district — pays the other for their equity, and sells years later.
Two rules gang up on them. Under Section 1041, the buyout transfer is tax-free and the keeping spouse takes the couple's original carryover basis — the money paid to the ex does not increase it. And they now own 100% of the built-in gain with only a $250,000 single-filer cap against it.
Round numbers on a long-held Crystal Lake house: bought for $200,000, $40,000 of improvements — basis $240,000. It would net $560,000 today, a $320,000 gain. The keeping spouse instead sells alone years later, netting $600,000 — a $360,000 gain against that same basis.
| How the sale is timed | Exclusion available | Tax on the example gain |
|---|---|---|
| Sell while still married, file jointly | Up to $500,000 combined | $0 — the $320,000 gain is fully excluded |
| Divorce first, keep co-owning, sell together later | Up to $250,000 per ex-spouse | $0 — each half of the gain stays under $250,000 |
| One spouse buys the other out, sells alone later | $250,000 against the entire gain | Roughly $22,000 on the $360,000 gain in this example |
The buyout path leaves $110,000 taxable after the $250,000 exclusion. At the 15% federal long-term rate most middle-income sellers pay, that's about $16,500 — plus Illinois. Illinois starts from federal adjusted gross income and taxes what's left at a flat 4.95%: federally excluded gain never reaches your Illinois return, but the taxable slice gets hit by both — roughly another $5,400 here. Call it $22,000 the other two paths didn't pay, more for higher earners once the 20% rate and 3.8% net investment income tax kick in. A buyout isn't wrong — but the future tax bill belongs in the settlement negotiation, priced by a CPA before anyone signs. Who gets the house in an Illinois divorce is its own question — one that decides which of these tax paths you're choosing between.
We buy houses across McHenry, Lake, Kane, DuPage, and northwest Cook counties in any condition — no showings while you're living through a divorce, and a closing in as little as 7 days once title is clear (2–3 weeks is typical). Request a no-obligation cash offer or call or text (224) 267-9324. We can coordinate timing with both attorneys.
The Non-Tax Timing Factors (Sometimes They Matter More)
If your gain sits under $250,000 per person, the exclusion math barely matters — other pressures take over:
Carrying costs while you wait. A house held through a long divorce still demands the mortgage, insurance, upkeep, and northwest-suburban property taxes — while at least one of you also pays for a second place to live. Months of double housing costs can eat whatever waiting was supposed to save.
Market risk cuts both ways. Holding until the decree — or years past it — is a bet on the local market neither of you chose together. A sale settles the number today; an appraisal-based buyout is an estimate one of you may regret.
Clean break vs. staying financially tied. Co-owning preserves the exclusion, but it means agreeing with your ex about repairs, refinancing, and sale timing for years. Plenty of our sellers take a clean sale now because the relationship can't support a joint asset — a legitimate reason no tax worksheet captures.
Sometimes keeping the house wins. A low locked-in mortgage rate, kids mid-school-year, or a buyout the keeping spouse can truly afford are real arguments against selling at all. Our guide to selling a house during divorce covers how the sale works when selling is right, and our step-by-step Illinois divorce home-sale guide walks the process end to end.
So — Before or After? A Short Decision Guide
Selling before the decree tends to win when the gain is large and you can still cooperate on one sale. Selling after works nearly as well when you'll both stay on title and the decree carries the use provision above. The buyout deserves the hardest look — often right for the family, but it concentrates all the gain on one person with half the exclusion.
Either way, we'll be straight about the options: listing with an agent usually brings the highest price, and a cash offer from a direct buyer like us runs below full market value — the trade for speed, certainty, and zero showings. We're a direct buyer, not an agent, there's no commission, and an offer is free to look at whether the divorce is filed, pending, or final. Call or text Todd and the team at (224) 267-9324 or get your cash offer online.
Ready to sell? Get your cash offer today.
We buy houses as-is in Crystal Lake and across Northern Illinois. No agents, no fees, no hassle.
Get My Cash Offeror call (224) 267-9324Local to Crystal Lake? See how we buy houses fast in Crystal Lake, IL →
Frequently Asked Questions
Is it better to sell a house before or after divorce for tax purposes?
Often before, if the gain is large. A couple still married on December 31 can file jointly and exclude up to $500,000 of home-sale gain, while a single filer caps at $250,000. But ex-spouses who keep co-owning can generally still exclude $250,000 each when they sell later, so the after-divorce sale isn't automatically worse. The costliest path is usually one spouse buying the other out and selling alone. Confirm your numbers with a CPA.
I moved out years before we sold — can I still claim my exclusion?
Often yes, thanks to a divorce-specific rule. Under Section 121(d)(3), if your divorce decree or written separation agreement grants your ex-spouse use of the home, you're treated as using it as your main home during that period even though you live elsewhere. That keeps your use test alive for a later sale. Without that written grant, your qualifying months can run out about three years after you move. Have your attorney confirm the decree language.
What happens to capital gains tax if one spouse keeps the house in the buyout?
The buyout itself is generally tax-free under Section 1041, but the keeping spouse takes the couple's original basis — the money paid to the ex doesn't increase it. When that spouse later sells alone, the entire gain lands on one return with only a $250,000 exclusion. On a long-held house with $360,000 of gain, that can mean roughly $22,000 in combined federal and Illinois tax that other timing paths avoid. Price that into the settlement with a CPA.
What if the divorce forces us to sell before we've lived there two years?
You may still get part of the exclusion. IRS Publication 523 treats divorce or legal separation as an unforeseeable event, which qualifies you for a partial exclusion prorated by how much of the two-year requirement you met. Living in the home 12 of the 24 required months, for example, supports excluding roughly half the normal cap. The proration rules are technical, so have a CPA calculate your exact reduced exclusion before you count on it.
Does Illinois tax the gain when we sell a house in a divorce?
Illinois taxes capital gains as ordinary income at a flat 4.95%, but it starts from your federal adjusted gross income — so any gain the federal home-sale exclusion wipes out never reaches your Illinois return either. Only the taxable portion above your exclusion gets hit, by both the federal capital-gains rate and the Illinois 4.95%. There's no separate Illinois home-sale exclusion to claim, and no lower Illinois rate for long-term gains.
