The Principal Residence Exclusion: Who Qualifies?
To qualify for the Section 121 exclusion, you must meet two tests: the ownership test (you owned the home for at least 2 of the last 5 years) and the use test (you lived in the home as your primary residence for at least 2 of the last 5 years). The 2 years do not need to be continuous. You can use this exclusion once every two years.
Home sale exclusion qualifying scenarios
| Scenario | Exclusion Amount | Qualifies? |
|---|---|---|
| Single, owned and lived in 3 years, profit $200K | $250K | Yes — full exclusion, no tax |
| Married, owned and lived in 2+ years, profit $480K | $500K | Yes — full exclusion, no tax |
| Married, profit $600K (gain exceeds exclusion) | $500K | Partial — $100K taxable |
| Owned 3 years, only lived there 1 year | $0 | No — use test not met (2 years required) |
| Used exclusion 15 months ago | Partial or $0 | No — must wait 2 years between exclusions |
What Reduces Your Home’s Cost Basis?
Your home’s cost basis is not simply what you paid for it. Add capital improvements (additions, major renovations, new roof, HVAC, finished basement) to increase your basis. Subtract depreciation previously claimed if the home was used as a rental. The higher your adjusted basis, the smaller your gain — and the more likely you stay under the exclusion limit.
- Add to basis: Purchase price + closing costs paid at purchase + all capital improvements
- Capital improvements included: New roof, additions, renovations, new HVAC, finished basement, new kitchen
- Do NOT add to basis: Regular maintenance (painting, cleaning, repairs that restore without adding value)
- Subtract from basis: Casualty losses previously deducted, energy credits for home improvements in some cases
- Subtract: Depreciation claimed if property was used as rental or home office (must recapture)
- Keep receipts for all capital improvements — they reduce your taxable gain when you sell
A homeowner who buys a home for $300,000 and makes $80,000 in capital improvements over 15 years has an adjusted basis of $380,000. Selling for $700,000 generates a $320,000 gain — for a married couple, $180,000 of that is still excluded under the $500K limit. Without tracking improvements, they might have reported $400K in gain and owed tax on $100K more than necessary.
When You Owe Capital Gains Tax on a Home Sale
Capital gains tax on a home sale applies when: (1) Your gain exceeds the exclusion ($250K single / $500K MFJ), (2) You do not meet the 2-year ownership and use tests, or (3) The home was used partly as rental property. For the portion that does not qualify, normal long-term capital gains rates apply (0%, 15%, 20% depending on income).
Calculate Tax on Your Home Sale
Enter your purchase price, improvements, sale price, and income to see your home sale gain and applicable tax.