2026 & 2027 guide
How the Home Sale Exclusion Works in 2026 and 2027
When you sell your main home for more than you paid, the profit is a capital gain. Section 121 of the tax code lets you exclude up to $250,000 of that gain from income, or up to $500,000 on a joint return. Only the gain above the limit is taxed. These amounts are fixed by statute and are not adjusted for inflation. Proposals in Congress to raise or remove the cap are not law. The rules below follow IRS Publication 523, Selling Your Home.
The 2-out-of-5-year rule
To claim the full exclusion, you must pass three tests: you owned the home for at least 2 years, you lived in it as your main home for at least 2 years during the 5 years ending on the sale date, and you did not exclude gain on another home sold in the 2 years before this one (the look-back test). The 24 months don't have to be continuous.
Who gets $500,000
Married couples filing jointly get the $500,000 limit when either spouse meets the ownership test, both spouses meet the residence test, and neither spouse fails the look-back test. If those conditions aren't all met, each spouse's limit is figured separately as if unmarried and the results are added, which usually means $250,000 when only one spouse qualifies. A surviving spouse who hasn't remarried can still use $500,000 if the home is sold within 2 years of the spouse's death and the joint tests were met before the death.
Partial exclusion if you sell early
If you fail a test because the main reason for the sale was a change in place of work, a health issue, or an unforeseeable event (such as a death, divorce, job loss, or disaster), you can still claim a reduced exclusion. Take the shortest of the time you owned the home, the time you lived there during the 5-year period, and the time since your last excluded sale; divide by 24 months; and multiply by your limit.
| Situation | Maximum exclusion | Partial example (12 of 24 months) |
|---|---|---|
| Single, head of household, or married filing separately | $250,000 | $125,000 |
| Married filing jointly, both spouses pass the residence test | $500,000 | $250,000 |
| Married filing jointly, only one spouse qualifies | $250,000 | $125,000 |
| Surviving spouse, sale within 2 years of the death | $500,000 | $250,000 |
Basis: the number that shrinks your gain
Your gain is the amount realized (sale price minus selling costs such as commissions and legal fees) minus your adjusted basis. Basis starts with the purchase price, adds certain settlement costs from the purchase and every capital improvement (an addition, a new roof, a remodeled kitchen, new windows), and subtracts any depreciation you claimed. Repairs and routine maintenance don't count. Keep receipts for as long as you own the home and for several years after you sell.
Depreciation and nonqualified use
Two kinds of gain can't be excluded even if you pass every test. First, any depreciation allowed or allowable after May 6, 1997 for a home office or rental use of the home. That gain is taxed as unrecaptured Section 1250 gain at your ordinary rate, capped at 25%. Second, gain allocated to nonqualified use: periods after 2008 when the home wasn't your main home, such as years you rented it out before moving in. The share is the nonqualified time divided by your total ownership time. Time after you moved out, within the 5-year window, doesn't count as nonqualified use. For a property that was mainly a rental, see the rental property sale tax calculator.
Federal, NIIT and state tax on the taxable part
Taxable gain on a home owned more than 1 year is a long-term capital gain, taxed at 0%, 15%, or 20% depending on where it lands on top of your other taxable income (1 year or less: ordinary rates). The 3.8% Net Investment Income Tax can apply to the taxable gain, never to the excluded part, once your income passes $200,000 single or $250,000 joint. For 2026 the 15% rate starts above $49,450 of taxable income for single filers ($98,900 joint); for 2027 the IRS raised that to $51,050 ($102,100 joint) and the 20% threshold to $563,200 ($633,600 joint). Most states start from federal adjusted gross income, so they follow the exclusion and tax only the taxable gain, usually as ordinary income. Washington's capital gains excise tax exempts real estate. Compare states on the capital gains tax by state page, or see the stock capital gains tax calculator.
Reporting the sale
You must report the sale if you have taxable gain, if you received Form 1099-S, or if you choose not to exclude the gain. Report it on Form 8949 and Schedule D (depreciation recapture also involves Form 4797). If all of the gain is excludable and no Form 1099-S was issued, you generally don't report the sale at all.
Frequently asked questions
How much profit from selling my home is tax-free?
If you qualify, you can exclude up to $250,000 of gain from the sale of your main home, or up to $500,000 if you are married filing jointly and both spouses meet the residence test. Only gain above the limit is taxed. The limits are set by Section 121 of the tax code and are not adjusted for inflation.
What is the 2-out-of-5-year rule?
To get the full exclusion you must have owned the home for at least 2 years and lived in it as your main home for at least 2 years during the 5 years ending on the date of sale. The 2 years do not have to be continuous or the same 2 years. You also must not have excluded gain on another home sold in the 2 years before this sale.
Do both spouses have to qualify for the $500,000 exclusion?
On a joint return, only one spouse needs to meet the ownership test, but both spouses must meet the residence test and neither can have excluded gain on another home sale in the prior 2 years. If those conditions are not met, each spouse's limit is figured separately as if unmarried, which often means $250,000 when only one spouse qualifies.
Can I get a partial exclusion if I sell before 2 years?
Yes, if the main reason for the sale was a change in place of work, a health issue, or an unforeseeable event such as a death, divorce or job loss. The limit is reduced in proportion to the time you qualified: for example, 12 months of ownership and residence gives 12/24 of $250,000, or $125,000.
Do I have to report the sale of my home to the IRS?
You must report the sale if you have taxable gain, if you received Form 1099-S, or if you choose not to take the exclusion. You report it on Form 8949 and Schedule D. If all of your gain is excludable and you did not receive Form 1099-S, you generally do not report the sale.
Is a loss on the sale of my home deductible?
No. A loss on the sale of your personal residence is not deductible, though you owe no tax on the money you received. If you received Form 1099-S, you still report the sale.
Does the $250,000 / $500,000 home sale exclusion change in 2027?
No. The $250,000 ($500,000 married filing jointly) limit is written into IRC §121 and is not adjusted for inflation, so it is the same for a sale in 2026 or 2027. The tax on any gain above the exclusion can change, because the long-term capital gains brackets are indexed: for 2027 the 0% rate covers taxable income up to $51,050 single ($102,100 joint) under Rev. Proc. 2026-35. Pick 2027 in the Tax Year menu to estimate a sale next year.