If you own a home you’ve lived in for a few years, the IRS is quietly offering you one of the biggest tax-free windfalls in the code. When a married couple sells the family house for a $700,000 gain, they can legally erase $500,000 of it before the IRS ever sees a dollar. Only $200,000 shows up as taxable. This is the Section 121 home sale exclusion, and it applies to your primary residence, not a rental, not a flip.
With the Case-Shiller National Home Price Index sitting at 335.1 in May 2026, near a 90.9 percentile rank against historical highs, gains this size are no longer a coastal fantasy. They are landing on kitchen tables across the country.
The Buried Rule in Plain English
When you sell your primary residence, Section 121 lets you exclude up to $250,000 of capital gain if you’re single and up to $500,000 if you’re married filing jointly. The gain is your sale price minus your cost basis (what you paid, plus qualifying improvements, minus selling costs). Everything under the cap is invisible to the IRS. Everything above it gets taxed at long-term capital gains rates, typically 0%, 15%, or 20% depending on your income.
So a married couple with a $700,000 gain reports the sale, subtracts the $500,000 exclusion, and lands at $200,000 of taxable long-term gain. That is the whole trick.
The Statute That Makes It Real
The authority is 26 U.S. Code §121, enacted by the Taxpayer Relief Act of 1997. IRS Publication 523 (Selling Your Home) walks through the mechanics. The $250,000 and $500,000 thresholds were set in 1997 and were never indexed for inflation, which is why they haven’t budged even as the CPI climbed to 332.568 in June 2026. That mismatch is exactly why more sellers each year bump into the cap.
Who Qualifies, and Who Doesn’t
To claim the full exclusion, you must pass two tests during the five-year period ending on the sale date:
- Ownership test: You owned the home for at least 24 months.
- Use test: You lived in it as your main home for at least 24 months (the months don’t have to be consecutive).
For the $500,000 married cap, either spouse can satisfy the ownership test, but both must meet the use test, and neither can have used the exclusion on another sale in the prior two years. Vacation homes, pure investment properties, and houses you’ve owned less than two years generally don’t qualify. Time the property spent as a rental after 2008 can also chip away at the exclusion under the “non-qualified use” rules.
How to Actually Use It
- Rebuild your basis. Start with your purchase price. Add closing costs you paid, plus every capital improvement: new roof, kitchen remodel, addition, HVAC replacement. Routine repairs don’t count. A higher basis means a smaller gain.
- Confirm the 2-of-5 clock. Pull your prior tax returns and utility records if needed. The months you lived there as your main home are what matter.
- Run the math before you list. If your projected gain is $520,000 and you’re married, waiting a few months to hit the 24-month use test can save five figures in tax.
- Report it on Form 8949 and Schedule D only if the gain exceeds the exclusion or you received a Form 1099-S. Otherwise, you generally don’t have to report the sale at all.
- Apply the exclusion, then tax the rest at long-term capital gains rates (0%/15%/20%), plus the 3.8% Net Investment Income Tax if your modified AGI crosses the threshold.
The Catch Most Sellers Miss
You can only claim the full Section 121 exclusion once every two years. Sell two homes inside a 24-month window and the second sale gets no exclusion, unless the move was forced by a job change of at least 50 miles, a health reason, or an unforeseen circumstance defined in the regulations, in which case you get a prorated exclusion.
The other trap: the $250,000/$500,000 caps are not inflation-adjusted. With 4.09 million annualized existing home sales as of June 2026 and prices still climbing, more sellers are punching through the ceiling every quarter. If your projected gain is closing in on the cap, keep every improvement receipt. Each qualifying dollar of basis is a dollar the IRS never touches.
Contact [email protected] for any questions or corrections.