Divorce · Forced Sale · Capital Gains · 2026

Selling a House or Rental in a Divorce: Who Pays the Gain

The house or rental was bought decades ago and is worth far more now. The divorce requires it to be sold, or one of you to buy the other out. Here is how the tax actually works, the one trap in a transfer between spouses, and when a payout structure helps.

By Hans Goldstein, EA · Updated October 15, 2026

The short answer

Each spouse who owns the home pays tax on their own share of the gain, after their own exclusion of up to $250,000. A transfer from one spouse to the other as part of the divorce is not taxed (IRC §1041), but the person who keeps the property keeps the gain, too.

On a home sold for $2.4 million that was bought in 1994 for $420,000, each spouse has a taxable gain of $668,000 after the exclusion and owes about $219,745 and $209,265 in California if the sale closes in one year.

Paid over 10 years under a structure written into the sale, the tax on each gain falls to about $42,556 and $55,994. A rental has no $250,000 exclusion at all.

Step by step: how to sell the house (or a rental) in a divorce without getting crushed by capital gains

The answer

Find the basis first, then decide who owns what on the closing date, because the tax year and filing status of the sale change the bill. Each spouse runs the numbers, the settlement or court order authorizes the sale, and any payout arrangement goes into the purchase contract before closing.

On a $2.4 million house bought in 1994, two single returns owed about $429,010 in 2026 against $464,086 on one joint return, and a 10-year payout cut the tax on each spouse's gain to $42,556 and $55,994. The buyer pays in full at closing either way, and you are not the bank.

Jump to: Steps · Documents · Who to call · Options · Worked example · Mistakes · Questions · All step-by-step guides

The steps, in order

  1. Week 1
    Find the basis before anyone talks price. Basis is the purchase price plus improvements, from the original closing statement, county records and receipts. On a house bought decades ago it drives the whole tax bill. In the example below, a 1994 purchase at $310,000 plus $110,000 of improvements gives a basis of $420,000. Ask for the numbers in writing from both sides so neither of you is guessing.
  2. Week 1 to 2
    Decide who owns what on the closing date, and which tax year the sale lands in. If the sale closes after the divorce is final, you file two single returns and each spouse can use up to a $250,000 exclusion on a main home (IRC §121). If it closes before the decree and you file jointly, one $500,000 exclusion applies if both of you qualify. Check the 2-of-5-year ownership and use tests for each spouse, and check filing status on December 31. Marital status on the last day of the year sets how you file.
  3. Week 2 to 3
    Have each spouse's CPA or enrolled agent run the sale alone and jointly. Run it three ways: two single returns, one joint return, and your own state. In the example, two single returns owed $429,010 and one joint return owed $464,086 on the same sale, a difference of about $35,000. Use the divorce property sale calculator for a first look. Each of you should see the after-tax number, not just the sale price.
  4. Week 2 to 4
    Get the settlement agreement or court order to authorize the sale. It should say who lists, who signs, who pays carrying costs until closing, how the net is split, and who bears which tax. The decree can allocate the tax between you, but it does not change who reports it. Community property and equitable distribution states divide things differently: see community property vs equitable distribution states.
  5. Week 3 to 4
    Compare a buyout against a sale, and understand the trap in keeping the house. A transfer to a spouse, or to a former spouse incident to the divorce, is not taxed (IRC §1041). But the keeper takes the old basis and the whole embedded gain. A dollar of cash is not a dollar of house. Ask your CPA to put an after-tax value on each side before you sign. If the property is a rental, no §121 exclusion applies and depreciation recapture is taxed: see selling rental property in divorce.
  6. Week 3 to 6
    If your ex will not sell, or the court has to force it, talk to your family law attorney now. A co-owner who refuses can be pushed by a partition action, and a judge may appoint a referee to run the sale. That is slow and costly, so a signed agreement is worth a lot. The gain does not go away by waiting, and a long wait usually makes it bigger.
  7. Week 4 to 8
    Hire a listing agent and set the price with an appraisal or broker opinion. Pick one agent, in writing, with both spouses signing the listing agreement or the order naming the agent. Ask for a net sheet. Selling costs in the example are 6%, or $144,000 on a $2.4 million sale.
  8. Before the contract is signed
    Decide whether a payout over years belongs in this sale, and put it in the purchase contract. In an installment sale through a structured arrangement the buyer pays the full price at closing, the money goes to an assignment company, and an annuity pays each spouse on a schedule. You are not carrying a note and you do not depend on the buyer. It must be in the purchase contract before closing. The note or payment stream can be divided between spouses incident to the divorce with no tax at the split (IRC §453B(g)), and each spouse reports the payments they receive.
  9. Contract to close, 30 to 45 days
    Keep the structure and the signatures lined up until closing. Both spouses sign the addendum, the assignment and the funding instructions before the closing date. Once the sale money lands in either spouse's account, it is a cash sale and the payout option is gone for this sale.
  10. After closing, and at tax time
    Close, split the proceeds as the agreement says, and report the sale on each return. Keep the closing statement. Each spouse files Form 8949 and Schedule D, and Form 6252 for an installment sale. Hans Goldstein, EA, an enrolled agent admitted to practice before the IRS (not a CPA or attorney), can run the comparison with your CPA. A written analysis is $5,000; the first 15-minute scope call is free.
