Determine your Section 121 capital gains exclusion eligibility. Calculate full or partial exclusion based on the 2-of-5-year ownership and use test.
Section 121 of the Internal Revenue Code provides one of the most valuable tax benefits available to homeowners: the ability to exclude up to $250,000 (single) or $500,000 (married filing jointly) of capital gains from the sale of a primary residence. However, qualifying for the full exclusion requires meeting specific ownership and use tests, and the rules around partial exclusions for hardship situations add complexity.
This calculator helps you determine whether you qualify for the full exclusion, a partial exclusion, or no exclusion at all. Enter your ownership period, the time you've used the property as your primary residence, and whether any qualifying circumstances (job change, health, unforeseen) apply if you haven't met the full 2-year requirement.
The difference between qualifying and not qualifying can be tens of thousands of dollars in tax savings, making it essential to understand these rules before deciding when to sell. In some cases, waiting a few extra months to meet the threshold can save more than a year's worth of mortgage payments.
The 2-of-5-year rule seems simple, but edge cases abound: what if you rented the home first, what if you moved for a job before 2 years, what if you used a home office? This calculator clarifies your eligibility and calculates the exact exclusion amount, whether full or partial, so you can plan your sale timing with confidence.
Full Exclusion: $250,000 (single) or $500,000 (married) if owned AND used as primary residence ≥ 24 months in prior 60 months Partial Exclusion = Full Exclusion × (Months Qualifying / 24) Taxable Gain = Capital Gain − Applicable Exclusion
Result: $187,500 partial exclusion
With 18 months of ownership and use (out of 24 required), you qualify for a partial exclusion due to job change. Partial exclusion = $250,000 × (18/24) = $187,500. Since your $180,000 gain is less than the $187,500 partial exclusion, no tax is owed.
The Section 121 exclusion requires passing both an ownership test AND a use test. You must have owned the home for at least 24 months and used it as your main home for at least 24 months during the 60-month period ending on the sale date. These periods can be different — for example, you could rent a home for 2 years before buying it, then live in it as the owner for 2 more years and still qualify.
If you must sell before meeting the 2-year requirement due to a qualifying event — employment change (50+ miles), health condition, or unforeseen circumstances — you receive a partial exclusion. The partial amount is calculated by multiplying the full exclusion by the fraction of 24 months you actually met. For example, 15 months of qualifying use yields 15/24 = 62.5% of the full exclusion.
If you're close to the 2-year threshold, it may be worth waiting to sell. The tax savings from qualifying for the full exclusion can be substantial — at a 15% capital gains rate, the full $250,000 exclusion saves $37,500 in federal tax alone.
To qualify for the full Section 121 exclusion, you must have owned the property for at least 2 years AND used it as your primary residence for at least 2 years during the 5-year period ending on the date of sale. The ownership and use periods don't need to overlap.
If you sell before meeting the 2-year requirement due to a change in employment, health condition, or unforeseen circumstances (as defined by IRS regulations), you may qualify for a partial exclusion. The partial amount is prorated based on the portion of the 2-year requirement you met.
Yes, but only when filing jointly. To qualify for the $500,000 exclusion, both spouses must meet the use test (lived in the home 2+ years), but only one needs to meet the ownership test. If filing separately, each spouse can potentially exclude up to $250,000 of their own gain.
IRS regulations specify certain safe-harbor events: death, divorce, loss of employment, pregnancy with multiple children, change in self-employment status, and natural or man-made disasters affecting the home. Other circumstances may qualify on a case-by-case basis.
No, the Section 121 exclusion only applies to your primary residence. If you convert a second home to your primary residence and live there for 2+ years, you may qualify, but gain attributed to periods when it was not your primary residence after 2008 remains taxable.
You can use the exclusion as often as every 2 years. There is no lifetime limit on the number of times you can claim it, but you cannot have excluded gain from another home sale within the 2-year period before the current sale.