Divorce Home Calculator: Keep, Sell, or Buy Out Your Spouse
"Should I keep the house?" is the most financially consequential — and most emotionally charged — decision most divorcing individuals face. The right answer depends on whether you can actually afford to refinance on a single income, how much capital gains tax you'd owe if you sold, and whether the equity would grow faster in the home or invested elsewhere. This calculator models all three scenarios with your actual numbers.
What this calculator doesn't model — and why it matters
The NIIT (3.8% surtax)
If your modified adjusted gross income exceeds $200,000 (single), a 3.8% Net Investment Income Tax applies to the lesser of net investment income or the excess above the threshold.4 For a divorcing individual with a large capital gain, this can add thousands to the tax bill calculated above. Run the numbers with your CPA if your income is near this threshold.
Selling while still married vs. post-divorce
If you sell the marital home before the divorce is final and both spouses have used it as their principal residence for 2 of the last 5 years, you can claim the $500,000 MFJ §121 exclusion — $250,000 more protection than a single-filer gets post-divorce.2 For a couple with substantial appreciation, the timing of the sale relative to the final decree can change the tax bill by tens of thousands of dollars. This is a CDFA decision, not a guess.
The keep-and-rent-out scenario
Some divorcing individuals keep the home, move out, and rent it to generate income during the transition. This starts a depreciation clock and triggers passive activity rules — and if you later want to sell and claim the §121 exclusion, your vacancy period (non-personal-use years) counts against the 2-of-5-year test. The §121 exclusion is partially prorated for periods of non-qualified use after 2009.
State taxes
This calculator models federal tax only. Some states (California, New York, Massachusetts, etc.) have their own capital gains taxes at ordinary income rates — which can add 5–13% to the gain tax shown above. A complete analysis requires state-level numbers.
The §121 divorce exception — for the spouse who moves out
Under Reg. §1.121-4(b)(2), if the home is transferred to you under IRC §1041 (your spouse moves out and you keep the home), you can tack on your ex-spouse's ownership period to satisfy the 5-year ownership test — but each of you must still meet the use test independently based on your own residence in the home. If you're the one who left the marital home and your spouse stayed, you may not qualify for the §121 exclusion when the home is eventually sold.1
Related tools & guides
- Divorce Asset Split Calculator — 401(k) vs. house equivalency and full settlement overview
- QDRO Calculator — what your retirement account is worth after fees and tax scenarios
- Alimony After-Tax Present Value Calculator — true cost for payer vs. recipient
- How Divorce Changes Your Tax Brackets and Filing Status (2026)
- Complete Divorce Financial Planning Guide
- Match with a CDFA-credentialed specialist
Get your home decision modeled by a specialist
The calculator shows you the framework. A CDFA models your specific scenario — the §1041 basis you'd inherit, the §121 timing decision, your DTI picture with actual lender requirements, and whether trading the home for a larger retirement account produces more long-term wealth. Free match, no obligation.
Frequently Asked Questions
Can I keep the house after divorce if I can't qualify for the mortgage on my own?
Many divorcing individuals discover they can't qualify for a refinance on a single income — especially after years of filing jointly. To keep the house, you typically need to refinance the existing mortgage in your name alone and cash out your spouse's equity share. Lenders use your new gross monthly income and require front-end DTI (PITI ÷ gross monthly income) below 28–36% for conventional approval. FHA loans allow up to 43% DTI with other compensating factors. If your income alone doesn't support the payment, you may need to negotiate a different settlement: take more retirement account value and less home equity, or agree to sell the home and split proceeds.
How do I buy out my spouse's share of the house in a divorce?
A buyout works by refinancing the existing mortgage into your name alone and borrowing enough additional cash to pay your spouse their equity share. The math: new loan = current mortgage balance + your spouse's equity share. For example, if your home is worth $750,000, mortgage is $350,000, and you each own 50% equity ($200,000 each), you'd refinance into a new loan of approximately $550,000 ($350K payoff + $200K buyout). Your spouse receives $200,000 at closing. You then own the home free of any claim. The refinance must be completed for your spouse to be released from the mortgage obligation — a quitclaim deed alone does not remove them from the loan, even if the divorce decree says otherwise.
Do I lose the $500,000 capital gains exclusion if I sell after the divorce is final?
Yes, if you sell after the divorce is final and are filing as single, your §121 exclusion drops from $500,000 (MFJ) to $250,000. If your home has appreciated significantly, this difference can cost tens of thousands of dollars in additional capital gains tax. For example, a home with $400,000 of capital gain sold post-divorce by a single filer would have $150,000 of taxable gain (after the $250K exclusion), taxed at 15% or 20% LTCG rates depending on your income. Timing the sale before the divorce is final — while both spouses still qualify as principal residents under the 2-of-5-year test — can preserve the larger $500,000 MFJ exclusion. This is a CDFA decision, not a guess.
What is the §1041 basis trap when I receive the house in a divorce settlement?
Under IRC §1041, transfers of property between spouses incident to divorce are tax-free at the time of transfer. The catch: the receiving spouse inherits the original purchase-price basis, not today's fair market value. If the home was purchased for $300,000 and is worth $750,000 at divorce, you don't get a stepped-up basis to $750,000 — your basis remains $300,000. When you eventually sell, your capital gain is calculated from $300,000, not from what the home was worth when you received it. This embedded tax liability should be modeled into the settlement. A house with $400,000 of equity and $300,000 of embedded gain is not worth the same as a brokerage account with $400,000 of equity and no gain.
Should I keep the house or take the 401(k) in my divorce settlement?
This is the most common divorce financial decision and the answer depends on after-tax values, not face values. The key differences: (1) The home's equity is typically after-tax today but carries embedded capital gain via the §1041 basis trap. The $250K single §121 exclusion provides some protection. (2) A 401(k) is entirely pre-tax — every dollar will be taxed as ordinary income when withdrawn. At a 22% marginal rate, $400,000 in a 401(k) is worth roughly $312,000 after-tax, while $400,000 in home equity (with modest embedded gain) might net $370,000+. Liquidity, DTI ability to refinance, and long-term wealth projections also matter. A CDFA models both sides on the same after-tax basis so the comparison is apples-to-apples.
Is it better to sell the marital home before or after the divorce is final?
Selling before the divorce is final can be significantly better from a tax standpoint if the home has substantial appreciation. While legally married and both spouses qualify as principal residents (owned and used the home 2 of the last 5 years), you can claim the $500,000 MFJ §121 exclusion — double the $250,000 available to a single filer post-divorce. For a home with $400,000 of capital gain, selling while MFJ means no capital gains tax at all; selling post-divorce means $150,000 of taxable gain. However, coordinating a sale during contentious divorce proceedings is difficult, and both spouses must agree. The decision requires weighing the tax savings against the practical and emotional costs of selling during active litigation.
Sources
- IRC §1041 — Transfers of property between spouses or incident to divorce (Cornell LII)
- IRS Topic No. 701 — Sale of Your Home (§121 exclusion, $250K/$500K, 2-of-5-year test, divorce exception)
- IRS Rev. Proc. 2025-32 — 2026 inflation adjustments including LTCG thresholds ($48,350 single 0%/$98,900 MFJ 0%)
- IRS — Net Investment Income Tax (3.8% surtax) — thresholds, scope, and capital gains treatment
- Treas. Reg. §1.121-4(b)(2) — §121 exclusion: divorce and separation rules for ownership and use testing
LTCG thresholds verified against IRS Rev. Proc. 2025-32 (2026 tax year). §121 exclusion amounts are statutory ($250K single / $500K MFJ) — not inflation-adjusted. The 15%/20% LTCG boundary for 2026 single filers is approximately $533,400 (estimated from 2025 value of $518,900 adjusted for inflation; TODO-verify against IRS pub when finalized). Refinance rates based on Freddie Mac PMMS 30-yr fixed as of April 23, 2026. This calculator is for directional analysis only — not tax, legal, or investment advice. Consult a CDFA and CPA for decisions of this magnitude. Values verified April 2026.