Want your real number before step 1 ends? Send the sale price and rough basis and I will email the actual tax figure, or talk to me now. The first 15-minute scope call is free; a written analysis is $5,000.
Email me my numberTalk to Hans now

Documents to gather

  • The deed, the original closing statement from the purchase, and receipts for major improvements
  • The mortgage statement and payoff figure, plus the property tax bill and homeowners insurance declarations
  • Both spouses' last two tax returns and current pay stubs or income statements
  • The marital settlement agreement draft or the court order that authorizes the sale
  • Proof of who lived in the home and when, for the 2-of-5-year use test (utility bills, driver licenses, school records)
  • For a rental: leases, depreciation schedules from past returns, and the rent roll
  • A broker opinion of value or appraisal, and the listing agreement
  • Photo ID for each spouse and any trust documents if the home is titled in a trust

Who to call, in what order

  1. Your family law attorney. First. Who owns what, whether the court needs to approve the sale, and what the agreement must say.
  2. Your own CPA or enrolled agent. Basis, the §121 exclusion, filing status and the tax year of the sale. Each spouse should have their own.
  3. A mediator or divorce financial analyst, if you have one. To put an after-tax value on the house, the cash and the retirement accounts so the split is fair.
  4. A listing agent. Before the listing agreement is signed. Ask for a net sheet and for the agent to add a payout addendum if you choose one.
  5. A scope call with Hans. Free, 15 minutes, before the contract is signed. A written analysis is $5,000.
  6. Title company. Early, with the decree or agreement, so the closing date holds.

Your options compared

OptionIt works whenIt fails when
Sell for cash and splitNeither of you can buy the other out, or the gain is under the exclusions.A big gain is taxed in one year on each return.
Sell with a payout over years (installment sale through a structured arrangement)A large gain, both spouses agree, and each wants steady payments. The payment stream can be split incident to the divorce.Either spouse needs all the cash now. Payments are fixed and cannot be sped up. Both must sign before closing.
One spouse keeps the house (buyout)The keeper can refinance and wants the home.The keeper inherits the whole embedded gain and may lose the second exclusion. A buyout the keeper cannot finance stalls.
Sell before the divorce is finalBoth qualify and a joint return with one $500,000 exclusion helps.Timing is hard to control, and a joint return can cost more than two single returns, as in the example.
1031 exchange or Delaware statutory trust (rentals only)Both spouses want to stay in real estate and can agree on the replacement.Spouses with different goals rarely agree. It does not apply to a main home, and the 45 and 180 day deadlines are firm.
Court-ordered sale or partitionYour ex refuses to sell or list.Slow, costly, and the court picks the agent and the timetable.

The full comparison, with each option's trade-offs, is in the options table further down this page.

A worked example

A couple bought a house in 1994 for $310,000 and added $110,000 of improvements, so basis is $420,000. It sells for $2,400,000 with 6% costs ($144,000), and the divorce is final before closing. Each owns half.

California, single filers. Spouse A earns $140,000 and spouse B $70,000. Run October 14, 2026 with the Goldstein & Co. engine: 2026 federal brackets, the 3.8% net investment income tax and AMT (IRS Rev. Proc. 2025-32), and 2026 California brackets.

Spouse ASpouse B
Half of the gain after costs and basis$918,000$918,000
Less the §121 exclusion$250,000$250,000
Taxable gain$668,000$668,000
Tax on the gain, all in 2026$219,745$209,265
Tax on the gain, paid over 10 years$42,556, plus $122,913 on the interest$55,994, plus $104,888 on the interest
Yearly payment$146,081$146,081
After-tax money at year 10, if untouched$1,270,694 cash vs $1,347,732 paid out ($77,037 more)$1,298,397 cash vs $1,389,205 paid out ($90,807 more)

Two single returns together owe $429,010 on a cash sale. One joint return on the same sale owes $464,086. Closing after the divorce is final saved about $35,000 in this model.

The 5.0% payout rate is an assumption, not a quote, and the table assumes nothing is spent. Payments are fixed. If a spouse dies before the last payment, the unpaid gain is income in respect of a decedent and the heirs owe the tax. These are estimates, not a quote.

Mistakes that close the door

  • Closing before checking filing status and the tax year. A sale in December before the decree and one in January after it can produce very different bills. Run both before the date is set.
  • Treating a buyout as free. No tax is due at the transfer under §1041, but the keeper takes the whole gain. Put an after-tax value on the house in the settlement.
  • Signing the purchase contract without the payout language. The assignment must be in the contract before closing. After the money lands in either spouse's account, it is a cash sale.
  • Assuming the exclusion is automatic for both spouses. Each spouse must meet the ownership and use tests. The spouse who moved out counts the other's use only if the divorce instrument grants it.
  • Letting the decree decide the tax and forgetting the return. The agreement can say who pays, but each owner still reports their share. Make sure both returns match the closing statement.
  • Waiting until the money has already been received. Once the closing is done and the cash is in the account, the payout option is gone for this sale.

Quick questions

Do we have to sell the house in a divorce?

No. The court can divide the house, but the usual choices are to sell and split the net, or for one spouse to keep it and buy out the other. A judge may order a sale if you cannot agree, and a transfer between spouses is not taxed under IRC §1041. Ask your family law attorney what your state allows.

Is it better to sell the house before or after the divorce is final?

It depends on your incomes and whether both of you meet the use test. Closing after the decree means two single returns with up to $250,000 of exclusion each. Closing before can mean one joint return and one $500,000 exclusion. In the example on this page, two single returns owed about $35,000 less than one joint return. Run both before you set the date.

