Capital Gains · California

Capital Gains When You Sell the House in a Divorce

The timing of the sale — and who keeps the home — can move the tax bill by six figures. Here is how the rules work, in plain English, so you can ask your CPA the right questions.

Kiri Suykry walking a couple through a neutral valuation and net-proceeds estimate at their kitchen table

Start with the Section 121 exclusion

When you sell your primary residence, federal law generally lets you exclude a large chunk of the gain from tax: up to $250,000 if you file single, or $500,000 if you're married filing jointly. To qualify you need to pass two tests over the five years before the sale:

  • Ownership test — you owned the home for at least two of the last five years.
  • Use test — you lived in it as your main home for at least two of the last five years.

"Gain" is not the sale price. It's the sale price minus selling costs minus your adjusted basis (what you paid, plus capital improvements). In Orange County and Long Beach, where homes bought 15–25 years ago have often doubled or tripled, the gain regularly exceeds $250,000 — which is exactly why the divorce timing rules matter.

Timing is the whole game

Three sale-timing scenarios and the exclusion each preserves Selling while married on a joint return preserves up to $500,000; selling after divorce with both former spouses still on title and qualifying preserves $250,000 each; one spouse keeping the home and selling later has a single $250,000 exclusion against the entire gain. Sell while married $500K one joint return full exclusion Most protective Sell after — both on title $250K + $250K each ex-spouse must still meet the tests Works if structured One spouse kept it $250K against 100% of the gain carryover basis (§1041) The buyout trap Placeholder limits — verify current IRC §121 amounts with your CPA.
Illustrative. Assumes the ownership and use tests are met in each scenario.

Scenario 1 — Sell before the divorce is final

If you sell while you're still married and can file a joint return for that tax year, you may exclude up to $500,000 of gain between you. The proceeds are then divided under your settlement. This is usually the most tax-protective option, and it is one reason attorneys sometimes sequence the sale before the judgment.

Scenario 2 — Sell after the divorce, both still on title

If both former spouses remain on title and each still meets the ownership and use tests at the sale, each may exclude $250,000 on their share of the gain. The catch: the spouse who moved out may fail the use test — unless the special divorce rule below applies.

Scenario 3 — One spouse keeps the house and sells years later

Only one taxpayer, only one $250,000 exclusion — applied against all of the gain, including the half that built up while the other spouse owned it. See the §1041 trap below.

The special divorce use rule

Normally, moving out would start the clock against your use test. But a spouse who moves out can generally still count the other spouse's occupancy as their own, as long as the other spouse is living there under a divorce or separation instrument. This is the rule that makes a Defer & Co-Own arrangement workable for taxes — and it only helps if the arrangement is written into the decree or settlement. A handshake agreement doesn't count.

The buyout tax trap — IRC §1041

What §1041 does

Transfers of property between spouses — or between former spouses when "incident to the divorce" — are generally not taxable events. No gain is recognized when one spouse deeds their half to the other.

That sounds like good news, and at the moment of transfer it is. But the receiving spouse takes the transferring spouse's basis — a carryover basis. The gain didn't disappear; it moved. When the keeping spouse eventually sells, they face 100% of the built-in gain with a single $250,000 exclusion.

Worked example (placeholder numbers): a couple bought in 2005 for $500,000. The home is worth $1,300,000 today. Spouse A keeps the home and buys out Spouse B. Spouse A's basis stays at roughly $500,000. If A sells in a few years for $1,400,000, the gain is about $900,000 — minus one $250,000 exclusion — leaving roughly $650,000 potentially taxable. Had the couple sold together while married, up to $500,000 of the then-$800,000 gain could have been excluded.

The spouse who keeps the house often keeps the tax bill too — price that into the settlement. A fair buyout number accounts for the deferred tax the keeping spouse is absorbing. Your CPA and attorney can quantify it; I can supply the valuation and net-sheet inputs they need.

California's treatment

California generally conforms to the federal §121 exclusion. Any gain above the exclusion is taxed by California as ordinary income — the state does not have a lower capital-gains rate — on top of the federal capital-gains tax and, for higher incomes, the 3.8% net investment income tax.

Questions to bring to your CPA

  • What is our adjusted basis, including improvements, and do we have records?
  • Can we still file jointly for the year of sale, and does it help?
  • If one of us keeps the house, what is the deferred tax, and how should the settlement reflect it?
  • Does the divorce use rule cover the spouse who moved out?
  • Any separate-property or depreciation (home office, rental period) issues?

This page is general education, not tax advice. Tax outcomes depend on your facts. Please consult your CPA or tax professional, and your family-law attorney, before choosing a sale date or a buyout structure.

Kiri Suykry laughing with a happy couple in front of their home, the woman holding up new keys
The goal, every time: walking into the next chapter — and glad you called.

Written by Kiri Suykry · Last updated 2026-08-23