Sale of Personal Residence

A real estate agent stands outside with a 'for sale' sign and rolled blueprint, suggesting a property for sale.

Under Internal Revenue Code Section 121, taxpayers can permanently exclude up to $250,000 (single filers) or $500,000 (married filing jointly) of capital gains on the sale of a primary residence.

To qualify for the full exemption, you must satisfy the standard two-part test:

  • Ownership Test: Owned the home for at least 2 years (24 months or 730 days) during the 5-year period ending on the sale date.

  • Use Test: Lived in the home as your primary residence for at least 2 years during that same 5-year window.

  • Frequency Limit: Have not used the Section 121 exclusion for another home sale within the prior 2 years.

If you fail to meet the 2-year ownership and use requirements, you can still qualify for a partial (pro-rated) tax exclusion if your primary reason for selling falls under specific IRS Treasury Regulation ยง 1.121-3 Safe Harbor rules.

The Three Section 121 Safe Harbor Categories

When an event fits a defined safe harbor, the IRS automatically deems the sale to be for an allowable reason without requiring complex proof.

1. Change in Place of Employment Safe Harbor

The primary reason for your move must be job-related for you, your spouse, a co-owner, or a resident of the home.

  • The 50-Mile Distance Test: Your new place of work must be at least 50 miles farther from the home sold than your old work location was.

  • Unemployed / New Job: If you had no previous workplace, the new workplace must be at least 50 miles away from the home being sold.

2. Health-Related Reasons Safe Harbor

The move must be to obtain, provide, or facilitate the diagnosis, cure, mitigation, or treatment of a disease, illness, or injury, or to provide care for a family member.

  • Physician Recommendation Safe Harbor: A sale is automatically deemed health-related if a licensed physician recommends a change of residence for health reasons.

  • Note: Moves made for general health and well-being (e.g., moving to a warm climate because you prefer it) do not qualify.

3. Unforeseen Circumstances Safe Harbor

An event is an “unforeseen circumstance” if it could not have been reasonably anticipated before purchasing and occupying the home. The IRS automatically accepts the following events under the safe harbor:

  • Casualty or Disaster: Involuntary conversion, condemnation, natural or man-made disasters, or acts of terrorism damaging the home.

  • Death: Death of the taxpayer, spouse, co-owner, or a resident of the home.

  • Divorce or Legal Separation: Formal divorce or legal separation.

  • Employment Disruption: Involuntary loss of employment (qualifying for unemployment compensation).

  • Inability to Pay Basic Expenses: A change in employment status that renders the taxpayer unable to pay basic household living expenses (food, housing, taxes).

  • Multiple Births: Multiple births resulting from the same pregnancy.

How the Partial Exclusion is Calculated

If you qualify under a safe harbor, your tax-free gain limit is pro-rated based on the duration of your qualifying ownership and use.

$$\text{Pro-Rated Exclusion Cap} = \text{Full Cap } (\$250\text{k or } \$500\text{k}) \times \frac{\text{Months (or Days) Owned and Used}}{\text{24 Months (or 730 Days)}}$$

Example Calculation

  • Status: Single filer (Full exclusion cap = $250,000).

  • Timeline: You owned and lived in the home for 18 months before moving to take a job 75 miles away.

  • Pro-Rated Fraction: $18 / 24 = 75\%$.

  • Maximum Partial Exclusion: $75\% \times \$250,000 = \mathbf{\$187,500}$.

  • Tax Result: Up to $187,500 of profit on the sale is completely tax-exempt.

Non-Safe Harbor “Facts and Circumstances” Test

If your situation does not match a strict safe harbor rule, you may still qualify for a reduced maximum exclusion if you can prove to the IRS under a facts-and-circumstances test that the primary reason for your move was an unforeseen event or health necessity. Factors the IRS considers include:

  1. The event and the home sale occurred close in time.

  2. The event was not reasonably foreseeable when you acquired the property.

  3. Your financial ability to maintain the home was materially impaired.

Leave a Comment