When preparing to sell a primary residence, savvy homeowners look to Section 121 of the Internal Revenue Code to shield their profits from capital gains taxes. This provision allows for a significant tax break, excluding up to $250,000 in gain for individuals or $500,000 for married couples filing jointly. Generally, the IRS requires you to have owned and lived in the home as your main residence for at least two of the five years preceding the sale. However, life transitions rarely align perfectly with tax code timelines. If circumstances force a sale before you reach that 24-month milestone, you may still be eligible for a prorated relief through a partial exclusion.
The most frequent reason taxpayers seek a partial exclusion is a change in the place of employment. Whether it is a new job offer or a transfer within your current company, the IRS provides a "safe harbor" to help you avoid a tax penalty for relocating. To qualify, your new place of work must be at least 50 miles farther from your home than your previous workplace was. If you were not previously employed, the new job location must be at least 50 miles from the residence you are selling.
This relief is not limited strictly to the primary taxpayer. You may qualify for the partial exclusion if the employment change affects:

Moving for health reasons is another valid path to a partial exclusion, provided the move is deemed necessary. The IRS considers a move health-related if the primary motivation is to obtain, provide, or facilitate the diagnosis, treatment, or mitigation of a disease or injury. This also covers moves intended to provide essential medical or personal care for a family member. It is important to distinguish this from moves made for general well-being—such as moving to a sunny climate because you prefer the weather—which do not qualify. A recommendation from a physician is typically the standard for proving necessity.
The definition of a "qualified individual" regarding health issues is quite broad and includes:
The IRS recognizes that certain life events are entirely unpredictable. An "unforeseen circumstance" is defined as an event you could not have reasonably anticipated before purchasing and moving into the home. If your situation is unique, the IRS evaluates factors such as the timing of the sale relative to the event and whether your ability to maintain the home was materially impacted.
Specific events automatically qualify under the safe harbor rules, ensuring you can claim a partial exclusion without an uphill battle:
The partial exclusion is not a set dollar amount; rather, it is a mathematical fraction of the maximum $250,000 or $500,000 exclusion. To find your specific limit, you determine the shortest of the following timeframes (measured in either days or months) and divide that number by 730 days (or 24 months):
Consider a single filer who purchased a home but had to move just 12 months later for a new job 100 miles away. Because they lived in the home for exactly half of the required 24 months, they have met 50% of the requirement. Consequently, they can exclude up to $125,000 (50% of the $250,000 limit) of their gain from their taxable income.
The nuances of Section 121 can be complex, particularly when documenting unforeseen events or multi-owner situations. If you are planning a move or have recently sold your home before the two-year mark, reach out to our firm. We can assist in calculating your exclusion, ensuring your documentation is audit-ready, and helping you navigate the tax implications of your transition.
Beyond the defined safe harbors, the IRS may also evaluate other "facts and circumstances" if your situation does not perfectly align with the standard exceptions. This could involve a significant and unforeseen shift in your financial status or external factors that make the property no longer suitable or habitable for your family. In these instances, the IRS examines how closely the event and the sale are linked chronologically and whether the circumstances were genuinely beyond your control. Maintaining thorough documentation, such as financial records, medical assessments, or correspondence from an employer, is vital to supporting your claim for a partial exclusion.
There are also specific, specialized rules for members of the uniformed services, the Foreign Service, and the intelligence community. These individuals have the option to suspend the five-year ownership and use testing period for up to ten years while they are on qualified official extended duty. This extension ensures that those serving in official capacities are not unfairly penalized by the residency requirement when stationed away from their primary residence. Additionally, if you are a surviving spouse who has not remarried, you may be able to count the time your late spouse lived in and owned the home toward your own two-year requirement, provided the sale occurs within two years of their passing.
Finally, consider the interaction between the partial exclusion and the "one-sale-in-two-years" rule. Generally, the IRS restricts the use of the Section 121 exclusion to once every two years. However, if your sale is necessitated by a qualified change in employment, health, or an unforeseen circumstance, you may still be eligible for a prorated exclusion even if you claimed the benefit for a different home within the previous 24 months. This nuance is particularly beneficial for those in high-mobility careers or families facing successive life changes. Navigating these overlapping regulations requires careful planning and precise calculation to ensure you maximize your tax savings.
Sign up for our newsletter.