Calculator, tax documents and a small house model on a desk
Back to Seller Hub

Tax Implications of Selling Your Home

Understand capital gains taxes, primary residence exclusion, 1031 exchanges, and tax-smart selling strategies.

💡 Disclaimer: Consult a tax professional or CPA for your specific situation. This is educational information only.

Capital Gains Tax Basics

When you sell a home at a profit, the IRS may want a cut. Understand how capital gains taxes work.

Capital Gain = Profit

Selling Price − Adjusted Basis = Capital Gain

Example:

• Bought home in 2010 for: $200,000

• Sell home in 2024 for: $350,000

• Capital Gain: $150,000

Two Types of Capital Gains:

  • Long-term: Owned home 2+ years (taxed at 0%, 15%, or 20% depending on income)
  • Short-term: Owned home less than 2 years (taxed at ordinary income rates, up to 37%)

💡 Most home sellers benefit from long-term capital gains rates.

Primary Residence Exclusion (The Big Break)

This is your biggest tax advantage. The IRS allows you to exclude significant capital gains on your primary residence.

The Exclusion Amount:

Single Filers: Up to $250,000 of capital gain excluded

Married Filing Jointly: Up to $500,000 of capital gain excluded

This means if your gain is less than these amounts, you owe $0 federal capital gains tax.

Eligibility Requirements:

  • ✓ Lived in home as primary residence for at least 2 of the last 5 years
  • ✓ Haven't used this exclusion on another home in the past 2 years
  • ✓ Own the home (can't exclude if inherited or received as gift)

Real Example:

Jane (single) buys home for $200K. Sells 6 years later for $425K.

Capital Gain = $225,000

Less Primary Residence Exclusion: −$250,000

Taxable Gain: $0 (Jane owes no capital gains tax!)

What's Included in Adjusted Basis

Your original purchase price isn't the only factor. Improvements and costs can reduce your taxable gain.

Items That Increase Basis (reduce taxable gain):

  • ✓ Original purchase price
  • ✓ Home improvements: new roof, HVAC, plumbing, electrical upgrades
  • ✓ Additions: deck, garage, room addition
  • ✓ Landscaping improvements (permanent)
  • ✓ Pool installation
  • ✓ Buying costs: inspection, appraisal, title insurance

💡 Keep Records! Hold onto receipts for any home improvements. These can significantly reduce your taxes.

Example:

• Bought for: $200,000

• New roof (2015): $15,000

• HVAC replacement (2018): $8,000

• Kitchen remodel (2021): $25,000

Adjusted Basis: $248,000 (vs just $200K)

This reduces your capital gain by $48,000!

1031 Exchange (Tax Deferral)

If you're an investor, a 1031 exchange lets you defer capital gains taxes by reinvesting proceeds into another property.

How It Works:

  • 1. Sell a rental/investment property
  • 2. Identify replacement property within 45 days
  • 3. Close on replacement within 180 days of original sale
  • 4. Defer all capital gains taxes (for now)

Caution: This is only for investment properties, not primary residences. Must work with a qualified intermediary. Consult a tax professional.

Other Tax Considerations

State Taxes:

Montana doesn't have a capital gains tax on home sales (very beneficial!). However, if you move to another state or have out-of-state property, check that state's rules.

Depreciation Recapture (Investors):

If you own rental/investment property and claimed depreciation, you'll owe taxes on that depreciation (25% rate) when you sell.

Net Investment Income Tax (NIIT):

If your income exceeds thresholds ($200K single, $250K married), you may owe an additional 3.8% tax on investment income, including capital gains.

Installment Sales:

If you finance the buyer's purchase (carry-back mortgage), you can spread capital gains over multiple years, potentially reducing your annual tax burden.

Tax-Smart Selling Strategies

  • Document improvements: Keep all receipts for repairs, upgrades, additions
  • Time your sale wisely: Ensure you meet the 2-year residence requirement
  • Consider installment sale: If taking back a mortgage, spread capital gains across years
  • Harvest losses: If you have investment losses elsewhere, use them to offset capital gains
  • Coordinate with tax year: Consult CPA about timing (e.g., selling in next calendar year)
  • Plan for married couples: Two people filing jointly get $500K exclusion — huge benefit

⚠️ Important Reminder

This guide is educational. Consult a CPA, tax attorney, or financial advisor about your specific situation. Tax laws are complex and personal circumstances vary. Your gains, deductions, and overall income determine your actual tax liability.

Ready to sell your Montana home? Get your free home valuation estimate and tax considerations in order.