Capital Gains Tax When Selling Your Home: Complete Guide
The Good News: The $250K Exclusion
When you sell your primary residence, the IRS lets you exclude capital gains from taxes. For single filers: $250,000. For married couples filing jointly: $500,000.
Example: You buy a home for $400K, sell it for $650K. Gain: $250K. Single filer? Zero taxes owed. Married? Still zero (gain is $250K, exactly at limit).
How Gain is Calculated
Gain = Sale Price - Cost Basis
Cost basis includes:
- Original purchase price
- Closing costs (points, title insurance)
- Home improvements (roof, HVAC, kitchen remodel = ADD TO BASIS)
- Minus: Depreciation (if you ever claimed rental deduction)
Example:
- Purchase price: $400,000
- Closing costs: $15,000
- Kitchen remodel: $50,000
- Cost basis: $465,000
- Sale price: $650,000
- Gain: $185,000
- Taxable gain (single): $0 (under $250K exclusion)
Ownership & Use Requirements
To qualify for the $250K/$500K exclusion:
- ✅ Own the home 2 of the last 5 years
- ✅ Live in it as primary residence 2 of the last 5 years
- ✅ Haven't used exclusion in the last 2 years (once every 2 years max)
Rental properties or investment homes don't qualify. Primary residence only.
What if Gains Exceed Exclusion?
Example: You bought for $400K, sell for $700K (gain: $300K)
- Single filer exclusion: $250,000
- Taxable gain: $50,000
- Long-term capital gains rate (15-20%): $7,500-10,000 tax
California also taxes capital gains at income tax rates (13.3% top bracket). So federally $7,500 + state $6,650 = $14,150 total.
Long-Term vs. Short-Term Gains
Long-term (held 1+ year): 0%, 15%, or 20% federal depending on income
Short-term (held < 1 year): Ordinary income rates (up to 37% federal)
Lesson: Hold at least 1 year before selling to get favorable long-term rates.
The 1031 Exchange (For Investors)
Investment property owners can do a "1031 exchange" to defer all capital gains taxes indefinitely.
How it works:
- Sell rental property for $500K (gain: $200K)
- Within 45 days: Identify replacement property
- Within 180 days: Close on replacement property (minimum $500K)
- No tax on $200K gain (deferred indefinitely)
Rules:
- Must identify replacement within 45 days
- Must close within 180 days
- Replacement must be equal or greater value
- Can't be used for primary residence
- Use a qualified intermediary (required)
Benefit: Investors can build massive portfolios without ever paying capital gains if they keep 1031 exchanging.
Strategy: Maximizing the Exclusion
For Married Couples (Up to $500K Exclusion)
You need both spouses to own and live in the home. If one spouse doesn't meet requirements, you lose half the exclusion.
Multiple Properties
You can only use the exclusion once every 2 years. So if you own multiple homes:
- Year 1: Sell home A (use exclusion)
- Year 2: Can't sell home B (must wait until year 3)
- Year 3: Sell home B (use exclusion)
Rental Conversion Strategy
Own a primary residence you're converting to rental? Live in it 2 of the last 5 years, then you can still use the exclusion when you sell (even if you rented it out for 3 years, as long as you lived there 2 years in the period).
Deductions You Can't Take (Common Mistakes)
- ❌ Mortgage interest (paid when you owned, not on sale)
- ❌ Property taxes (paid when you owned, not on sale)
- ❌ Realtor commission (reduces net proceeds, not your basis)
- ❌ Regular maintenance (painting, landscaping = not tax deductible)
- ✅ Major improvements (roof, HVAC, structural = ADD TO BASIS)
California Considerations
State capital gains tax: California taxes capital gains as ordinary income (up to 13.3%).
Proposition 19 (2021): Changed property tax reassessment rules. If you inherit property or transfer it within family, property taxes may increase significantly.
Pro Tips for Home Sellers
- ✅ Document home improvements (receipts, invoices)
- ✅ Keep records of closing costs
- ✅ Plan the sale with a tax advisor (timing matters)
- ✅ If married, ensure both spouses meet ownership/use tests
- ✅ For investment properties, consider 1031 exchange before selling
- ✅ Understand state and local taxes (not just federal)
Key Takeaways
- ✅ Primary residence exclusion: $250K (single) or $500K (married)
- ✅ Must own and live in home 2 of last 5 years
- ✅ Gain = sale price minus cost basis
- ✅ Cost basis includes improvements and closing costs
- ✅ Excess gains taxed at capital gains rates (15-20% federal + state)
- ✅ Investment properties: Use 1031 exchange to defer all taxes
- ✅ Consult tax professional BEFORE selling
Conclusion
The $250K/$500K exclusion is a massive tax benefit for primary residence owners. Most sellers owe zero taxes because their gain is under the exclusion.
Plan ahead, document improvements, and consult a tax professional to maximize benefits.
Selling Your Home?
Book a tax planning consultation ($150) — Plan your sale to minimize taxes.