The home sale exclusion
When you sell your main home, you can leave up to $250,000 of profit out of your income, or $500,000 if you're married filing jointly. Only gain above that is taxed. The amounts are set by law and aren't adjusted for inflation.
Who qualifies
- Ownership: you owned the home for at least 24 months in the 5 years before the sale.
- Use: you lived in it as your main home for at least 24 months in those 5 years. The months don't have to be in a row.
- Once every 2 years: you didn't exclude gain on another home sold in the 2 years before.
Working out your gain
Gain is the sale price minus selling costs, minus your basis: what you paid (with purchase closing costs) plus improvements. Keep receipts for improvements; they lower your gain. Repairs and maintenance don't count.
Worked example
A married couple bought a home for $250,000, spent $40,000 on improvements and sell it in 2027 for $900,000, paying $50,000 in selling costs. Their gain is $560,000. The first $500,000 is excluded, leaving $60,000 taxable. With $150,000 of other income, that costs about $9,000 of federal tax, mostly at the 15% long-term rate.
Selling before 2 years: the partial exclusion
If you sell early because of a new job at least 50 miles farther away, health reasons, or an unforeseen event such as divorce, a death, a disaster or job loss, you get part of the exclusion: the months you qualify divided by 24. A single filer who lived in a home for 12 months and moved for work could exclude up to $125,000, which here covers the whole $95,000 gain.
Home office or rental depreciation
Depreciation you claimed (or could have claimed) after May 6, 1997 for business or rental use of the home can't be excluded. It's taxed as unrecaptured Section 1250 gain, at your regular rate but no more than 25%. In the second example, a single filer who claimed $12,000 of home office depreciation owes about $2,640 on that portion even though the rest of the $182,000 gain is excluded.
Losses
A loss on the sale of your main home isn't deductible.
Frequently asked questions
How much profit can I make on a home sale without paying tax?
Up to $250,000 of gain, or $500,000 for married couples filing jointly, if you owned and lived in the home for at least 2 of the 5 years before the sale and haven't used the exclusion in the last 2 years.
Do I pay tax if I sell my house before living there 2 years?
Possibly not. If the main reason was a job move of at least 50 miles, health, or an unforeseen event, you can exclude part of the gain: the months you qualify divided by 24, times $250,000 or $500,000.
What tax rate applies to gain above the exclusion?
Long-term capital gains rates of 0%, 15% or 20%, depending on your income, plus the 3.8% net investment income tax at higher incomes. Depreciation from a home office or rental is taxed at up to 25%.
Does the $250,000 exclusion go up with inflation?
No. The $250,000 and $500,000 amounts are fixed in the law and haven't changed since 1997.
Sources
- IRS Rev. Proc. 2025-19 (2026 HSA limits)
- IRS Rev. Proc. 2025-32 (tax year 2026 inflation adjustments)
- SSA 2026 contribution and benefit base
- IRS Form 1040-ES
- IRS: 2026 standard mileage rate (72.5 cents, Jan–Jun)
- IRS Notice 2025-67: 2026 retirement plan limits
- IRS Rev. Proc. 2026-15: 2026 vehicle depreciation limits
- IRS Announcement 2026-11: 76 cents from July 1, 2026 (IRB 2026-29)
- IRS Rev. Proc. 2026-24 (2027 HSA limits)
- IRS Notice 2026-66 (2027 retirement plan limits)
- IRS Rev. Proc. 2026-35 (tax year 2027 inflation adjustments)
- SSA 2027 contribution and benefit base