Divorce Real Estate · 7 min read
How Does Capital Gains Tax Work When Selling the Marital Home During Divorce?
Selling the marital home during or after divorce can trigger capital gains tax. Understanding exclusions, timing, ownership, and the difference between interspousal transfers and third-party sales is essential.
By The Divorce Navigation Alliance Team · Published September 19, 2026

The short answer
Capital gains tax may apply when you sell your home for more than your cost basis. During divorce, whether you owe capital gains depends on your ownership period, use of the home, filing status, timing of sale, and whether you qualify for the IRS Section 121 exclusion.
Key takeaways
- Capital gains tax is based on the profit from selling the home, not the sale price.
- The IRS Section 121 exclusion may allow you to exclude up to $250,000 ($500,000 if married filing jointly) of gain.
- Timing of the sale relative to the divorce decree and filing status affects eligibility for the exclusion.
- Transferring the home between spouses as part of a divorce is generally tax-free, but later sale by the receiving spouse may trigger capital gains.
- Cost basis, improvements, ownership period, and use period all matter when calculating potential tax liability.
- Consult a CPA or tax professional before finalizing any settlement involving home sale or transfer.
What Is Capital Gains Tax on a Home Sale?
Capital gains tax is a federal tax on the profit from selling an asset, including real estate. When you sell your home, the IRS looks at your gain, which is the difference between the sale price and your cost basis.
Cost basis generally includes:
- The original purchase price
- Certain closing costs paid at purchase
- Capital improvements (new roof, addition, major renovations)
- Costs associated with the sale (agent commissions, title fees, legal fees)
For example, if you bought the home for $300,000, added a $50,000 addition, and sold it for $500,000 with $30,000 in sale costs, your gain would be approximately $120,000.
The Section 121 Home Sale Exclusion
The IRS Section 121 exclusion allows qualifying homeowners to exclude a portion of their home sale gain from taxable income. The exclusion is:
- $250,000 if filing as single, head of household, or married filing separately
- $500,000 if married filing jointly
To qualify, you generally must meet the ownership test and the use test:
- You owned the home for at least two of the five years before the sale
- You used the home as your primary residence for at least two of those five years
These two years do not need to be consecutive, and the ownership and use periods do not need to overlap perfectly.
How Divorce Changes the Picture
Divorce introduces timing, filing status, and transfer complications that can affect whether and how much exclusion you qualify for.
Selling Before the Divorce Is Final
If you sell the home while still legally married, you may be able to file a joint tax return for that year and claim the $500,000 exclusion, assuming you both meet the ownership and use tests.
This is often the most tax-efficient approach if:
- Both spouses lived in the home as their primary residence for at least two of the last five years
- You can cooperate on the sale and agree to file jointly for that tax year
- The anticipated gain exceeds $250,000 but is under $500,000
Selling After the Divorce Is Final
Once divorced, you will likely file as single or head of household. Each former spouse can only exclude up to $250,000 of their share of the gain.
If the home is sold post-divorce and the gain is split equally:
- Each spouse reports their portion of the gain
- Each may exclude up to $250,000 if they meet the ownership and use tests individually
However, if one spouse moved out years before the sale, they may not meet the use test, potentially losing part or all of their exclusion.
One Spouse Keeps the Home
When one spouse is awarded the home in the divorce settlement, the transfer itself is generally not a taxable event under IRS rules governing property transfers incident to divorce.
The spouse who receives the home typically assumes the original cost basis. When that spouse later sells the home, they calculate gain based on:
- The original purchase price and improvements during the marriage
- Any additional improvements they made after receiving the home
- The sale price and associated costs
The receiving spouse may still qualify for the Section 121 exclusion if they:
- Owned the home (including time owned during marriage) for at least two years
- Used it as their primary residence for at least two years out of the five years before sale
Special rules allow a spouse to count the time the home was owned by the other spouse during marriage toward the ownership test, but the use test is individual.
What If One Spouse Moved Out?
If one spouse moved out well before the sale, they may fail the use test. However, there is a special provision:
A spouse who is granted use of the home under a divorce or separation agreement may treat their former spouse's use as their own use for purposes of the exclusion, if:
- The divorce or separation instrument grants the other spouse use of the home
- The home was owned during the period of the other spouse's use
This can preserve eligibility for the spouse who moved out, but the details matter. Consult a tax professional to confirm eligibility.
When Might You Owe Capital Gains Tax?
You may owe capital gains tax if:
- Your gain exceeds the available exclusion ($250,000 or $500,000)
- You do not meet the two-year ownership or use tests
- You used the exclusion on another home within the past two years
- The home was used as a rental or investment property for part of the time
- You are subject to depreciation recapture if the home was rented
Gains beyond the exclusion are taxed at long-term capital gains rates (0%, 15%, or 20% federally, depending on income), plus any applicable state tax.
Coordinating the Sale With Your Settlement
Because tax consequences depend on filing status, timing, and use, it is critical to coordinate the home sale decision with your legal and tax advisors before signing the settlement agreement.
Questions to discuss:
- Should we sell before or after the divorce is final?
- Will we be able to file jointly in the year of sale?
- Does one spouse's move-out date affect eligibility?
- If one spouse keeps the home, what is their projected basis and future tax exposure?
- Are there other assets we should consider to offset a potential tax bill?
Do not assume that dividing the proceeds equally means dividing the tax burden equally. One spouse may owe more tax than the other depending on filing status and use history.
Rental Property, Investment Property, or Mixed Use
If the marital home was rented out or used as an investment property for part of the ownership period, additional rules apply:
- You may owe depreciation recapture tax on any depreciation claimed
- The Section 121 exclusion may be reduced or partially unavailable
- The period of non-qualified use may limit the exclusion
If the home was your primary residence for part of the time and rented or vacant for another part, speak with a CPA about how the exclusion is calculated.
Cost Basis, Improvements, and Documentation
To calculate gain accurately, you need:
- Original settlement statement or deed showing purchase price
- Records of capital improvements (receipts, contracts, permits)
- Closing statement from the sale showing fees, commissions, and net proceeds
Capital improvements include structural changes, additions, new systems (HVAC, roof), but not routine repairs or maintenance. Keep organized records during the marriage and after, especially if one spouse will sell later.
Why This Matters in Settlement Negotiations
Understanding potential capital gains tax helps you evaluate whether:
- Selling now versus later produces different tax outcomes
- One spouse should keep the home or whether a sale is better for both
- The net proceeds after tax are fairly divided
- Other assets should be allocated differently to account for tax exposure
For example, if you are keeping the home and plan to sell it in three years, your after-tax proceeds may be much lower than today's equity number suggests. That affects whether the buyout or settlement is truly equal.
State Taxes May Also Apply
New Jersey does not have a separate capital gains tax; capital gains are taxed as ordinary income under the state's income tax structure. Depending on your income and gain, state tax may also apply. Confirm state tax treatment with your CPA.
The Importance of Professional Guidance
Capital gains tax rules are detailed, and divorce adds layers of complexity. A qualified tax professional or CPA should review:
- Your specific ownership and use history
- Filing status and timing options
- Calculation of basis and gain
- Eligibility for exclusions or special rules
- Coordination with the divorce settlement and decree
Your divorce attorney should understand the tax implications when drafting or reviewing settlement language. Your financial advisor or mortgage professional may flag the issue, but they cannot provide tax advice.
Do not rely on assumptions, online calculators, or general rules. Have your situation reviewed before you finalize any agreement involving the home.
FAQ
Questions people ask about this
Next step
Where to go from here
Before agreeing to sell or transfer the marital home, ask your attorney whether timing or filing status affects your taxes, and schedule a consultation with a CPA to estimate your potential capital gains liability and exclusion eligibility.
Keep reading
Continue Exploring
Financial Readiness
What Does a QDRO Have to Do with Keeping or Selling the House?
Retirement accounts are often the largest marital asset after the home—and how they're divided can determine whether a spouse can afford to keep the house, finance a buyout, or qualify for a new mortgage.
September 18, 2026 · 7 min read
Divorce Mortgage Planning
How to Handle Refinance Deadlines in Your Divorce Settlement
Refinance deadlines in divorce settlements create binding obligations but don't guarantee approval. Understanding what triggers default, how to coordinate early, and what alternatives exist can prevent financial and legal consequences.
September 17, 2026 · 7 min read
Divorce Mortgage Planning
What Happens to the Mortgage If Your Ex-Spouse Stops Paying After Divorce?
A divorce decree may assign the mortgage to one spouse, but lenders are not bound by that order. If your ex-spouse stops paying, your credit and liability may be at risk.
September 16, 2026 · 7 min read
Explore more resources
Navigating divorce takes more than one professional perspective. Explore The Divorce Navigation Alliance to better understand the professionals and resources that may help you plan your next step.
The Divorce Navigation Alliance is an independent network of professionals providing general educational information and professional resources. It is not a law firm and does not provide legal, tax, investment, accounting, insurance, or mental health advice. Information on this website is not a substitute for advice from appropriately licensed professionals familiar with your individual circumstances. Mortgage approval, loan programs, and qualification requirements are subject to applicable guidelines and individual review.
