Want to maximize your home sale profits? Here’s how to avoid capital gains taxes when selling a house

In this article:

Paying taxes is a chore, but finding a break here or there can make it feel less daunting. If you’re selling your home this year, you may stand to make a nice profit, but the IRS is assuredly lurking. Paying taxes for these capital gains is one of the common consequences of selling a house, so it's common for savvy homeowners to want to avoid them.

The IRS considers homes and real estate to be capital assets, making them subject to capital gains tax, which can be a real nuisance in the seller’s market of the past two years. Fortunately, thanks to the Taxpayer Relief Act of 1997, many homeowners can pocket the profit without paying capital gains tax — if the proceeds are under a certain limit and the home meets other qualifying criteria.

How much is capital gains tax in real estate?

A capital gains tax is a levy on the profit from the sale of an asset or investment. It is assessed on the difference between what you paid for the asset (cost basis) and what you sold it for (sale price). Capital gains taxes most often apply to investments like stocks and bonds, but also apply to material assets like cars, boats, and real estate.

Capital gains tax rates are dependent on several factors like:

  • Your income tax bracket
  • Your marital status
  • Length of occupancy in the house
  • If the house was the your primary residence, secondary residence, or investment property
  • Profit from home sale

The last bullet, your profit from home sale, is  particularly important; home sellers can make use of certain tax exemptions to reduce their tax burden. We’ll discuss more of the nuances of the tax assessment below, but for now, let’s assume you purchased a home two years ago for $425,000 and sold it for $500,000 today. Your profit, or capital gains, would be $75,000, and you’ll need to report on your 2022 taxes.

Capital gains tax rates 2022

When you sell property that you’ve owned for less than a year, then your profit, called short-term gains, will be taxed as regular income. That means you could pay a hefty sum, based on where you fall in the income tax brackets. 

When you sell property that you’ve owned for more than a year, then your profit is considered long-term capital gains. You’ll be subject to long-term capital gains tax rates, which are much easier to swallow than income tax rates.

There are only three capital gains tax brackets: 0%, 15%, and 20%. Similar to how ordinary tax brackets work, you only pay a given tax rate for the amount of capital gains income that falls within that bracket.

Capital gains received
Tax rate Single Married, filing jointly Married, filing separately Head of household
0% $0 to $41,675 $0 to $83,350 $0 to $41,675 $0 to $55,800
15% $41,676 to $459,750 $83,351 to $517,200 $41,676 to $258,600 $55,801 to $488,500
20% $459,750 + $517,201 + $258,601 + $488,501 +

For example, as a single filer, if you made $75,000 in profit this is how your capital gains would be taxed.

  • The first $41,675 of your capital gains would be be taxed at 0%
  • The remaining $33,325 would be taxed at 15%
  • The total tax you owe is $4,998.75

However, you may not actually have to pay anything, if you can claim the home sale exclusion.  

Do I qualify for a home sale exclusion on my taxes?

The Taxpayer Relief Act of 1997 allows homeowners to write off up to $250,000 of capital gains (or $500,000 for married couples filing together). It’s a major exemption from real estate capital gains tax on a single home.

But, in order to claim the exemption, you must meet one important criteria. Your home must be a primary residence, meaning you must have occupied it for at least two of the last five years. So if you bought a home last year, and your local market is on fire, selling it for a major profit is a bad idea. You’ll owe capital gains tax.

That said, those two years in residence don’t have to be consecutive. Married taxpayers filing jointly must each meet the two year in five rule individually.

So, when do you pay capital gains on a home sale? 

You will lose the $250,000/$500,000 exclusion if any of these factors are true:

  • The house wasn’t your primary residence.
  • You owned the property for less than two years before you sold it.
  • You didn’t live in the house for at least two of the previous five years before you sold it.
  • You already claimed the capital gains tax exclusion on another home in the two-year period before you sold this home.
  • You bought the house through a like-kind exchange in the past five years. (This means you swapped one investment property for another, also known as a 1031 exchange.)
  • You are subject to expatriate tax.

Related: How soon can I sell my house after buying it?

Home sale exclusion example

Let’s return to our example from earlier — the house you purchased two years ago for $425,000 and recently sold for $500,000. Let’s assume that this house was your primary residence that you lived in for those two years. Your profit was $75,000, well below the $250,000/$500,000 threshold for exclusions. That means that you’re exempt from paying capital gains taxes on your profits from the home sale.

How much is capital gains tax on rental property?

Unfortunately, rental properties don’t qualify for the exclusions provided by the Taxpayer Relief Act of 1997. That means that homeowners have to pay tax on the entire profit, without the option to exclude $250,000/$500,000.

