How to Reduce or Avoid Capital Gains Tax When Selling Your Home

August 15, 20253 min read

Selling your home can be exciting, but it can also come with questions about taxes. One of the biggest concerns sellers face is capital gains tax—the tax you may owe when your home sells for more than you paid for it. The good news? With the right knowledge and strategies, many homeowners can reduce or even avoid this tax altogether.

A homeowner placing a “For Sale” sign in front of their house, representing selling a primary residence and potential capital gains tax savings.
Custom HTML/CSS/JAVASCRIPT

What Is Capital Gains Tax on Home Sales?

Capital gains tax applies when you sell a home for a profit. For example, if you bought your home for $300,000 and sell it for $500,000, the $200,000 profit is a capital gain.

But thanks to the Taxpayer Relief Act of 1997, most sellers don’t pay tax on all of that profit. Instead, the IRS gives you an exclusion:

  • Up to $250,000 tax-free if you’re single

  • Up to $500,000 tax-free if you’re married filing jointly

This rule, called the Section 121 exclusion, makes selling a primary residence much more favorable than selling an investment or rental property.

The 2-in-5-Year Rule

To qualify for the exclusion, the IRS requires that the home be your primary residence. You must:

  • Have owned the home for at least two years

  • Have lived in it for at least two of the last five years

Those 24 months don’t have to be consecutive, which gives sellers some flexibility. However, you can only claim this exclusion once every two years.

Custom HTML/CSS/JAVASCRIPT

When a Home Sale Is Fully Taxable

Some sales don’t qualify for the exclusion. You may owe full capital gains tax if:

  • The property is not your primary residence

  • You purchased the home through a 1031 exchange within five years

  • You sold another home and claimed the exclusion within the last two years

  • You don’t meet the two-year ownership or use requirements

How Capital Gains Tax Is Calculated

Capital gains are taxed differently depending on how long you owned the home:

  • Short-term capital gains (ownership ≤ 1 year): Taxed as ordinary income, up to 37%.

  • Long-term capital gains (ownership > 1 year): Taxed at 0%, 15%, or 20%, depending on your income bracket.

How Sellers Can Reduce or Avoid Capital Gains Tax

Even if you expect to owe taxes, there are proven ways to minimize or eliminate what you pay:

1. Keep Records of Improvements

Major improvements—like remodeling, additions, landscaping, or new systems—increase your cost basis (the original purchase price plus improvements). A higher cost basis reduces your taxable gain.

2. Use a 1031 Exchange for Investment Properties

If you’re selling a rental or investment property, you can defer taxes by reinvesting the proceeds in another similar property through a 1031 exchange. This doesn’t eliminate taxes, but it pushes them down the road.

Custom HTML/CSS/JAVASCRIPT

4. Consider an Installment Sale

Instead of taking one large payment, you can structure the sale so you’re paid in installments. This spreads out the taxable gain and may keep you in a lower tax bracket.

Special Situations Sellers Should Know

  • Widowed taxpayers: If you sell within two years of your spouse’s death and meet requirements, you may qualify for the full $500,000 exclusion.

  • Military, foreign service, or disabled homeowners: Special rules may allow exceptions to the 2-in-5-year rule.

  • Foreign nationals: Sales are subject to FIRPTA, requiring 15% withholding at the time of sale.

The Bottom Line for Home Sellers

For most homeowners, selling a primary residence is a tax-free event up to $250K (single) or $500K (married). By keeping good records, understanding IRS rules, and using strategies like 1031 exchanges or conversions, you can reduce or even eliminate capital gains taxes when you sell.

Selling your home is about more than profit—it’s about making smart choices that protect your wealth. Knowing these rules before you sell ensures you keep more of your hard-earned equity in your pocket.

Custom HTML/CSS/JAVASCRIPT
Back to Blog