Does the Spouse Who Moves Out Qualify for the Exclusion?

Does the Spouse Who Moves Out Still Qualify for the Tax Exclusion?

Publication 523 says that if you are a sole or joint owner and your former spouse is allowed to occupy the home under a divorce or separation instrument and lives there as a principal residence, you treat the property as your own residence. Your CPA applies it to your dates.

By Marc Cormier

Licenses: Maryland #620443 | Virginia #0225175181 | DC #SP98365998 | Berkshire Hathaway HomeServices

27+ years in real estate. 800+ closed transactions.

Certified as a Certified Divorce Real Estate Expert (CDRE) in 2014.

Last updated: October 2, 2026

The details

IRS Publication 523 (2025) covers this case. You are a sole or joint owner. Your former spouse is allowed to occupy the home under a divorce or separation instrument. Your former spouse lives there as a principal residence. Then you treat the property as your own residence for the exclusion.

Publication 523 defines a divorce or separation instrument in three ways. It is (a) a decree of divorce or separate maintenance or a written instrument incident to it, (b) a written separation agreement, or (c) a decree requiring a spouse to make support or maintenance payments.

IRS Topic no. 701 sets the base tests. You exclude up to $250,000 of gain, or up to $500,000 if you file a joint return with your spouse. You must own the home at least 24 months of the last 5 years before the sale. You must use it as a residence at least 24 months of the previous 5 years. On a joint return, either spouse meets the ownership test and both meet the use test individually.

Maryland Family Law Article section 8-208(d) adds one point. An order granting sole possession does not affect the other party's right to claim the family home as a principal residence for tax purposes.

Next step: write down your move-out date, your purchase date, and the date of the instrument. Give all three dates to your CPA before you list.

The 24-of-5-years count as arithmetic

This is simple counting, not a tax ruling. The window is the 60 months before the sale. Made-up timelines.

TimelineOwnership in the 60 monthsMonths you lived in the homeMonths after you move outInstrument in place and former spouse lives thereSimple count of use
1. Own and live in the home 6 years, move out 12 months before sale604812Yes48 + 12 = 60
2. Buy the home 36 months before sale, move out 18 months before sale361818Yes18 + 18 = 36
3. Own the home 10 years, move out 40 months before sale602040No20

Check the math: Timeline 1 is 60 months minus 12 months, which is 48 months lived. Add the 12 months after the move to reach 60. Without the instrument rule the count is 48. Timeline 2 is 36 months owned minus 18 months after the move, which is 18 months lived. Add 18 to reach 36. Without the instrument rule the count is 18, below 24. Timeline 3 is 60 months minus 40 months, which is 20 months lived. With no instrument, the simple count stays at 20, below 24.

Your CPA applies it to your dates.

Where this goes wrong

I have seen this mistake before. A spouse moves out in month one of a separation. Nobody signs a written agreement for a year. The dates drift, and the paperwork does not match the move.

  • Moving out before any divorce or separation instrument exists. The Publication 523 rule starts with the instrument.
  • Assuming the move-out date ends your use count. The rule in Publication 523 treats the home as your own residence in the case it describes.
  • Counting months from memory. Use the closing statement, the lease or move records, and the signed instrument.
  • Assuming a sole possession order costs you the tax claim. Section 8-208(d) says it does not affect your right.
  • Waiting until the listing to ask. Ask your CPA before you sign a move-out date or a sale date.

This is where people usually get hurt. They guess at the dates and find the gap after the sale.

Questions people ask next

Do we pay capital gains tax when we sell?

Only on gain above your exclusion. Under IRS Topic no. 701, you exclude up to $250,000 of gain, or up to $500,000 on a joint return with your spouse, if you meet the ownership and use tests. Your CPA confirms your case. State tax and Maryland transfer and recordation taxes are separate questions for your title company.

How does the $500,000 versus $250,000 exclusion work?

The $500,000 figure applies when you file a joint return with your spouse. Either spouse meets the ownership test and both meet the use test individually. Otherwise Topic no. 701 sets up to $250,000. Whether two former spouses each apply $250,000 to a half share is a question for your CPA.

What do the ownership and use tests require?

Topic no. 701 says you must have owned the home at least 24 months of the last 5 years before the sale. You must have used it as a residence at least 24 months of the previous 5 years. On a joint return, either spouse meets the ownership test and both meet the use test individually.

Montgomery County

The Montgomery County Circuit Court runs a Family Law Self-Help Center. It is a free walk-in clinic staffed by attorneys, in the South Tower, First Floor, Room 1500. It gives general legal information or limited legal advice on divorce, custody, and related matters. You still pay case fees and costs.

Source: https://www.montgomerycountymd.gov/circuit-court/services/family-law-self-help-center

Do you need a divorce attorney?

You should have your own. I am a real estate agent. I do not give legal advice, and I do not work for one spouse against the other.

I am not affiliated with any law firm. I do not recommend one attorney over another. Your spouse needs their own attorney, not yours.

If you need to find one, start with these bar association resources:

Links open in a new tab.

What an attorney handles What I handle
Who gets the house and the moneyThe value of the house
The marital settlement agreementThe net sheet
Court orders that affect the saleListing, showings, offers, and closing
Custody, support, and everything outside real estateA written record of every showing and decision

General information only. Not legal, tax, or financial advice. The referral services are independent of me. I do not guarantee any attorney's work or results.

Marc Cormier

Licenses: Maryland #620443 | Virginia #0225175181 | DC #SP98365998 | Berkshire Hathaway HomeServices

Co-author of "Cracking the Real Estate Code," a best seller in four Amazon categories on release day, September 2013.1

1. PRWeb, September 13, 2013.

Certified as a Certified Divorce Real Estate Expert (CDRE) in 2014.

Sources

General information only. Not legal, tax, or financial advice. Examples use made-up numbers.

Get the numbers before you decide.

15 minutes. Free. No pressure.

(301) 660-6272 Marc@Help34.com