§121 Home Sale Exclusion: Deep Dive

$250,000 Single / $500,000 MFJ  •  Not Inflation-Indexed Since 1997  •  OBBBA Did Not Modify  •  2-Of-5 Ownership And Use Tests  •  Surviving Spouse $500K Within 2 Years  •  Nonqualified Use Trailing Exception  •  Depreciation Recapture Max 25%
IRC §121 / Reg §1.121-1, §1.121-3 / §1411 NIIT coordination Taxpayer Relief Act 1997; Housing Assistance Tax Act 2008 Updated 2026
← Real Estate

Section 121 (Exclusion of gain from sale of principal residence) excludes up to $250,000 of gain (single, head of household, married filing separately) or $500,000 (married filing jointly) on the sale of a taxpayer's PRINCIPAL RESIDENCE. Enacted by the Taxpayer Relief Act of 1997 (P.L. 105-34) replacing the prior rollover/§1034 and one-time §121 over-55 regime, the exclusion has NOT been adjusted for inflation since 1997 - the $250K/$500K caps have remained static for nearly three decades despite massive home price appreciation. Eligibility requires the OWNERSHIP TEST (taxpayer owned the property at least 2 of the last 5 years preceding sale) AND the USE TEST (taxpayer used the property as principal residence at least 2 of the last 5 years). The 2-year periods do NOT need to be continuous and need not coincide; total of 24 months (or 730 days) suffices. The exclusion is available no more than once every 2 years (§121(b)(3)). Special rules: SURVIVING SPOUSE retains $500,000 cap if home sold within 2 years of deceased spouse's death and other spouse met §121(2)(A) requirements immediately before death (§121(b)(4)). NONQUALIFIED USE under §121(b)(5) (Housing Assistance Tax Act of 2008, effective for periods of nonqualified use AFTER January 1, 2009) - reduces exclusion proportionally for periods when property was NOT used as principal residence (rental, second home, vacant), EXCEPT post-last-use periods within the 5-year window (i.e., living in home then renting before sale = trailing period excluded from nonqualified use calculation). DEPRECIATION RECAPTURE: §121(d)(6) - any depreciation taken after May 6, 1997, is NOT excluded; recapture as ordinary income up to 25% under §1(h)(1)(D) as unrecaptured §1250 gain. PARTIAL EXCLUSION under §121(c)(1) available even when 2-of-5 tests not met if sale results from CHANGE OF EMPLOYMENT (50+ mile new workplace test under Reg §1.121-3(c)), HEALTH (physician recommendation per §1.121-3(d)), or UNFORESEEN CIRCUMSTANCES (death, divorce, multiple birth, employment loss eligibility for unemployment, change rendering home unaffordable, casualty, condemnation, terrorism per §1.121-3(e)). MILITARY: 10-year suspension of 5-year clock for qualified extended duty under §121(d)(9). LIKE-KIND EXCHANGE INTERACTION: Property acquired via §1031 cannot use §121 until owned 5 years (§121(d)(10)). NIIT: §121 excluded gain NOT subject to §1411 net investment income tax; non-excluded portion IS subject.

§121 in One Paragraph

Exclusion amount: $250,000 single / HOH / MFS; $500,000 MFJ. Not indexed for inflation since 1997. OBBBA did NOT change these limits.

Eligibility: Owned 2-of-5 years AND used as principal residence 2-of-5 years (the 5-year period ends on date of sale). 24 total months suffices; need not be continuous.

Frequency: Available no more than once every 2 years (§121(b)(3)).

Surviving spouse: $500K cap available if sale within 2 years of deceased spouse's death AND requirements met immediately before death (§121(b)(4)).

Depreciation recapture: Depreciation taken after May 6, 1997 NEVER excludable; taxed at max 25% as unrecaptured §1250 gain. Form 4797 reporting.

Partial exclusion safe harbors: Employment 50-mile test, physician health letter, unforeseen circumstances list - PRORATE the $250K/$500K exclusion.

The Ownership and Use Tests

