Home Sale Exclusion
The home sale exclusion — codified at 26 U.S.C. § 121 — is one of the most valuable tax breaks in the federal code: homeowners can exclude up to $250,000 ($500,000 for married filing jointly) of capital gain from the sale of their primary residence from federal income tax, completely tax-free. To qualify, you must have owned and used the home as your principal residence for at least 2 of the 5 years before the sale (the "ownership and use" tests), and you cannot have used the exclusion in the 24 months before the sale. The exclusion is available regardless of age — the old "one-time over-55 rule" was repealed in 1997 when § 121 was enacted. This exclusion has been largely unchanged since 1997, even as home values have surged: the median U.S. home price has more than tripled since 1997, meaning the $250,000/$500,000 thresholds — which were not indexed to inflation — now fail to fully protect gains in many high-cost markets. In expensive metro areas like San Francisco, New York, or Seattle, a homeowner who bought in the early 2000s may have gains that exceed the exclusion by hundreds of thousands of dollars. Gain above the exclusion is taxed as long-term capital gain (0%, 15%, or 20% depending on income, plus the 3.8% Net Investment Income Tax for higher earners). Strategic planning — timing the sale, tracking improvements to step up basis, or using partial exclusions after a divorce or job change — can significantly affect the tax outcome.
Current Law (2026)
Taxpayers can exclude up to $250,000 ($500,000 for married filing jointly) of capital gain from the sale of a primary residence from federal income tax.
<!-- pria:personalize type="bracket-highlight" -->| Parameter | Value |
|---|---|
| Exclusion (single) | $250,000 |
| Exclusion (MFJ) | $500,000 |
| Ownership requirement | 2 of last 5 years |
| Use requirement | 2 of last 5 years as primary residence |
| Frequency | Once every 2 years |
Legal Authority
- 26 U.S.C. § 121 — Exclusion of gain from sale of principal residence
How It Works
To qualify, you must pass two independent tests — the ownership test and the use test — both measured over the five years before the sale. You must have owned the home for at least 2 of those 5 years, and you must have used it as your principal residence for at least 2 of those 5 years. The two years don't need to be continuous or overlap with each other. A once-every-two-years frequency limit applies: you cannot claim the exclusion if you used it on another home sale within the 24 months before closing. A couple who owns the home together but has different periods of occupancy — or who temporarily rented it out — must track each spouse's qualifying periods carefully.
For married couples filing jointly, the full $500,000 exclusion requires that at least one spouse meets the ownership test, both spouses meet the use test, and neither used the § 121 exclusion within the prior two years. If only one spouse qualifies — because the other moved out more than two years before the sale, or because they previously used the exclusion in a divorce — the couple can still claim the single-filer $250,000 exclusion for the qualifying spouse's share. Transfers of a home incident to divorce are tax-free under IRC § 1041, but a later sale by the recipient spouse is fully taxable, and that spouse's use period typically includes the prior spouse's ownership for the ownership test but not the use test.
A partial exclusion is available when you fail the full two-year tests due to a job change, health-related move, or IRS-recognized "unforeseen circumstance" (death in the family, divorce, job loss, natural disaster, or multiple births). The partial exclusion is prorated: (months meeting requirements ÷ 24) × $250,000 (or $500,000 for MFJ). A single filer transferred by an employer after 15 months qualifies for (15 ÷ 24) × $250,000 = $156,250. The current § 121 exclusion has no age requirement — the pre-1997 one-time exclusion for sellers 55 and older was permanently repealed when the modern rule was enacted.
Two gain categories fall outside the exclusion even when the rest qualifies. First, depreciation recapture: any depreciation taken on a portion of the home used as a home office or rental must be recaptured at a flat 25% rate, separately from and not shielded by the § 121 exclusion. Second, non-qualified use periods: for homes that were rentals or second homes after 2008, the gain attributable to those non-qualifying years is excluded from the exclusion, calculated as a fraction of total post-2008 ownership. The $250,000/$500,000 thresholds are not indexed to inflation and have been unchanged since 1997 — in purchasing-power terms, $250,000 in 2026 is equivalent to roughly $490,000 in 1997 dollars, meaning the exclusion shelters a shrinking share of real-world home appreciation in high-cost markets.
How It Affects You
<!-- pria:personalize type="impact" -->If your gain is under $250,000 (single) or $500,000 (married filing jointly): You owe zero federal capital gains tax — but you must calculate your gain correctly. Your taxable gain is the sale price minus your adjusted basis — which is the purchase price PLUS documented capital improvements (a new roof, HVAC replacement, kitchen remodel, addition, deck, finished basement). Improvements that add to basis include anything that materially adds value or extends the home's useful life; maintenance and repairs do not count. Start tracking now: save every contractor invoice, permit, and settlement statement. If you don't have records, the county tax assessor's parcel history and old permit records can sometimes reconstruct improvements. When you sell, the closing company will issue Form 1099-S reporting gross proceeds — this goes to the IRS, and you'll report the sale on Schedule D. If you qualify for the full exclusion, you may not need to report it at all if gain is below threshold, but keep your basis documentation in case of audit.
If you're a long-term homeowner in a high-appreciation market: Your gain likely exceeds the exclusion. Bay Area couple: bought $400,000 in 2005, sells $1.4M in 2026, $150,000 in documented improvements → adjusted basis = $550,000; gain = $850,000; exclusion = $500,000; taxable = $350,000. At the 20% federal LTCG rate + 3.8% NIIT + California's 13.3% rate = roughly 37% combined = approximately $130,000 in tax. Three strategies worth exploring: (1) Timing the year: if you sell in a year with lower income (retirement, sabbatical, between jobs), you may be in the 0% or 15% federal LTCG bracket rather than 20% + NIIT — potentially saving $50,000+ on the same transaction; (2) Document more improvements: every dollar of additional basis reduces gain dollar-for-dollar; (3) Hold until death: heirs receive a step-up in basis to the date-of-death fair market value, erasing all accumulated gain for tax purposes — the entire $850,000 gain disappears for a surviving family. For estate planning implications, see Estate Planning Federal Law.
If you're recently separated or divorcing: The exclusion rules have important nuances that are frequently misunderstood in divorces. If the home is sold while you're still married (before divorce is final), you can claim up to the full $500,000 MFJ exclusion if both spouses have owned and used the home as primary residence for 2 of the last 5 years. If one spouse has moved out more than 2 years before the sale, they may not meet the use test — and their share of the exclusion could be limited to $0 or a partial exclusion. If one spouse keeps the home in a divorce settlement and sells later, they get only the $250,000 single exclusion — not $500,000. A divorce settlement that awards the high-equity home without adjusting other asset distributions for the embedded tax cost can leave the receiving spouse significantly disadvantaged. Run this analysis before finalizing the settlement, not after.
If you don't meet the 2-year requirement but need to sell: A partial exclusion is available for sales due to a job change, health reason, or other "unforeseen circumstances" (divorce, death, multiple births, employer termination). The partial exclusion is prorated: if you owned and used the home for 15 months (out of the required 24), your exclusion is (15/24) × $250,000 = $156,250 (single). To qualify for the job change exception, the new workplace must be at least 50 miles farther from the home than the old workplace. Report the sale on Form 8949 and Schedule D; use IRS Form 1040 instructions for § 121 to calculate your reduced maximum exclusion amount. This partial exclusion is often overlooked by sellers who assume they must wait the full 2 years.
The exclusion works alongside the mortgage interest deduction as one of the most valuable federal tax benefits for homeowners — but unlike the mortgage deduction, you don't need to itemize to claim it.
<!-- /pria:personalize -->State Variations
<!-- pria:personalize type="state-specific" -->Most states conform to the federal exclusion. Notable exceptions:
- PA: Does not recognize the Section 121 exclusion — all home sale gains are taxable at 3.07%
- NJ: Conforms to the federal exclusion but applies it against the NJ exit tax for residents selling and leaving the state
- States with no income tax: No state impact
Implementing Regulations
- 26 CFR Part 1 — Income tax regulations (SS 1.121-1 through 1.121-4: exclusion of gain from sale of principal residence, ownership/use tests, reduced maximum exclusion, unforeseen circumstances)
Pending Legislation (119th Congress)
- HR 4327 (Rep. Greene, R-GA) — No Tax on Home Sales Act. Would remove statutory dollar caps on the tax exclusion for gains from selling a principal residence, letting sellers exclude more gain. Status: Introduced.
- HR 7034 — Would remove dollar caps on the tax-free gain from selling your primary home, letting qualified sellers exclude unlimited gain after enactment. Status: Introduced.
- SJRES 149 — Would block the CFPB's withdrawal of Truth in Lending (Regulation Z) protections for home sales financed under contracts for deed. Status: Introduced.
Recent Developments
- Exclusion amounts still not indexed: The $250,000/$500,000 thresholds have remained unchanged since 1997. Adjusted for inflation, $250,000 in 1997 is equivalent to roughly $490,000 in 2026, and $500,000 is equivalent to roughly $980,000. In high-appreciation markets (San Francisco, NYC, Austin, Boise), long-term homeowners increasingly exceed the exclusion. Two 119th Congress bills (HR 4327, HR 7034) would remove the caps entirely, though neither has advanced.
- Home price appreciation and exposure: Median existing home prices exceeded $400,000 nationally in 2024-2025. In markets where homes have appreciated 100%+ over 10-15 years, single filers face real capital gains exposure above the $250,000 exclusion. This is no longer a "luxury problem" — middle-class homeowners who bought in 2010-2015 in fast-growing metros may owe capital gains tax on their primary residence for the first time.
- Depreciation recapture from home offices: The post-COVID remote work boom led millions of homeowners to claim home office deductions (for self-employed filers). When these homeowners sell, any depreciation claimed on the home office portion must be recaptured at 25%, even if the rest of the gain qualifies for the Section 121 exclusion. This interaction is catching many sellers by surprise. See Home Office Deduction.