The Section 121 exclusion is the reason most people who sell the house they live in never think much about capital gains tax at all. It allows an individual to exclude up to $250,000 of gain, and a married couple filing jointly up to $500,000, on the sale of a primary residence, provided the ownership and use requirements are met. It's one of the most generous provisions in the tax code for an ordinary homeowner, and it's also one of the most frequently misapplied, because the requirements sound simpler than they actually are in edge cases.
The two-out-of-five-year test in plain terms
To qualify, the seller must have owned the home and used it as their primary residence for at least 24 months (which don't need to be consecutive) out of the 5 years immediately before the sale. A homeowner who lived in a Charlotte house for three years, rented it out for eighteen months while relocating for work, then moved back in for six months before selling would need to check the math carefully, since the rental period counts against the five-year lookback window even though it doesn't disqualify the sale outright as long as the total use requirement is still met within that window.
The exclusion can generally only be used once every two years
A seller who has already claimed the Section 121 exclusion on a different home sale within the two years before the current sale generally cannot claim it again, even if the new sale otherwise meets the ownership and use tests. This matters for owners who move frequently, whether for work, downsizing, or investment reasons, and it means the exclusion needs to be planned around rather than assumed to be automatically available on every sale.
Partial exclusions exist for sales that don't fully qualify
A seller who doesn't meet the full two-year test, because of a job change, a health issue, or another qualifying unforeseen circumstance recognized by the IRS, may still be eligible for a reduced exclusion, prorated based on the portion of the two-year period actually met. This isn't automatic; it requires the sale to be primarily for one of the recognized qualifying reasons rather than simple personal preference, and documenting the reason matters if the return is ever reviewed.
Where the exclusion stops and other planning starts
Gain above the $250,000 or $500,000 threshold, or gain that doesn't qualify because the property wasn't a primary residence, is taxed as a standard capital gain. For that portion, or for a property that was never eligible for Section 121 at all, such as a rental or investment property, a 1031 exchange becomes the relevant deferral tool instead, allowing an investor to roll proceeds into replacement investment property through a qualified intermediary within the standard 45-day and 180-day windows. The two provisions serve different property types and generally don't overlap on the same sale, though a property that changes character over time, from rental to primary residence or the reverse, can end up touching both sets of rules across its ownership history.
- Confirm the two-year ownership and use test against the actual five-year lookback window
- Check whether the exclusion was already claimed on a different sale in the past two years
- Document any qualifying unforeseen circumstance if the full two-year test isn't met
- Separate any rental-period depreciation from the excludable gain, since recapture still applies
Common 1031 Exchange Questions
Does the two years of use need to be continuous?
No. The 24 months of use can be broken into shorter periods, as long as they total at least two years within the five years before the sale. Short absences for vacation or temporary work assignments generally don't interrupt the count.
Can the exclusion be claimed on a vacation home if the owner eventually moves in full time?
Yes, once the property has genuinely served as the owner's primary residence for the required two years within the five-year window, though gain allocable to earlier periods of nonqualified use, generally time as a vacation home after 2008, may not qualify for the exclusion even then.
What counts as a qualifying unforeseen circumstance for a partial exclusion?
The IRS recognizes categories including certain job relocations, health-related moves, and other specific unforeseen events, generally requiring the sale to be primarily motivated by that circumstance rather than simple convenience or preference.
Is the Section 121 exclusion available on investment property at all?
No. It applies only to a primary residence meeting the ownership and use tests. Investment or business-use property doesn't qualify, which is why a 1031 exchange, not Section 121, is the deferral tool for that category of property.
Does North Carolina recognize the federal Section 121 exclusion for state income tax purposes?
Yes. North Carolina generally follows the federal exclusion in calculating state taxable income, so gain excluded federally is also excluded from the state's flat-rate income tax calculation on the sale.




