How long do I have to buy another home to avoid capital gains?

Asked by: Prof. Gayle Altenwerth V  |  Last update: February 6, 2026
Score: 4.4/5 (19 votes)

Thankfully, you can defer capital gains tax should you purchase another rental property within 180 days of the original investment property sale. There are also a variety of other options to lower your tax liabilities or avoid paying capital gains tax on your rental properties altogether.

Can you avoid capital gains tax if you buy another house?

You can avoid capital gains tax when you sell your primary residence by buying another house and using the 121 home sale exclusion. In addition, the 1031 like-kind exchange allows investors to defer taxes when they reinvest the proceeds from the sale of an investment property into another investment property.

What is a simple trick for avoiding capital gains tax on real estate investments?

A few options to legally avoid paying capital gains tax on investment property include buying your property with a retirement account, converting the property from an investment property to a primary residence, utilizing tax harvesting, and using Section 1031 of the IRS code for deferring taxes.

Do you have to wait 2 years to avoid capital gains?

If you've owned and occupied your property for at least 2 of the last 5 years, you can avoid paying capital gains taxes on the first $250,000 for single-filers and $500,000 for married people filing jointly. Visit the IRS website to review additional rules that may help you qualify for the capital gains tax exemption.

How long do you have to own an investment property to avoid capital gains?

If you like your rental property enough to live in it, you could convert it to a primary residence to avoid capital gains tax. There are some rules, however, that the IRS enforces. You have to own the home for at least five years. And you have to live in it for at least two out of five years before you sell it.

Watch Out For Capital Gains when Selling Your House

15 related questions found

Do you pay capital gains tax if you reinvest in another property?

A Section 1031 Exchange, also known as a Like-Kind Exchange, is governed by Section 1031 of the Internal Revenue Code. Using this provision, investors can defer capital gains taxes from the sale of a property if they reinvest the proceeds into another like-kind property within a specific time frame.

How long do you have to buy a new house after selling?

According to the IRS, you have two years from the date of sale to buy a new house that costs the same as, or more than, the net sale price of the old house. The net sale price is the amount you receive from the sale of your home minus any selling expenses, such as real estate agent commissions or closing costs.

How to avoid paying capital gains tax on sale of rental property?

Use a 1031 Exchange to Defer Capital Gains

It's a popular way to defer capital gains taxes when selling a rental home or even a business. Often referred to as a “like-kind” exchange, this tax deferment strategy is defined in Section 1031 of the Internal Revenue Code.

What is the 6 year rule for capital gains?

CGT 6-Year Rule

Allows temporary renting of PPOR for up to 6 years while still claiming main residence exemption. – Each 6-year absence period is treated individually. - No limit on number of times you can use this exemption. - Property must have been your main residence before renting out.

At what age can you sell your home and not pay capital gains?

The seller, or at least one title holder, had to be 55 or older on the day the home was sold to qualify. Following the passage of the Taxpayer Relief Act of 1997, the exemption was replaced. As of 1997, there are new per-sale exclusion amounts for all homeowners regardless of age.

How do billionaires avoid capital gains tax?

Families like the Waltons, Kochs, and Mars can avoid capital gains taxes forever by holding onto assets without selling, borrowing against their assets for income, and using the stepped-up basis loophole at inheritance.

How do I avoid capital gains on sale of primary residence?

Sale of your principal residence. We conform to the IRS rules and allow you to exclude, up to a certain amount, the gain you make on the sale of your home. You may take an exclusion if you owned and used the home for at least 2 out of 5 years. In addition, you may only have one home at a time.

What is the 2 out of 5 year rule?

To qualify for the principal residence exclusion, you must have owned and lived in the property as your primary residence for two out of the five years immediately preceding the sale. Some exceptions apply for those who become disabled, die, or must relocate for reasons of health or work, among other situations.

What is the one-time capital gains exemption?

If it's your primary residence

You can sell your primary residence and avoid paying capital gains taxes on the first $250,000 of your profits if your tax-filing status is single, and up to $500,000 if married and filing jointly. The exemption is only available once every two years.

Can I sell my house to my own LLC to avoid capital gains tax?

For a single-member LLC, the answer is typically yes. For example, if the house is owned by an LLC. The Treasury Regulations allow for the capital gains exclusion when title is held by a single-member disregarded entity. See 26 C.F.R.

What are the IRS rules for a 1031 exchange?

The main requirements for a 1031 exchange are: (1) must purchase another “like-kind” investment property; (2) replacement property must be of equal or greater value; (3) must invest all of the proceeds from the sale (cannot receive any “boot”); (4) must be the same title holder and taxpayer; (5) must identify new ...

What is the 12 month rule for capital gains tax?

For an asset to qualify for the CGT discount you must own it for at least 12 months before the 'CGT event' happens. The CGT event is the point at which you make a capital gain or loss.

What is the exemption of capital gains tax?

Capital gains up to Rs 1.25 lakh per year (equity) are exempted from capital gains tax. Long-term capital gain tax rate on equity investments/shares will continue to be charged at 12.5% on the gains. On the other hand, short-term capital gains tax on shares or equity investments will be charged at 15%.

How long do you have to live in a house to avoid capital gains tax in the IRS?

You're eligible for the exclusion if you have owned and used your home as your main home for a period aggregating at least two years out of the five years prior to its date of sale. You can meet the ownership and use tests during different 2-year periods.

Can I move back into my rental and avoid capital gains tax?

Can You Move Back Into a Rental to Avoid Capital Gains Tax? Yes, but you need to have owned it for five years and lived in it for two of those five years. The two years do not have to be consecutive, and you can exclude profits up to a certain amount if you sell it.

What is the capital gains loophole in real estate?

This tax loophole allows property owners to defer capital gains on their sale as long as the proceeds are used to purchase another property within a set time frame.

Can you deduct hoa fees from capital gains?

The short answer is usually no — HOA fees are generally not tax deductible. However, there are exceptions. Read more: Should you buy a house with a homeowners' association?

Do you pay capital gains if you buy another house?

A: Yes, if you sell one investment property and then immediately buy another, you can avoid capital gains tax using the Section 121 exclusion. However, you must reinvest the sale proceeds into a new real estate property to qualify.

How long can I wait to buy another house?

There is no set time frame after purchasing a house that you have to wait to buy another one to use as a rental. However, it is essential to consider a few things before buying a property to rent out. Make sure you can afford the mortgage payments on both properties and the costs of repairs and maintenance.

What happens if you sell a house within 1 year?

If it's been less than a year since you bought your home, you'll pay short-term capital gains taxes, which are equivalent to your top marginal tax rate. That means if you're in the 22% tax bracket, you'll pay 22% of your gain in taxes.