Test ElementDetail
Ownership testTaxpayer owned the home for at least 24 months out of the 60 months ending on date of sale
Use testTaxpayer used home as principal residence at least 24 months out of same 60 months
5-year periodEnds on date of sale; rolling window
Days vs months730 days suffices (Reg §1.121-1(c)(1)); 24 months calendar measurement also acceptable
Need not be continuousMultiple periods aggregating to 24 months work
Need not coincideOwnership and use periods may be different periods within 5-year window
MFJ requirementsEITHER spouse meets ownership test; BOTH spouses must meet use test; NEITHER spouse used §121 exclusion in prior 2 years
Short temporary absencesVacation, business travel, sabbaticals - counted as use periods (Reg §1.121-1(c)(2))
Out-of-residence careIf physically/mentally incapable of self-care, residence in care facility OK if owned home and used as principal residence at least 1 year before incapacity (§121(d)(7))

2026 Capital Gains Rates - Non-Excluded Gain Taxation

Filing Status0% LTCG Bracket15% LTCG Bracket20% LTCG Bracket
Single (2026 per Rev. Proc. 2025-32)Up to $49,450$49,451 - $545,500Above $545,500
MFJ (2026)Up to $98,900$98,901 - $613,700Above $613,700
HOH (2026)Up to $66,150$66,151 - $579,650Above $579,650
MFS (2026)Up to $49,450$49,451 - $306,850Above $306,850
Unrecaptured §1250 gain (depreciation recapture)Maximum 25% rate regardless of bracket - §1(h)(1)(D)
NIIT §1411 - non-excluded gainAdditional 3.8% if MAGI exceeds $200K single / $250K MFJ / $125K MFS

Surviving Spouse $500K Exclusion - §121(b)(4)

Surviving Spouse RequirementDetail
Authority§121(b)(4) added by Pub. L. 110-142 (2007)
Filing statusUnmarried individual whose spouse is deceased on date of sale
Time limitSale within 2 YEARS of deceased spouse's date of death
RequirementDecedent and survivor met §121(b)(2)(A) requirements (MFJ $500K eligibility) immediately before death
EffectSurviving spouse gets $500,000 exclusion (instead of $250,000)
Not remarriedSurvivor must be unmarried on date of sale (remarriage disqualifies)
Coordination with §1014 step-upIf property held jointly: ½ steps up to FMV at death (separately-owned would step up 100%); community property both halves step up at first death; spousal step-up reduces gain available for §121 exclusion
PlanningSell home within 2-year window after spouse's death to capture $500K (vs $250K for unmarried)

Nonqualified Use Ratio - §121(b)(5)

For sales after December 31, 2008, periods of NONQUALIFIED USE (after January 1, 2009) reduce the exclusion proportionally. The most subtle and trap-laden §121 provision.

Nonqualified Use ElementDetail
Effective datePeriods of nonqualified use AFTER January 1, 2009; pre-2009 periods NEVER count as nonqualified
DefinitionPeriod property is NOT used as principal residence of taxpayer, spouse, or former spouse
Common examplesRental period; second home period; vacant period
TRAILING period exception §121(b)(5)(C)(ii)(I)Period within 5-year window AFTER last date of use as principal residence is NOT nonqualified use
Military exception §121(b)(5)(C)(ii)(II)Up to 10 years aggregate qualified official extended duty (under §121(d)(9)) - NOT nonqualified use
Temporary absence exception §121(b)(5)(C)(ii)(III)Up to 2 years aggregate temporary absence for change of employment, health, or unforeseen circumstances - NOT nonqualified use
Allocation formula §121(b)(5)(B)Nonqualified gain = Total gain × (Periods of nonqualified use ÷ Total period of ownership)
Important: trailing periods only protect post-use periodsIf taxpayer rented BEFORE moving in, then sold - rental period IS nonqualified. Only post-last-use rental gets trailing exception.
Coordination with depreciation §121(b)(5)(D)Recapture (§121(d)(6)) applied FIRST; nonqualified use allocation applied to remaining gain; depreciation gain not subject to nonqualified use ratio

