When selling a principal residence, Section 121 of the Internal Revenue Code serves as a vital tool for managing capital gains tax liabilities. Typically, homeowners leverage this provision to exclude up to $250,000 of gain—or $500,000 for married couples filing jointly—provided they meet the two-year ownership and use requirements. However, life transitions often occur on a shorter timeline. If you find yourself needing to sell before reaching that two-year milestone, the IRS offers a pathway to a partial exclusion. This relief is specifically designed for moves necessitated by employment changes, health considerations, or specific unforeseen circumstances. Understanding these nuances is essential for protecting your home equity from unnecessary taxation.
The most frequent catalyst for a partial exclusion is a job-related move. To satisfy the IRS safe harbor for this category, your new place of work must be at least 50 miles farther from your original home than your previous workplace was. If you were not previously employed, the new job site must be at least 50 miles away from the residence being sold.

This provision is notably inclusive, extending beyond the primary taxpayer. You may qualify for the exclusion if the employment change affects your spouse, a co-owner of the property, or any other individual for whom the home served as a primary residence.
A relocation qualifies under the health exception if the primary motivation is to facilitate the diagnosis, treatment, or mitigation of a disease or injury. This also encompasses moving to provide essential care for a family member. It is important to distinguish these moves from those made for general well-being, such as moving to a more temperate climate for comfort; generally, a physician’s recommendation is required to substantiate the medical necessity. This exception applies to a broad range of qualified individuals, including the taxpayer, their spouse, co-owners, and an extensive list of extended family members.
The IRS defines unforeseen circumstances as events that could not have been reasonably anticipated prior to purchasing and occupying the home. While the agency evaluates the specific facts and circumstances of each case—such as the timing between the event and the sale—they also provide a definitive Safe Harbor list of events that automatically qualify:

The partial exclusion is calculated as a fraction of the maximum $250,000 or $500,000 limit. To determine your specific exclusion amount, identify the shortest of the following three periods: the time you owned the home, the time you used it as a primary residence, or the time since you last claimed a Section 121 exclusion. You then divide this number by 730 days (or 24 months).
For example, a single filer who lived in their home for exactly 12 months before relocating 100 miles for a new job would meet 50% of the residency requirement. Consequently, they could exclude up to $125,000 of their gain from taxable income. Determining eligibility for these exceptions requires a careful review of documentation and IRS standards. If you are preparing for a move or have recently sold a property before the two-year mark, our office can provide the technical guidance needed to calculate your exclusion and ensure full regulatory compliance. Reach out today to schedule a consultation regarding your residential tax strategy.
Beyond the defined safe harbor events, the IRS recognizes that life is inherently unpredictable. If your situation does not neatly fit into one of the established categories, you may still qualify for a partial exclusion under the broader "facts and circumstances" test. In these instances, the IRS evaluates whether the primary reason for the sale was an event that you could not have reasonably anticipated before purchasing and occupying the residence. Factors that bolster your case include a close proximity in time between the event and the sale, a significant and involuntary change in your financial ability to maintain the home, or a material change in the suitability of the property as a residence. For example, if a major infrastructure project is suddenly approved that significantly devalues your property or alters its safety, you might successfully argue that the sale was necessitated by an unforeseen circumstance.
Special considerations also exist for members of the uniformed services, the Foreign Service, and the intelligence community. Under the Military Family Tax Relief Act, these individuals may choose to suspend the five-year "look-back" period for up to ten years while they are on qualified official extended duty. This effectively means that a service member who is stationed away from their primary residence for several years can still meet the two-out-of-five-year residency requirement upon their return, or even during their absence, depending on the duration of their service. This "stop-the-clock" provision is a critical tool for military families who face frequent relocations but wish to retain the tax benefits of homeownership without being forced to sell at an inopportune time.
To further illustrate the mechanics of the partial exclusion for married couples, consider a scenario involving joint filers. Suppose a couple bought a home together and lived in it for 18 months. Due to an unexpected health crisis involving an aging parent, they needed to sell the home to move closer to a specialized care facility. Because they were in the home for 18 of the required 24 months, they are entitled to 75% of the maximum $500,000 exclusion. This provides them with a $375,000 tax-free gain limit. Even if their home’s value appreciated significantly during those 18 months, it is highly likely that their entire profit would be shielded from capital gains tax, provided the gain does not exceed that prorated threshold. This flexibility ensures that taxpayers are not unfairly penalized for prioritizing family care and medical necessity over tax-driven residency timelines.
It is also important to consider the interaction with the "once every two years" rule. Generally, a taxpayer can only use the Section 121 exclusion once every 24 months. However, if you are forced to sell a second home within that two-year window due to one of the qualifying reasons—such as a job transfer or health issue—you can still claim a partial exclusion for that second sale. The calculation remains the same, focusing on the time elapsed since the last time you claimed the exclusion. This provision acts as a safety net for those who find themselves in a series of rapid life transitions, ensuring that a second unavoidable move does not result in a disproportionate tax burden.
Finally, the importance of maintaining a comprehensive paper trail cannot be overstated. The IRS often requires taxpayers to substantiate their claims for a partial exclusion, particularly when the move is based on nuanced facts and circumstances rather than a clear-cut safe harbor like a 50-mile job move. You should retain copies of medical records, employer transfer orders, birth certificates for multiple births, or legal documents related to divorce or separation. If the move is for financial reasons, keeping records of bank statements and correspondence regarding unemployment benefits will be essential. By treating these documents as part of your permanent tax file, you ensure that you are fully prepared to justify your exclusion and protect your financial interests during any future tax review. Our firm specializes in helping clients navigate these evidentiary requirements, ensuring that every allowable dollar of gain is protected through precise calculation and diligent documentation.
Sign up for our newsletter.