How to avoid paying capital gains on stock sales?

Asked by: Alba Berge  |  Last update: April 7, 2026
Score: 4.8/5 (41 votes)

We'll start with the easiest and work our way down to the more strategy-intensive options:
  1. Donate stock to charity.
  2. Hold stock shares for more than one year.
  3. Invest in retirement accounts.
  4. Pass it on in your estate plans.
  5. Sell stocks when you're in a lower tax bracket.

How to avoid capital gains tax when selling stock?

When selling your stocks, it is possible to pick your cost basis on the shares that you sell. By handpicking the individual shares, you may be able to avoid capital gains taxes by selling shares that are at a loss (or at least have lower gains), even if your overall position in that investment has made money.

What is the loophole for capital gains tax?

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.

How to get 0% long term capital gains?

Who qualifies for 0% capital gains in 2025. Starting in 2025, single filers can qualify for the 0% long-term capital gains rate with taxable income of $48,350 or less, and married couples filing jointly are eligible with $96,700 or less. However, taxable income is significantly lower than your gross earnings.

Can I sell stock and reinvest without paying capital gains?

What if I reinvest the proceeds? Buying additional stock shares with the proceeds from a stock sale will not eliminate or reduce capital gains taxes. However, if you reinvest the gain into a QOF (Qualified Opportunity Fund), you can defer the payment of capital gains taxes while you are invested in an eligible fund.

How to AVOID Taxes (Legally) When you SELL Stocks

32 related questions found

How do you transfer stocks to avoid capital gains?

7 ways to avoid capital gains tax on stocks for any investor
  • Donate stock to charity.
  • Hold stock shares for more than one year.
  • Invest in retirement accounts.
  • Pass it on in your estate plans.
  • Sell stocks when you're in a lower tax bracket.
  • Offset your capital gains with losses (aka tax-loss harvesting).

How do I sell shares without paying capital gains tax?

Another easy and straightforward way of reducing capital gains tax is to give an asset to your spouse or civil partner, as this type of transfer won't be taxed. It also means you can each use your allowance, effectively doubling your annual exempt amount.

At what age do you not pay capital gains?

Current tax law does not allow you to take a capital gains tax break based on your age. In the past, the IRS granted people over the age of 55 a tax exemption for home sales, though this exclusion was eliminated in 1997 in favor of the expanded exemption for all homeowners.

Is there a 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.

How much stock loss can you write off?

Your maximum net capital loss in any tax year is $3,000. The IRS limits your net loss to $3,000 (for individuals and married filing jointly) or $1,500 (for married filing separately). You can reduce any amount of taxable capital gains as long as you have gross losses to offset them.

How do seniors avoid capital gains tax?

As of 2022, for a single filer aged 65 or older, if their total income is less than $40,000 (or $80,000 for couples), they don't owe any long-term capital gains tax.

How long do you have to hold a stock to avoid capital gains?

Consider your holding period

The easiest way to lower capital gains taxes is to simply hold taxable assets for one year or longer to benefit from the long-term capital gains tax rate.

How do the wealthy avoid capital gains?

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.

What is a simple trick for avoiding capital gains tax?

Offset your capital gains with losses

Tax-loss harvesting is a tactic that involves selling investments at a loss to offset capital gains from other investment sales. In this case, if you made a profit on your home sale, you can use losses from other investments to reduce your taxes.

How do I reduce capital gains tax when selling shares?

You may be able to reduce your capital gain if you either:
  1. owned your shares for at least 12 months.
  2. gifted them to a deductible gift recipient, provided both. they are valued at less than $5,000. you acquired them at least 12 months earlier.

What is the 90% rule for capital gains exemption?

The 90% test: At the time of sale the private company must be using a minimum of 90% of its assets in carrying on an active business in Canada.

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.

At what age do seniors stop paying property taxes in California?

1. Senior Citizen Homeowners' Property Tax Exemption. The Senior Citizen Homeowners' Property Tax Exemption is available to homeowners who are at least 65 years old and meet certain income requirements.

How much can a 70 year old earn without paying taxes?

Taxes aren't determined by age, so you will never age out of paying taxes. People who are 65 or older at the end of 2024 have to file a return for tax year 2024 (which is due in 2025) if their gross income is $16,550 or higher.

What makes you exempt from capital gains?

However, thanks to the Taxpayer Relief Act of 1997, most homeowners are exempt from needing to pay it.1 If you're single, you will pay no capital gains tax on the first $250,000 of profit (excess over cost basis). Married couples enjoy a $500,000 exemption.2 However, there are some restrictions.

Do you pay capital gains tax on a retirement account?

The IRS considers retirement accounts assets, but the most common types of retirement accounts don't incur capital gains taxes. Withdrawals from IRA and 401(k) accounts get taxed at your ordinary income tax level, not as capital gains.

How do you avoid capital gains on stock sales?

How to Minimize or Avoid Capital Gains Tax
  1. Invest for the Long Term. You will pay the lowest capital gains tax rate if you find great companies and hold their stock long-term. ...
  2. Take Advantage of Tax-Deferred Retirement Plans. ...
  3. Use Capital Losses to Offset Gains. ...
  4. Watch Your Holding Periods. ...
  5. Pick Your Cost Basis.

How to pay 0 capital gains tax?

Capital gains tax rates

A capital gains rate of 0% applies if your taxable income is less than or equal to: $47,025 for single and married filing separately; $94,050 for married filing jointly and qualifying surviving spouse; and. $63,000 for head of household.

What is the 6 year rule for capital gains tax?

Here's how it works: Taxpayers can claim a full capital gains tax exemption for their principal place of residence (PPOR). They also can claim this exemption for up to six years if they move out of their PPOR and then rent it out. There are some qualifying conditions for leaving your principal place of residence.