Quick Answer
The home sale capital gains exclusion allows homeowners to exclude up to $250,000 (single) or $500,000 (married filing jointly) of profit from selling their primary residence from taxable income, provided they owned and lived in the home for at least 2 of the past 5 years.
Best Answer
Robert Kim, Tax Return Analyst
Best for homeowners who have lived in their current home for several years and are considering selling
How the home sale capital gains exclusion works
The home sale capital gains exclusion, established under IRC Section 121, allows homeowners to exclude up to $250,000 (single filers) or $500,000 (married filing jointly) of profit from selling their primary residence from their taxable income. This means if you bought your home for $300,000 and sell it for $450,000, that $150,000 profit could be completely tax-free.
To qualify, you must meet the ownership and use tests: you must have owned the home for at least 2 years and lived in it as your primary residence for at least 2 of the past 5 years before the sale. These 2 years don't have to be consecutive.
Example: $180,000 tax-free profit
Sarah bought her home in Denver for $320,000 in 2019. She lived in it as her primary residence until selling it in 2026 for $500,000. Her capital gain is $180,000 ($500,000 - $320,000). Since she's single and meets the ownership/use requirements, she can exclude the entire $180,000 from her taxable income, saving approximately $27,000-$43,200 in federal taxes depending on her tax bracket.
Key requirements you must meet
When you can't use the full exclusion
The exclusion is reduced if you don't meet the full 2-year requirement due to unforeseen circumstances like job changes, health issues, or other qualifying events. According to IRS Publication 523, you may qualify for a partial exclusion based on the fraction of the 2-year period you did meet the requirements.
What counts toward your cost basis
Your profit calculation isn't just sale price minus purchase price. You can add certain costs to your basis to reduce your taxable gain:
What you should do
Keep detailed records of your home purchase, all improvements, and selling expenses. If you're approaching the ownership/use requirement deadlines, consult with a tax professional before selling. The exclusion can save tens of thousands in taxes, but the rules have specific requirements that must be met.
Key takeaway: The home sale exclusion can eliminate taxes on up to $250,000 (single) or $500,000 (married) of home sale profit if you've owned and lived in your primary residence for at least 2 of the past 5 years.
*Sources: [IRC Section 121](https://www.law.cornell.edu/uscode/text/26/121), [IRS Publication 523](https://www.irs.gov/pub/irs-pdf/p523.pdf)*
Key Takeaway: Most homeowners can exclude up to $250,000-$500,000 of home sale profit from taxes if they've lived in their primary residence for 2+ years.
Capital gains exclusion limits by filing status and qualifying scenarios
| Filing Status | Full Exclusion Limit | Partial Exclusion Example (18 months residence) | Tax Savings (22% bracket) |
|---|---|---|---|
| Single | $250,000 | $187,500 | $41,250-$55,125 |
| Married Filing Jointly | $500,000 | $375,000 | $82,500-$110,250 |
| Married Filing Separately | $250,000 each | $187,500 each | $41,250-$55,125 each |
More Perspectives
Michelle Woodard, Tax Policy Analyst
Best for people who recently bought their first home and want to understand future tax implications
Planning ahead as a new homeowner
As a first-time homebuyer, understanding the home sale capital gains exclusion helps you plan for the future. The 2-year ownership and residency requirements mean you need to live in your home as your primary residence for at least 24 months during the 5 years before selling to qualify for the full exclusion.
Example: New homeowner timeline
If you bought your first home in January 2026, you'd need to live there until at least January 2028 to qualify for the exclusion. However, the 5-year lookback period gives you flexibility - you could move out in 2028, rent it out for up to 3 years, then sell in 2031 and still qualify because you lived there for 2 of the past 5 years.
Important considerations for first-time buyers
Key takeaway: New homeowners should plan to live in their primary residence for at least 2 years to maximize future tax savings when selling.
Key Takeaway: New homeowners should plan to live in their primary residence for at least 2 years to maximize future tax savings when selling.
Robert Kim, Tax Return Analyst
Best for homeowners who have moved multiple times or lived in their current home for less than 2 years
When you don't meet the full 2-year requirement
If you sell your home before meeting the 2-year ownership and use requirements, you may still qualify for a partial exclusion if the sale was due to unforeseen circumstances. According to IRS Publication 523, qualifying reasons include job changes requiring a move of 50+ miles, health issues, or divorce.
Example: Partial exclusion calculation
John lived in his home for 15 months before accepting a job requiring relocation. Since he met 15/24 months (62.5%) of the requirement, he can exclude 62.5% of the normal $250,000 limit, or $156,250 of gain. If his profit was $100,000, he'd owe no capital gains tax.
Multiple moves and the 2-year rule
The 2-year exclusion frequency rule prevents you from using the exclusion on multiple home sales within 2 years, even if each individually qualifies. However, partial exclusions for unforeseen circumstances aren't subject to this frequency test.
Planning strategies for frequent movers
Key takeaway: Frequent movers may still qualify for partial capital gains exclusions based on the portion of time they met the ownership and use requirements.
Key Takeaway: Frequent movers may still qualify for partial capital gains exclusions based on the portion of time they met the ownership and use requirements.
Sources
- IRS Publication 523 — Selling Your Home - Tax rules for home sales and capital gains exclusion
- IRC Section 121 — Exclusion of gain from sale of principal residence
Related Questions
Reviewed by Robert Kim, Tax Return Analyst on February 28, 2026
This content is for educational purposes only and is not a substitute for professional tax advice. Consult a qualified tax professional for advice specific to your situation.