Capital Gains Tax When You Sell Your Home in the U.S.: The Section 121 Exclusion Explained
Updated August 12, 2026

Selling a home for a large profit sounds like a taxable event, and technically it is — but for most American homeowners, federal law makes the actual tax bill zero. Under Internal Revenue Code Section 121, an eligible seller can exclude up to $250,000 of gain ($500,000 for a married couple filing jointly) from federal capital gains tax entirely, not merely defer it. The exclusion is generous, but it is not automatic or unlimited, and Congress is currently weighing whether to expand it for the first time since the caps were set in 1997.
The Exclusion: $250,000 or $500,000, Permanently
Section 121 lets a qualifying seller exclude up to $250,000 of capital gain from the sale of a principal residence — $500,000 for spouses filing a joint return, provided at least one spouse meets the ownership test and both meet the use test. This is a genuine exclusion, not a deferral: the gain within the cap is never taxed, full stop, unlike a like-kind exchange under Section 1031 (which applies to investment property, not a primary residence, and defers rather than eliminates tax). Any gain above the applicable cap is taxed as a long-term capital gain at the seller's applicable federal rate, assuming the 2-of-5-year ownership test is met.
The Ownership-and-Use Test
To claim the full exclusion, you generally must have owned the home and used it as your main residence for at least 2 of the 5 years immediately before the sale. The two years don't need to be continuous — short absences (vacations, temporary work assignments) still count as periods of use, and the ownership and use periods don't have to overlap perfectly, though most sellers satisfy both simultaneously in practice. The test is applied per taxpayer, which matters for divorced couples and unmarried co-owners working out who can claim what.
Once Every Two Years
You generally cannot use the Section 121 exclusion if you excluded gain from the sale of another home within the two years before the current sale. This "once every two years" limit is meant to prevent using the exclusion on rapid, repeated flips rather than genuine primary-residence sales.
Partial Exclusion for Unforeseen Circumstances
Sellers who don't meet the full 2-year test aren't automatically shut out. Treasury regulations allow a reduced, prorated exclusion where the sale is primarily due to a change in place of employment, health reasons, or other specified "unforeseen circumstances" — safe harbors include a work-related move of 50 or more miles, certain health conditions requiring a change of residence, and defined life events such as divorce, multiple births from a single pregnancy, death, an eligible disaster, or an involuntary conversion of the home. The prorated exclusion is calculated based on the fraction of the required 2-year period actually satisfied.
What Doesn't Qualify
Section 121 applies to a principal residence only — it does not cover second homes, vacation homes, or investment/rental property (those may separately qualify for Section 1031 exchange treatment, a distinct set of rules for investment property, not covered here). If part of the home was used for a home office or was rented out, the portion of gain attributable to depreciation claimed on that business or rental use generally cannot be excluded and must be recaptured and taxed separately, even on an otherwise fully exempt sale.
A Proposal in Congress, Not Current Law
The $250,000/$500,000 caps have not changed since they were set in 1997 and are not adjusted for inflation, which has pushed a growing number of long-term homeowners in high-appreciation markets over the cap. Multiple bills addressing this are currently before Congress — including the No Tax on Home Sales Act (H.R. 4327), introduced in July 2025, which would eliminate the dollar caps for a primary residence entirely, and the separate More Homes on the Market Act, which would double the caps and index them to inflation going forward. As of this writing, neither bill has passed, and the exclusion amounts remain unchanged at $250,000/$500,000. Treat any reporting of a higher cap as a proposal, not current law, until it is actually enacted.
Reporting the Sale
If the gain is fully covered by the exclusion and you did not receive Form 1099-S reporting the sale, you generally don't need to report the sale on your return at all. If you received a 1099-S, or if any part of the gain exceeds the exclusion, the sale must be reported, typically on Schedule D and Form 8949, even where much or all of the gain is ultimately excluded.
Sources & Further Reading
- Internal Revenue Code § 121 (Exclusion of gain from sale of principal residence)
- IRS Publication 523, Selling Your Home
- Treasury Regulation § 1.121-3 (reduced maximum exclusion for unforeseen circumstances)
- Congress.gov, H.R. 4327, No Tax on Home Sales Act, 119th Congress
Practical Next Steps
Before selling, work out how long you've owned and lived in the home, check whether you've used the exclusion on another sale in the last two years, and gather records of any business or rental use that could trigger depreciation recapture. If your situation doesn't cleanly meet the 2-year test, look into whether your reason for selling fits one of the unforeseen-circumstances safe harbors before assuming you get no exclusion at all. For large gains, mixed-use property, or anything unusual, a tax professional can confirm the numbers before you sign a contract. For the general, worldwide mechanics of how capital gains tax works, see What Is Capital Gains Tax and How Does It Work?
This article is general legal information, not legal or tax advice. Federal tax law changes over time, and state-level tax treatment of home sales varies separately — consult a tax professional before acting.
Key Takeaways
- Up to $250,000 of gain ($500,000 married filing jointly) on the sale of a primary residence can be permanently excluded from federal capital gains tax under IRC Section 121.
- You generally must have owned and used the home as your main residence for at least 2 of the 5 years before the sale.
- You can't have used the exclusion on a different home sale within the two years before this one.
- A reduced, prorated exclusion is available even if you don't meet the full 2-year test, for job changes, health reasons, or other qualifying unforeseen circumstances.
- The $250,000/$500,000 caps are not inflation-indexed and haven't changed since 1997; bills to raise or eliminate them are pending in Congress but have not passed as of this writing.
Important: This article provides general legal information and does not constitute legal advice. Consult a licensed attorney in your jurisdiction for guidance on your specific situation.
Sources
Law Elite Network requires writers to cite primary, official sources — legislation, court decisions, and regulator or institutional publications — for the claims in this guide. Read more about our standards in the editorial process.
Frequently Asked Questions
Do I have to buy another home to avoid capital gains tax on my home sale?
No — unlike the old "rollover" rule that existed before 1997, Section 121 does not require reinvesting the proceeds in a new home. The exclusion applies based on ownership, use, and the frequency limit, regardless of what you do with the money afterward.
Can I use the exclusion if I only lived in the home for one year?
You may still qualify for a reduced, prorated exclusion if the sale was primarily due to a job change, health issue, or another qualifying unforeseen circumstance under the safe-harbor rules — otherwise, falling short of the 2-year use test generally limits you to no exclusion for that sale.
Is the $250,000/$500,000 cap about to increase?
Not yet. Bills to raise or eliminate the cap are pending in Congress as of this writing, but none has been enacted — the current $250,000/$500,000 limits remain the law until Congress actually passes a change.
Was this article helpful?


