Picture a home that has been in the family for thirty years. The wife moves into assisted living, while the husband continues living in the house. When he eventually sells seven years later, the couple expects the standard $500,000 married-filing-jointly exclusion under IRC §121 to shelter most of the gain.
What many families discover too late is that the exclusion has quietly dropped to $250,000. The window for the assisted living exception has closed, and a tax bill on a $620,000 gain now reflects a planning error that a single calendar calculation and one conversation with a tax advisor would have prevented.
How the Use Test Works and Where It Breaks Down
The §121 exclusion requires each spouse to meet both an ownership test and a use test. The ownership test requires that the home be owned for at least two of the five years before the sale. The use test requires that the home be used as a principal residence for at least two of those same five years. For the full $500,000 married-filing-jointly exclusion, both spouses must independently satisfy the use test.
When one spouse enters assisted living, that spouse stops accumulating days of physical presence in the home. If the sale happens more than five years after the ill spouse last lived there, that spouse has zero qualifying days in the relevant lookback window, failing the use test entirely. At that point, the couple can claim only the $250,000 exclusion available to the spouse who still qualifies. On a $620,000 gain, that reduction in exclusion produces roughly $94,000 in avoidable federal tax at the combined long-term capital gains and net investment income tax rate.
The Exception Congress Built for This Situation
IRC §121(d)(7) creates a specific carve-out for taxpayers who become physically or mentally incapable of self-care. Under this provision, time spent in a licensed care facility, including assisted living and nursing homes certified under applicable state law, counts as time spent using the home as a principal residence for purposes of the use test. IRS Publication 523 (2025) confirms that the facility must hold a license from a state or political entity to care for people in the taxpayer’s condition.
The critical requirement is that the ill spouse must have owned and used the property as their principal residence for at least one year during the five-year period immediately preceding the sale. That one-year floor is the planning pivot point. If the home is sold while the ill spouse still has qualifying use time within the lookback window, §121(d)(7) preserves the full $500,000 exclusion. If the family waits until that window has closed, the exception provides no relief and the exclusion drops to $250,000.
Worth noting: the §121 exclusion amounts of $250,000 and $500,000 have never been adjusted for inflation since they were enacted by the Taxpayer Relief Act of 1997. For a home held for decades, the excluded gain may cover far less of the actual appreciation than families assume.
The Calendar Math That Determines Everything
Consider a couple where the wife entered assisted living in January 2022 after living in the home continuously before that date. If the home is sold before January 2027, she has at least one year of qualifying use during the five-year lookback period, and §121(d)(7) allows her time in the facility to count toward the use test, preserving the full $500,000 exclusion.
If the family waits until February 2027 or later, her last day of physical presence falls outside the five-year window. The exception cannot be claimed, and the exclusion drops to $250,000. On a $620,000 gain, that one-month difference is the gap between roughly $28,500 in federal tax and roughly $88,000 to $94,000, depending on the couple’s income and applicable rate. For high-earning couples subject to both the 15% or 20% long-term capital gains rate and the 3.8% net investment income tax, the effective federal rate on the excess gain can reach 23.8%.
The care facility exception does not require an immediate sale, but it does require the sale to close while the qualifying use period remains inside the five-year lookback.
What Families Need to Do Right Now
Any family with a spouse currently in assisted living should calculate the date on which that spouse’s last day of principal residence use falls out of the five-year lookback window. That date is a hard deadline for the sale if the full $500,000 exclusion is to be preserved. Waiting for better market conditions, or simply allowing the healthy spouse to remain in the home without attention to the tax clock, can eliminate the exception entirely.
The licensed facility must be certified under applicable state or local law to care for individuals in the taxpayer’s condition. Confirming that status in writing before the sale closes is a necessary step, not an afterthought. Families relying on §121(d)(7) should document the medical incapacity, the facility’s licensing, and the full ownership and use history with a qualified tax professional before the transaction closes. Once the window passes, there is no retroactive remedy.
Editor’s note: This article updates the calendar example from a January 2021/2026 scenario to a January 2022/2027 scenario to reflect dates that remain actionable as of mid-2026, adds the 23.8% effective maximum federal rate for high-earning couples subject to both the 20% long-term capital gains rate and the 3.8% NIIT, and notes that the §121 exclusion amounts have never been inflation-adjusted since 1997, per IRS Publication 523 (2025).
Contact [email protected] for any questions or corrections.