Who gets the tax bill when a divorcing couple sells the house?

Each owner reports their own share of the gain on their own return. The settlement can say who bears the tax between you, but it does not change who reports it to the IRS.

Can an ex-spouse still claim the home sale exclusion after moving out?

Often yes. A spouse who moved out can still count the other spouse's use of the home while the divorce or separation instrument grants it (IRC §121(d)(3)). The ownership test still has to be met, so check the dates with your preparer.

Can the proceeds from a divorce home sale be paid out over years?

Yes, if it is written into the purchase contract before closing. The buyer pays in full at closing, an annuity makes the payments, and the stream can be divided between spouses incident to the divorce (IRC §453B(g)). It does not fit if either spouse needs all the cash now.

Run your own numbers: divorce property sale calculator; structured sale calculator; seller net sheet after tax. More problems like this one: forced to sell? step-by-step guides.

Sources, checked October 15, 2026: IRC §121, home sale exclusion; IRC §1041, transfers between spouses; IRC §453, installment method; IRC §453B, disposition of installment obligations; IRC §1250, depreciation recapture on real property.

Who pays the capital gains in a divorce

A worked example: the house

A couple bought in 1994 for $310,000 and added $110,000 of improvements (basis $420,000). The house sells for $2,400,000 with 6% costs ($144,000), and the divorce is final before closing. Each owns half. Spouse A earns $140,000, spouse B $70,000. California, single filers.

Each spouseSpouse ASpouse B
Half of the gain after costs and basis$918,000$918,000
Less the §121 exclusion$250,000$250,000
Taxable gain$668,000$668,000
Tax on the gain if all in 2026$219,745$209,265
Tax on the gain, paid over 10 years$42,556$55,994
Tax on the interest$122,913$104,888
Yearly payment$146,081$146,081
After-tax money at year 10, if untouched$1,270,694 cash vs $1,347,732 paid out ($77,037 more)$1,298,397 cash vs $1,389,205 paid out ($90,807 more)

One more point: the two single returns together owe $429,010 on a cash sale, while one joint return on the same sale owes $464,086. Closing after the divorce is final saved about $35,000 here. Your own numbers depend on your incomes and the timing, so check with a CPA before the closing date is set.

A worked example: the rental

A rental sold for $1.9 million, split in half, with a $350,000 basis each (including $200,000 of depreciation each) and 6% costs. No exclusion applies. Spouse A earns $140,000, spouse B $70,000.

Each spouseSpouse ASpouse B
Gain$543,000$543,000
Tax on the gain if all in 2026$189,461$174,084
Tax on the gain, paid over 10 years$55,090$59,905
After-tax money at year 10, if untouched$985,192 vs $1,044,063$1,017,542 vs $1,076,848

Run on October 14, 2026 with the Goldstein & Co. engine: 2026 federal brackets, the 3.8% net investment income tax and AMT (IRS Rev. Proc. 2025-32), and 2026 California brackets. The 5.0% payout rate is an assumption, not a quote. After-tax money at year 10 assumes nothing is spent and both paths earn 5.0%, taxed every year. These are estimates, not a quote.

The trap in keeping the house

When one spouse keeps the house and buys out the other, no tax is due at the transfer. But the keeper takes over the whole embedded gain. A dollar of cash is not a dollar of house.

If the house carries $500,000 of built-in tax and the other spouse takes cash, the settlement should account for that after-tax difference. Many settlements treat them as equal because the tax is not due yet. Ask your CPA to put an after-tax value on each side before you sign.

Who decides

Your options compared: what to do with the property

A divorce usually gives you more choices than "sell now" or "one of us keeps it". Dated October 14, 2026.

OptionWhat it doesWhen it winsWhen it fails
Sell to a third party and split the cashEach owner reports their share of the gain, after their own exclusionNeither can afford to buy the other outA big gain taxed in one year for each of you
One spouse buys out the other (IRC §1041)No tax on the transfer; the keeper takes the old basisOne spouse wants the home and can refinanceThe keeper inherits the whole embedded gain and may lose the second exclusion
Sell before the divorce is finalA joint return may allow up to $500,000 of exclusion if both qualifyTiming is flexible and both meet the use testAfter the decree each of you files single
Sell after the divorce is finalEach spouse claims up to $250,000 (IRC §121(d)(3))Both lived in the home two of the last five yearsThe spouse who moved out loses the exclusion unless the decree gives them use
Sell with a payout over years (structured installment sale)The buyer pays cash at closing and each spouse's share of the payments comes from an annuityLarge gain on a rental or second home, both spouses agreeNeeds both signatures before closing; payments are fixed
Delay the sale by agreementThe decree lets one spouse stay until a date, then sellChildren in school, a bad marketCarrying costs, and a fight if one spouse stops paying
Court-ordered saleThe judge orders the sale and the splitYour ex refuses to sell or listSlow and costly; ask your family law attorney

Questions answered below: If your ex will not sell, or a court forces the sale · When you can sell, and how it works · Taxes: who pays the gain and how each spouse files · Buying out your spouse · Inherited and premarital property · Rentals, other assets, valuation, your state and who to hire · By state

If your ex will not sell, or a court forces the sale

These are the questions people type when the other spouse is blocking a sale or a judge is about to order one. Your family law attorney decides this, not a website.