Worked Example - Nonqualified Use Trap

Worked Example - Rental-Then-Resident Pattern

Facts: Tommy bought a condo on January 1, 2021 for $400,000. Used as rental for 2 years (2021-2022), then converted to primary residence and lived there 3 years (2023-2025). Sells on January 1, 2026 for $550,000. Took $10,000 depreciation during rental period.

Ownership/use tests: Owned 5 years (passes). Used as principal residence 3 years (passes 2-of-5).

Total realized gain: $550,000 - ($400,000 - $10,000 depreciation) = $160,000

Step 1 - Depreciation recapture (§121(d)(6)): $10,000 cannot be excluded; taxed as unrecaptured §1250 gain at max 25%.

Step 2 - Remaining gain to allocate: $160,000 - $10,000 = $150,000

Step 3 - Nonqualified use ratio (§121(b)(5)):

Nonqualified period: 2021-2022 (rental BEFORE first use as residence) = 2 years
Trailing exception does NOT apply (rental was BEFORE residence period, not after)
Total ownership: 5 years
Ratio: 2/5 = 40%
Gain allocated to nonqualified use: $150,000 × 40% = $60,000 (NOT excludable)
Gain allocated to qualified use: $150,000 × 60% = $90,000 (eligible for exclusion)

Step 4 - Apply §121 exclusion to qualified-use portion: $90,000 excluded (within $250K single cap)

Step 5 - Total taxable:

$10,000 depreciation recapture (unrecaptured §1250) at max 25% = $2,500
$60,000 nonqualified use gain at LTCG (assume 15%) = $9,000
Total federal tax: $11,500

Contrast - if Tommy had reversed sequence (lived there first 3 years, then rented 2):

Nonqualified use = 0 years (trailing exception applies to rental period AFTER last use as residence within 5-year window)
Full $150,000 excluded; only $10,000 depreciation recaptured
Total federal tax: ~$2,500

Lesson: Same economic facts, dramatically different tax. Live there FIRST, then rent (within 3 years of sale) preserves full exclusion. Rent then move in = punitive nonqualified use ratio.

Depreciation Recapture - §121(d)(6)

Recapture ElementDetail
Authority§121(d)(6) - recognition of gain attributable to depreciation
Cutoff dateMay 6, 1997 - depreciation taken AFTER this date NEVER excludable
Tax rateUnrecaptured §1250 gain - max 25% under §1(h)(1)(D)
Common sourcesHome office deduction under §280A; rental of room or unit; formal rental between residence periods
Form 4797Recapture reported on Form 4797 as ordinary income / §1250 gain
Allowed or allowableRecapture applies to depreciation actually claimed OR allowable (taxpayer cannot avoid recapture by failing to claim) - §1016(a)(2)
Basis reductionDepreciation reduces adjusted basis even if not claimed - increases gain
Coordination orderRecapture computed FIRST; remaining gain then subject to nonqualified use allocation and §121 exclusion

Partial Exclusion Safe Harbors - §121(c)(1)

Taxpayer who fails 2-of-5 tests or used §121 within prior 2 years may still get PARTIAL exclusion if sale results from qualifying circumstance.

Safe HarborAuthorityRequirements
Change of employment§1.121-3(c)New principal place of work at least 50 MILES farther from sold home than former workplace; sale due to relocation
Health§1.121-3(d)Physician recommendation; obtain, provide, or facilitate diagnosis, cure, mitigation, treatment of disease, illness, or injury
Unforeseen circumstances (specified)§1.121-3(e)Specified events: involuntary conversion; natural disaster; war/terrorism; death; unemployment; change of employment rendering home unaffordable; divorce or legal separation; multiple births from same pregnancy
Unforeseen circumstances (facts-and-circumstances)§1.121-3(e)(1)Other circumstances may qualify on facts and circumstances; ask IRS via PLR if uncertain
Calculation §121(c)(1)ProratedPartial exclusion = $250K (or $500K MFJ) × (shorter of ownership or use time / 24 months); or × (time between §121 uses / 24 months)
Example calculationMove at 12 months due to qualified employment changeSingle filer: $250K × (12/24) = $125,000 exclusion available

