Selling a House After Divorce: Exclusion Rules and Capital Gains

Selling a house after a divorce brings taxes into play in one specific way: the sale itself can produce a capital gain, and each former spouse can shield up to $250,000 of that gain from federal tax if they meet the ownership and use tests. The transfer between you and your former spouse during the divorce was tax-free. The sale to an outside buyer is where the IRS shows up, and the gain is measured against the home’s original purchase price, not what it was worth on the day you split.

Your Basis Comes From the Original Purchase, Not the Divorce

Tax basis is the starting number the IRS uses to figure your profit. When property moves between spouses or former spouses under Section 1041 of the Internal Revenue Code, the recipient inherits the transferor’s adjusted basis.1Office of the Law Revision Counsel. 26 U.S. Code 1041 – Transfers of Property Between Spouses or Incident to Divorce The current market value on the day of the divorce is irrelevant to that number.

Adjusted basis begins with the original purchase price and adds capital improvements made during ownership. Capital improvements are substantial upgrades that add value or extend the home’s life, like a new roof, an addition, or a kitchen renovation. Routine repairs and maintenance don’t count. Any depreciation claimed on part of the home for business use gets subtracted.2Internal Revenue Service. Publication 523 (2025), Selling Your Home

Here’s where this bites. If you and your former spouse paid $200,000 for the home, put $50,000 into improvements, and the home is now worth $800,000, your basis is $250,000. The potential gain when you sell is $550,000 before selling expenses, not the difference between the divorce-date value and the sale price.

Pull together every record from the original purchase and every improvement receipt you can find. Closing documents, contractor invoices, and permit records all matter. Without them, you may end up reporting a larger gain than you actually owe.

The $250,000 Exclusion and How Divorce Affects It

Section 121 lets you exclude up to $250,000 of gain from selling your primary residence if you file as single, head of household, or married filing separately. Married couples filing jointly can exclude up to $500,000.3Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence To qualify, you must have owned and used the home as your primary residence for at least two of the five years before the sale.

Two timing scenarios are common. If you sell while still legally married and file jointly for that year, you can claim the full $500,000 exclusion, provided both spouses meet the use test and at least one meets the ownership test. If the sale closes after the divorce is final, each former spouse files individually and each claims up to $250,000 against their share of the gain. The combined ceiling is the same either way. Timing matters mainly when one spouse might otherwise fail the use test.

Two Divorce Rules That Save the Exclusion

Divorce creates a predictable problem. One spouse usually moves out, which threatens the two-year use requirement. The tax code has two fixes.

Ownership Tacking

If you received the home from your former spouse in a Section 1041 transfer, you can count your former spouse’s ownership period as your own.3Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence If the couple owned the home for six years before the transfer, the recipient satisfies the two-year ownership test on day one, even if they held sole title for only a month before selling.

Use Credit for the Spouse Who Moved Out

Under Section 121(d)(3)(B), a spouse who no longer lives in the home is still treated as using it as their principal residence during any period they own it, as long as their former spouse is granted use of the home under a divorce or separation instrument.3Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence The critical phrase is “granted use under a divorce or separation instrument.” Without that language in the decree or a written separation agreement, the provision does not apply.

A qualifying instrument can be a divorce decree, a written separation agreement, or a court order requiring spousal support payments.2Internal Revenue Service. Publication 523 (2025), Selling Your Home If your agreement doesn’t explicitly grant your former spouse the right to live in the home, ask your attorney to add that language before the sale closes. It costs nothing to include and can be worth tens of thousands of dollars in preserved exclusion.

Partial Exclusion When You Fall Short

If you don’t meet the full two-year requirement, you may still get a partial exclusion when the sale happened because of divorce, a change in employment, health reasons, or other unforeseen circumstances.3Office of the Law Revision Counsel. 26 U.S. Code 121 – Exclusion of Gain From Sale of Principal Residence The reduced exclusion is a fraction of $250,000 based on how much of the two-year period you actually satisfied. Eighteen months out of 24 gets you 75%, or $187,500.

Buyouts Look Tax-Free, but They Come With a Catch

In many divorces, one spouse keeps the home by paying the other for their equity share. That buyout is tax-free to both sides under Section 1041.1Office of the Law Revision Counsel. 26 U.S. Code 1041 – Transfers of Property Between Spouses or Incident to Divorce The spouse who receives $150,000 for their half-interest doesn’t report income. The spouse who pays it gets no deduction.

The catch: paying for the buyout doesn’t raise your basis. Because the transfer is treated as a gift, the carryover rule applies. If the home’s adjusted basis was $250,000, the spouse who keeps it still has a $250,000 basis, regardless of paying $150,000 to buy out the other half. That payment essentially bought a future tax liability. When the keeping spouse eventually sells, the gain is calculated from the original $250,000 basis.

This should factor into settlement negotiations. The spouse keeping the home inherits an embedded tax bill the departing spouse avoids. A well-drafted settlement adjusts the buyout price or other asset divisions to account for it.

Selling Expenses That Shrink the Gain

Your taxable gain isn’t the sale price minus your basis. Selling expenses come off the sale price first. The formula runs: selling price minus selling expenses equals amount realized; amount realized minus adjusted basis equals your gain.2Internal Revenue Service. Publication 523 (2025), Selling Your Home

