Tidal Offers
Answers · Divorce

Do we each get the capital gains exclusion if we sell after our divorce?

Usually yes: once you are divorced and each filing your own return, each of you can exclude up to $250,000 of gain from the sale of the home, as long as each of you owned it and lived in it as a main home for at least two of the five years before the sale. If one of you moved out years ago, federal law lets that spouse keep counting the time the other spouse lives there under a divorce decree or written separation agreement, so the exclusion is often not lost (IRC 121(d)(3)(B); IRS Publication 523, 2025).

By Matthew Kane · NC Broker #297432

How the home sale exclusion works

Section 121 of the Internal Revenue Code lets you leave gain from selling your main home out of your income. The IRS spells out three tests in Publication 523 (2025 edition, irs.gov, read October 25, 2026):

The limit is $250,000 for a single filer or a married person filing separately, and $500,000 for a married couple filing jointly when both spouses meet the residence and look-back tests and at least one meets the ownership test (IRC 121(b); Publication 523, 2025).

Selling before the divorce is final versus after

Timing changes the math. North Carolina grants an absolute divorce only after the spouses have lived separate and apart for one year (N.C.G.S. 50-6, ncleg.gov, read October 25, 2026), so many couples sell while they are still legally married.

IRS Publication 501 (2025) says that if you are divorced under a final decree by the last day of the year, you are considered unmarried for the whole year. If you sell in a year when you are still married and file jointly, the two of you share one limit of up to $500,000. If you file separately, or the divorce is final by year end and you each file as unmarried, each of you looks at your own share of the gain against your own $250,000 limit. When both of you meet the tests, the total is the same either way: $500,000 jointly or $250,000 each. It matters when the gain is large, or when only one spouse still meets the residence test.

The spouse who moved out

If you moved out in 2022 and the house sells in 2026, you would normally fail the residence test, because you did not live there for two of the last five years.

The federal fix is IRC 121(d)(3)(B). While you still own the home and your spouse or former spouse is allowed to live there under a divorce or separation instrument, you are treated as using it as your main home too. Publication 523 says a divorce or separation instrument includes a divorce decree or a written instrument incident to one, a written separation agreement, or a decree requiring support payments. A handshake arrangement is not on that list.

When one of you keeps the house

A transfer of the home, or your share of it, to a spouse or ex-spouse as part of the divorce settlement generally produces no gain or loss, and there is nothing to report from the transfer itself (Publication 523, 2025; the exception is a spouse who is a nonresident alien). The spouse who keeps the house also keeps the old tax basis: their starting basis is the combined adjusted basis of both halves, not the home’s value on the day of the transfer.

When that spouse later sells, they can count the time the other spouse owned it toward the ownership test (IRC 121(d)(3)(A)), but they must meet the residence test on their own, and their limit as a single filer is $250,000. With a large built-in gain, that can mean more tax later than if you had sold together, so run it with a CPA before signing.

If you do not meet the two years at all, a partial exclusion may still be available. Publication 523 lists becoming divorced or legally separated, or being issued a decree to pay maintenance to the other spouse, as an unforeseeable event that can qualify you for a reduced exclusion when the sale happens because of it.

What to do first

  1. Write down when each of you bought into the house and when each of you moved out.
  2. Gather the purchase closing statement and improvement receipts, then estimate the gain.
  3. If one spouse will stay in the house before a sale, make sure the written separation agreement or decree grants that use.
  4. Ask a CPA to compare selling this year against next year, given your filing status.

Listing versus a cash offer: an honest comparison

The tax rules are the same whoever buys the house. When there is time and the house shows well, listing with an agent usually nets more, and in most divorces more money for both people is the better outcome. A cash sale trades some of that money for a fixed closing date, no repairs and no months of showings while two people who are separating share the decisions. It tends to fit when the house needs work or neither spouse can carry it. Our guide to selling a house in a divorce in NC walks through the order of operations, and this answer covers whether you have to sell before the divorce is final. Either way, ask for both numbers in writing.

Questions people ask next

Can my ex and I each exclude $250,000 if we sell after the divorce?

Usually yes, if each of you owned the home and lived in it as a main home for at least two of the five years before the sale and neither of you excluded gain on another home in the prior two years. Each of you applies your own $250,000 limit to your own share of the gain (IRC 121; IRS Publication 523, 2025).

I moved out three years ago. Do I lose the home sale exclusion?

Not necessarily. Under IRC 121(d)(3)(B), while you still own the home and your spouse or former spouse is allowed to live there under a divorce decree, written separation agreement or support decree, you are treated as using it as your main home. Without that written instrument, you would need to meet the two-year residence test on your own.

Is it taxable when I sign my half of the house over to my spouse in the divorce?

Generally no. IRS Publication 523 says a transfer of the home, or a share of it, to a spouse or ex-spouse as part of a divorce settlement is treated as no gain or loss, unless the spouse is a nonresident alien. The spouse who receives it keeps the existing tax basis, which matters when they sell later.

Is it better to sell while we are still married and file jointly?

It depends on the size of the gain and who still meets the residence test. Filing jointly allows up to $500,000 combined when both spouses meet the residence and look-back tests, while divorced or separate filers each get up to $250,000. A CPA can compare both options before you choose a closing date.

Questions about your situation? Call or text (910) 372-6720.

Sources: Internal Revenue Code section 121, including 121(b) and 121(d)(3) (26 U.S.C. 121, govinfo.gov, read October 25, 2026); IRS Publication 523 (2025), Selling Your Home, page last updated April 30, 2026 (irs.gov, read October 25, 2026); IRS Publication 501 (2025), Divorced persons (irs.gov, read October 25, 2026); N.C.G.S. 50-6 (ncleg.gov, read October 25, 2026).

Matthew Kane, founder of Tidal Offers and Tidal Realty Partners

Matthew Kane

Founder, Tidal Offers & Tidal Realty Partners. United States Marine Corps veteran, former firefighter, and a licensed North Carolina broker (NC #297432). Over 12+ years, Matthew and his team, through our sister brokerage Tidal Realty Partners, have helped 1,000+ families and closed $650M+ in sales — as buyers when cash is the right answer, and as a full-service brokerage when it is not.

Tidal Offers buys homes directly. When we make a cash offer, we are the buyer, not your agent. Matthew Kane is a licensed North Carolina real estate broker (NC #297432). Nothing on this page is legal, tax, or financial advice; for your situation, talk with a North Carolina attorney, a CPA, or a HUD-approved housing counselor.

Ready for a real number?

Written, no-obligation cash offer in 24 hours — and an honest answer when listing would serve you better.

Scroll to Top