Section 121 Home Sale Exclusion: $250K / $500K Explained

Ownership & Use Tests  •  Partial Exclusion  •  Vacation Home Conversion  •  Home Office Recapture  •  Updated 2026
IRC §121 Treas. Reg. §1.121 Updated 2026
← cpavalidated.com

The Section 121 exclusion is one of the most valuable provisions in the tax code for individual taxpayers. A married couple selling their primary residence can exclude up to $500,000 of capital gain from income - tax free - as long as they meet the ownership and use tests. For the typical homeowner who has owned their home for years in an appreciating market, this exclusion can eliminate the entire federal tax bill on the sale. But the rules have important nuances - vacation homes, home offices, non-qualified use periods, and the two-year limit on using the exclusion all require attention.

The Basic Rule - IRC §121(a)

A taxpayer may exclude from gross income gain from the sale or exchange of property if, during the 5-year period ending on the date of sale, the taxpayer owned the property for at least 2 years (the ownership test) and used the property as a principal residence for at least 2 years (the use test). The maximum exclusion is $250,000 per taxpayer ($500,000 for married couples filing jointly if both spouses meet the use test and at least one meets the ownership test). The exclusion can only be used once every 2 years.

Ownership Test and Use Test: The Details

The 2-year ownership and use requirements do not need to be concurrent - they just both need to be satisfied within the 5-year lookback window. A taxpayer who owned a home for 3 years, rented it out for 2 years, and moved back in for 2 more years before selling would meet both tests (owned 5 years, used as primary residence for 4 non-consecutive years within the 5-year window).

For married couples, the $500,000 exclusion requires that: both spouses meet the use test (2 of the prior 5 years as principal residence) and at least one spouse meets the ownership test. If one spouse fails the use test (for example, moved in after marriage and has only lived there 18 months at time of sale), the couple can still claim the combined exclusion for the qualifying spouse - the non-qualifying spouse's $250,000 exclusion is available, and the qualifying spouse claims their $250,000, for a total of $250,000. Wait until both spouses meet the use test to claim the full $500,000.

The day count is calendar days, not tax years. 730 days of use as a principal residence within the 5-year window satisfies the 2-year use test. Days of temporary absence (vacations, short work assignments) generally count as days of use as long as the taxpayer intends to return and the home is not rented.

Partial Exclusion for Unforeseen Circumstances

If a taxpayer sells before meeting the 2-year ownership or use test, a partial exclusion is available if the sale was primarily due to a change in employment, health, or unforeseen circumstances. The partial exclusion is proportional: the fraction of the 2-year test that was met, multiplied by the full exclusion amount.

Partial Exclusion Calculation
=Days of qualifying useActual days of ownership or use (whichever is less)
/730 days (2 years)
xFull Exclusion Amount$250,000 (single) or $500,000 (MFJ)
=Partial Exclusion Available

Qualifying unforeseen circumstances include: involuntary job loss, job transfer requiring a commute of more than 50 miles, death of a qualifying family member, divorce or legal separation, multiple births from a single pregnancy, natural or man-made disaster, acts of terrorism, and condemnation. The IRS has a safe harbor for these situations - circumstances outside these categories can still qualify but require a facts-and-circumstances analysis.

Non-Qualified Use: The Post-2008 Trap

For sales after 2008, periods of non-qualified use during the ownership period reduce the available exclusion. Non-qualified use is any period after 2008 when the property was not used as the principal residence of the taxpayer or spouse (with limited exceptions for temporary absences of up to 2 years, post-service use, and certain other circumstances).

The reduction in the exclusion is proportional: the ratio of aggregate non-qualified use periods to total ownership period, multiplied by the total gain, equals the non-excludable portion. This primarily affects taxpayers who converted a vacation home or rental property to a principal residence.

Vacation Home Conversion