Qualifying selling expenses include real estate agent commissions, legal fees, advertising costs, and transfer or stamp taxes you paid as the seller. Loan charges you agreed to cover for the buyer count too.2Internal Revenue Service. Publication 523 (2025), Selling Your Home On a $500,000 sale with a typical 5–6% commission, that’s $25,000 to $30,000 knocked off the gain before the exclusion even applies. Track every cost tied to the sale.

Rates on the Taxable Portion

Gain above your exclusion is taxed as a long-term capital gain, assuming you owned the home for more than a year, which almost always applies. Long-term rates are 0%, 15%, or 20%, depending on total taxable income.4Internal Revenue Service. Topic No. 409 Capital Gains and Losses For 2026, the 0% rate applies to single filers with taxable income up to $49,450 and joint filers up to $98,900. The 20% rate kicks in above $545,500 for single filers or $613,700 for joint filers.5Tax Foundation. 2026 Tax Brackets and Federal Income Tax Rates

After a divorce you file as single or head of household, and the brackets are narrower than they were on a joint return. A gain that would have landed at 0% jointly might sit in the 15% bracket on your own.

The 3.8% Surtax Divorced Sellers Miss

On top of the regular rate, a 3.8% net investment income tax applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds $200,000 for single filers or $125,000 for married filing separately.6Office of the Law Revision Counsel. 26 U.S. Code 1411 – Imposition of Tax These thresholds are not inflation-adjusted, so they catch more taxpayers every year.

Home-sale gain counts as net investment income to the extent it isn’t excluded under Section 121. If $50,000 of gain remains after your exclusion and your income pushes you past $200,000, that $50,000 can face the 3.8% surtax on top of the 15% or 20% capital gains rate, for an effective rate of 18.8% or 23.8%. The surtax is reported on Form 8960 and is easy to miss on a self-prepared return.

Depreciation Recapture

If either spouse claimed depreciation on part of the home for a home office or rental use, the Section 121 exclusion does not cover the portion of the gain tied to that depreciation. It’s taxed at a maximum rate of 25% as unrecaptured Section 1250 gain, regardless of income bracket.7Internal Revenue Service. Property (Basis, Sale of Home, Etc.) 5 Even if your total gain fits within the exclusion, the depreciation slice gets carved out and taxed separately.

The recaptured amount is depreciation allowed or allowable after May 6, 1997. “Allowable” means you owe the tax even if you never actually claimed the deductions. If your former spouse ran a business from the home and claimed $20,000 in depreciation over the years, that $20,000 rides with the home under the carryover basis rule and gets taxed when whoever holds the property sells it.7Internal Revenue Service. Property (Basis, Sale of Home, Etc.) 5

Reporting the Sale and Splitting the Gain

The closing agent or title company issues Form 1099-S reporting the gross sale price to the IRS. It goes to whoever is listed as the seller on the closing documents.8Internal Revenue Service. Instructions for Form 1099-S The 1099-S shows gross proceeds only. It doesn’t reflect basis, selling expenses, or the exclusion.

Each former spouse reports the sale on Form 8949 and carries the totals to Schedule D. Even if the entire gain is excluded, you still report the sale and show the exclusion as a negative adjustment in column (g).9Internal Revenue Service. Instructions for Form 8949 (2025) Skipping this step is a common mistake that triggers IRS notices, because the agency sees a 1099-S showing hundreds of thousands in proceeds but no matching entry on your return.

How you allocate the gain depends on the divorce agreement. If both spouses are on the deed and split proceeds 50/50, each reports half the sale price, half the basis, and half the selling expenses, then applies their own $250,000 exclusion. Unequal splits follow the same ratio. Your agreement should spell out the allocation. Where it’s silent, the default is generally each spouse’s ownership interest, but ambiguity invites IRS questions when two former spouses’ returns don’t reconcile. Get it in writing.

A Quick Example

Say the home sells for $700,000. Combined adjusted basis is $250,000. Selling expenses total $40,000. Amount realized is $660,000, and total gain is $410,000. Split equally, each former spouse has $205,000 of gain, which sits below the $250,000 exclusion. Neither owes capital gains tax. If the total gain were $600,000 instead, each spouse would have $300,000 of gain, leaving $50,000 taxable per person after the exclusion.

Why the Initial Transfer Isn’t a Taxable Event

One boundary worth naming. Moving the home from joint ownership into one spouse’s name during the divorce doesn’t itself create tax. Section 1041 treats transfers between spouses or former spouses that are incident to the divorce as gifts for tax purposes, so no gain or loss is recognized by either party at that point.1Office of the Law Revision Counsel. 26 U.S. Code 1041 – Transfers of Property Between Spouses or Incident to Divorce The tax isn’t erased; it’s deferred to the eventual sale to a third party. That’s why your basis and everything above matters.

Mortgage Interest and Property Tax While the Home Is Listed

Somebody keeps paying the mortgage and property taxes until the sale closes. Only the spouse who is legally obligated on the mortgage and actually makes the payment can deduct the interest, and only if they itemize. If both spouses are on the loan and splitting payments, each deducts what they paid.

Property taxes follow the same rule, subject to the federal cap on state and local tax deductions. For 2026, the cap is approximately $40,400 for most filers, covering the combined total of state income taxes, property taxes, and local taxes, with a phase-down for income above $500,000. The cap applies per return, so two former spouses filing separately each get their own, which can help when combined state and local taxes are high.

If one spouse lives in the home while the other pays the mortgage under the divorce agreement, the paying spouse can still deduct the interest as long as they’re legally liable on the loan. That arrangement is common when one spouse stays in the home with children while both wait for the sale to close.