Job Move Home Sale Exclusion: The 50-Mile Partial-Exclusion Rule.
A job move can unlock a partial IRC §121 exclusion before you have owned and lived in the home for two years. The clean safe harbor requires the new workplace to be at least 50 miles farther from the home, then prorates up to $250,000 per spouse.

A couple buys a home, lives there for 14 months, and sells after one spouse accepts a job in another city. Their gain is $360,000, and the usual advice says they missed the two-year ownership and residence tests, so all of it is taxable. That answer can be off by $291,667. The job move home sale exclusion can prorate both spouses' IRC §121 limits when the workplace relocation is the main reason for the sale.
Job move home sale exclusion measures the change in commute.
Treas. Reg. §1.121-3(c) provides the work-move safe harbor. Compare the distance from the home sold to the old workplace with the distance from that home to the new workplace. The second distance must be at least 50 miles greater. If the old office was 15 miles from the home, the new workplace must be at least 65 miles away. A new office 55 miles away fails because the increase is only 40 miles, even though the new commute itself exceeds 50.
When there was no prior workplace, the new one must be at least 50 miles from the home. The rule can apply to a new employer, a transfer with the same employer, or the start or continuation of self-employment. It can also be triggered by the qualifying work move of a spouse, co-owner, or another person for whom the property was a residence. IRS Publication 523 uses the same 50-mile comparison and treats it as evidence that the sale's primary reason was employment.
- Gain after selling costs and adjusted basis
- $360,000
- Shortest qualifying period
- 14 months
- Proration fraction (14 ÷ 24)
- 58.333%
- Partial exclusion for each eligible spouse
- $145,833
- Combined partial exclusion
- $291,667
- Remaining taxable gain before other adjustments
- $68,333
Tax year 2026. Assumes both spouses used the home as their principal residence for the same 14 months, one spouse's qualifying job move was the primary reason for sale, neither claimed a section 121 exclusion in the prior two years, and no depreciation or nonqualified-use adjustment applies.
Fourteen months does not simply mean half of $500,000.
Publication 523's Worksheet 1 takes the shortest of three periods: residence during the five years before sale, ownership before sale, and time since the last home sale for which the taxpayer claimed an exclusion. Divide that period by 730 days or 24 months, then multiply by $250,000. On a joint return, repeat the calculation for the other spouse and add the results. The full $500,000 joint limit is not one shared bucket; it is generally two separately tested $250,000 limits.
In the example, 14 divided by 24 is 58.333%. Each spouse's partial limit is $145,833, for $291,667 combined. The couple excludes that amount and reports the remaining $68,333 of gain. If their gain were only $250,000, the same partial limit would shelter all of it. The fraction caps the exclusion, not the sale price and not the amount of cash received at closing.
The safe harbor still needs a primary reason for sale.
The regulation asks whether the employment change was the primary reason for the sale. The 50-mile safe harbor gives a clean answer when its facts are met. Outside the safe harbor, a seller can still qualify under all the facts and circumstances, including how close the sale was to the job change, whether the home became unsuitable, and whether the reason was foreseeable when the home was purchased. A longer commute that is merely annoying is a weaker file than an offer letter, relocation date, new work address, and sale listing created within weeks of each other.
The move does not have to be involuntary. Accepting a better job or beginning self-employment can qualify. Remote work is harder when the taxpayer's actual work location does not change. Calling a laptop's new room an office does not establish a workplace 50 miles farther away. Keep the offer or transfer letter, both workplace addresses, a map showing the distances measured from the home sold, moving records, and documents tying the listing decision to the employment event.
Some gain stays taxable even inside the limit.
Depreciation allowed or allowable for business or rental use after May 6, 1997, cannot be excluded under IRC §121. A seller with a home office may still owe tax on that amount under the home-office depreciation recapture rules. Periods of nonqualified use can also allocate gain outside the exclusion, particularly when a rental later becomes a residence. That separate calculation is covered in the rental-to-primary-residence rules. The job fraction does not wipe either issue away.
A seller who receives Form 1099-S generally reports the transaction even when the exclusion eliminates all gain. Taxable gain goes through Form 8949 and Schedule D, while separately allocable business gain may require Form 4797. Keep the closing statements, improvement records, and exclusion worksheet with the return. The distance test proves why a partial exclusion is available; it does not prove basis or calculate gain.

