Under IRC §121, a single filer can exclude up to $250,000 of gain on the sale of their principal residence. Married joint filers can exclude up to $500,000. For most homeowners, that eliminates federal tax on the sale entirely. But the rules have specific qualifying tests, and the edges of those tests catch more sellers than most agents realize.
The basic §121 rule
Gain on the sale of a principal residence is excluded from income up to the applicable limit — $250,000 for single filers or married filing separately, $500,000 for joint filers — when the taxpayer meets the ownership and use tests. The exclusion applies to the federal income tax on the gain; state rules vary.
Gain is calculated as the sale price minus the adjusted basis (typically purchase price plus capital improvements minus depreciation taken). For a home bought at $300,000 and sold at $600,000, with $50,000 in capital improvements, the gain is $250,000 — entirely excluded for a single qualifying filer, entirely excluded for a joint qualifying filer.
Gain above the exclusion is taxed as long-term capital gain (assuming the ownership period exceeds one year, which the §121 tests effectively require).
The ownership and use tests
To claim the §121 exclusion, the taxpayer must satisfy two tests:
The ownership test
The taxpayer must have owned the home for at least two years during the five-year period ending on the date of sale. The two years need not be consecutive.
The use test
The taxpayer must have used the home as their principal residence for at least two years during the five-year period ending on the date of sale. Again, the two years need not be consecutive, and they don't have to be the same two years as the ownership period.
The frequency limit
The exclusion can be claimed only once every two years. A taxpayer who sold a qualifying principal residence 18 months ago cannot claim the full exclusion on a second sale.
Joint filing rules
For the $500,000 joint exclusion, either spouse can meet the ownership test, but both spouses must meet the use test, and neither spouse can have excluded gain on a prior sale within the two-year period.
Reduced exclusion for hardship
When a taxpayer doesn't meet the full two-year tests but sold because of specific qualifying circumstances, a prorated exclusion is available under §121(c). The qualifying circumstances include:
- A change in place of employment that meets the IRS's distance requirements.
- A health condition making the home unsuitable or requiring medical care elsewhere.
- Certain unforeseen circumstances — death, divorce, multiple births from the same pregnancy, natural disaster, involuntary conversion of the home.
The reduced exclusion is calculated by prorating the full exclusion over the actual ownership or use period divided by the required two-year period. A homeowner who sold after 12 months due to a qualifying job relocation would receive half the exclusion — $125,000 single or $250,000 joint.
Traps that disqualify sellers
Rental periods within the ownership window
A home used as a rental for a portion of the five-year lookback period may have some of the gain allocated to non-qualified use and excluded from the §121 benefit. See the non-qualified use discussion below.
Depreciation recapture
Depreciation claimed on any rental or business use of the home (including home office depreciation) is recaptured at a maximum 25% rate regardless of the §121 exclusion. A seller who claimed $30,000 in depreciation on a rental portion of the property will owe up to $7,500 in recapture tax even if the gain otherwise qualifies for exclusion.
Second homes
§121 applies only to the principal residence. A vacation home or second home does not qualify. Taxpayers sometimes believe that a property they've owned for decades automatically qualifies; it does not unless it was their principal residence for the required two years.
Inherited property
A home inherited and then sold shortly after is typically handled under the stepped-up basis rules (§1014), which usually produce little or no taxable gain, rather than through §121. The decedent's use of the home doesn't transfer to the heir for §121 purposes.
Nominee or trust ownership
Homes held in certain types of trusts can complicate the ownership test. A revocable grantor trust typically doesn't affect §121 eligibility; an irrevocable trust may. Trust ownership cases require specific analysis.
Prior §121 use within two years
The frequency limit catches sellers who moved, sold their prior home (taking the exclusion), bought a new home, and then need to sell again due to changed circumstances — all within two years.
Non-qualified use and partial exclusion
Since 2009, periods of non-qualified use after December 31, 2008 must be allocated out of the exclusion. Non-qualified use is generally any period when the home was not the taxpayer's principal residence. The allocation is:
Non-qualified use gain = Total gain × (Non-qualified use period / Total ownership period).
This portion of the gain is taxable regardless of the §121 tests being met. The remaining gain is eligible for the exclusion, subject to the applicable limit.
Conversion of a rental to a principal residence is a common fact pattern. A taxpayer who owned a home as a rental from 2015 to 2020, then moved into it as their principal residence from 2020 to 2023, and sold it in 2023 would have 5 years of non-qualified use and 3 years of qualified use — roughly 62.5% of the gain allocated to non-qualified use (taxable) and 37.5% eligible for exclusion.
Reporting and when it matters
A sale of a principal residence that qualifies entirely for exclusion under §121 generally does not need to be reported on the tax return if the taxpayer received no Form 1099-S at closing. Most residential closings do generate a 1099-S. When the 1099-S is issued, the sale must be reported on Schedule D and Form 8949 — even when the exclusion zeroes out the taxable gain.
Unreported sales with 1099-S filings trigger IRS notices (usually CP2000). The notice proposes additional tax based on the 1099-S amount with no basis and no exclusion. Responding typically requires filing an amended return or responding to the notice with full gain calculation and §121 claim.
For agents, the practical guidance is: tell sellers to expect the 1099-S, tell them the sale needs to be reported even if no tax is owed, and recommend a tax preparer who understands §121 for the year of sale.