If you’re thinking of renting or selling your house, take capital gains tax costs into account. And if you’ve owned your rental property for less than a year, try to hang on to it for at least 12 months before selling or you could get a tax bill of up to 37%. That’s because selling a property that you’ve owned for less than a year is taxed as ordinary income, which has a higher tax rate than capital gains taxes.

How to avoid capital gains tax on home sales

The primary means of avoiding capital gains tax is to have owned the house and lived in it as your primary residence for at least two years before selling it to qualify for the homie sale exclusion. There are also other ways to avoid or reduce capital gains tax.

Adjustments to the cost basis

The price you paid for your home is your cost basis. Making adjustments to this number can reduce your overall gain, ensuring that you fit inside the exclusion maximum or helping you lower what you owe in capital gains tax. There are two main ways to do this:

  • Retroactively adjust your cost basis: In addition to the purchase price of your home, you can also include fees and other expenses involved in the purchase, as well as the costs of home improvements or addition. The inclusion of these costs can significantly lower your profit.
  • Offset capital gains with capital losses: If you lost money on other investments, you can carry those losses forward to subsequent tax years to help offset your overall capital gains tax burden.

You must keep organized records documenting these costs if you choose to make these adjustments. They will provide crucial supporting evidence in the event that you’re audited.

Use 1031 exchanges

A 1031 exchange is named after IRS Code Section 1031, which allows for the exchange of like property with no other consideration or like property including other considerations, like cash. That means you can avoid paying taxes on the sale of your home by reinvesting the proceeds into a similar home, within 180 days, through a 1031 exchange.

According to the IRS, “Properties are of like-kind if they’re of the same nature or character, even if they differ in grade or quality.” So you won’t need to buy a house that, say, costs just as much as your previous home in order to qualify for this exchange. That said, your replacement property needs to be of equal or greater value for you to receive the full benefit of the exchange.

In this type of transaction, the capital gains tax is deferred, not eliminated, so you may eventually owe if you don’t use a 1031 exchange on your next home. It’s a complex process, so it’s a good idea to work with a 1031 exchange company if you plan to go this route.

Convert your second home into your primary residence

We touched on this method of claiming the capital gains tax exclusion earlier, but how do you actually do it?

  • Homeowners who can prove a second home was their primary residence for a total of 730 days over the previous five years can claim the tax exclusion. 
  • However, you can only apply the capital gains exclusion to the term that you used the property as a primary residence. 
  • So, if you only lived in a residence for three of the last five years, you may only exclude capital gains earned in those three years.

This is a confusing stipulation, we know, and one that is unique to every situation. A tax professional is best equipped to help you earmark gains so you don’t claim the entire profit on your sale of a property and risk getting audited by the IRS.

It’s extremely difficult to avoid paying at least some capital gains tax on an investment property. If it’s a vacation home, you will have to pay capital gains taxes on the sale. Again, a tax expert can help you navigate this complex path.

Nobody wants to pay taxes that they don’t have to. When you make a windfall profit by selling your home, it’s just fiscally smart to mitigate your tax burden. While there are laws in place to help you avoid paying capital gains tax when selling a home, you may start to run into challenges when selling vacation homes or investment properties. There are still ways to lessen your tax burden, however, if you’re ready to get into some complex tax law.

Guaranteed your home sale— and so much more

On top of Orchard’s Home Sale Guarantee, we list, prep, and show your old home after you’re all moved out.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Close more deals with Orchard brokerage

Grow your business and make $50-$70K more per year.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Closing Fees
$0
$0
$0
$0
Other Costs to Consider
$0
Orchard can help you avoid overpaying additional selling and moving costs
$0
$0
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Estimated Net Proceeds
$0
Home Sale Price
$0
Total Cost to Sell
$0
Get my free valuation
Orchard is 30% more accurate than leading estimates.

Sell for more with value-boosting improvements

When you list with Orchard, we’ll get your home show-ready and make repairs to increase your home’s value at no upfront cost.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Closing Fees
$0
$0
$0
$0
Other Costs to Consider
$0
Orchard can help you avoid overpaying additional selling and moving costs
$0
$0
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Estimated Net Proceeds
$0
Home Sale Price
$0
Total Cost to Sell
$0
Get my free valuation
Orchard is 30% more accurate than leading estimates.

Buy a new home knowing you’ve sold your current one

Orchard guarantees your home will sell, so you can buy your next one worry-free.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Closing Fees
$0
$0
$0
$0
Other Costs to Consider
$0
Orchard can help you avoid overpaying additional selling and moving costs
$0
$0
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Estimated Net Proceeds
$0
Home Sale Price
$0
Total Cost to Sell
$0
Get my free valuation
Orchard is 30% more accurate than leading estimates.

