Selling the Marital Home During Divorce: $250K/$500K Exclusion Math
The $250K single / $500K joint capital gains exclusion under IRC §121 hinges on ownership, use, and filing status — all three shift during a divorce. Sell at the wrong time or file the wrong way and you hand the IRS up to $119K on a gain that could have been tax-free. Here's the math.
For most divorcing couples, the marital home is the single largest asset on the balance sheet — and the one with the biggest tax trap hiding inside it. The IRC §121 capital gains exclusion lets you shelter up to $250K (single) or $500K (joint) of gain from tax when you sell a principal residence. But divorce reshuffles the three variables that determine eligibility: ownership, use, and filing status. Get the timing wrong by even a few months and a fully excludable gain becomes partially or fully taxable at 15-23.8% federal plus state capital gains rates.
This guide walks through the §121 mechanics as they apply specifically to divorce, the community property wrinkle, the critical IRC §1041 basis carryover rule, and a worked dollar example for a couple selling a $1.1M home with a $600K gain.
The §121 exclusion: ownership test, use test, and the filing-status lever
IRC §121 excludes up to $250,000 of capital gain from the sale of a principal residence for a single filer, or $500,000 for married filing jointly. To qualify, two tests must be met during the 5-year period ending on the date of sale:
- Ownership test: you must have owned the home for at least 2 of the past 5 years.
- Use test: you must have used the home as your principal residence for at least 2 of the past 5 years. The 2 years do not need to be consecutive.
For the $500K joint exclusion, both spouses must meet the use test, but only one spouse needs to meet the ownership test (per IRC §121(b)(2)(A)). This distinction matters in divorce: if the home was titled solely in one spouse's name, the other spouse doesn't need to be on the deed — they just need to have lived there for 2 of the past 5 years.
The filing-status lever is where divorce planning gets tactical. If you sell the home in a year where you're still legally married and file jointly, you access the full $500K exclusion. If you finalize the divorce before the sale and file as single, each spouse is capped at $250K. For a gain between $250K and $500K, the difference between selling before vs after the divorce is finalized can be worth tens of thousands in federal tax alone.
The move-out clock: IRC §121(d)(3)(B)
In most divorces, one spouse moves out of the marital home months or years before the sale. The moment that happens, the use test clock starts running for the departed spouse. Without a safeguard, if more than 3 years pass between moving out and selling, the departed spouse fails the 2-of-5-year use test and loses their $250K exclusion entirely.
IRC §121(d)(3)(B) provides the safeguard: if the departed spouse retains ownership interest and a divorce or separation instrument grants the remaining spouse the right to use the property, the home continues to be treated as the departed spouse's principal residence. This deemed-use rule keeps the exclusion alive — but it requires a written instrument. A verbal agreement or informal arrangement does not qualify. IRS Publication 523 is explicit: the instrument must be a divorce decree, separation agreement, or court order.
The practical implication: if one spouse moves out and you anticipate the home sale could take more than 3 years, make sure the separation agreement or temporary court order explicitly grants the remaining spouse the right to use the home. One sentence in the agreement preserves $250K in tax exclusion. Forgetting it — or relying on an informal understanding — is one of the most expensive drafting errors in divorce law.
IRC §1041: tax-free transfer, carryover basis trap
When one spouse transfers their interest in the marital home to the other as part of the divorce settlement, IRC §1041 makes the transfer tax-free. No gain or loss is recognized at the time of transfer. However, the receiving spouse takes the transferring spouse's cost basis — this is a carryover basis, not a stepped-up basis to current fair market value.
This is the trap. Suppose the home was purchased 15 years ago for $350,000 and is now worth $950,000. One spouse receives the home in the divorce. Their basis is $350,000, not $950,000. When they sell, the gain is $600,000. As a single filer, they can exclude $250,000, leaving $350,000 taxable at federal rates of 15-20% plus the 3.8% net investment income tax (NIIT) if their income exceeds $200K — a tax bill of up to $83,300 on what looked like a "fair" 50/50 asset split.
The spouse who gave up the home and received other assets (say, $475K from retirement accounts via QDRO) doesn't face this tax hit. The "equal" split of $475K each in market value is actually unequal after taxes — the home-receiving spouse nets $475K minus $83K = $392K; the other spouse nets $475K minus ordinary income tax on QDRO distributions drawn over retirement. Every divorce settlement involving a home with significant appreciation must compare assets on an after-tax basis, not market value.
Selling before vs after the divorce: the $500K timing play
The most powerful tax planning lever in a divorce home sale is timing the sale relative to the finalization of the divorce. Here are the three scenarios:
Scenario 1: sell while still married, file jointly. Both spouses meet ownership and use tests. You claim the full $500K exclusion. For gains up to $500K, the entire gain is tax-free. This is the gold standard if the gain exceeds $250K and both spouses are willing to cooperate on a joint return. The cooperation requirement is the hard part — joint filing means joint liability for the entire return under IRC §6013(d)(3), and most divorcing spouses aren't eager to share tax liability with someone they're divorcing.
Scenario 2: sell while still married, file separately (MFS). Each spouse claims up to $250K on their own return. Combined exclusion: $500K — same as joint filing. This avoids the joint-liability problem but comes with MFS penalties: loss of certain credits, lower income phase-out thresholds, and (in some cases) higher marginal rates. For most high-asset couples, the MFS penalties are minor compared to the value of the exclusion.
Scenario 3: sell after the divorce is finalized. Each spouse files as single and claims up to $250K. Combined exclusion: $500K — but only if both spouses still meet ownership and use tests at the time of sale. If one spouse transferred their ownership interest and moved out more than 3 years prior without a qualifying divorce instrument, that spouse gets zero exclusion, and the total household exclusion drops to $250K. The $250K difference at a 23.8% combined federal rate (20% LTCG + 3.8% NIIT) costs $59,500 — or more after state taxes.
Community property states: the ownership shortcut
In the nine community property states — Arizona, California, Idaho, Louisiana, Nevada, New Mexico, Texas, Washington, and Wisconsin — both spouses are treated as owning the entire home during the marriage, regardless of whose name appears on the title. This makes the ownership test a non-issue for both spouses during the marriage.
The more meaningful impact is on basis. In community property states, the cost basis of the home is split 50/50 between the spouses. If one spouse dies (not a divorce scenario, but relevant for planning), the surviving spouse gets a full stepped-up basis on the entire property under IRC §1014(b)(6) — not just the decedent's half. In divorce, however, there's no step-up: IRC §1041 carryover basis applies, and the original purchase price remains the basis for both halves.
California adds a layer: the state's 13.3% capital gains rate applies to any gain above the §121 exclusion. For a $700K gain with a $250K exclusion (single filer post-divorce), the $450K taxable gain triggers roughly $59,850 in California state tax alone — on top of federal. Texas and Washington, with no state income tax, are significantly more favorable for post-divorce home sales with large gains.
Worked example: $1.1M home, $600K gain, three sale-timing scenarios
Maria and James purchased their home in Austin, Texas for $500,000 in 2016. It's now worth $1,100,000. They're divorcing in 2026. Their adjusted basis (original price plus $30,000 in capital improvements: new roof, HVAC) is $530,000. Gain on sale: $1,100,000 − $530,000 = $570,000.
Both earn over $200K individually (combined income exceeds $400K), so the 3.8% NIIT applies to any taxable gain. Texas has no state income tax.
Scenario A: sell in 2026 before divorce is final, file jointly. Combined exclusion: $500,000. Taxable gain: $570,000 − $500,000 = $70,000. Federal tax: $70,000 × 23.8% (20% LTCG + 3.8% NIIT) = $16,660. State tax: $0 (Texas). Total tax: $16,660.
Scenario B: sell in 2026 before divorce is final, file MFS. Each spouse excludes $250K on their return. Total exclusion: $500,000. Taxable gain: $70,000 (split $35K each). Federal tax: same $16,660 total. MFS may reduce some credits but the capital gains rate is unchanged. Total tax: ~$16,660.
Scenario C: James receives the home in the divorce (finalized March 2026), Maria moves out. James sells in late 2027. Maria transferred her ownership interest via the divorce decree. James meets both tests. Maria no longer owns or uses the home. Only James claims the exclusion. Exclusion: $250,000. Taxable gain: $570,000 − $250,000 = $320,000. Federal tax: $320,000 × 23.8% = $76,160. State tax: $0. Total tax: $76,160.
The difference between Scenario A and Scenario C is $59,500 in additional federal tax. That's the cost of losing one spouse's $250K exclusion. In California, add 13.3% on the $250K incremental taxable gain: another $33,250 in state tax, for a total penalty of $92,750. The timing decision — when to sell relative to the divorce — is a five-figure (sometimes six-figure) tax planning event.
Partial exclusion: the safety valve for unusual circumstances
If you don't meet the full 2-of-5-year ownership or use test, IRC §121(c) provides a partial exclusion if the sale is due to a "change in place of employment, health, or unforeseen circumstances." Treasury Regulation §1.121-3(e) lists divorce as a qualifying unforeseen circumstance.
The partial exclusion is prorated: if you lived in the home for 15 months out of the required 24, you can exclude 15/24 = 62.5% of the full $250K, which is $156,250. This matters when divorce forces a quick sale of a recently purchased home. Couples who bought a home 18 months before filing may think they're locked out of the exclusion entirely — but the partial exclusion under the divorce safe harbor can still shelter a significant portion of the gain.
Four mistakes that cost divorcing homeowners the most
1. Failing to include deemed-use language in the separation agreement. If one spouse moves out without a written instrument granting the other the right to use the property, the departed spouse's use-test clock stops. Three years later, they've lost $250K in exclusion. One sentence in the separation agreement prevents this — and most form agreements include it. But custom-drafted agreements sometimes omit it, especially when drafted quickly during contentious proceedings.
2. Equalizing on market value instead of after-tax value. A home worth $950K with a $350K basis is not equivalent to $950K in cash or a $950K retirement account. The embedded tax liability must be modeled and equalized. A Certified Divorce Financial Analyst (CDFA) or forensic accountant will net out the estimated tax on each asset before comparing values. Without this step, the spouse receiving the home is systematically disadvantaged.
3. Selling after the divorce when a pre-divorce sale would have saved the $500K exclusion. Sometimes the emotional desire to finalize the divorce quickly overrides the tax math. If the gain exceeds $250K, the divorce attorney and financial advisor should model the tax cost of each timing scenario before the settlement is signed. A 30-day delay in finalizing the divorce to sell the home first can save $59K+ in federal tax.
4. Ignoring the 2-year lookback on prior exclusion claims. If either spouse sold a prior home and claimed the §121 exclusion within the past 2 years, they're ineligible. This catches couples who sold a starter home shortly before buying the marital home. The lookback is per-taxpayer — one spouse's prior claim doesn't disqualify the other, but it does reduce the household's combined exclusion from $500K to $250K.
The decision framework: sell now, sell later, or transfer and sell
Every divorcing couple with a principal residence and meaningful appreciation faces three paths. The right choice depends on three variables: the size of the gain, the timeline of the divorce, and whether both spouses can cooperate on a joint return or sale.
Gain under $250K: timing barely matters. Either spouse can exclude the full gain as a single filer post-divorce. Focus negotiations on who gets the home equity, not sale timing.
Gain between $250K and $500K: timing is critical. Selling before the divorce is finalized (and filing jointly or MFS) preserves the full $500K exclusion. If one spouse wants to keep the home, model the after-tax cost of losing the second $250K exclusion and factor it into the equalization payment.
Gain over $500K: even the full $500K exclusion won't cover the entire gain. The marginal calculation shifts to minimizing the taxable overage. Selling while married and filing jointly still saves money (you're excluding $500K instead of $250K), but the absolute tax bill will be significant either way. In this bracket, capital improvements documentation, basis adjustments, and selling cost deductions (broker commissions, transfer taxes) become critical levers. Every $10K in documented improvements or selling costs reduces the taxable gain dollar-for-dollar.
The home is usually the most emotionally charged asset in a divorce — and the one where tax planning has the highest dollar impact. Model the numbers before making the decision. A CDFA or CPA who specializes in divorce can build the three-scenario comparison in a few hours, and the fee will be a fraction of the tax savings. The framework above gives you the language and the logic to evaluate their work — and to push back if the settlement terms don't reflect the after-tax reality.
Get the 2026 starter pack
Decision checklists + key 2026 federal/state numbers. Free, one click.
Frequently asked
Yes — if both spouses meet the ownership and use tests under IRC §121. Each spouse must have owned the home (or be treated as an owner) and used it as a principal residence for at least 2 of the 5 years before the sale. If both qualify, each can exclude up to $250K of gain on their own return, for a combined $500K exclusion. Filing a joint return in the year of sale is the simplest way to claim the full $500K, but separated spouses filing individually can each claim $250K if they independently satisfy the tests.
Under IRC §121(d)(3)(B), if a spouse moves out of the home but retains ownership (or is granted use of the home under a divorce or separation instrument), the home is still treated as that spouse's principal residence. This means the spouse who moved out can still meet the use test — but only if the divorce decree, separation agreement, or court order grants the other spouse the right to live there. Without a written instrument, the clock starts ticking the day the spouse moves out. If more than 3 years pass between moving out and the sale, the departed spouse fails the 2-of-5-year use test and loses their $250K exclusion entirely.
No. Under IRC §1041, transfers of property between spouses (or former spouses incident to divorce) are tax-free. The receiving spouse takes the transferring spouse's cost basis — this is a carryover basis, not a stepped-up basis. So if the home was purchased for $400K and transferred to one spouse in the divorce, that spouse's basis remains $400K. When they eventually sell, their gain is calculated from the original $400K purchase price, not the fair market value at the time of transfer. The critical planning point: IRC §1041 defers the tax; it doesn't eliminate it.
In the 9 community property states (AZ, CA, ID, LA, NV, NM, TX, WA, WI), both spouses are treated as owning the entire home during the marriage regardless of whose name is on the deed. This makes the ownership test easier to satisfy — both spouses are deemed owners for the entire period of marriage. The use test still applies individually. California's Franchise Tax Board follows the federal rules but adds a 13.3% state capital gains rate on any gain that exceeds the exclusion. In Texas and Washington (no state income tax), the exclusion math is purely federal.
IRC §121 allows the exclusion once every 2 years. If you sold a prior principal residence and claimed the exclusion within 2 years of selling the marital home, you cannot claim it again. This is relevant in divorces where one spouse owned a prior home that was sold shortly before or during the marriage. The 2-year lookback is per-taxpayer, not per-property — so each spouse's eligibility is evaluated independently based on their own history of exclusion claims.
Related guides
Divorce Financial Planning Checklist for High-Asset Couples
The comprehensive checklist covering QDROs, alimony, property division, and all 8 steps for estates above $500K — including home sale timing.
Splitting Stock Options in Divorce: Coverture Fraction Method
After-tax settlement modeling for equity compensation — the same equalization math applies when offsetting home equity against other marital assets.
Dividing a 401(k) in Divorce: QDRO Explained
QDRO mechanics for retirement accounts — often the offset asset when one spouse keeps the home.
Step-Up Basis on Inherited Stock: Save Six Figures
Basis rules that interact with home transfers — carryover basis under §1041 vs step-up basis on death.
Get the Life Money USA starter pack
Decision checklists, 2026 federal + state numbers, and our glossary. One click, free.
Send me the starter pack