A taxpayer who converts a vacation home to a principal residence can eventually qualify for the §121 exclusion - but the non-qualified use rules limit the excludable gain for periods when the home was not the principal residence after 2008. The 5-year lookback for the use test works from the sale date backward, so a 3-year rental followed by 2 years as a primary residence satisfies the use test - but the 3 years of rental are non-qualified use that reduces the excludable gain proportionally.

Post-use rental does not trigger non-qualified use. The non-qualified use rules apply to periods before the home is used as a principal residence, not after. If a taxpayer lives in a home as their primary residence for 2 years and then rents it out for 2 years before selling, those 2 rental years do not reduce the exclusion - the 5-year window looks back from the sale date and the 2 years of qualifying use are within that window. Only non-qualifying use that precedes the qualifying use reduces the exclusion.

Home Office: The §121 Interaction

A taxpayer who has claimed a home office deduction faces two issues on sale. First, depreciation deducted for the home office must be recaptured as §1250 unrecaptured gain at the 25% rate - this recapture is not sheltered by the §121 exclusion. Second, if the home office is a separate structure (not within the main dwelling), the §121 exclusion does not apply to the gain allocable to that separate structure.

For home offices within the home itself (a dedicated room), the exclusion applies to the entire property including the office portion - except for the depreciation recapture. The taxpayer cannot avoid the recapture by not deducting the home office in prior years if they were entitled to the deduction (the IRS taxes "allowed or allowable" depreciation, not just depreciation actually claimed).

The Once-Every-Two-Years Limitation

The §121 exclusion cannot be used more than once every 2 years. If a taxpayer sells their home and uses the exclusion, they must wait at least 2 years before claiming the exclusion again on a different home. The 2-year period runs from the most recent sale on which the exclusion was used - not from when the new home was purchased.

Strategically timing the sale. For taxpayers who have already used the exclusion recently, the 2-year wait is mandatory. For taxpayers approaching retirement planning, using the exclusion on a high-gain urban home and then purchasing a retirement home in a lower-cost area - and then using it again after 2 years of use there - can shelter multiple six-figure gains over a decade. The unlimited-use nature of the exclusion (once every 2 years, indefinitely) is an underappreciated planning tool.
Authority: IRC §121 (exclusion of gain from sale of principal residence); IRC §121(a) (exclusion amount - $250,000 per taxpayer); IRC §121(b)(2) (maximum exclusion for married couples - $500,000 if both meet use test and at least one meets ownership test); IRC §121(b)(3) (once-every-two-years limitation); IRC §121(c) (partial exclusion for change in employment, health, or unforeseen circumstances - proportional formula); IRC §121(b)(4) (application to surviving spouse - increased exclusion for 2 years after death); IRC §121(d)(6) (non-qualified use period - reduces excludable gain proportionally for post-2008 non-use); IRC §121(d)(10) (denial of exclusion for gain attributable to depreciation after May 6, 1997 - §1250 recapture); Treas. Reg. §1.121-1 (requirements for exclusion - ownership and use tests); Treas. Reg. §1.121-3 (reduced maximum exclusion for unforeseen circumstances - safe harbors and general rule); Treas. Reg. §1.121-4 (special rules including separate structures, involuntary conversions, vacation homes); Rev. Proc. 2005-14 (combining §121 and §1031 in certain circumstances); IRS Publication 523 (Selling Your Home - comprehensive taxpayer guide).
tk.cpa AI Lab
Mission Privacy tk.cpa
Nothing on this page constitutes legal, tax, accounting, or professional advice, and no professional relationship is created by your use of this website. CPA Validated is an educational website for information purposes only. Information should be verified against current primary authority, including the Internal Revenue Code, Treasury regulations, IRS guidance, and applicable state or local law, before being relied upon or acted on. Calculator outputs are estimates only and may be incomplete or inaccurate depending on the facts, assumptions, and inputs used. CPA Inc. and tk.cpa disclaim liability to the fullest extent permitted by law. Full disclaimer: cpavalidated.com/disclaimer.html