Capital Gains Tax on Home Sales
Selling your home for a profit is great - until you think about taxes. The good news? Most homeowners pay little or no capital gains tax thanks to the primary residence exclusion.
The Primary Residence Exclusion
The Exemption
Single filers: $250,000 excluded Married filing jointly: $500,000 excluded
This means your first $250,000 (or $500,000) of profit is tax-free.
Qualifying Requirements
To claim the full exclusion:
Ownership Test: You owned the home for at least 2 years during the 5-year period ending on the sale date.
Use Test: You used the home as your primary residence for at least 2 years during the 5-year period ending on the sale date.
Frequency Limit: You haven't excluded gain from another home sale in the past 2 years.
Example: Full Exclusion
| Item | Amount | |------|--------| | Sale Price | $450,000 | | Purchase Price | $250,000 | | Improvements | $50,000 | | Adjusted Basis | $300,000 | | Gain | $150,000 | | Exclusion Used | $150,000 | | Taxable Gain | $0 |
When You'll Owe Tax
Gain Exceeds Exclusion
If your profit exceeds $250,000 (single) or $500,000 (married):
| Gain | Exclusion | Taxable | |------|-----------|---------| | $600,000 | $500,000 | $100,000 |
Don't Meet Ownership/Use Tests
If you lived in the home less than 2 years, you may:
- Owe tax on full gain
- Qualify for partial exclusion (hardship)
Second Home/Investment Property
No exclusion for:
- Vacation homes
- Rental properties
- Investment properties
(But 1031 exchange may defer taxes)
Calculating Your Gain
Basic Formula
Sale Price - Adjusted Basis = Gain
Finding Your Basis
Start With: Original purchase price
Add:
- Closing costs when purchased
- Capital improvements (not repairs)
Subtract:
- Depreciation claimed (if rental)
- Insurance or casualty payments
- Energy credits claimed
Capital Improvements vs. Repairs
Improvements (Add to Basis):
- Room additions
- New roof
- New HVAC
- Kitchen remodel
- New windows
- Finished basement
Repairs (Don't Add to Basis):
- Fixing leaks
- Painting
- Patching holes
- Replacing broken fixtures
- General maintenance
Example Calculation
| Item | Amount | |------|--------| | Purchase Price | $200,000 | | Closing Costs (Purchase) | $4,000 | | New Roof | $12,000 | | Kitchen Remodel | $25,000 | | Bathroom Addition | $18,000 | | Adjusted Basis | $259,000 | | Sale Price | $400,000 | | Selling Costs | $24,000 | | Net Proceeds | $376,000 | | Gain | $117,000 | | Exclusion Available | $250,000 | | Taxable | $0 |
Capital Gains Tax Rates
Long-Term Rates (Held Over 1 Year)
| Taxable Income | Rate | |---------------|------| | Up to $47,025 (single) | 0% | | $47,026 - $518,900 | 15% | | Over $518,900 | 20% |
Plus: 3.8% Net Investment Income Tax for high earners
Short-Term Rates (Held Under 1 Year)
Taxed as ordinary income (your regular tax bracket).
Strategies to Reduce Tax
Keep Excellent Records
Document all improvements:
- Invoices
- Receipts
- Before/after photos
- Permits
Every dollar of documented improvement reduces taxable gain.
Time Your Sale
If close to meeting 2-year test, waiting may save significant tax.
Example: 22 months ownership → Full tax on gain 24 months ownership → $250,000+ exclusion
Use the Partial Exclusion
If you must sell before 2 years due to:
- Job change (50+ miles)
- Health reasons
- Unforeseen circumstances
You may claim a prorated exclusion.
Example: Lived 1 year (50% of 2 years) Exclusion: $125,000 (50% of $250,000)
Convert Investment to Primary
If you have a second home:
- Move into it
- Live there 2+ years
- Claim primary residence exclusion
Note: Complex rules limit this strategy for properties used as rentals.
1031 Exchange for Investment Property
Defer taxes by exchanging investment property for like-kind property.
Requirements:
- Both properties must be investment/business
- Identify replacement in 45 days
- Close in 180 days
- Use qualified intermediary
State Taxes
Don't forget state capital gains tax:
- California: Up to 13.3%
- New York: Up to 8.82%
- New Jersey: Up to 10.75%
- Some states: 0%
Check your state's rules.
Special Situations
Inherited Home
Basis "steps up" to fair market value at death. Often eliminates most gain.
Divorce
Transfers between spouses are tax-free. Receiving spouse takes original basis.
Home Office
Depreciation claimed on home office must be recaptured (taxed).
Military/Foreign Service
Can suspend the 5-year test period during qualified official extended duty.
When to Consult a Professional
Talk to a CPA or tax attorney if:
- Gain exceeds exclusion significantly
- Property was rental/investment
- Complex ownership situations
- Planning strategies to minimize tax
- Selling multiple properties
The Bottom Line
Most primary residence sales owe no capital gains tax thanks to the generous exclusion. Keep good records, meet the ownership/use tests, and you'll likely keep your profit.
Get Your Sale Started
Ready to sell? SpotCashOffers makes it simple:
- Know your offer quickly
- Plan your tax strategy
- Close on your timeline
This article is for informational purposes only and is not tax advice. Consult a qualified tax professional for advice specific to your situation.