Capital Gains Tax When Selling Your Home: Complete Guide

Published: March 7, 2026 | Read time: 8 minutes | Tax planning for home sellers

⚠️ Disclaimer: This is educational information, not tax advice. Consult a qualified tax professional or CPA about your specific situation before selling.

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:

Example:

Ownership & Use Requirements

To qualify for the $250K/$500K exclusion:

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)

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:

  1. Sell rental property for $500K (gain: $200K)
  2. Within 45 days: Identify replacement property
  3. Within 180 days: Close on replacement property (minimum $500K)
  4. No tax on $200K gain (deferred indefinitely)

Rules:

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:

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)

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

Key Takeaways

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.

📋 Disclaimer: This is educational information, not tax advice. Consult a CPA or tax attorney for your specific situation.