Like-Kind Exchange Replacement Property §121(d)(10)

§1031 Replacement → §121 IssueDetail
Authority§121(d)(10) - 5-year minimum holding period
RuleProperty acquired in §1031 exchange CANNOT use §121 unless owned at least 5 years post-exchange
PurposePrevent taxpayers from immediately converting §1031 replacement to residence and excluding gain
2-year safe harbor for rental→residenceRev. Proc. 2008-16 - 2 years of rental use post-exchange establishes §1031 validity; then 2 more years as residence = full 5 years
Coordination§121 excludes pre-conversion appreciation; §1031 defers original gain; basis tracking critical
Common trapInvestor §1031s into "vacation home" then converts to primary residence after 2 years - cannot exclude until 5-year holding period

Military Extended Duty - §121(d)(9)

Military ExtensionDetail
Authority§121(d)(9) added by Military Family Tax Relief Act of 2003
ElectionTaxpayer or spouse on qualified official extended duty may ELECT to SUSPEND 5-year clock
Suspension periodUp to 10 years
Effect5-year ownership/use window does not run during qualified duty period; effectively extends 5-year window to up to 15 years
Qualified extended dutyMilitary service member, foreign service officer, intelligence community employee (clauses (i), (ii), (iii)) at duty station at least 50 miles from residence or under government orders requiring residence elsewhere; duty period more than 90 days
Spouse benefitSpouse of qualified service member entitled to same suspension
Practical effectService member deployed for 5 years can still meet 2-of-5 test on home owned and used before deployment

Multiple Owners and Joint Filers

