Updated July 28, 2026. Quick answer: IRC §121(d)(3)(B) treats you as using the property as a principal residence for any period of ownership while your spouse or former spouse is granted use of it under a divorce or separation instrument. So a departing spouse who stays on title can preserve the exclusion — but only if the occupancy is written into the instrument.
The two rules that work together
| Provision | What it gives you |
|---|---|
| §121(d)(3)(A) | Ownership tacks for property received in a §1041 transfer — you inherit the transferor’s holding period |
| §121(d)(3)(B) | Use is credited while your former spouse occupies under the divorce instrument |
The condition is the instrument, not the arrangement. An informal understanding that one spouse stays in the house does not do it. The occupancy has to be granted under the divorce or separation instrument — which makes this a drafting point, decided while lawyers are still involved, rather than something to sort out years later when the house is sold.
The amount, and a fact worth stating plainly
The exclusion is $250,000, or $500,000 where either spouse meets the ownership test, both meet the use test, and neither is disqualified — which requires a joint return, and therefore is generally unavailable once you are divorced.
Neither figure has ever been indexed. Section 121 contains no cost-of-living provision at all. The amounts were set decades ago and have eroded in real terms every year since — which is why an exclusion that once covered almost any family home now frequently does not cover the gain on one.
The timing decision this creates
Selling while still married and filing jointly can double the exclusion. Selling after the divorce is final generally halves it for each of you. That is a scheduling question with real money attached, and it usually has to be raised before the decree rather than after.
Sources
IRC §1041(a), (b), (c) and Temp. Reg. §1.1041-1T(b) Q&A-7; §414(p); §72(t)(2)(C) and §72(t)(3)(A); §408(d)(6); §121(a), (b), (d)(3); §7703(a) and (b); §152(e); §2(b)(1)(A)(i); §32(c)(3)(A); §21(e)(5); the repeal of §§71 and 215 by Pub. L. 115-97 §11051 and its effective-date note; IRS Form 8332 (current revision). All read July 2026.
This states what the cited authority says. It is not tax advice, and retirement-plan design turns on facts about your business and your other entities that no page can see. Every dollar limit referenced here is indexed and changes annually.