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

Asked by: Raina Rau PhD  |  Last update: July 8, 2026
Score: 5/5 (56 votes)

To qualify for lower, long-term capital gains tax rates (0%, 15%, or 20%) on investments like stocks, you must hold them for more than one year. Selling within one year results in higher, short-term rates. For a primary residence, you generally need to live in it for 2 of the last 5 years to exclude gains.

How long do you have to invest money to avoid capital gains tax?

If you've owned the asset for a year or less, your gain will be taxed as ordinary income, with rates currently as high as 37%. For stocks or bonds you've owned for more than a year, you could face a capital gains tax as high as 20%1 on your profits (rates vary depending on your income).

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.
 

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.

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

Yes, for the primary residence capital gains exclusion, you generally need to have owned and lived in the home for at least 2 of the last 5 years before the sale, but these two years don't have to be consecutive; however, you can't claim the exclusion if you've excluded gain on another home in the prior two years, with exceptions for unforeseen circumstances like job changes or health issues. For other investments, holding an asset for more than one year qualifies for lower long-term capital gains tax rates, but selling before two years means short-term gains taxed at your higher ordinary income rate. 

If You're Retired, These 2 Assets Are All You Need – Kevin O'Leary!

40 related questions found

What is the 2 year 5-year rule?

The "2-year, 5-year rule" primarily refers to the IRS rule allowing homeowners to exclude up to $250,000 (or $500,000 married) of capital gains from the sale of their primary residence if they owned and lived in it as their main home for at least 2 years out of the 5 years before the sale, meeting both ownership and use tests within that 5-year window. There's also a "5-year rule" for Roth IRAs, requiring separate 5-year periods for contributions and conversions to avoid taxes. 

How long will $500,000 last using the 4% rule?

Your $500,000 can give you about $20,000 each year using the 4% rule, and it could last over 30 years. The Bureau of Labor Statistics shows retirees spend around $54,000 yearly. Smart investments can make your savings last longer.

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%). 

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. 

What is the 36 month rule for capital gains?

The 36-month rule allows homeowners to claim Private Residence Relief for the final 36 months of ownership, even if they no longer live in the property. This means that if a property was a main residence at some point, the last three years of ownership may still qualify for CGT relief.

What happens to CGT if I move overseas?

If you become a permanent resident of another country then the capital gains on the sale of stocks which are personal property will be sourced to the residence of the seller.

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.

Can I reinvest to avoid capital gains?

A 1031 exchange lets you sell an investment property and reinvest the proceeds into another comparable investment property without paying capital gains tax right away. The tax is not eliminated, but it is deferred. This option is strictly limited to a business or real estate investment.

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.

What is the lifetime capital gains exemption?

LCGE has an exemption limit for qualified farm and fishing property or qualified small business corporation shares of $1,250,000. This amount is indexed to inflation. With LCGE, you're allowed to subtract your taxable amount from your profits. Note that the LCGE is a cumulative lifetime limit.

How many Americans have $500,000 in retirement savings?

Roughly 7% to 9% of American households have $500,000 or more in retirement savings, though figures vary slightly by source, with data from late 2025 suggesting around 7.2% and older 2022 data indicating about 9%, showing it's a significant milestone achieved by less than one in ten families, despite higher averages driven by wealthy individuals.

What are some common capital gains tax mistakes?

One of the simplest yet most expensive mistakes is misunderstanding the difference between short-term and long-term capital gains taxes. Short-term gains — profits from assets held less than a year — are subject to typical income tax rates, which can reach 37% for high earners.

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.