Partial Home-Sale Exclusion for a Job Move or Health Reason
TL;DR: If you sell your home before meeting the standard 2-out-of-5-year ownership and use test, IRC Section 121 still lets you claim a prorated exclusion when the sale is tied to a job change, a health condition, or another unforeseeable event. The math is simple: divide the months you actually owned and lived in the home by 24, then multiply that fraction by $250,000 (single) or $500,000 (married filing jointly). A homeowner who lived there 12 of the required 24 months gets 50% of the exclusion, roughly $125,000 or $250,000.
_Last reviewed: August 2026 Β· 8 min read_
Most people who sell a home before the two-year mark assume they owe tax on every dollar of gain. That assumption costs sellers thousands every year. If your move was forced by a new job, a doctor's recommendation, or a genuine unforeseen circumstance, the IRS lets you keep a slice of the same tax break full-term sellers get.
Okoniq Property Hub keeps a running log of home improvements and repair dates in one place, which matters here because your cost basis (and therefore your taxable gain) depends on documenting exactly what you spent and when.
What is the partial home-sale exclusion, exactly?
It's a prorated version of the regular Section 121 exclusion, available when you don't meet the full 2-year ownership-and-use test but your sale qualifies under one of three categories: a change in place of employment, health reasons, or unforeseeable circumstances (Treas. Reg. 1.121-3, in effect since 2003).
The full exclusion shields up to $250,000 of gain for a single filer and $500,000 for a married couple filing jointly, provided you owned and lived in the home as your main residence for 2 of the 5 years before the sale. The partial version prorates that ceiling based on how much of the 24-month requirement you actually met. Sell after 18 months instead of 24, and you get 75% of the exclusion instead of zero.
This isn't a loophole. It's built into the tax code specifically because Congress recognized people get relocated, get sick, or get divorced before their two years are up, and taxing the full gain in those cases would be unfair.
Does a job move actually qualify?
Yes, if it meets the IRS's distance safe harbor, and even if it doesn't, you may still qualify under a facts-and-circumstances test. The safe harbor is straightforward: your new job location must be at least 50 miles farther from the home you sold than your old job location was. If you didn't have a prior job, the new job just needs to be at least 50 miles from the home.
Meeting the 50-mile test means the IRS accepts the job move as a qualifying reason automatically, no further explanation needed. If you're under 50 miles but the move genuinely wasn't optional (a mandatory transfer, a layoff followed by re-employment in a different city), you can still qualify, but you'll need to document the circumstances since it falls outside the automatic safe harbor.
Self-employed people qualify too. The rule looks at where you have to work, not who signs your paycheck.
What health reasons count for the exclusion?
A health reason qualifies if a physician recommends a change of residence to treat, alleviate, or prevent a disease, illness, or injury for you, a co-owner, a spouse, or a qualifying family member living in the home. This isn't limited to the person on the deed. A parent moving in with a chronic condition, or a child needing a home closer to a specialized clinic, both count.
You don't need a formal letter stating "sell the house," but you do need documentation that ties the medical recommendation to the move. A move made purely for general health improvement, without a specific doctor's recommendation tied to your situation, generally won't qualify. This is also where good record-keeping around the home itself matters: if the sale followed something like unresolved mold from a bathroom exhaust fan that wasn't venting properly, keeping those repair and inspection records alongside your medical documentation strengthens the paper trail.
| Reason | Automatic Safe Harbor | Needs Facts-and-Circumstances Backup | |---|---|---| | Job move | 50+ miles farther from old job | Under 50 miles but still involuntary | | Health | Physician recommendation on file | General wellness move, no diagnosis | | Unforeseen event | Death, divorce, disaster, job loss | Situational, case-by-case |
How do you calculate the prorated amount?
You take the shorter of three time periods, the number of months you owned the home, the number of months you used it as your main residence, or the number of months since your last home-sale exclusion, and divide it by 24. Multiply that fraction by $250,000 or $500,000 depending on filing status.
Example: a single homeowner owned and lived in a home for 16 months before a doctor recommended relocating for a spouse's treatment. 16 Γ· 24 = 0.667. That's 66.7% of $250,000, or roughly $166,750 in excluded gain, even though the standard two-year test was never met.
Your actual gain calculation still starts with sale price minus cost basis minus selling costs. Cost basis includes the purchase price plus capital improvements, things like a new roof, a foundation repair, or replaced siding, so tracking those expenses matters even if you never planned to sell early. If you addressed foundation cracks or replaced a roof after signs it was aging faster than it should, those costs raise your basis and lower your taxable gain, on top of whatever exclusion you qualify for.
What documentation should you keep for the IRS?
Keep anything that ties the sale date to the qualifying event: a job offer letter with the start date and new location, a physician's note referencing the specific medical recommendation, or a divorce decree if that's the unforeseen circumstance. Keep closing documents from the purchase and sale, plus receipts or contractor invoices for any capital improvements made during ownership.
The IRS doesn't require you to submit this documentation with your return, but you need it available if the sale is ever questioned. A folder with dated receipts for things like drainage work or siding repairs, alongside the letter from HR or your doctor, is usually enough to substantiate the claim years later.
FAQ
Can I claim the partial exclusion if I've used the full exclusion on a previous home recently?
No, not fully. The prorated formula also caps you based on months since your last exclusion claim, so if you excluded gain on a sale 10 months ago, that 10-month figure becomes part of the calculation, not the full 24 months.
Does divorce count as an unforeseen circumstance?
Yes, divorce or legal separation is specifically listed as a qualifying unforeseen circumstance under the safe harbor in Treas. Reg. 1.121-3, no additional facts-and-circumstances test required.
What if my job move is under 50 miles but I still had to relocate?
You can still qualify, but you'll need to show facts and circumstances proving the move was work-related and not optional, such as a mandatory transfer letter or documentation of a layoff followed by new employment.
Does the partial exclusion apply to rental or investment property?
No, Section 121 only applies to a property that was your primary residence for at least part of the qualifying period. Investment and rental properties fall under different capital gains rules entirely.
How much of my gain is taxable if I don't qualify for any exclusion?
If none of the three categories apply, gain from a sale before the two-year mark is generally taxed as a capital gain, short-term if owned under a year, long-term if over a year, at your applicable capital gains rate.
This is educational information, not tax advice. Talk to a CPA or tax attorney about your specific sale date, cost basis, and whether your circumstances meet the IRS safe harbor or require a facts-and-circumstances review.
Keep reading
Get seasonal maintenance tips by email
Gutter-cleaning, filter-changing, before-it's-a-$3,000-problem guides. No schedule, no spam β unsubscribe anytime.
Prefer to dive in? Get started free β