My ex won't sell the house and we bought it in 1995. Who pays the capital gains?

The owners pay, each on their own share of the gain, when the house finally sells. A long wait does not erase the gain; it usually makes it bigger. If you still co-own it, you each report your share of the gain on your own return, and each of you can use your own up-to-$250,000 exclusion if you qualify (IRC 121).

If your ex lives in the house and you have moved out, the two-of-five-years test can still work for you. The statute treats you as using the home while your former spouse is granted use under the divorce instrument (IRC 121(d)(3)). Without a divorce instrument, your own use may run out, so ask your preparer before the five-year window closes.

My ex won't refinance the house in the divorce. What now?

If the spouse keeping the house cannot qualify for the loan alone, the usual options are to sell, to find a co-signer, or to ask the court for a longer deadline. The lender will not release you from the note just because the decree says so. Until the loan is refinanced or paid off, you are still on it.

Selling is often the cleanest answer. Before you agree to a buyout the other spouse cannot finance, run the sale numbers on the divorce property sale calculator so you know what each of you would net after tax. A transfer to your spouse is not taxed (IRC 1041), but it moves the whole gain to the keeper.

My ex won't leave the house. What happens if I leave the house during the divorce?

Leaving the house does not give up your ownership. Your name stays on the title and the loan until a court order, a sale or a buyout changes it. But moving out can change who has the practical upper hand, so talk to your attorney before you go.

Moving out also affects the tax. The home sale exclusion needs you to have lived in the home two of the last five years (IRC 121). A spouse who moved out can still count the other spouse's use if a divorce or separation instrument grants it.

Get that wording into the decree. If your ex will not leave and will not sell, the court can order the sale and set a date to vacate.

Can my ex claim the house after the divorce?

Your ex can claim it only if the decree awards it to them or their name is on the title. Ownership follows the deed and the divorce decree, not who lives there. If both of you are still on the deed, you are both owners until a sale, a buyout or a court order changes that.

If the decree awarded the house to your ex, a deed usually has to follow to move title. A transfer between former spouses under the decree is not taxed (IRC 1041), but your ex takes your basis. Your attorney can confirm whether the deed matches the decree.

My ex won't sell the house. What can I do?

You can ask the family court to order the sale. If your divorce is still open, your attorney can ask the court to order the sale; if it is already final and the decree says to sell, you ask the court to enforce it. The form of the request depends on your state. In many places a co-owner cannot block a sale forever, but confirm that with your attorney.

What a judge will do depends on your state and on what the decree says, so this is a question for your family law attorney. In the meantime, keep paying your share of the mortgage, tax and insurance so your credit and your equity stay protected, and keep a record of every payment.

A refusal is often about money or fear, not about the house. A buyout offer, a short delay by agreement, or an after-tax number showing what each of you walks away with can end a standoff without a hearing. See the refinance question below if your ex wants to keep the house but cannot get the loan.

Can a court force the sale of the house in a divorce, and what are the taxes?

Yes. A family court can order the marital home sold and divide the proceeds, and it can often set the listing price steps and the deadline, depending on your state. The tax rules do not change because a judge ordered the sale: each owner reports their share of the gain, and each can use their own section 121 exclusion if they qualify.

A forced sale on a short clock can cost you money, because a rushed sale often means a lower price and little time to plan the tax. If the sale is coming, ask your attorney whether the order can allow time to compare the after-tax result of selling before the divorce is final versus after. See the before-or-after question.

Can we keep owning the house together after the divorce?

Yes, if you both agree and the decree says so. Some couples keep the house until the children finish school, then sell and split the proceeds. The agreement should say who pays the mortgage, tax, insurance and repairs, who lives there, and the date or event that triggers the sale.

Tax details to write in: you will both still be owners, so each reports their share of the gain when it sells. The spouse who moved out should ask for the use-credit wording (IRC 121(d)(3)) so the exclusion is not lost. Without a firm date, co-ownership after a divorce is a common source of the standoff described under ex won't sell.

Should I sell the house in a divorce, or keep it?

Sell if neither of you can afford to keep it alone, if the gain is large and a sale lets you each use an exclusion, or if you want a clean break. Keep it if one of you can refinance and the house fits your plans, and you account for the tax the keeper takes on.

The deciding numbers are the monthly cost, the after-tax value of the house against the cash the other spouse would take, and the children's schooling if that matters. A house that looks like half of the estate is worth less after tax than the same amount in cash when it carries a big built-in gain.

When you can sell, and how it works

How long do we have to sell the house after the divorce?

The decree sets the deadline. If it says "sell within 6 months" or "when the youngest child graduates", that is your date. If it is silent, there is no tax deadline to sell, but the court can be asked to set one.

Two clocks matter for tax. The first is the two-of-five-years use test for the exclusion (IRC 121): waiting too long after one of you moves out can cost that spouse their exclusion unless the instrument grants them use. The second is the 6-year presumption for transfers under an instrument (Treas. Reg. 1.1041-1T Q&A-7), which matters if one of you is buying the other out later.

Is it better to sell the house before or after the divorce is final?

There is no rule that wins for everyone, because it depends on your filing status and your incomes in the year of sale. Before the divorce is final you may file jointly and claim up to $500,000 of exclusion if both of you meet the use test (IRC 121(b)(2)).

After it is final you file as unmarried and each claims up to $250,000, so the total is the same.

