If my ex lives in the house, can I still use the exclusion?
Short answer: Possibly. IRS Publication 523 lets you treat the home as your residence if you still own it (solely or jointly) and your spouse or ex-spouse is allowed to live there under a divorce or separation instrument and uses it as their main home.
Details
This rule helps the spouse who moved out but still co-owns the home, for example when a decree lets one parent stay with the children until a later sale.
You still must meet the ownership test, and you cannot have used the exclusion on another home within 2 years before the sale. IRS Publication 523 uses the term 'divorce or separation instrument,' which includes a decree of divorce or separate maintenance, a written instrument incident to such a decree, a written separation agreement, and certain support or maintenance decrees.
Sources
This is general information, not legal advice. To talk with a lawyer, use the Utah State Bar's Find a Lawyer. For free help with court forms and procedures, contact the Utah Courts Self-Help Center (888-683-0009).
Last reviewed: December 3, 2026.