How long do you have to reinvest to avoid capital gains tax?

Asked by: Sheila Huel  |  Last update: July 5, 2026
Score: 4.4/5 (65 votes)

To avoid or defer capital gains tax on investment real estate, you must use a 1031 exchange to identify a replacement property within 45 days and close the purchase within 180 days of the sale. For primary residences, you can exclude up to $ 250 , 000 $ 2 5 0 , 0 0 0 ( $ 500 , 000 $ 5 0 0 , 0 0 0 for married couples) if you lived in it for two of the last five years.

How long do I have to reinvest to avoid capital gains tax?

How Long Do I Have to Buy Another House to Avoid Capital Gains? You might be able to defer capital gains by buying another home. As long as you sell your first investment property and apply your profits to the purchase of a new investment property within 180 days, you can defer taxes.

Can I reinvest my capital gains to avoid taxes?

Does reinvesting reduce capital gains? Real estate investors can employ certain tax strategies to potentially defer gains on the sale of a property. But with stocks, reinvesting your gains does not reduce the federal income taxes you may owe.

How soon do you have to buy a house to avoid capital gains?

You don't have a strict timeline to buy another home to avoid capital gains on your primary residence; instead, you must meet the IRS's "2-out-of-5-year rule" for ownership and use of the sold home, allowing you to exclude up to $250k/$500k profit, but you can't use the exclusion again for two years if you sold another home recently, while deferring taxes on investment property requires a strict 45/180-day timeline for a 1031 exchange.

What is the 6 year rule for capital gains?

The "6-year rule" for Capital Gains Tax (CGT) in Australia allows you to treat a former main residence as tax-exempt for up to six years after you move out, even if you rent it out, enabling you to avoid CGT on any growth during that period. You qualify by moving out, choosing to treat it as your main home for tax, and can reset the rule by moving back in. If you rent it out for longer than six years, only the portion of the gain after the six-year mark becomes taxable.
 

How to LEGALLY Pay 0% Capital Gains Tax on Real Estate

35 related questions found

How much capital gains do I pay on $100,000?

On a $100,000 capital gain, you'll likely pay 15% for long-term gains, resulting in about $15,000 in federal tax (plus potential state tax), but it could be 0% or 20% depending on your total taxable income and filing status, while short-term gains are taxed as ordinary income (potentially 22-24%). 

How to get 0% tax on capital gains?

Capital gains tax rates

A capital gains rate of 0% applies if your taxable income is less than or equal to: $48,350 for single and married filing separately; $96,700 for married filing jointly and qualifying surviving spouse; and. $64,750 for head of household.

Can I avoid capital gains tax by buying another home?

You can't entirely avoid capital gains by buying another home, but you can defer them for investment properties using a 1031 Exchange (rolling profits into a similar property within 180 days) or potentially exclude some gain on a primary home sale using the $250k/$500k exclusion if you meet ownership/use tests (IRS Pub 523). Buying another personal residence no longer postpones taxes on your primary home's sale.

What is the 20% rule for capital gains?

The 20% rule for capital gains refers to the highest federal tax rate for long-term capital gains, applying to higher income brackets when you sell investments (stocks, real estate) held for over a year, with lower rates of 0% and 15% for lower incomes, and even higher rates for special assets like collectibles. This rate kicks in for single filers earning over approximately $492,300 (2024) or $533,401 (2025), and higher for joint filers, making holding assets over a year a key tax strategy.

How soon do you have to reinvest to avoid capital gains tax?

To obtain this tax exemption on your capital gains, you should invest the sum earned in bonds within 6 months of the transfer of the sum and realization of gains. In addition to this, the funds are required to be invested in these bonds for a minimum of three years as a lock-in period.

What happens if I sell my house and don't buy another?

If you sell your house and don't buy another, you'll have cash proceeds (after paying off the mortgage and selling costs) and need to decide on new housing, often renting or moving in with family; financially, you might benefit from the IRS capital gains exclusion (up to $250k/$500k profit if you've lived there two of the last five years), but you'll pay tax on gains beyond that, while also managing the new costs of renting or storage.

What is the 2 year rule for capital gains?

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.

What is the 36 month rule for capital gains tax?

The "36-month rule" for capital gains tax (CGT) primarily refers to the UK's Principal Private Residence (PPR) Relief, where the final 36 months (or 9 months for most) of a property's ownership period are tax-exempt, even if not lived in, provided it was a main home at some point. In the US, the relevant rule for home sales is the "2-out-of-5-year rule" for the Section 121 exclusion, allowing up to $250k/$500k profit tax-free if owned and used as a main home for 2 of the 5 years before sale, with exceptions for unforeseen circumstances.

How much capital gains do I pay on $200,000?

Your capital gain (profit) is $200,000. Your taxable capital gain with the 50% discount applied is $100,000. Your estimated capital gains tax obligation is $37,175.

How many years can you defer capital gains?

5) Defer taxes—You may be able to defer some of the capital gains tax if you help finance the sale and are being paid over several years. In this case, you may be able to declare the capital gain over the duration of the payments, for up to 5 or 10 years depending on the circumstances.

How do the rich avoid paying capital gains tax?

How Wealthy Households Use a “Buy, Borrow, Die” Strategy to Avoid Taxes on Their Growing Fortunes

  1. Step 1: Buy Assets. Wealthy family buys stocks, bonds, real estate, art, or other high-value assets. ...
  2. Step 2: Borrow Against Assets. ...
  3. Step 3: Die and Pass Assets Tax Free to Heirs.

How can I legally avoid capital gains tax?

A common way to defer or reduce your capital gains taxes is to use tax-advantaged accounts. Retirement accounts such as 401(k) plans, and individual retirement accounts offer tax-deferred investment. You don't pay income or capital gains taxes on assets while they remain in the account.

How much is capital gains tax on a $500,000 house?

When you sell your primary residence, $250,000 of capital gains (or $500,000 for a couple) are exempted from capital gains taxation. This is generally true only if you have owned and used your home as your main residence for at least two out of the five years prior to the sale.

How do I avoid capital gains tax on my property in Canada?

Use your principal residence exemption

Your principal residence is exempt from the capital gains tax. To claim this exemption, make sure: You own the home, alone or jointly. You've designated the property as your principal residence with the CRA.

Who qualifies for 0% capital gains?

To qualify for 0% capital gains tax, you must have long-term capital gains (assets held over a year) and your taxable income (after deductions) must fall below specific IRS thresholds, which change annually but are roughly <$48,350 for single filers and <$96,700 for married filing jointly for the 2025 tax year, allowing for higher total income when combined with deductions like the standard deduction. The key is keeping your adjusted gross income (AGI) low enough so that after subtracting deductions, your taxable income remains within these limits. 

Who is eligible for a 50% CGT discount?

The beneficiary claiming the discount must be an Australian resident for tax purposes. The trust must have held the asset for at least 12 months before the CGT event occurs.

How to avoid capital gains tax previous years?

Offset gains by making use of allowable losses

If your total taxable gains are still above the CGT allowance after using your current year's losses, you can also use losses from previous years. If they reduce your gain to the tax-free allowance, you can carry forward the remaining losses to a future tax year.