Financial Planning
Capital Gains on Home Sales in Divorce
The Section 121 exclusion can shield up to $500,000 of home sale gains. Learn how divorce affects eligibility, the residency test after separation, and strategies to preserve your exclusion.
M
Marcus Johnson, CPA/ABV/CFFForensic Accountant & Valuation Expert
December 26, 2024
15 min read
2,890 views
Share this article:
The family home is often the largest asset in a divorce, and the tax treatment of its sale can significantly affect how much each spouse actually receives. Section 121 of the Internal Revenue Code allows substantial tax-free gains when selling a primary residence, but divorce complicates qualification. Poor planning can cost tens of thousands in unexpected capital gains taxes.
Understanding the Section 121 Exclusion
Section 121 allows individuals to exclude up to $250,000 of capital gains from the sale of a primary residence. Married couples filing jointly can exclude up to $500,000. To qualify, you must have owned and used the home as your primary residence for at least two of the five years preceding the sale.
| Filing Status | Maximum Exclusion | Key Requirements |
|---|---|---|
| Married Filing Jointly | $500,000 | Both spouses must meet use test; one must meet ownership test |
| Single | $250,000 | Must meet both ownership and use tests |
| Head of Household | $250,000 | Must meet both ownership and use tests |
| Married Filing Separately | $250,000 each (under certain conditions) | Complex rules apply |
CRITICAL PLANNING POINT: Moving out of the marital home before sale can jeopardize your Section 121 exclusion. The two-year residency clock keeps running even if you no longer live there.
The Ownership and Use Tests
Two separate tests determine exclusion eligibility. The ownership test requires owning the home for at least two years during the five-year lookback period. The use test requires living in the home as your primary residence for at least two years during the same period. These periods do not need to be consecutive or overlap.
For married couples, only one spouse needs to meet the ownership test to qualify for the $500,000 exclusion, but both must meet the use test. This distinction becomes critical when one spouse moves out during separation.
- Ownership: Two years within five-year period ending on sale date
- Use: Two years (730 days) living in home within same five-year period
- Short absences: Vacations and temporary absences count as use
- Extended absences: May still count if you maintained home as primary residence
- Military exception: Active duty can suspend the five-year period up to 10 years
Divorce Decree Transfer Rules
When one spouse transfers their ownership interest to the other incident to divorce, special rules protect both the exclusion and the cost basis.
The receiving spouse is treated as having owned the home during the period the transferring spouse owned it. This preserves the ownership test even if the receiving spouse was not on the title for the full two years. However, the use test still requires each spouse to have personally lived in the home.
| Scenario | Ownership Test | Use Test | Available Exclusion |
|---|---|---|---|
| Both lived in home 3+ years, selling together while married | Both meet | Both meet | $500,000 joint |
| One spouse awarded home, sells within 2 years while single | Attributed from other spouse | Must personally meet | $250,000 |
| Spouse moves out, other spouse sells 4 years later | Attributed | Moving spouse may fail | Staying spouse: $250,000 |
| Home transferred, sold 3 years after moving spouse left | Attributed | Moving spouse fails | Receiving spouse: $250,000 |
The Residence Test After Separation
When one spouse moves out during separation, their residency clock continues for purposes of the use test. Once they have been out more than three years, they can no longer meet the two-of-five-year requirement, and they lose their portion of the exclusion.
However, a special rule in the divorce context provides relief. If the home is transferred to one spouse incident to divorce, and the transferring spouse is granted residence in the home under the divorce decree, the receiving spouse is treated as using the home during any period that either spouse owns and uses the home.
PLANNING STRATEGY: If one spouse must move out but the home will not be sold immediately, include language in the divorce decree granting the departing spouse "residence" in the home through the remaining spouse. This preserves the use test for both parties.
Calculating Your Gain
Your taxable gain is the sale price minus your adjusted basis. The adjusted basis starts with the original purchase price and increases for capital improvements while decreasing for depreciation taken.
| Calculation Component | Adds to Basis | Reduces Basis |
|---|---|---|
| Original purchase price | Yes | - |
| Closing costs at purchase | Yes | - |
| Capital improvements | Yes | - |
| Depreciation (if home office or rental) | - | Yes |
| Casualty loss deductions | - | Yes |
| Selling costs | Yes (reduces gain) | - |
Example: You purchased a home for $300,000, spent $75,000 on improvements over the years, and are selling for $800,000 with $50,000 in selling costs. Your gain is $800,000 - $300,000 - $75,000 - $50,000 = $375,000. With a $500,000 exclusion available, no tax is owed. With only a $250,000 exclusion, you owe capital gains tax on $125,000.
Capital Gains Tax Rates
Gains exceeding your available exclusion are taxed at long-term capital gains rates, which are lower than ordinary income rates but still significant.
| Taxable Income (Single) | Capital Gains Rate | On $100,000 Gain |
|---|---|---|
| Up to $47,025 | 0% | $0 |
| $47,026 - $518,900 | 15% | $15,000 |
| Over $518,900 | 20% | $20,000 |
| Plus NIIT if AGI over $200,000 | +3.8% | +$3,800 |
The Net Investment Income Tax (NIIT) adds an additional 3.8% for higher earners, bringing the maximum rate to 23.8%. State taxes may add further liability depending on your state of residence.
Common Divorce Scenarios
Different approaches to handling the marital home create different tax outcomes.
- Sell before divorce finalizes: Both spouses can use full $500,000 exclusion if filing jointly
- Sell immediately after divorce: Each spouse takes their share of gain against $250,000 individual exclusion
- One spouse keeps home, sells later: Use test becomes the limiting factor; plan timing carefully
- Deferred sale (home sold after children graduate): Departing spouse may lose exclusion if not properly structured
- Buyout with no sale: Receiving spouse takes carryover basis and may face large gain when eventually selling
ANALYSIS REQUIRED: Before agreeing to a home disposition strategy, calculate the after-tax proceeds under different scenarios. A buyout at appraised value may leave the receiving spouse with substantial future tax liability.
Protecting the Exclusion in Settlement
Settlement agreements should address tax treatment explicitly to prevent surprises and disputes.
- Specify who bears capital gains tax liability if one spouse keeps the home
- Include price adjustments if exclusion is not fully available
- Set a deadline for sale to preserve departing spouse exclusion
- Address what happens if tax law changes before sale
- Include provisions for partial exclusion if full exclusion is not met
- Document cost basis and improvements with supporting records
Partial Exclusion Circumstances
If you do not meet the full two-year requirements due to divorce, you may qualify for a partial exclusion. The exclusion is prorated based on the percentage of the two-year requirement you met, multiplied by $250,000 (or $500,000 if married).
Qualifying reasons for partial exclusion include divorce or legal separation, change in employment location requiring a move of at least 50 miles, and health conditions requiring a move. Divorce automatically qualifies you for the partial exclusion calculation.
Tax Basis Considerations in Buyouts
When one spouse buys out the other interest, the purchasing spouse does not get a stepped-up basis. The original carryover basis continues, and the buying spouse simply acquires the departing spouse share at that original basis.
Example: Home purchased together for $400,000, now worth $800,000. One spouse buys out the other for $400,000 (half of current value). The buying spouse now owns 100% of the home with a basis of $400,000, not $800,000. When eventually sold for $900,000, the gain will be $500,000, not $100,000.
Splitifi settlement analysis includes capital gains projections for different home disposition scenarios. Model the after-tax value of keeping the home versus selling now, and negotiate based on what you will actually receive after taxes.
Tags:
Taxes
Capital Gains
Home Sale
Section 121
M
About Marcus Johnson, CPA/ABV/CFF
Forensic Accountant & Valuation ExpertMarcus specializes in forensic accounting for divorce cases, including business valuations, hidden asset detection, and lifestyle analysis. He has served as an expert witness in over 200 family law cases.
Table of Contents
Try Splitifi Free
Get AI-powered settlement predictions and financial analysis for your divorce.
Free tier availableRelated Articles
7 Signs Your Spouse is Hiding Assets (From a Forensic Accountant)10 min read
Financial Recovery After Divorce: Your Complete 12-Month Plan16 min read
Everything You Need to Know About Divorce and Taxes (2025 Edition)17 min read
Ready to Take Control of Your Divorce?
Join 74,559 people using AI to get better outcomes and lower costs
