Selling the Marital Home: Capital Gains Tax Considerations in Divorce

McKinney, TX 75072

303-881-9762

ralphp@lptaxandbookkeepingpros.com

www.lptaxandbookkeepingpros.com

FOR FAMILY LAW ATTORNEYS

Selling the Marital Home: Capital Gains Tax Considerations in Divorce

For most divorcing couples, the marital home is the single largest asset on the table — and one of the easiest to get wrong from a tax standpoint. Family law attorneys are experts in equitable distribution, custody, and support, but the capital gains consequences of selling (or transferring) the marital home are often overlooked until the client receives a surprise 1099-S or a much larger tax bill than expected. Understanding the basics — and knowing when to bring in a tax professional — can protect your client’s settlement from being eroded by taxes nobody planned for.

The Section 121 Home Sale Exclusion

Under Internal Revenue Code Section 121, a taxpayer who sells a primary residence can exclude up to $250,000 of capital gain from taxable income if filing single, or up to $500,000 if filing a joint return. To qualify, the seller generally must have owned and used the home as a primary residence for at least two of the five years preceding the sale (the “ownership and use” test).

This exclusion is powerful, but divorce complicates it in predictable ways. Once a couple separates, one spouse frequently moves out while the other remains in the home with the children. If the home is later sold, the departing spouse may no longer meet the “use” requirement — potentially losing access to their share of the $250,000 exclusion unless a specific exception applies.

The Divorce-Specific Exception to the Use Test

Fortunately, Congress anticipated this problem. Under IRC Section 121(d)(3), a spouse who is granted use of the home under a divorce or separation instrument is treated, for purposes of the use test, as having used the home during any period the other spouse (or former spouse) actually lived there. In plain terms: if the settlement agreement or court order grants one spouse the right to occupy the home while the other moves out, the departing spouse’s ownership can still count toward the two-year use requirement, provided the language in the agreement is drafted correctly.

This is precisely where family law attorneys can add enormous value — or, if the agreement is silent, inadvertently cost a client tens of thousands of dollars. A settlement agreement that clearly states one spouse is granted use and occupancy of the residence under the divorce instrument preserves the departing spouse’s eligibility for the exclusion when the home is eventually sold.

Timing the Sale: Before, During, or After the Divorce

Selling Before the Divorce Is Final

If the home is sold while the couple is still legally married and filing jointly, they can generally claim the full $500,000 joint exclusion, provided both meet the ownership and use tests. This is often the cleanest outcome from a tax perspective, though it may not align with the emotional or practical timeline of the case.

Selling After the Divorce Is Final

Once divorced, each former spouse who remains an owner and meets the ownership/use tests (with the benefit of the 121(d)(3) exception where applicable) can claim up to $250,000 individually. If only one spouse retains ownership and later sells, only that spouse’s exclusion applies to the full gain — which can be a significant issue if the home has appreciated substantially and one spouse bought out the other’s equity without accounting for the built-in gain.

Transferring the Home Between Spouses

Transfers of property between spouses, or between former spouses when the transfer is “incident to divorce” (generally within one year of the divorce, or related to the divorce and within six years), are governed by IRC Section 1041. These transfers are not taxable events, but the receiving spouse takes the transferor’s original cost basis — a carryover basis, not a stepped-up basis. This means the receiving spouse inherits the built-in capital gain, which can create an unpleasant surprise years later when that spouse eventually sells the home.

Basis: The Number Everyone Forgets to Track

Capital gain on a home sale is calculated as the sale price minus the adjusted basis (original purchase price, plus qualifying capital improvements, minus any depreciation taken). In a long marriage, records of the original purchase price and improvements are often scattered, incomplete, or entirely lost. Before finalizing a settlement that awards the home to one spouse, it is worth confirming that basis records exist — because whoever keeps the house also keeps the tax liability on the entire built-in gain when they eventually sell.

Drafting Considerations for Settlement Agreements

  • State explicitly who has use and occupancy of the residence, and for what period, to preserve Section 121(d)(3) protection for a departing spouse.
  • Address which spouse (or both) will claim the home sale exclusion if the home is sold post-divorce, and whether the sale proceeds will be adjusted to account for each spouse’s respective tax exposure.
  • Confirm and attach documentation of the home’s original cost basis and major capital improvements as an exhibit to the settlement agreement.
  • If one spouse is buying out the other’s equity, consider whether the buyout price should be adjusted to reflect the built-in capital gains tax liability that stays with the property.
  • Coordinate the timing of any sale with each spouse’s filing status for the year, since filing status affects the amount of exclusion available.

Common Pitfalls We See

The most frequent mistake is a settlement agreement that awards the home to one spouse with no mention of use, occupancy, or basis — leaving the departing spouse’s exclusion eligibility to chance. The second most common issue is a couple who sells the home well after the divorce is finalized, only to discover that more than three years have passed since the last spouse to move out actually lived there, disqualifying that spouse from any exclusion at all. A third recurring issue is a home that has appreciated well beyond $500,000 in combined gain, where careful planning around the sale date and ownership structure can materially change the tax outcome.

Why This Belongs on Your Pre-Settlement Checklist

None of this requires a family law attorney to become a tax expert. It does require flagging the issue early enough that a tax professional can review the numbers before the settlement is signed — not after the closing on the home sale. A short consultation during the drafting stage can preserve tens of thousands of dollars in exclusion that a poorly worded agreement would otherwise forfeit.

What To Do Next

  1. Identify any case on your current docket where the marital home has appreciated significantly and a sale is anticipated during or after the divorce.
  2. Request basis documentation (purchase closing statement, receipts for capital improvements) from both spouses early in discovery.
  3. Add specific use-and-occupancy language to draft settlement agreements to preserve Section 121(d)(3) protection.
  4. Loop in a tax resolution and bookkeeping professional before the settlement is signed — not after the home closes — to model the tax impact of different distribution scenarios.
  5. Contact LP Tax And Bookkeeping Pros for a consultation on a specific case; we’re glad to work directly with you and your client to review basis, exclusion eligibility, and settlement language.

This article is provided for general informational purposes only and does not constitute tax or legal advice. Every case is fact-specific; please consult with a qualified tax professional regarding your client’s individual circumstances.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top