Free · Nonprofit · Education only · Updated October 13, 2026

Divorce and the house: capital gains calculator (2026)

When to sell the house in a divorce can change the tax by six figures. Sell while still married and file jointly, sell after and each report a share, or one of you keeps it and sells later alone. Enter your numbers to see your tax under all three.

By , founder, Retirement Literacy Foundation. 2026 federal law, every rate sourced below.

Free calculator

Divorce home sale capital gains calculator

Enter your numbers. Your results show right on the page.

Worked example

A 2026 example, worked out

A California couple divorcing in 2026 owns a home worth $1,600,000 that they bought for $500,000 and improved by $100,000. Selling costs are $90,000. One earns $120,000, the other $60,000, and they own it 50/50.

LineAmount
Your tax on the home sale$56,275
Total gain on the house$910,000
Carryover basis (what you paid plus improvements; IRC 1041)$600,000
Sell before the divorce is final, joint return: your share of the tax$56,275
Same, tax for the two of you$112,550
Sell after the divorce, split 50/50: your tax$54,565
Same, your ex's tax$51,148
You keep the house and sell it later alone: your tax$214,597

Computed October 13, 2026 with the same engine the calculator uses: 2026 federal brackets (IRS Rev. Proc. 2025-32), state rates as coded for 2026. Illustrative; your numbers will differ.

How it works

The rules behind the numbers

  1. No tax when the house moves between you. A transfer to your spouse, or to a former spouse incident to the divorce (within 1 year, or under the divorce instrument within 6 years), is not a sale. The receiving spouse takes the old basis (IRC 1041; Temp. Treas. Reg. 1.1041-1T). The built-in gain moves with the house.
  2. December 31 decides your filing status. If the divorce is final by December 31, you file as single (or head of household) for the whole year; if not, you can still file jointly (IRC 7703).
  3. Joint return: one $500,000 exclusion. Married filing jointly, you exclude up to $500,000 if either owned the home and both lived in it 2 of the last 5 years (IRC 121(b)(2)). On separate returns, each excludes up to $250,000 of their own gain.
  4. After the divorce: $250,000 each. Sold after the divorce, each of you reports your share and excludes up to $250,000. If only one of you still lives there, the one who moved out keeps the use test when the ex lives there under the divorce decree (IRC 121(d)(3)(B)).
  5. Keeping the house means keeping the gain. The spouse who keeps the home takes the whole built-in gain at the old basis and later sells with one $250,000 exclusion. That is often the most expensive plan; weigh it when dividing other assets.
  6. Count the time on ownership too. If the house came to you from your spouse, the time they owned it counts as yours (IRC 121(d)(3)(A)).

Common questions

Straight answers

Is it better to sell the house before or after the divorce?

Often before the divorce is final, in a year you can still file jointly, because the $500,000 exclusion covers the whole gain on one return. After the divorce, two $250,000 exclusions on your two shares can do as well when the gain is split evenly. Keeping it and selling alone later usually costs the most.

Do I owe tax when the house is transferred to my ex in the divorce?

No. A transfer incident to divorce is tax free under IRC 1041. Your ex takes your old basis, so the tax waits until they sell.

I moved out. Can I still use the home sale exclusion?

Yes, if your former spouse keeps living there under the divorce or separation instrument: their use counts as yours (IRC 121(d)(3)(B)). You still need 2 years of ownership in the 5 before the sale.

How is the gain split between us?

By ownership. Each of you reports the gain on your share and claims your own exclusion. On a joint return the gain and the exclusion are combined.

Does the state follow the same rules?

Most states follow the federal exclusion and IRC 1041. The calculator applies your state's 2026 rates to the taxable part.

Related: Home sale capital gains calculator · Step-up in basis calculator · Capital gains tax calculator · Widow's penalty calculator · Estimated tax after a sale · Mortgage over basis calculator

Free seller tax calculators

More calculators for the year you sell

Audit trail

Sources and review

Reviewed for the Retirement Literacy Foundation, a 501(c)(3) education nonprofit. Prepared by Hans Goldstein, EA, retirement educator. Admitted to practice before the IRS. Informational only. Not tax, legal or investment advice. Every figure below cites its source so your CPA or attorney can check it.

Figures are 2026 federal amounts unless stated. Examples are illustrative and rounded; your numbers will differ. By , founder, Retirement Literacy Foundation. Last reviewed .

Hans Goldstein is an Enrolled Agent, admitted to practice before the Internal Revenue Service. Not affiliated with or endorsed by the IRS.