If you sell your main home for more than you paid, you may not owe the IRS a dime on the profit. Single filers can exclude up to $250,000 of capital gains, and married couples filing jointly can exclude up to $500,000, under what’s officially called the Section 121 exclusion. You just have to meet the ownership and residency tests — and understand what counts as “gain” in the first place.
What the Section 121 Exclusion Actually Covers
Section 121 of the Internal Revenue Code lets homeowners exclude a chunk of profit from the sale of a primary residence from federal capital gains tax. The exclusion amounts for 2026 remain:
- $250,000 for single filers, married filing separately, and heads of household
- $500,000 for married couples filing a joint return
These figures are not indexed for inflation and haven’t changed since the exclusion was created in 1997, according to IRS.gov. Congress set them once and left them alone, which is worth knowing because it means more sellers bump into the ceiling every year as home values rise, especially in expensive markets.
The exclusion applies to gain — the difference between your sale price and your adjusted cost basis — not to the total sale price. If you sold a house for $600,000 that you bought for $400,000, your gain is $200,000, not $600,000. For most sellers whose gain falls under the threshold, that means zero federal capital gains tax on the sale.
Why This Rule Exists
The home sale exclusion reflects a basic policy choice: the government doesn’t want to penalize ordinary people for the appreciation of the place they live in and often need to sell to relocate, downsize, or retire. Before 1997, homeowners had to roll gains into a new home or wait until age 55 for a one-time exclusion. The current rule, created by the Taxpayer Relief Act of 1997, simplified things into a test based on how long you lived there — not your age, and not whether you buy another house.
That’s an important shift. You do not need to reinvest the proceeds in a new home to qualify. You can sell, pocket the gain up to the limit, rent for a while, or buy something cheaper. The exclusion follows you, not your next purchase.
The Ownership and Use Tests
To claim the exclusion, the IRS requires that you pass two tests during the five-year period ending on the date of sale, according to IRS Publication 523:
- Ownership test: You owned the home for at least 2 years.
- Use test: You lived in the home as your main residence for at least 2 years.
The two years don’t need to be continuous, and they don’t need to overlap perfectly. You could live in a home for 18 months, move out for a year, move back for 6 months, and still satisfy the 2-out-of-5-years use test, as long as the total adds up to 24 months within that 5-year window.
You also generally can’t claim the exclusion more than once every 2 years. If you sold a different home and excluded gain on it within the last 2 years, you typically can’t exclude gain again until that 2-year clock resets — though partial exclusions exist for certain hardship situations, covered below.
Partial Exclusions for Life Changes
If you sell before meeting the full 2-year tests, you might still qualify for a reduced exclusion if the sale was due to:
- A change in place of employment
- Health reasons
- Certain unforeseen circumstances (divorce, death, multiple births from one pregnancy, and similar events specifically listed in IRS guidance)
The partial exclusion is calculated proportionally. If you lived in the home for 12 months instead of 24 — half the required period — you’d generally be eligible for half the normal exclusion: $125,000 for a single filer instead of $250,000. The IRS works this out using a fraction based on days or months owned/used versus the 730-day requirement; see Publication 523 for the exact worksheet.
How Much Tax You’d Actually Owe Above the Exclusion
Gain above your exclusion limit gets taxed as a capital gain. If you owned the home for more than a year (which is standard for primary residences), it’s taxed at long-term capital gains rates rather than ordinary income rates — a meaningfully better deal.
| Filing Status | 0% Rate | 15% Rate | 20% Rate |
|---|---|---|---|
| Single | Up to $49,450 | $49,451–$545,500 | Over $545,500 |
| Married Filing Jointly | Up to $98,900 | $98,901–$613,700 | Over $613,700 |
Figures are taxable income thresholds for 2026 long-term capital gains brackets; verify current numbers at IRS.gov before filing, since these are adjusted annually for inflation.
Your excluded gain doesn’t count toward these brackets at all — it simply isn’t taxable income. Only the gain above your exclusion amount gets added to your taxable income and taxed at these rates. High earners may also owe the 3.8% Net Investment Income Tax on gain above the exclusion, if their modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), per IRS guidance on NIIT.
Calculating Your Adjusted Basis Matters More Than People Think
Your gain isn’t just sale price minus purchase price. It’s sale price minus your adjusted basis, which includes:
- The original purchase price
- Certain closing costs from when you bought the home
- The cost of capital improvements (a new roof, an addition, a kitchen remodel — not routine repairs like painting)
- Minus any depreciation claimed if part of the home was used for business or rental purposes
Keeping records of improvements over the years can meaningfully shrink your taxable gain. A $60,000 kitchen renovation and a $20,000 roof replacement add $80,000 to your basis, which directly reduces the gain subject to tax if you’re near the exclusion ceiling.
A Worked Example
Say a married couple, filing jointly, bought a home in 2010 for $350,000. They’ve lived in it as their primary residence continuously since then. Over the years, they spent $70,000 on capital improvements — a new roof, an addition, and an upgraded HVAC system. In 2026, they sell the home for $980,000, paying $55,000 in selling costs (agent commissions, closing fees).
Here’s the math:
- Adjusted basis: $350,000 (purchase) + $70,000 (improvements) = $420,000
- Amount realized: $980,000 (sale price) − $55,000 (selling costs) = $925,000
- Total gain: $925,000 − $420,000 = $505,000
- Exclusion available: $500,000 (married filing jointly)
- Taxable gain: $505,000 − $500,000 = $5,000
That $5,000 gets reported and taxed at the long-term capital gains rate applicable to their income — likely 15% for most middle-to-upper-income households, meaning a tax bill of roughly $750 on a sale that generated over half a million dollars in profit. Without the exclusion, they’d owe capital gains tax on the full $505,000.
Reporting the Sale
If your full gain is covered by the exclusion and you didn’t receive a Form 1099-S from the closing agent, you generally don’t need to report the sale on your tax return at all, according to IRS guidance. If you did receive a 1099-S, or if any portion of your gain exceeds the exclusion, you’ll need to report the sale on Schedule D and Form 8949, even if the taxable amount is small.
Second homes, vacation properties, and rental properties don’t qualify for the Section 121 exclusion unless they were converted to your primary residence and you meet the ownership and use tests for that specific property. Investment property sales are governed by different rules, including the possibility of a 1031 exchange to defer gain — a separate mechanism from Section 121 entirely.
FAQ
Can I use the exclusion if I’ve sold a home before?
Yes, as long as it’s been at least 2 years since you last excluded gain on a home sale. The exclusion isn’t a once-in-a-lifetime benefit — you can use it repeatedly over the years, as many times as you sell qualifying primary residences, subject to that 2-year spacing rule.
Does the exclusion apply if my spouse died and I inherited the home?
Special rules help surviving spouses. If you sell within 2 years of your spouse’s death and otherwise meet the ownership and use tests (which can include your late spouse’s time in the home), you may still qualify for the full $500,000 married exclusion, even though you’re filing as single or head of household in the year of sale. Check IRS Publication 523 for the exact conditions, since timing matters.
What if I rented out part of my home or used a home office?
You can still claim the exclusion for the portion of the home used as your residence, but gain attributable to a separate rental unit or to depreciation you claimed for business use generally isn’t eligible for exclusion. The rules here get detailed quickly — Publication 523 includes worksheets for mixed-use properties, and a tax professional can help sort out depreciation recapture, which is taxed separately regardless of the exclusion.
Sources
- IRS.gov — Topic No. 701, Sale of Your Home: https://www.irs.gov/taxtopics/tc701
- IRS Publication 523, Selling Your Home: https://www.irs.gov/publications/p523
- IRS.gov — Capital Gains and Losses: https://www.irs.gov/taxtopics/tc409
- IRS.gov — Net Investment Income Tax: https://www.irs.gov/individuals/net-investment-income-tax
Related reading
- Social Security COLA for 2026: How Much Bigger Will Your Check Be?
- Medicare Open Enrollment: Dates, What You Can Change, and Costly Mistakes
- Medicare Advantage vs Original Medicare: A Plain-English Comparison