Section 121 of the tax code is the reason most people who sell the home they actually live in never owe capital gains tax on it. It's not automatic paperwork the closing attorney files; it's a specific set of tests the seller has to meet, and getting one of them wrong is how a Garden City or Huntington homeowner ends up owing tax on a sale they assumed was fully sheltered.
The Ownership and Use Tests
The seller must have owned the home for at least two of the five years before the sale, and used it as their main residence for at least two of those same five years. The two years don't need to run consecutively and don't need to be the same two years for a couple, though at least one spouse needs to meet the ownership test and both generally need to meet the use test to claim the full 500,000 dollar joint exclusion. Short absences, vacations, a hospital stay, a temporary work assignment, generally still count as periods of use as long as the home remained the person's primary residence.
The Exclusion Amounts and the Frequency Limit
A single filer can exclude up to 250,000 dollars of gain; a married couple filing jointly can exclude up to 500,000, assuming both meet the requirements above. The exclusion generally can't be claimed more than once in a two-year period, so a homeowner who sold a previous residence and claimed the exclusion within the last two years typically has to wait before a new sale qualifies again.
Partial Exclusion for an Unqualifying Sale
A seller who doesn't fully meet the two-year tests, because of a job relocation, a health issue, or another qualifying unforeseen circumstance the IRS recognizes, may still claim a reduced exclusion based on the fraction of the two-year period actually met. This isn't automatic either; the circumstances have to fit IRS guidance on what counts, and documentation matters if the return is ever reviewed. A Long Island seller relocating for a new job after only fourteen months in a home, for example, may qualify for a partial exclusion rather than none at all.
Where This Intersects With Rental Use and Depreciation
A home that was rented out for part of the ownership period generally has the exclusion reduced for that nonqualified use, and any depreciation claimed during the rental period is subject to recapture regardless of how much exclusion applies to the rest of the gain. This comes up often on Long Island properties that started as a rental and later became a primary residence, or the reverse, and it's a calculation worth running with a CPA before listing rather than assuming the standard exclusion applies cleanly.
The nonqualified use fraction is generally based on the ratio of rental time to total ownership time after 2008, so a property with a short rental stretch early in a long ownership period usually loses less of the exclusion than one converted to a rental more recently. Getting the timeline right, down to the month, is what separates an accurate exclusion claim from one that invites an IRS notice later.
Common 1031 Exchange Questions
Do you need to have lived in the house for two years in a row to qualify?
No, the two years of use don't need to be consecutive. They just need to add up to at least two of the five years immediately before the sale, with any reasonable gaps still counting as ownership as long as it remained your primary residence.
you sold a house last year and used the exclusion. Can you use it again this year?
Generally not. The exclusion typically can't be claimed more than once within a two-year period, so you'd usually need to wait until that window has passed before a new sale qualifies again.
What counts as an unforeseen circumstance for a partial exclusion?
The IRS recognizes situations like a job relocation, certain health conditions, divorce, or other specific hardships. Not every reason for an early sale qualifies, so it's worth confirming with a CPA before assuming a partial exclusion applies.
Does the exclusion apply if you and your spouse file separately?
Each spouse can generally claim up to 250,000 dollars individually if filing separately and each independently meets the ownership and use tests, rather than the full 500,000 dollar joint amount.
If your house was a rental before you moved in, does the full exclusion still apply?
Generally not the full amount. The exclusion is typically reduced for the portion of ownership classified as nonqualified rental use, and depreciation taken during that period is still subject to recapture separately.