The difference is how the taxable gain stacks on top of each person's other income. In the example on this page, two single returns owed less than one joint return. Have a CPA run it both ways before a closing date is set. Marital status is set on December 31 (IRC 7703), so which calendar year the sale closes in can change the filing status you use.

How does selling a house during a divorce work?

Both owners agree on a price and a listing agent, or a court can appoint one. The house sells like any other. At closing the title company pays the loan and costs, and the rest goes to each spouse as the agreement or order says. Each spouse then reports their share of the gain on their own return.

See the steps before you list for the tax prep.

What should the divorce agreement say about selling the house?

At a minimum: who lists and with which agent, the price and the price-reduction steps, who pays the mortgage and costs until closing, how the proceeds are split, who bears the tax, and the date the sale must close by. Add what happens if a spouse blocks the sale.

On tax, write who reports which share of the gain, what happens if the sale closes in a different tax year than planned, and whether either spouse wants the proceeds paid out over years instead of in one check.

A payout has to be written into the purchase contract before closing, so the agreement should authorize it in advance. In that setup the buyer pays in full at closing and you are not the bank. See the calculator for what that could look like.

Can you sell a house during a divorce?

Yes. Every owner on the title has to sign the sale, and the proceeds are divided under the settlement or a court order. Your state may restrict selling marital property once a case is filed, and some courts issue standing orders, so check with your attorney before you list.

If one spouse will not sign, ask your attorney whether the court can order it. For the tax, the sale can close before the divorce is final (joint return, up to $500,000 exclusion if both qualify) or after (single returns, up to $250,000 each).

What happens if we sell the house after the divorce?

Each of you reports your share of the gain on your own single, head of household or married filing separately return, and each can claim up to $250,000 of exclusion if you qualify. The decree controls who gets what share of the cash, and the buyer's closing pays each of you what the decree says.

Waiting can help if you need time to meet the two-year test, or hurt if the market falls or carrying costs pile up. Put the sale date, the listing price steps and who pays what in the decree so the sale does not become the next fight.

Taxes: who pays the gain and how each spouse files

Rule-dependent figures are as of October 2026, from 2026 federal law (Rev. Proc. 2025-32).

Is a property settlement or divorce money taxable?

Property you receive in the divorce is generally not taxed when you receive it. A transfer of property to a spouse, or to a former spouse incident to the divorce, creates no gain or loss (IRC 1041). You take the same basis the giver had.

The tax shows up later. When you sell what you received, you pay tax on the gain from the original basis. Cash from selling a jointly owned asset is a sale, so the gain is taxed to the owners. Alimony and child support follow other rules; ask your preparer. The key point: a settlement is not tax free, it is tax postponed on the assets that carry gain.

How are capital gains and the home sale exclusion handled if I file married filing separately?

If you file separately and meet the tests, you can generally exclude up to $250,000 of the gain on your own return. The higher $500,000 limit is for married couples filing jointly, and it needs both spouses to meet the use test (IRC 121(b)(2)). Married filing separately also pays the 3.8% investment tax starting at $125,000 of income, not $200,000 (IRC 1411).

Also, married filing separately has a small 0% capital gains zone: 0% only up to $49,450 of taxable income for 2026 (Rev. Proc. 2025-32). Check with a preparer whether filing jointly for the year of the sale would help or hurt you.

Who pays the capital gains tax in a divorce, and can the gain be split?

The owners pay, each on the share they own or receive. The gain is usually split in proportion to the cash each of you receives from the sale. A decree can say who bears the burden between you, but the IRS still looks to whoever reports the gain.

If the house is sold and the proceeds are divided 50/50, each of you reports half the gain on your own return. If the sale is unequal, each reports the share of proceeds they actually receive. Your CPA should match your 1099-S and your return to the decree.

Does each spouse get the $250,000 home sale exclusion in a divorce?

Yes, if each of you owned the home and lived in it as a main home for at least two of the last five years before the sale. A spouse who moved out can count the other's occupancy if the divorce or separation instrument gives that spouse use of the home (IRC 121(d)(3)).

You also need to have not used the exclusion on another home in the prior two years (IRS Publication 523).

If you sell before the divorce is final and file jointly, the limit is $500,000 only if both spouses meet the use test. If the sale is before the two-year mark because of a divorce, a partial exclusion may be available (IRC 121(c)); ask your preparer. Gain from depreciation taken on a home office or rental use after May 6, 1997 is not excludable.

What is my tax basis in property I receive in a divorce?

Your basis is the same as the giver's adjusted basis, not the value on the day of the divorce (IRC 1041, carryover basis; Treas. Reg. 1.1041-1T Q&A-10). That includes any depreciation the giver took. Your holding period also carries over.

That is why a house worth $1 million with a $200,000 basis hands over an $800,000 gain, not zero. Keep the original closing statement and the improvement records. Without them you may have to rebuild basis, which costs time and money at sale.

How do I transfer a house to my spouse in a divorce without tax?

Sign a deed as part of the divorce. A transfer to a spouse or former spouse is not taxable if it is within one year after the marriage ends, or if it is related to the end of the marriage (IRC 1041). Under the temporary regulations, a transfer under a divorce or separation instrument within 6 years is presumed related; one made later is presumed not related (Q&A-7).

No tax is due at the transfer, but the receiving spouse takes the old basis and the old depreciation. Use a real estate attorney for the deed, because the loan, the title and the property tax reassessment may also change in your state.

