When you are selling a house during a divorce, there are three usual outcomes: sell now and split the proceeds, have one spouse buy out the other, or keep owning it together until a set date or event. Your settlement agreement or the court’s order decides which, and state property law decides how the value is divided. Each route treats the mortgage and the tax bill differently, so compare them before you sign.
Who decides what happens to the house
The house is divided under your state’s property law, then written into a settlement agreement or a court order. Nine states are community property states, according to IRS Publication 555: Arizona, California, Idaho, Louisiana, Nevada, New Mexico, Texas, Washington and Wisconsin. The other states apply their own statutes for dividing marital property.
California is a useful example of a community property rule. Its court self-help center says the general rule is to “divide your community property equally,” that a judge will generally do so if the spouses cannot agree, and that even an informal split made at separation still needs “a formal order” from the judge (California Courts Self-Help: Property and debts in a divorce). Whatever your state, the written order or agreement is what the title company, the lender and the IRS will rely on.
Three ways to handle the house: compared
| Option | How it works | The mortgage | Key tax point |
|---|---|---|---|
| Sell and split | List the home, pay off the loan and costs at closing, divide what is left as the order says | Paid off at closing | Each owner reports their share of any gain; the home sale exclusion may cover it |
| Buyout | One spouse keeps the house and pays the other for their share, in cash or by trading other assets | Stays in place unless refinanced; the leaving spouse stays liable unless released | Transfer between spouses incident to divorce is generally tax-free; the keeper takes the old basis |
| Keep jointly for a set time | One spouse lives there (often with the children) until a date or event, then the home is sold | Both remain liable; the order should say who pays | The spouse who moved out can still count the other’s use of the home if the divorce or separation instrument allows it |
Option 1: Sell now and split the proceeds
A sale gives both spouses a clean break from the loan. It also needs two people who may not be speaking to agree on a list price, an agent, offers and repairs. Put those decisions in the agreement in advance: who picks the agent, what the starting price is, when the price drops if there are no offers, and how the net proceeds are divided after the payoff and selling costs. See how to price your house and seller closing costs for the inputs, and real estate commissions for sellers for the fee you will be negotiating together.
Taxes on a sale
If you sell jointly owned property, you report “your share of the recognized gain or loss” for the year of the sale, and state property law decides your share (IRS Publication 504). Under IRS Publication 523, the exclusion is up to $500,000 for a married couple filing jointly when both spouses meet the residence test and at least one meets the ownership test, and up to $250,000 for a single filer or a married person filing separately who meets the tests. The tests are ownership and residence of at least 24 months each in the five years before the sale.
Timing therefore matters. A sale that closes while you can still file jointly is weighed against the $500,000 figure; a sale after the divorce is final is weighed against each person’s own $250,000. Our guide to capital gains tax on a home sale covers the calculation.
Option 2: One spouse buys out the other
A buyout lets one spouse, often the one with the children, keep the home. The amount usually starts from an agreed value minus the loan balance, then divides the equity as the order requires.
The transfer itself is generally not taxed
Federal law says no gain or loss is recognized on a transfer of property to a spouse, or to a former spouse if the transfer is “incident to the divorce” (26 U.S.C. 1041). A transfer counts as incident to divorce if it happens within one year after the marriage ends, or is related to the end of the marriage. Publication 504 explains that a later transfer is presumed unrelated unless it is made under the divorce or separation instrument and occurs within six years after the marriage ends.
📨 Get Free Home Buying And Selling Guides Alerts
Free · No spam · Unsubscribe anytime
The catch comes later. The spouse who keeps the house takes over the other spouse’s adjusted basis, not the current value, so the built-up gain moves with the house. Publication 523 lets that spouse count the time the other spouse owned the home toward the ownership test, but the residence test must be met on their own.
The mortgage does not follow the deed
Two federal rules work in your favor and one works against you:
- No due-on-sale demand. A lender may not call the loan due because of “a transfer resulting from a decree of a dissolution of marriage, legal separation agreement, or from an incidental property settlement agreement, by which the spouse of the borrower becomes an owner of the property” (12 U.S.C. 1701j-3(d)(7)).
- Refinancing is not the only way off the loan. The Consumer Financial Protection Bureau says homeowners who want to remove an ex-spouse do not generally need to refinance if they are willing to assume the loan and meet the lender’s or investor’s underwriting standards (CFPB, December 2024).
- Signing a deed does not end your debt. The CFPB warns that “taking your name off a home or vehicle title doesn’t take your name off the mortgage,” and that you generally remain responsible unless the creditor releases you or your former spouse refinances and removes your name, whatever the decree says (CFPB).
If you are the spouse leaving, ask for a deadline in the order by which the other spouse must obtain a release or refinance, and what happens if they cannot, such as a required sale.
Option 3: Keep owning it together for a while
Some couples agree that one spouse stays until the youngest child finishes school or until a set date, then sell. The risk is that the spouse who moved out loses the home sale exclusion because they no longer live there.
Publication 523 addresses this directly. You can treat the home as your residence if you are a sole or joint owner and your spouse or former spouse “is allowed to live in the home under a divorce or separation instrument” and uses it as their main home. The instrument can be a divorce or separate maintenance decree, a written separation agreement, or a support decree. Make sure your agreement says the spouse may live there, and spells out who pays the mortgage, taxes, insurance and repairs until the sale.
A worked example
Take hypothetical numbers. A couple bought for $300,000 and the home is now worth $600,000. If one spouse takes the house in a buyout, there is no tax at transfer, but that spouse’s basis stays $300,000. If they later sell alone for $600,000 with $30,000 of selling costs, the gain is $270,000, and only $250,000 of it can be excluded if they qualify as a single filer. Had the couple sold together while filing jointly and qualifying, the same $270,000 gain would sit under the $500,000 limit. Neither answer is right for everyone; the point is to run both before you agree to a buyout price.
Checklist: what the agreement should say about the house
- Which option you chose, and the date or event that ends a shared ownership period
- Who lives there now, and who pays the mortgage, property tax, insurance and repairs
- How the value is set (an appraisal both accept, or a named method)
- For a sale: who picks the agent, the starting price, price-reduction triggers, and how net proceeds are split
- For a buyout: the amount, the payment date, and the deadline for a refinance or lender release
- Who keeps the purchase and improvement records needed to prove the basis
Before you sign, ask your servicer in writing what it requires to release a borrower or approve an assumption, and give that answer to the attorney drafting your agreement and to a tax professional who can run the numbers for each option.
Sources
- IRS: Publication 555, Community Property
- California Courts Self-Help Guide: Property and debts in a divorce
- IRS: Publication 504, Divorced or Separated Individuals
- IRS: Publication 523, Selling Your Home
- GovInfo: 26 U.S.C. 1041, Transfers of property between spouses or incident to divorce
- GovInfo: 12 U.S.C. 1701j-3, Preemption of due-on-sale prohibitions
- Consumer Financial Protection Bureau: Homeowners face problems with mortgage companies after divorce or death of a loved one
- Consumer Financial Protection Bureau: Can a debt collector contact me about a debt after a divorce?