How to not pay capital gains tax?

Asked by: Lyla Hermiston  |  Last update: July 22, 2026
Score: 4.9/5 (73 votes)

You can avoid or reduce capital gains tax by investing in tax-advantaged retirement accounts (401(k)s, IRAs), selling your primary home after meeting ownership rules (2 of 5 years for $250k/$500k exclusion), holding assets long-term (over a year) for lower rates, donating appreciated assets to charity, using tax-loss harvesting to offset gains, or reinvesting into Opportunity Zones. The most straightforward methods involve using tax-deferred growth or meeting specific home sale exemptions, as completely eliminating tax on all gains while selling taxable assets is difficult.

What is the loophole for capital gains tax?

Second, capital gains taxes on accrued capital gains are forgiven if the asset holder dies—the so-called “Angel of Death” loophole. The basis of an asset left to an heir is “stepped up” to the asset's current value.

How can I be exempt from capital gains tax?

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 are the ways to avoid capital gains tax?

You can avoid or minimize capital gains tax by holding assets over a year for lower long-term rates, using tax-advantaged accounts (like Roth IRAs/401(k)s), donating appreciated assets to charity, using tax-loss harvesting to offset gains, or leveraging primary residence exclusions for your home, but completely avoiding tax often involves specific strategies like Qualified Opportunity Zones or 1031 exchanges for real estate. 

How can I be exempted from paying the capital gains tax?

Here's how you can avoid Capital Gains Tax (legally)? 1/ If the property is your family home (Principal Residence). If you sell your main home, you can claim exemption— but you must use the proceeds to buy/build another family home within 18 months. 2/ Apply for a BIR Certificate of Exemption.

How To Legally PAY ZERO Tax on Capital Gains!

42 related questions found

What is the 6 year rule for capital gains tax?

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

Is there a one-time capital gains exemption?

There isn't a single "one-time" capital gains exemption, but the most common exemption allows you to exclude up to $250,000 (single) or $500,000 (married filing jointly) of profit from the sale of your primary residence, which can be used multiple times as long as you meet ownership and use tests (lived in it 2 of the last 5 years) and haven't used the exclusion in the past two years. Other options exist, like 1031 exchanges for investment properties or Charitable Remainder Trusts, but they have different rules. 

How much capital gain is tax free?

The amount of tax-free capital gain depends on the asset, but the most common exemption is for your primary home, allowing single filers to exclude up to $250,000 (or $500,000 for married couples) of profit if you've lived there 2 of the last 5 years. Additionally, certain long-term investments in qualified small businesses or Opportunity Funds, plus gains on inherited assets (due to stepped-up basis at death), can also be tax-free, while lower income levels may qualify for a 0% long-term capital gains tax rate. 

Can I use a trust to avoid capital gains?

A Living Trust Does Not Eliminate Capital Gains Taxes

Another common myth is that putting a home or investments in a trust removes capital gains tax obligations. However: If you sell an asset while it's in a revocable living trust, you still owe capital gains tax on any profit.

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 can I offset against capital gains?

You can deduct costs to acquire and improve assets (like sales tax, installation, and major renovations), incidental costs of selling (commissions, legal fees, advertising), and capital losses (up to $3,000 against ordinary income, with excess carrying over) from your capital gains, plus potentially exclude gains from selling your primary home if you meet IRS rules.

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.

Can you reinvest capital gains and not pay taxes?

Even if you reinvest those earnings, they're still taxable income if you hold your mutual funds in a taxable account. In tax-advantaged accounts like IRAs or 401(k)s, reinvested dividends and capital gain distributions are not taxed in the year received.

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.
 

Who is exempt from capital gains tax?

Certain joint returns can exclude up to $500,000 of gain. You must meet all these requirements to qualify for a capital gains tax exemption: You must have owned the home for a period of at least two years during the five years ending on the date of the sale.

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. 

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. 

At what age does capital gains tax stop?

The capital gains tax over 65 is a tax that applies to taxable capital gains realized by individuals over the age of 65. The tax rate starts at 0% for long-term capital gains on assets held for more than one year and 15% for short-term capital gains on assets held for less than one year.