CPAFIRE

Section 121 Partial Exclusion for Job Moves and Hardship

By · Updated

Part of: Rental Property Taxes

TL;DR: If you sell your home before meeting the 2-out-of-5-year ownership and use tests, you may still exclude part of the gain if the main reason was a change in workplace, health, or an unforeseen circumstance. The reduced exclusion is the $250,000 or $500,000 limit times the shorter of qualifying months over 24. Depreciation after May 6, 1997 and nonqualified use can still be taxed.

Educational only, not tax, legal, or investment advice. Examples are illustrations, not predictions. Rules and limits change; verify current figures and talk to a qualified professional about your situation.

Life does not always wait two years. A new job across the country, a health crisis or a divorce can force a home sale early, and for FIRE households that later rent out a former home, the timing questions get even trickier. Section 121 has a partial exclusion for exactly those cases. This guide explains the math and how it interacts with rental use, under federal rules as of October 2026 (IRS Publication 523).

CPA Warning Label: The reduced exclusion requires a qualifying primary reason, and you must be able to show it. Keep job offer letters, doctor statements or other proof with the sale records.

The full exclusion, briefly

You can exclude up to $250,000 of gain ($500,000 for most married couples filing jointly) on the sale of your main home if, during the 5 years before the sale, you owned it at least 2 years and lived in it as your main home at least 2 years, and you did not use the exclusion on another home in the 2 years before the sale (Publication 523). For the $500,000 amount, either spouse can meet ownership, but both must meet the use test and neither can have used the exclusion in the prior 2 years. These dollar limits are not inflation-indexed.

When a partial exclusion is available

If you fail the 2-year tests, or sold within 2 years of using the exclusion on another home, you may qualify for a reduced exclusion if the primary reason for the sale was one of the following (Publication 523):

  • Change in place of employment: safe harbor if the new job location is at least 50 miles farther from the home than the old job location was (or at least 50 miles from the home if you had no previous job). This applies to you, your spouse, a co-owner, or anyone whose main home is in the household.
  • Health: moving to obtain, provide or facilitate diagnosis, cure, treatment of a disease, illness or injury, or for medical care of a qualified individual. A doctor's recommendation for a change of residence is a safe harbor. Moving merely because it is good for general health does not count.
  • Unforeseeable events: safe harbors include death, divorce or legal separation, becoming eligible for unemployment compensation, a change in employment that leaves you unable to pay basic living expenses, multiple births from the same pregnancy, damage from a disaster or act of war or terrorism, and involuntary conversion of the home.

Outside the safe harbors, the IRS looks at facts and circumstances, such as how close in time the event and sale were, and whether the circumstance was reasonably foreseeable when you bought the home.

The math

The reduced exclusion is the full limit ($250,000 or $500,000) multiplied by a fraction. The numerator is the shortest of: the time you owned the home during the 5 years before sale, the time you lived in it as a main home during that period, or the time since you last used the exclusion. The denominator is 24 months (or 730 days). Publication 523 includes a worksheet.

The fraction limits the exclusion amount, not the gain. If your actual gain is lower than the reduced exclusion, all of it is excluded.

Illustration: A single taxpayer buys a home in March 2025 for $400,000 and lives in it. In March 2026 she accepts a job 300 miles away, more than 50 miles farther than her old commute, and sells in April 2026 for $460,000 after $25,000 in selling costs. Gain: $35,000. She owned and used the home 13 months. Reduced exclusion: $250,000 x 13 / 24 = $135,417. Since the $35,000 gain is below that, she excludes all of it.

Same facts but a $200,000 gain (rapid appreciation in a hot market): she excludes $135,417 and reports $64,583 as gain. Because she owned the home more than one year (13 months), that portion is long-term capital gain. Had she sold at 11 months, the taxable part would be short-term and taxed at ordinary rates.

Former home turned rental

Many FIRE investors move out and rent the old home. The 2-out-of-5 rule means you have up to 3 years of rental after moving out and still meet the use test. If you rent longer, you may lose the full exclusion; a partial exclusion only applies if the sale itself is driven by a qualifying reason, not simply because you moved out earlier.

Two rules then shrink the benefit even when you qualify:

  • Depreciation after May 6, 1997: gain equal to depreciation claimed or allowable on the home is never excluded. It is taxed as unrecaptured Section 1250 gain at up to 25% (Publication 523 and IRS Topic 409).
  • Nonqualified use: for periods after 2008 when the home was not your main home (such as a rental before you moved in), gain is allocated to those periods and is not excludable. Periods after the last date you used the home as a main home, within the 5-year window, are not nonqualified use. That is why a home that becomes a rental after you move out often still qualifies fully if sold within 3 years.

Rental converted to home

The reverse case, buying a rental and then moving in, is where nonqualified use bites. Suppose you rent a property for 3 years, then live in it 2 years and sell. The ownership and use tests are met, but 3 of 5 years were nonqualified use, so 60% of the gain (excluding depreciation, which is taxed separately) is not excludable. Publication 523 walks through the allocation. Short ownership plus a qualifying event can combine both rules: the reduced exclusion limit and the nonqualified use allocation both apply.

Documentation and audit risk

The IRS does not pre-approve a partial exclusion. You claim it on Form 8949 and Schedule D if you must report the sale, which you do if you received a Form 1099-S or have gain that is not fully excluded. Keep:

  • The offer letter and job location, with a map showing the distance test.
  • A physician's written recommendation for health moves.
  • Court papers, death certificates, unemployment records, or insurance claims for unforeseen events.
  • Closing statements for purchase and sale, improvement receipts, and any depreciation schedule if the home was ever rented or used for business.

An examiner will focus on whether the event was the primary reason and whether it was foreseeable. Selling first and then finding a qualifying reason is a weak position.

Planning moves

  • Count months before listing. If you are close to 24 months of ownership and use, waiting a few weeks may turn a partial exclusion into a full one.
  • Married couples: if only one spouse meets the tests, the limit is figured separately for each spouse as if unmarried, then added together (Publication 523).
  • Moving out to rent: calendar the 3-year deadline after you move out. Selling a former home after that window usually means losing the exclusion entirely.
  • Combining with a 1031: a former home that became a rental may qualify for both the exclusion and a like-kind exchange on the rest of the gain.

Home office and mixed use

If part of the home was used for business within the living space, such as a home office, you do not need to allocate gain, but you still cannot exclude depreciation taken after May 6, 1997. If the business portion was a separate structure, like a detached rental unit, you generally treat it as a separate property and allocate the gain (Publication 523).

FAQ

How far must a new job be to qualify for a partial exclusion?

Under the safe harbor, the new place of work must be at least 50 miles farther from the home you sold than the old place of work was. If you had no previous workplace, the new one must be at least 50 miles from the home.

Is the partial exclusion a fraction of my gain?

No. The fraction applies to the $250,000 or $500,000 limit. If your actual gain is less than the reduced limit, the entire gain can be excluded.

Can I exclude depreciation from renting my home?

No. Gain equal to depreciation claimed or allowable after May 6, 1997 is not excludable and is generally taxed at up to 25%.

Does renting my home after I move out cause nonqualified use?

Generally not, if the rental period comes after your last use as a main home and you sell within the 5-year window. Rental use before you move in is nonqualified use.

Do I need to report the sale if all gain is excluded?

Only if you received a Form 1099-S or choose to report. If any gain is taxable, you report the sale on Form 8949 and Schedule D.

Sources & fact-check notes

Figures checked October 27, 2026. Rules and limits change; verify with the official source before acting.