Ownership PatternExclusion Available
Single owner, single filer$250,000
MFJ - both meet use, either meets ownership, neither used §121 in 2 years$500,000
MFJ - only one spouse meets use test$250,000 (qualified spouse's amount only)
MFS - each spouse owns separately$250,000 each on own home
Co-owners (not spouses, file separately)$250,000 each on share of gain - Reg §1.121-2(a)(2)
Trust-owned (grantor trust)Treated as owned by grantor - $250K/$500K based on grantor's marital status
Single-member LLC (disregarded)Treated as individually owned
Multi-member LLCGenerally cannot qualify - partnership taxation; LLC not the "taxpayer" using as principal residence

NIIT Coordination - §1411

NIIT §1411 ElementTreatment
Excluded gain under §121NOT subject to NIIT - statutory exclusion under §1411(c)(1)(A)(iii)
Non-excluded gain (excess over $250K/$500K)SUBJECT to NIIT 3.8% if MAGI exceeds $200K single / $250K MFJ
Depreciation recapture portionSUBJECT to NIIT (gain attributable to depreciation is investment income)
Nonqualified use gainSUBJECT to NIIT
State taxState NIIT-equivalent (NJ "millionaire's tax") may also apply to non-excluded gain

Schedule D and Form 1099-S Reporting

Reporting ElementDetail
Form 1099-SIssued by closing agent if gross proceeds exceed $250,000 single / $500,000 MFJ; if taxpayer signs certification that full exclusion applies, 1099-S may not be issued
Reporting required ifAny taxable gain (full or partial exclusion that leaves taxable amount); Form 1099-S issued; depreciation recapture present
No reporting required ifFull exclusion AND no Form 1099-S AND no depreciation recapture
Form 8949 / Schedule DLong-term capital gain reporting (inherited property automatically long-term per §1223(9)); use Box D for covered, Box E for noncovered
Form 4797Depreciation recapture as §1250 gain
Worksheet 2 / Publication 523IRS-provided worksheets in Pub. 523 for §121 computation

State Conformity Issues

State PatternTreatment
States conforming to federal §121Most states; gain excluded for federal purposes also excluded for state
CaliforniaConforms to §121 substantially; AB 1755 and FTB guidance generally aligns
New YorkConforms; gain excluded for federal is excluded for NY individual income tax
New Jersey - notable non-conformityNJ does NOT conform to §121 in same way; NJ has own $250K/$500K exclusion under N.J.S.A. 54A:5-1.1 but with different mechanics
State income tax rates on non-excluded portionApply at ordinary rates (no preferential LTCG state rates in most states)
Transfer taxes / real estate excise taxSeparate from income tax; apply at gross sale price regardless of §121
Withholding on sale (FIRPTA, state nonresident withholding)Applies regardless of §121; refundable on filed return

Common Practitioner Errors

Treating Pre-2009 Rental as Nonqualified Use

§121(b)(5) nonqualified use only counts periods after January 1, 2009. Pre-2009 rental periods do NOT reduce exclusion regardless of how long.

Missing Trailing Period Exception

Period AFTER last use as principal residence within 5-year window is NOT nonqualified use. Living in home then renting before sale = trailing period exempt. Many practitioners apply nonqualified use ratio incorrectly to trailing periods.

Failing to Apply Depreciation Recapture First

§121(b)(5)(D) - recapture under §121(d)(6) applied FIRST; nonqualified use applied to remaining gain. Reversing the order overstates excludable gain.

Forgetting Home Office Depreciation Allowed-or-Allowable

Even if taxpayer failed to claim home office depreciation, basis is reduced by allowable amount. Recapture applies based on what COULD have been claimed under §1016(a)(2).

Surviving Spouse Beyond 2-Year Window

§121(b)(4) $500K survivor exclusion only available if sale within 2 YEARS of spouse's death. Sale on day 731 = only $250K available. Critical timing for surviving spouses.

Remarriage Disqualifying Surviving Spouse

Surviving spouse who remarries before sale loses §121(b)(4) $500K - reverts to filing-status-based amount. Plan sale BEFORE remarriage to preserve.

Multiple Owners Sharing Single $250K

Joint owners (non-spouses) each get $250K on their own share - Reg §1.121-2(a)(2). Some practitioners incorrectly limit to single $250K total. Two siblings owning home jointly with each as principal residence = $500K total.

50-Mile Employment Test Failure

Employment safe harbor under §1.121-3(c) requires NEW workplace at least 50 miles FARTHER from sold home than OLD workplace. Computed as difference of distances, not absolute distance. Misapplication common.

Treating Vacation Home as Principal Residence

Principal residence = where taxpayer spends MOST of time; only ONE residence can be principal at any moment. Two homes with split time may both fail. Document time, mail, drivers' license, voter registration.

Single-Member LLC vs Multi-Member LLC

SMLLC (disregarded for federal tax) - treat as individually owned, §121 applies. Multi-member LLC (partnership) - generally cannot qualify because LLC is the "taxpayer." Convert to SMLLC or partition out before sale.

§1031 Replacement Property Conversion Too Soon

§121(d)(10) - §1031 replacement property requires 5 years before §121 available. Practitioners using §121 on early-converted §1031 property invite IRS challenge.

Missing California Withholding

California requires 3.33% gross sale price withholding on real estate sales (Form 593) - regardless of §121 federal exclusion. Refundable on CA return but cash flow timing matters.

Filing Status Change After Death

Year of spouse's death allows MFJ; subsequent years HOH or single. §121 $500K available on JOINT return year of death; subsequent year sale uses $500K only under §121(b)(4) survivor rule (2-year window).

Forgetting NIIT on Non-Excluded Gain

Non-excluded portion of §121 gain subject to 3.8% NIIT if MAGI thresholds exceeded. Add to federal tax calculation; do not assume §121 also excludes from NIIT.

Reporting Full Exclusion When 1099-S Issued

If closing agent issued Form 1099-S (gross proceeds > $250K/$500K), IRS expects reporting on Schedule D even if full §121 exclusion applies. Match 1099-S to Schedule D with exclusion adjustment to avoid CP2000.

Frequent Use - §121(b)(3) 2-Year Lookback

§121 available no more than once every 2 years. Taxpayer who sold prior home 18 months ago cannot use full exclusion on current sale - either wait or use partial exclusion safe harbor.

Boomerang Property Trap §1014(e)

Pre-death gift of appreciated property back to donor on donee's death within 1 year = no §1014 step-up. Less common but relevant for end-of-life planning.

Primary authority: IRC §121 (Exclusion of gain from sale of principal residence - Taxpayer Relief Act of 1997, P.L. 105-34). §121(a) (general exclusion rule - 2-of-5 ownership and use tests). §121(b)(1) (general dollar limitation - $250,000). §121(b)(2)(A) (MFJ $500,000 - both meet use, either meets ownership, neither used §121 in prior 2 years). §121(b)(3) (frequency limitation - no more than once every 2 years). §121(b)(4) (surviving spouse $500,000 - within 2 years of death). §121(b)(5) (nonqualified use - Housing Assistance Tax Act of 2008, P.L. 110-289; effective for periods after January 1, 2009). §121(b)(5)(A) (nonqualified use exclusion). §121(b)(5)(B) (allocation formula). §121(b)(5)(C) (definition and exceptions - trailing period, 10-year military, 2-year temporary absence). §121(b)(5)(D) (coordination with depreciation recapture). §121(c)(1) (partial exclusion for taxpayers failing 2-of-5 tests). §121(d)(6) (depreciation recapture after May 6, 1997 not excludable). §121(d)(7) (out-of-residence care). §121(d)(9) (military extended duty - up to 10-year suspension of 5-year clock). §121(d)(10) (§1031 replacement property - 5-year holding requirement). §1.121-1 (definition of principal residence and use test). §1.121-1(c) (use test - 730 days). §1.121-1(c)(2) (short temporary absences). §1.121-1(e) (allocation between residential and non-residential use). §1.121-2 (limitations on amount). §1.121-2(a)(2) (joint owners - $250K each). §1.121-3 (partial exclusion safe harbors). §1.121-3(c) (50-mile employment test). §1.121-3(d) (physician health recommendation). §1.121-3(e) (unforeseen circumstances - death, unemployment, divorce, multiple birth, casualty, etc.). §1(h)(1)(D) (unrecaptured §1250 gain - maximum 25% rate). §1250 (depreciation recapture for real property). §1016(a)(2) (basis reduction for depreciation allowed or allowable). §1411 (Net Investment Income Tax - 3.8% on non-excluded gain). §1411(c)(1)(A)(iii) (§121 excluded gain not subject to NIIT). §1031 (like-kind exchange - coordination with §121). §1031(d)(10) - 5-year rule. §1014 (basis step-up at death - reduces gain available for §121). §1014(e) (boomerang property within 1 year - no step-up). §1223(9) (inherited property automatically long-term). §6045 (1099-S issuance). §6694 (preparer penalties). §6662 (accuracy-related penalty). §280A (home office deduction - triggers depreciation recapture). Revenue Procedure 2005-14 (§121 + §1031 coordination). Revenue Procedure 2008-16 (§1031 replacement property conversion to residence safe harbor). Revenue Procedure 2025-32 (2026 inflation adjustments - LTCG brackets, $49,450 / $98,900 0% threshold). IRS Publication 523 (Selling Your Home - worksheets and examples). Form 1040 Schedule D (capital gain reporting). Form 8949 (sales of capital assets). Form 4797 (sales of business property - depreciation recapture). Form 1099-S (proceeds from real estate transactions - issued if gross proceeds exceed threshold). California Form 593 (real estate withholding). Pub. L. 110-142 (2007 - added §121(b)(4) surviving spouse provision). Pub. L. 110-289 (2008 Housing Assistance Tax Act - added §121(b)(5) nonqualified use). Pub. L. 108-121 (2003 Military Family Tax Relief Act - added §121(d)(9)). Pub. L. 105-34 (1997 Taxpayer Relief Act - enacted current §121). One Big Beautiful Bill Act P.L. 119-21 (July 4, 2025) - did NOT modify §121 exclusion limits ($250K/$500K remain unchanged since 1997).

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