How can I avoid or reduce capital gains tax in a divorce?

The honest ways are the ones the tax code gives you. Use each spouse's $250,000 exclusion. Pick the year and filing status that stack the gain best. Transfer the house under IRC 1041 if one of you will keep it. Add improvement records to raise basis. For a large gain that exceeds the exclusions, spread it out so it does not land in one year (see below).

There is no way to make a gain disappear. Moving the gain to the keeper with a transfer postpones the tax and moves it to the keeper. Check the options with a CPA before you agree to anything.

How do I file taxes in the year of the divorce?

Your marital status on December 31 decides it (IRC 7703). If the divorce is final by December 31 you are unmarried for the whole year and file single, or head of household if you qualify. If it is not final, you are still married for that year and file jointly or married filing separately.

A spouse who is legally separated under a decree is also treated as unmarried. A separated spouse who pays over half the cost of keeping up a home for a qualifying child and lived apart from the other spouse for the last six months of the year can be treated as unmarried too.

For 2026 the standard deduction is $32,200 joint, $24,150 head of household and $16,100 single or separate (as of October 2026).

The year of sale matters for house gains: the filing status you land in changes the brackets. See the before-or-after question.

How much capital gains tax will I pay on the house in a divorce?

Take the sale price, subtract selling costs and your basis (cost plus improvements). That is the gain. Subtract your section 121 exclusion, up to $250,000 if you qualify.

Tax the rest at the long-term rate: for 2026 it is 0% up to $49,450 of taxable income if single, 15% up to $545,500, and 20% above (Rev. Proc. 2025-32, as of October 2026).

Add the 3.8% net investment income tax if your income is over $200,000 single (IRC 1411), and your state's tax.

The page above shows the full result for a $2.4 million California house split between two spouses. Run your own on the each-spouse calculator and have a CPA confirm.

How does a divorce affect my taxes?

It changes your filing status, who can claim the children, how the home gain is taxed, and the basis of what you receive. For property, the key facts are that transfers between spouses incident to a divorce are not taxed (IRC 1041), the receiver takes the giver's basis, and each of you can have a section 121 exclusion of up to $250,000 on a main home.

Alimony, retirement account splits and dependents have their own rules. This page covers the real estate side. A CPA or enrolled agent should see your decree before you sign.

Buying out your spouse

What are the taxes when I buy out my spouse's share of the house?

At the buyout there is no tax on the transfer between you (IRC 1041). The spouse who is bought out receives cash for their half; the keeper takes the whole house at the old basis. The tax comes when the keeper sells: the gain is measured from the old basis, and only the keeper's own $250,000 exclusion, if the keeper qualifies, is available for that sale.

That is the trap: if the house carries $500,000 of built-in tax and the other spouse takes cash, the cash has no tax on it and the house does. Ask your CPA to put an after-tax value on each side. See the worked example above.

Do I have to buy out my spouse in a divorce?

No. A buyout is an option, not a duty. The court can order the house sold instead, or you can agree that your spouse stays, or that you both keep owning it for a time. A buyout happens when one of you wants the house and can finance it.

If neither of you can afford it, a sale is the usual result. Ask your attorney how your state treats a spouse who wants to keep the house and cannot qualify for the loan.

How do I calculate a home buyout in a divorce?

Start with the value, subtract the loan and the costs a sale would carry, and split the equity as your agreement says. That is the buyout check before tax. Then adjust for the built-in gain: the keeper owes the tax on it someday, and the spouse taking cash does not.

A simple way to see the tax: run the sale on the divorce property sale calculator as if the house sold today. The tax it shows is the embedded tax. Many settlements split that cost or give the cash-taking spouse a larger share to match.

How do you buy out your spouse in a divorce?

You agree on the value of the house, subtract the loan, and pay the other spouse their share of the equity, usually by cash or by trading other assets. To pay with a loan, you usually refinance in your name alone and use the new loan to pay your spouse and release them from the old note. A deed then moves the title to you.

The transfer is not taxed (IRC 1041), but you take over the whole built-in gain. Value the house, check that you qualify for the loan, and have a CPA put an after-tax value on the house against the cash your spouse takes.

Inherited and premarital property

What happens to inherited property in a divorce?

Property you inherited is usually your separate property and stays yours, but it can turn into marital property if you mix it with marital funds, put the spouse on the title, or use marital money to pay it down. How a court treats it depends on your state.

The tax rules are separate from the ownership rules. Inherited property generally gets a new basis equal to its value at the date of death (IRC 1014), so the gain on a sale may be small.

If you inherited a house and lived in it as a main home for two years, the section 121 exclusion may also apply. Ask a local family law attorney how your state treats it.

What if the house was bought before the marriage?

A house bought before the marriage is usually separate property, at least to start. It can become partly marital if the spouse paid the mortgage with marital money, added to the title, or improved it with joint funds. The court of your state decides how much each spouse gets.

On the tax side, the owner's basis is the original cost plus improvements, and the owner reports the sale. If your spouse never owned the house, only you report the gain, and only you can claim the exclusion. If the spouse was added to title, both report their share. Do not guess; show the deed and the payments to your attorney.

Rentals, other assets, valuation, your state and who to hire

Do the same tax rules apply to stock and other property sold in a divorce?

