How Long Do You Have To Buy A House After Selling To Avoid Capital Gains Tax?

How Long Do You Have To Buy A House After Selling To Avoid Capital Gains Tax - How Long Do You Have To Reinvest Money From Sale Of Primary Residence

How long do you have to buy a house after selling to avoid capital gains tax?

In this article, you’ll learn about: 

  • how long you have to buy a house after selling to avoid capital gains tax
  • how capital gains tax work
  • whether you have to pay capital gains tax immediately
  • how to avoid capital gains tax
  • if you can avoid capital gains tax by buying another house

Let’s dig in. 

Table of Contents

The Hive Law Has Been Featured In

Get A FREE Consultation!

We run out of free consultations every month. Sign up to make sure you get your free consultation. (Free $350 value.)

How Long Do You Have To Buy A House After Selling To Avoid Capital Gains Tax?

Here’s how long you have to buy a house after selling one to avoid capital gains tax:

  • Primary Home: If you don’t qualify for the Section 121 exclusion, you cannot avoid capital gains tax. If you qualify for the exclusion, you won’t pay capital gains on the property, regardless of buying a new property. 
  • Investment Property: You have 45 days to find a property and 180 days to close on the property. 

Understanding how long you have to purchase a new property after selling one is crucial to avoid capital gains tax. 

In the U.S., the rules differ between selling a primary residence and an investment property. 

The timeframe and conditions for each type of property can determine:

  • whether you’ll incur capital gains tax immediately 
  • whether you can defer or exclude it

Let’s delve into the specifics of both scenarios.

Read More: How Much Time After Selling A House Do You Have To Buy A House To Avoid The Tax Penalty?

Primary Home

When you sell your primary home, you don’t need to buy another house to avoid capital gains tax. 

Let’s say you lived in and owned the house for at least two years in the five-year period before selling.

You can exclude up to $250,000 of the gain if you’re single or $500,000 if married filing jointly. 

This exclusion can be used once every two years.

Investment Property

For investment properties, the situation is different. 

To defer capital gains tax, you can use a Section 1031 exchange

Here, you’d need to:

  • identify a “like-kind” replacement property within 45 days of selling
  • close on the new property within 180 days of the sale of the old one 

This process allows you to defer paying capital gains tax by rolling the gains into the new property.

In summary, for a primary home, there’s no requirement to buy another house to get the capital gains exclusion. 

For an investment property, you have specific time frames (45 days to identify and 180 days to close) using the 1031 exchange to defer the tax.

Read More: Do You Have To Pay Capital Gains If You Reinvest In Another House?

How Does Capital Gains Tax Work?

When you sell a house for more than you bought it for, the profit you make is called a “capital gain.” 

This profit might be taxed, and that’s called “capital gains tax.”

How are capital gains calculated?

  • Determine Your Profit: Profit = Selling Price – Purchase Price – Costs of Selling – Costs of Home Improvements
  • Types of Capital Gains: If you owned the house for a year or less, the profit is a short-term gain, which is taxed as regular income. If you owned the house for more than a year, it’s a long-term gain. 
  • Home Sale Exclusion: Let’s say the house was your main home, and you lived in it for at least 2 of the last 5 years. Singles can exclude up to $250,000 of the profit from tax. Married couples can exclude up to $500,000.
  • Reporting the Sale: If you get a tax form called “1099-S” after selling, you have to report the sale on your taxes, even if you don’t owe any tax due to the home sale exclusion.
  • Other Points to Remember: If you sell your home at a loss (you sell it for less than you bought it), you can’t deduct that loss on your taxes. Some places also have a state-level tax on your profit, so remember to check local rules.

Do I Have To Pay Capital Gains Tax Immediately?

No, you don’t pay capital gains tax right after selling. 

Instead, you report the sale and any profit when filing your annual tax return. 

The tax itself is due by the regular deadline for that tax year, typically April 15th.

If expecting a significant tax amount, consider making estimated payments beforehand to avoid potential penalties.

How To Avoid Capital Gains Tax

Capital gains tax is the tax you pay on profit from selling assets like houses. 

While you can’t always avoid it, there are strategies to reduce or defer it:

  • Live in the House: If you’ve lived in your home for two of the last five years, singles can exclude up to $250,000 profit, and married couples up to $500,000.
  • Hold Longer: Owning the house for more than a year moves the profit into long-term capital gains, which usually have a lower tax rate.
  • Make Home Improvements: Money spent on enhancing the house increases its cost basis, reducing potential profit when selling.
  • Sell in a Low-Income Year: If your income is lower, the capital gains might be taxed at a reduced rate.
  • Offset with Losses: Use losses from other investments to counterbalance the profit from the house sale.
  • Use a 1031 Exchange: For investment properties, reinvest sale proceeds into a new property to defer the capital gains tax.
  • Gift or Inherit the House: Passing the house as a gift or inheritance can have different tax implications, sometimes avoiding capital gains.
  • Owner Financing: Spread the sale proceeds over several years, potentially lessening yearly tax burdens.

Can You Avoid Capital Gains Tax By Buying Another House?

When it comes to avoiding capital gains:

  • Primary Residence: No, you cannot avoid capital gains by buying another house. You have to meet the Section 121 Exclusion to avoid capital gains. 
  • Investment Property: Yes, you can avoid capital gains by buying another house. 

Simply buying another house does not let you avoid capital gains tax on a sold primary residence. 

The key method to exclude profits is the primary residence exclusion.

If you have lived in the home for two of the last five years, it allows you to exclude:

  • up to $250,000 for individuals
  • up to $500,000 for married couples

However, for investment properties, a tactic called the 1031 exchange allows you to defer paying capital gains tax. 

Here, if you sell an investment property and use the proceeds to buy a similar one, the capital gains tax can be deferred.

Do You Have To Pay Capital Gains If You Reinvest In Another House?

When you sell a house and make a profit, here’s how reinvesting into another house affects your capital gains:

  • For Primary Residences: No, simply reinvesting in another house doesn’t exempt you from capital gains tax. However, if you lived in the house for at least two of the last five years, you might qualify for the primary residence exclusion, which can exclude up to $250,000 of the gain for singles or $500,000 for married couples.
  • For Investment Properties: Yes, using a 1031 exchange allows you to defer capital gains tax when you reinvest the proceeds from a sale into a like-kind property. But specific rules must be followed, like ensuring the new property is also for investment and adhering to certain timelines.

How Long Do You Have To Reinvest Money From Sale Of Primary Residence?

For the sale of a primary residence, there’s no requirement to reinvest the money to avoid capital gains tax

Instead, you can qualify for an exclusion if:

  • You’ve lived in the home as your primary residence for at least two of the last five years before the sale.
  • You haven’t used this exclusion for another home sale in the two years preceding this sale.

If you meet these criteria:

  • single taxpayers can exclude up to $250,000 of capital gains
  • married taxpayers filing jointly can exclude up to $500,000

The money you receive from the sale is yours to use as you wish, whether you:

  • reinvest it in another home
  • spend it
  • save it

Get A FREE Consultation!

We run out of free consultations every month. Sign up to make sure you get your free consultation. (Free $350 value.)

Share This Post With Someone Who Needs To See It