Selling the family home is often the cleanest financial solution in a divorce. Both spouses walk away with liquid cash, neither is left carrying a mortgage they may not be able to afford alone, and there's no need to remain financially entangled through a shared property. But the tax treatment of that sale depends entirely on timing — and getting the timing wrong can cost tens of thousands of dollars.
The Capital Gains Exclusion — and Why It Matters
The IRS allows married couples filing jointly to exclude up to $500,000 of capital gains from the sale of their primary residence. To qualify, you must have owned the home and used it as your primary residence for at least two of the last five years before the sale. This exclusion is one of the most valuable tax benefits available to homeowners, and divorce directly affects whether you can claim it at full value.
Capital gain on a home sale is calculated as: sale price minus your tax basis. Your basis is what you originally paid for the home plus the cost of any capital improvements — a new roof, an addition, a kitchen remodel. The higher your basis, the lower your taxable gain.
What Happens If You Sell After the Divorce Is Final
Once the divorce is finalized, each person is treated as a single filer. The individual capital gains exclusion is $250,000 — half the joint exclusion. This seems simple until you look at the numbers on a home that has appreciated substantially.
Example: A couple bought their home for $350,000 in 2018 and sells it for $750,000. Their total capital gain is $400,000. Selling while still married, they exclude the entire gain — federal tax owed: $0. If they wait until after the divorce and one person receives the house in the settlement and later sells as a single filer, they can only exclude $250,000. The remaining $150,000 is taxable at capital gains rates.
At the 15% long-term capital gains rate, that's $22,500 in federal tax that could have been avoided. Add state income tax in high-tax states, and the number grows further.
Timing the Sale to Preserve the Joint Exclusion
If your home has significant appreciation, selling before the divorce is final is often the smarter financial move. The divorce does not need to be complete — both spouses simply need to agree to list and sell while they are still legally married.
This requires cooperation, which is not always available. But attorneys and mediators frequently point out the tax savings as a strong incentive. A couple who stands to save $20,000–$50,000 in capital gains taxes by timing the sale correctly has a compelling financial reason to move the sale ahead of the final decree.
One practical complication: both spouses must agree to the listing price and accept the offers. If one spouse is being uncooperative — refusing to show the home, rejecting reasonable offers, or simply stalling — a court can intervene. A judge can order a sale and, in extreme cases, appoint a receiver with legal authority to execute the transaction without the uncooperative spouse's consent.
What If You Haven't Lived There for Two Years?
The two-year use requirement creates a problem for couples who have been separated for an extended period, particularly if one spouse moved out early in the process. The IRS does allow a partial exclusion when the sale results from qualifying life circumstances — and divorce is one of them.
The partial exclusion is calculated proportionally. If you owned and used the home as your primary residence for 18 of the required 24 months, you qualify for 75% of the maximum exclusion (18 ÷ 24 = 0.75). For a married couple that would be $375,000 instead of $500,000. This partial exclusion can still eliminate a large portion of the tax — consult a tax professional to calculate your specific situation before assuming you owe the full gain.
Capital Gains Rates: What You Actually Pay
Long-term capital gains — on assets held more than one year — are taxed at 0%, 15%, or 20% depending on your taxable income. For 2026, the 0% rate applies to single filers with income below approximately $48,350; the 15% rate applies up to about $533,400; the 20% rate applies above that.
High earners face an additional 3.8% Net Investment Income Tax (NIIT) on top of capital gains rates, bringing the effective rate to 23.8% at the top. This applies to single filers with modified adjusted gross income above $200,000 ($250,000 married filing jointly). Divorcing spouses who both earn well should factor this surcharge into the comparison between selling jointly vs. selling post-divorce.
| Scenario | Exclusion Available | Tax Treatment | Who Gets Proceeds |
|---|---|---|---|
| Sell during marriage (joint) | Up to $500,000 | Gains below exclusion: $0 federal tax | Split per settlement agreement |
| Sell after divorce (individual) | $250,000 per person | Gains above $250K taxed at capital gains rate | Each person receives their equity share |
| Partial exclusion (under 2-yr use) | Prorated based on months of use | Proportional exclusion; rest is taxable | Split per settlement agreement |
| Underwater / short sale | No gain to exclude | Forgiven debt may be taxable income; consult CPA | No net proceeds; lender must approve |
The Basis Step-Up Problem
If one spouse receives the home as part of the settlement rather than selling jointly, that spouse inherits the original tax basis — not a stepped-up basis. This matters when they sell years later.
Example: Home purchased for $350,000, now worth $600,000. If the couple sells now, their basis is $350,000 and the gain is $250,000 — fully covered by even an individual exclusion. But if one spouse receives the home, holds it five more years, and the value rises to $750,000, they now have a $400,000 gain against a $250,000 individual exclusion. They'll owe capital gains tax on $150,000 — money that grows the longer they hold the property.
This deferred tax liability is a real cost that belongs in the asset division conversation. A $600,000 home received in the settlement is not worth the same as $600,000 in cash — the home comes with a future tax obligation. Attorneys handling high-value homes often recommend that an accountant prepare an after-tax comparison before finalizing the settlement.
Transaction Costs: What Comes Off the Top
Before calculating what each spouse receives, transaction costs are deducted from the sale price. Realtor commissions typically run 5–6% of the sale price — on a $600,000 home, that's $30,000–$36,000 off the top. Add closing costs (title insurance, escrow fees, transfer taxes, attorney fees) and total transaction costs often reach 7–8% of the sale price.
These costs reduce the net proceeds that both spouses split and also reduce the taxable gain, since selling expenses are added to your basis for tax calculation purposes. Keep all receipts for improvements and selling costs — every dollar reduces the gain you'll ultimately pay tax on.
Underwater Mortgages and Short Sales
If the mortgage balance exceeds the home's current market value, there is no equity to divide and no capital gain to worry about. What remains is a decision about how to exit the property without leaving either spouse responsible for a deficiency balance.
A short sale — where the lender agrees to accept less than the full mortgage balance — requires lender approval and can take months. The forgiven debt may be treated as taxable income under the cancellation of debt rules, though there are exclusions for primary residences under the Mortgage Forgiveness Debt Relief Act. Tax treatment for short sales in divorce situations is complex enough that a CPA familiar with both divorce and real estate tax is essential before proceeding.
Who Gets the Proceeds?
Net sale proceeds are distributed according to the divorce settlement agreement. In most cases this follows equity ownership — if each spouse owns 50% of the equity, each receives 50% of the net proceeds after mortgage payoff, commissions, and closing costs. The settlement agreement can specify a different split if other assets are being offset elsewhere in the divorce.
Proceeds are typically held in escrow until both parties sign off and the court approves the final distribution. If the divorce is not yet finalized at closing, the escrow agent holds the funds until the decree is entered and the settlement terms dictate the split.
Estimate Your Net Proceeds After Divorce
Use our free calculator to model your home equity split, estimate capital gains exposure, and see your after-tax proceeds.
Use the Free Calculator →