The transfer rule is the same. A transfer of shares or other property to a spouse, or to a former spouse incident to the divorce, is not taxed (IRC 1041), and the receiver takes the old basis. The tax arrives when the receiver sells.

What differs is the exclusion. The $250,000 home sale exclusion applies only to a main home. Stock, a rental and a second home get no exclusion. For rentals and investment property see selling rental property in a divorce.

What about the rental or second home in the divorce?

A rental or second home gets no $250,000 exclusion. The gain is taxed at long-term rates, depreciation is taxed up to 25%, the 3.8% investment tax can apply, and the state adds its own tax. A transfer to your spouse is not taxed but carries the gain with it.

There is a full page on this: selling rental property in a divorce, with a worked example and the options for spreading the tax.

How do I value the house for the divorce?

Most couples use a licensed appraiser both sides accept, or two real estate agents' opinions averaged. A court can order an appraisal if you disagree. Online estimates are a rough guide only.

The value affects both the buyout check and the tax. Keep a copy of the appraisal date and method; a value agreed in the decree is not the same as a sale price, so the real gain is measured from the actual sale.

Who should I hire for the tax side of selling a house in a divorce?

Use three people in their own lanes. Your family law attorney writes the decree and decides who owns what. A CPA or enrolled agent runs the tax on each choice. A real estate agent prices and sells the house. A mediator or divorce financial analyst can bring them together.

Ask the tax person for the after-tax result of at least three options: sell now, sell after the decree, and one spouse keeps it. Hans Goldstein, EA, is an enrolled agent, admitted to practice before the IRS; he supplies numbers at the request of an attorney, a mediator, or a spouse with their own counsel.

The first 15-minute scope call is free; the written analysis is $5,000. See about Hans.

Does selling a house in a divorce work differently in my state?

The federal tax is the same everywhere. What changes is who owns what (community property in nine states, equitable distribution in the rest), whether your state taxes the gain, and the court's procedure. See the by-state table below and the page on community property versus equitable states.

A family law attorney in your state decides ownership and procedure. A preparer decides the state tax.

How is real estate handled in a divorce?

The court (or your agreement) decides who gets each property and in what share. The options are to sell and split the cash, to give one spouse the property and the other something else of equal value, or to keep owning together for a time. State law sets the starting point.

For the tax, a sale means each owner reports their gain; a transfer between spouses is not taxed but carries the gain with it (IRC 1041). See the page above for the options table.

What should I know before I list a house I am selling because of divorce?

Agree on one agent, one price plan and one person who handles showings. Keep paying the mortgage so nobody's credit takes a hit. Collect the basis records and the improvement receipts before you list; they are worth money at tax time.

If the gain is large, run the numbers before you sign the listing, because a payout over years must be written into the sale contract before closing (the buyer pays in full at closing and you are not the bank). See the calculator.

Selling in a divorce, by state

The federal rules on this page are the same in every state. State law decides who owns what and how the court divides it, and the state may tax the gain.

Nine states are community property states: Arizona, California, Idaho, Louisiana, Nevada, New Mexico, Texas, Washington and Wisconsin (IRS Publication 555); the rest use equitable distribution. State tax figures are top rates, as of October 2026; confirm on your return.

Waiting periods and court procedure differ by state and are decided by a local family law attorney. The full table is on community property versus equitable states.

StateProperty regimeState tax on the gainNote
TexasCommunity propertyNo state income taxFederal tax only. A family law attorney decides the split.
CaliforniaCommunity propertyTop rate 13.3%The state tax is the largest piece for a big gain.
FloridaEquitable distributionNo state income taxFederal tax only.
New YorkEquitable distributionTop rate 10.9%; city residents may owe a local taxConfirm both on the state and any local return.
New JerseyEquitable distributionTop rate 10.75%Confirm on the state return.
PennsylvaniaEquitable distributionTop rate 3.07%Confirm local taxes on your return.
OhioEquitable distributionTop rate 2.75%Confirm on the state return.
GeorgiaEquitable distributionTaxes the gain as income; confirm the rateWe could not verify the current rate for this page.
IllinoisEquitable distributionFlat rate 4.95%Confirm on the state return.
VirginiaEquitable distributionTop rate 5.75%Confirm on the state return.
ArizonaCommunity propertyTop rate 2.5%A family law attorney decides the split.
WashingtonCommunity propertyThe state capital gains tax does not apply to real estateFederal tax only on a home sale.
NevadaCommunity propertyNo state income taxFederal tax only.
MassachusettsEquitable distribution5% plus 4% surtax over about $1 millionConfirm on the state return.
MinnesotaEquitable distributionTop rate 9.85% (plus 1% net investment tax over $1 million)Confirm on the state return.
WisconsinCommunity property (Marital Property Act)Top rate 7.65%A family law attorney decides the split.
OregonEquitable distributionTop rate 9.9%Confirm on the state return.

Not on the list? The same federal rules apply, and the state page shows the general differences. Your family law attorney decides this, not a website.

When this does not fit

Steps before you list

  1. Pull the purchase paperwork and the improvement records. Basis drives the tax.
  2. Decide who will own what on the closing date, and which tax year the sale lands in.
  3. Have each spouse's CPA run the sale alone and jointly.
  4. If the numbers are large, run a real analysis before the listing agreement is signed.

Tools: the each-spouse divorce property sale calculator, the seller net sheet after tax, the structured sale calculator, and home sale gain over the exclusion. More detail on Big Sale Tax: installment sale of a rental property.