Guaranteed your home sale— and so much more

On top of Orchard’s Home Sale Guarantee, we list, prep, and show your old home after you’re all moved out.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Closing Fees
$0
$0
$0
$0
Other Costs to Consider
$0
Orchard can help you avoid overpaying additional selling and moving costs
$0
$0
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Estimated Net Proceeds
$0
Home Sale Price
$0
Total Cost to Sell
$0
Get my free valuation
Orchard is 30% more accurate than leading estimates.

How much can I make selling my home?

Use our home sale calculator to estimate your net proceeds.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Closing Fees
$0
$0
$0
$0
Other Costs to Consider
$0
Orchard can help you avoid overpaying additional selling and moving costs
$0
$0
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Estimated Net Proceeds
$0
Home Sale Price
$0
Total Cost to Sell
$0
Get my free valuation
Orchard is 30% more accurate than leading estimates.

Don’t navigate the market alone

Our Home Advisors are experienced local agents who know how to sell for top dollar and help win your dream home.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Closing Fees
$0
$0
$0
$0
Other Costs to Consider
$0
Orchard can help you avoid overpaying additional selling and moving costs
$0
$0
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Estimated Net Proceeds
$0
Home Sale Price
$0
Total Cost to Sell
$0
Get my free valuation
Orchard is 30% more accurate than leading estimates.

Let’s match you with a real estate agent

All Orchard Home Advisors are experienced agents who know your local market inside and out. Request a consult today.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Closing Fees
$0
$0
$0
$0
Other Costs to Consider
$0
Orchard can help you avoid overpaying additional selling and moving costs
$0
$0
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Estimated Net Proceeds
$0
Home Sale Price
$0
Total Cost to Sell
$0
Get my free valuation
Orchard is 30% more accurate than leading estimates.

Close faster with a cash offer

Did you know cash offers are 4x more likely to be chosen by a seller? Let us help you make one on your next home.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Closing Fees
$0
$0
$0
$0
Other Costs to Consider
$0
Orchard can help you avoid overpaying additional selling and moving costs
$0
$0
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Estimated Net Proceeds
$0
Home Sale Price
$0
Total Cost to Sell
$0
Get my free valuation
Orchard is 30% more accurate than leading estimates.

Know what your home is really worth

Get the most accurate free home valuation — in minutes

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Closing Fees
$0
$0
$0
$0
Other Costs to Consider
$0
Orchard can help you avoid overpaying additional selling and moving costs
$0
$0
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Estimated Net Proceeds
$0
Home Sale Price
$0
Total Cost to Sell
$0
Get my free valuation
Orchard is 30% more accurate than leading estimates.

Curious what your monthly mortgage payment would be?

Orchard Home Loans shops the market to find your best rates.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Closing Fees
$0
$0
$0
$0
Other Costs to Consider
$0
Orchard can help you avoid overpaying additional selling and moving costs
$0
$0
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Estimated Net Proceeds
$0
Home Sale Price
$0
Total Cost to Sell
$0
Get my free valuation
Orchard is 30% more accurate than leading estimates.

Stand out to sellers with a cash offer

A cash offer is 4x more likely to be chosen by a seller. Get qualified today.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Closing Fees
$0
$0
$0
$0
Other Costs to Consider
$0
Orchard can help you avoid overpaying additional selling and moving costs
$0
$0
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Estimated Net Proceeds
$0
Home Sale Price
$0
Total Cost to Sell
$0
Get my free valuation
Orchard is 30% more accurate than leading estimates.

Don’t miss out on your dream home

Make a cash offer now, and Orchard will sell your old home after you move.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Closing Fees
$0
$0
$0
$0
Other Costs to Consider
$0
Orchard can help you avoid overpaying additional selling and moving costs
$0
$0
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Estimated Net Proceeds
$0
Home Sale Price
$0
Total Cost to Sell
$0
Get my free valuation
Orchard is 30% more accurate than leading estimates.

Your dream home is waiting for you

Tell us your must-haves to see personalized home recommendations that meet your criteria.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Closing Fees
$0
$0
$0
$0
Other Costs to Consider
$0
Orchard can help you avoid overpaying additional selling and moving costs
$0
$0
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Estimated Net Proceeds
$0
Home Sale Price
$0
Total Cost to Sell
$0
Get my free valuation
Orchard is 30% more accurate than leading estimates.

The stress-free way to buy and sell

With Orchard, secure your dream home before you list. Avoid home showings, rentals, and double moves.

Learn More