Home Sale Tax Exclusion 2026: How to Avoid Capital Gains When You Sell
Published September 22, 2026 · 9 min read
You bought your home for $350,000 and are about to sell it for $650,000. That’s a $300,000 profit — and it could be completely tax-free. No capital gains tax. Not a dollar owed to the IRS.
This is possible because of one of the most generous tax breaks in the U.S. tax code: the Section 121 home sale exclusion. It lets most homeowners exclude up to $250,000 (single) or $500,000 (married filing jointly) of profit from capital gains tax when they sell their primary residence.
But the exclusion comes with rules — ownership tests, use tests, time limits, and a few traps that catch homeowners off guard. Here is exactly how it works in 2026.
What Is the Section 121 Home Sale Exclusion?
Under IRC Section 121, homeowners who sell their primary residence may exclude from taxable income:
- $250,000 of profit if you file as single, head of household, or married filing separately
- $500,000 of profit if you are married filing jointly
“Profit” here means your capital gain — the selling price minus your adjusted cost basis (more on how to calculate this below). Any profit within the exclusion limit is simply excluded from your income. You do not report it. You do not pay tax on it.
Profit above the exclusion limit is taxable as a long-term capital gain (assuming you owned the home more than one year), taxed at rates of 0%, 15%, or 20% depending on your total income.
Who Qualifies? The Ownership and Use Tests
To claim the full exclusion, you must pass two tests based on the five years before the sale date:
Test 1: Ownership Test
You must have owned the home for at least 2 out of the last 5 years before the sale. The two years do not have to be consecutive — they can be any 24 months within the five-year lookback window.
Test 2: Use Test
You must have used the home as your primary residence for at least 2 out of the last 5 years. Again, the two years do not have to be consecutive. Short absences (vacation, travel, medical care) generally count as time you used the home.
There is also a once-every-two-years rule: you can only claim the exclusion once per two-year period. If you used the exclusion on a home sale in 2024, you cannot use it again until 2026. (IRS Publication 523 — Selling Your Home)
Key rule: The ownership and use tests are measured separately. You might own a home for 4 years but only live in it as your primary residence for 2 of those years — that still qualifies. A rental property you convert to your primary residence for 2+ years can also eventually qualify.
Worked Example 1: Single Filer With a $300,000 Profit
Meet Jordan, a single filer who bought a home in 2019 and is selling in 2026. Jordan has $80,000 in ordinary income from a job.
| Item | Amount |
|---|---|
| Selling price | $650,000 |
| Adjusted basis (original purchase + improvements) | ($350,000) |
| Gross capital gain | $300,000 |
| Section 121 exclusion (single) | ($250,000) |
| Taxable capital gain | $50,000 |
| Long-term capital gains rate (15%) | $7,500 |
Jordan made $300,000 on the home but only pays capital gains tax on $50,000 — the $50,000 that exceeds the $250,000 exclusion. At a 15% long-term rate, the federal tax bill is just $7,500. Without the exclusion, Jordan would have owed $45,000 (15% of $300,000). The exclusion saved $37,500.
Worked Example 2: Married Couple With a $450,000 Profit
Now consider Alex and Sam, married filing jointly. They bought the same house together in 2016 and are selling in 2026 for a $450,000 profit. Their combined income is $120,000.
| Item | Amount |
|---|---|
| Selling price | $800,000 |
| Adjusted basis | ($350,000) |
| Gross capital gain | $450,000 |
| Section 121 exclusion (married filing jointly) | ($500,000) |
| Taxable capital gain | $0 |
| Federal capital gains tax | $0 |
Alex and Sam keep every dollar of their $450,000 profit completely tax-free at the federal level. Because their gain ($450,000) is less than the married exclusion ($500,000), they owe zero capital gains tax. They do not even need to report the sale on their federal tax return.
2026 Long-Term Capital Gains Tax Rates
If your profit exceeds the exclusion limit, the taxable portion is subject to long-term capital gains rates (assuming you owned the home for more than one year, which is almost always the case for primary residences). The rates for 2026 are:
| Rate | Single Filers | Married Filing Jointly |
|---|---|---|
| 0% | $0 – $48,350 | $0 – $96,700 |
| 15% | $48,351 – $533,400 | $96,701 – $600,050 |
| 20% | Over $533,400 | Over $600,050 |
Note: These thresholds apply to taxable income, which includes both your ordinary income and capital gains. Capital gains “stack on top of” ordinary income when determining the applicable rate. Source: IRS Topic 409.
High earners (income over $200,000 for singles, $250,000 for married) may also owe the 3.8% Net Investment Income Tax (NIIT) on any taxable capital gain from the home sale, in addition to the rates above. (IRS Topic 559)
How to Calculate Your Adjusted Basis (the True Cost)
Your “profit” is not simply the selling price minus what you paid. The IRS uses adjusted basis, which can significantly reduce your taxable gain — and potentially save you thousands in taxes. Your adjusted basis starts with the purchase price and is then adjusted upward and downward:
Increases to Basis (Things That Reduce Your Gain)
- Purchase price — what you paid when you bought the home
- Closing costs at purchase — title insurance, legal fees, transfer taxes, recording fees
- Capital improvements — a new roof, kitchen remodel, deck addition, HVAC replacement, room addition. Not routine repairs or maintenance (painting, fixing a leaky faucet)
- Special assessments — local improvements like new sidewalks or sewers paid by you
Decreases to Basis (Things That Increase Your Gain)
- Depreciation claimed — if you ever took a home office deduction and depreciated part of the home, that amount reduces your basis
- Casualty losses deducted — if you took a casualty loss deduction for damage to the home
- Energy credits received — some credits reduce basis by the amount of the credit
In this example, keeping records of those improvements raised the adjusted basis by $61,500 — reducing the taxable gain by $61,500. At a 15% rate, that is $9,225 in tax savings from good record keeping alone.
Also subtract your selling costs — real estate agent commissions, legal fees, title insurance at closing — from your selling price. A 5–6% commission on a $650,000 sale is $32,500–$39,000 that reduces your gain directly. (IRS Publication 523)
Partial Exclusion: When You Don’t Fully Qualify
What if you need to sell before meeting the 2-year ownership or use requirement? In certain circumstances, you can still claim a prorated partial exclusion. The IRS allows this when the sale is primarily due to:
- A job change or job loss — your new job is at least 50 miles farther from the home than your old job
- Health reasons — a doctor recommends you move due to your health or the health of a family member
- Unforeseen circumstances — natural disaster, death, divorce, multiple births from a single pregnancy, or other qualifying events
The partial exclusion is prorated based on the time you actually met the ownership and use tests, out of the required 24 months. For example:
You owned and lived in a home for 12 months before a job transfer forced a sale.
Fraction qualified: 12 ÷ 24 = 50%
Your exclusion: 50% × $250,000 = $125,000 (single) or 50% × $500,000 = $250,000 (married)
Depreciation Recapture: The Catch for Home Office Claimers
Here is one important exception to the exclusion: depreciation recapture. If you ever claimed a home office deduction using the regular (actual expense) method, you likely depreciated a portion of your home.
That depreciation is not shielded by the Section 121 exclusion. When you sell, you must pay tax on all depreciation you deducted, at a maximum rate of 25% (unrecaptured Section 1250 gain). This applies even if your gain is otherwise below the exclusion limit.
Example: You claimed home office deductions for 8 years and depreciated $12,000 of the home. Even if your total gain is below $250,000 (single), you still owe tax on that $12,000 at up to 25% — a potential $3,000 federal tax bill. (IRS Publication 946)
The simplified home office method (the $5/sq ft option) does not create depreciation, so this trap only applies to those who used actual expenses. This is one reason some homeowners prefer the simplified method.
How to Report the Sale on Your Tax Return
The reporting rules depend on whether any of the gain is taxable:
If the Entire Gain Is Excluded
You do not need to report the sale on your federal tax return at all. You will receive a Form 1099-S (Proceeds from Real Estate Transactions) from the closing agent if the proceeds exceed $250,000 (single) or $500,000 (married), but you are not required to report it if the gain is fully excluded. Keep records in case the IRS inquires.
If Any Gain Is Taxable
Report the sale on Form 8949 (Sales and Other Dispositions of Capital Assets) and carry the result to Schedule D (Capital Gains and Losses), which is filed with your Form 1040. You will list the selling price, adjusted basis, and the exclusion amount to show the taxable portion.
If there is depreciation recapture from a home office, that goes on Form 4797 (Sales of Business Property) and is reported as ordinary income, not capital gain. (IRS Form 4797)
Don’t Forget: State Taxes on Home Sale Gains
The Section 121 exclusion is a federal rule. Most states follow the federal exclusion and also exempt the same amount from state income tax — but not all states do, and rules vary.
- No state income tax states (Texas, Florida, Nevada, etc.): no state capital gains tax at all
- Most states: follow the federal exclusion and exempt the same gain
- California: does follow the federal exclusion but taxes capital gains at ordinary income tax rates (up to 13.3%) on any taxable portion
- New Jersey: has its own exclusion rules that differ from federal law — check with a tax professional
Check your state’s department of revenue website or consult a tax professional for state-specific rules before closing.
5 Tips to Maximize Your Exclusion
- Keep every improvement receipt. Capital improvements raise your basis and reduce your taxable gain. A $50,000 kitchen remodel that you can document reduces your gain — and your tax bill — dollar for dollar.
- Time your sale around the 2-year mark. If you’ve lived in the home 22 months, waiting 2 more months to hit the 24-month mark could save tens of thousands in taxes.
- Consider your filing status. Married filing jointly doubles the exclusion to $500,000. If you’re recently married, coordinating a home sale can be especially tax-efficient.
- Track home office depreciation separately. Know exactly how much you depreciated before selling, so you can account for the recapture correctly and avoid surprises.
- Factor in closing costs. Real estate commissions, attorney fees, and title insurance reduce your net selling price and are subtracted from your gain. A 6% commission on a $700,000 home is $42,000 — that directly lowers your taxable gain.
The Bottom Line
The Section 121 home sale exclusion is one of the largest tax breaks most Americans will ever receive. Own and live in your home for at least 2 of the last 5 years, and you can exclude up to $250,000 (single) or $500,000 (married) of profit from capital gains tax entirely.
The keys to maximizing it are: meeting both the ownership and use tests, keeping meticulous records of every capital improvement, tracking selling costs, and being aware of the depreciation recapture rule if you ever claimed a home office. For gains above the exclusion limit, long-term capital gains rates of 0–20% apply — far lower than ordinary income tax rates.
If your situation is complex — you converted a rental to a primary residence, owned the home jointly with a non-spouse, or claimed significant depreciation — consult a CPA or enrolled agent before closing. The stakes are high enough that professional advice often pays for itself many times over.
See Your Paycheck Breakdown After a Home Sale
Planning to sell and wondering how taxable gains affect your overall tax picture? Use our free paycheck calculator to see your federal, state, and FICA taxes by state — and plan ahead.
Try the Free Paycheck CalculatorSources
- IRS — Topic 701: Sale of Your Home
- IRS — Publication 523: Selling Your Home
- IRS — Topic 409: Capital Gains and Losses
- IRS — Topic 559: Net Investment Income Tax
- IRS — Form 8949: Sales and Other Dispositions of Capital Assets
- IRS — Form 1099-S: Proceeds from Real Estate Transactions
- IRS — Publication 946: How to Depreciate Property
- IRS — Form 4797: Sales of Business Property