Before you read further

What is the tax bill on your property sale going to be?

Send me the sale price and rough basis. Within one business day I'll email you the actual number and the Seller's Guide to §453. If it doesn't fit your deal, I'll tell you that plainly.

Hans Goldstein, EA
Admitted to practice before the IRS

No retainer · no obligation. Hans Goldstein, a licensed insurance agent (CA Insurance License #4273294), will contact you and may discuss insurance products, including annuities.

Frequently asked questions

Who pays capital gains tax when a house is sold in a divorce?

The owners, each on their share of the gain, on their own return. The decree can allocate the burden between you but cannot change who reports it. A transfer between spouses incident to the divorce creates no tax at the time (IRC §1041); the tax is on the next sale.

Do we each get a $250,000 exclusion in a divorce?

Each spouse can, if they owned and lived in the home two of the last five years. The spouse who moved out can count the other's use under the divorce or separation instrument (IRC §121(d)(3)). If you sell before the divorce is final and file jointly, it is $500,000 together.

Should we sell before or after the divorce is final?

The total exclusion is the same, but the taxable gain stacks on different incomes. In our example two single returns owed less than one joint return. It depends on your incomes and your filing status on December 31, so have a CPA compare.

Is there a capital gains tax on a rental property sold in a divorce?

Yes. There is no home exclusion. The gain is taxed at the long-term rates, depreciation recapture at up to 25%, plus the 3.8% net investment income tax and state tax. A transfer to your spouse is not taxed, but the new owner inherits the basis and the recapture.

If one spouse keeps the house, is it fair?

Not automatically. The keeper takes the embedded gain with the house. Put an after-tax value on the house and the cash before you agree they are equal.

Can a payout from the sale be split between spouses?

Yes. Dividing an installment note incident to the divorce is not a taxable transfer (IRC §453B(g)), and each spouse reports the payments they receive. The terms go into the settlement and the sale contract before closing.

When does a structured sale have to be set up?

Before the sale closes, in the purchase contract. After closing it is too late. If a court deadline is short, raise it with your attorney first.

What does a real analysis cost?

The first 15-minute scope call is free. A written analysis is $5,000. This page and the calculators are free.

My ex won't sell the house. What can I do?

If you are still married, your family law attorney can ask the court to order the sale as part of the divorce. After the decree, the judgment can require it, and a partition action can force a sale of jointly owned property. A court order, not the tax, usually decides the timing. Run the after-tax numbers first so the split is fair.

My ex won't refinance the house after the divorce. What are my options?

Both of you stay on the loan until it is paid off or refinanced. The choices are a buyout where the keeper refinances, selling and paying off the loan, asking the lender whether an assumption is allowed, or a court order setting a deadline. The tax on a later sale stays with whoever owns it then.

We have to sell our rental property in the divorce. How is it taxed?

A rental gets no home-sale exclusion. Each owner reports their share of the gain, depreciation is taxed up to 25%, and the 3.8% net investment income tax may apply. Transferring it to one spouse is tax free under §1041, but the keeper keeps the gain.

Sources and dates

Who wrote this?

About the author

Hans Goldstein, EA, works with sellers on IRC §453 installment sales. He is admitted to practice before the IRS. Tax and exit-planning analysis: Hans Goldstein: Tax & Exit Planning.

Annuity placement for structured installment sales: Goldstein & Co. LLC dba Goldstein Insurance Services, CA ins. lic. #4273294. Hans is not a CPA or attorney, and this page is education, not tax or legal advice; have your CPA and attorney review your facts.

A commission is paid only if a structured installment sale is funded.

Talk to Hans: hans@goldsteinco.net · 213-414-2808

Get the REAL numbers

Hans Goldstein, EA
Hans Goldstein, EAAdmitted to practice before the IRS

These are estimates. Have a qualified tax professional run your real numbers in a 15-minute scope call.

Book my 15-minute call

This is an estimate. Getting it right down to the tee takes your actual tax forms (returns, K-1s, depreciation schedules), a consult and a paid analysis. The first 15-minute scope call is free; the written analysis is $5,000. On a funded structure the insurer pays a one-time commission to the brokerage firm that places it; it is built into the annuity pricing, not a separate fee.

Hans Goldstein, NPN 20602398

📚 Get the free Seller's Guide to §453 + a fit-check

A plain-English guide for sellers on how a structured installment sale can help you net more after tax when you sell a business, practice, or property. It covers the math, the alternatives, and how to tell if your deal fits.

Leave your details and the PDF downloads right away. Within one business day Hans will email a preliminary read on which structure fits your deal. No retainer. On a funded structure, the insurer pays a one-time commission of about 4% of the amount structured to the brokerage firm that places it (Hans’s share is about 2.4%; no trail). It is built into the annuity pricing, not a separate fee.

More details (optional)
Hans Goldstein, EA
Admitted to practice before the IRS

📞 Hans Goldstein · 213-414-2808 · CA Insurance License #4273294 · Independent §453 specialist · Goldstein & Co. LLC

Hans Goldstein, a licensed insurance agent (CA Insurance License #4273294), will contact you and may discuss insurance products, including annuities.

Talk to Hans Book 15 min Call

Hans Goldstein is an Enrolled Agent, admitted to practice before the Internal Revenue Service. Not affiliated with or endorsed by the IRS. General education, not tax or legal advice for your situation.