How much tax do you have to withhold when selling stock?

Asked by: Parker Ebert  |  Last update: February 12, 2026
Score: 4.3/5 (58 votes)

Capital gains or losses for the sale of U.S. stocks may be subject to a 30% mandatory withholding rate or no withholding.

How much should I withhold for taxes when selling stock?

If you've owned the stock for less than a year before selling it at a profit, you'll owe taxes on it at your regular income tax rate. If you owned the stock for more than a year, the long-term capital gains tax rates will apply. These rates are dependent on your overall income, but may be 0%, 15% or 20%.

How do I avoid paying taxes when I sell stock?

If you already sold the stock, then the only way to avoid tax is to sell other stocks at a loss (without wash sales). If you haven't sold it, you could instead donate the stock. This both avoids tax on the gain and also gives a charity deduction.

Do you pay 20% on all capital gains?

Long-term capital gains tax rates for the 2025 tax year

For the 2025 tax year, individual filers won't pay any capital gains tax if their total taxable income is $48,350 or less. The rate jumps to 15 percent on capital gains, if their income is $48,351 to $533,400. Above that income level the rate climbs to 20 percent.

How do I avoid capital gains tax?

9 Ways to Avoid Capital Gains Taxes on Stocks
  1. Invest for the Long Term. ...
  2. Contribute to Your Retirement Accounts. ...
  3. Pick Your Cost Basis. ...
  4. Lower Your Tax Bracket. ...
  5. Harvest Losses to Offset Gains. ...
  6. Move to a Tax-Friendly State. ...
  7. Donate Stock to Charity. ...
  8. Invest in an Opportunity Zone.

How to AVOID Taxes (Legally) When you SELL Stocks

21 related questions found

Can you write off 100% of stock losses?

If you own a stock where the company has declared bankruptcy and the stock has become worthless, you can generally deduct the full amount of your loss on that stock — up to annual IRS limits with the ability to carry excess losses forward to future years.

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 do I sell shares and avoid capital gains tax?

You could: Stagger the sale of assets over several tax years to make the most of using your CGT allowance over several years. You could sell part of a share portfolio on 3 April and the rest on 6 April to take advantage of two years' CGT allowance. Offset any losses you've made on other assets.

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.

Do stock sales count as income?

Your income or loss is the difference between the amount you paid for the stock (the purchase price) and the amount you receive when you sell it. You generally treat this amount as capital gain or loss, but you may also have ordinary income to report. You must account for and report this sale on your tax return.

Do I have to pay capital gains tax immediately?

This tax is applied to the profit, or capital gain, made from selling assets like stocks, bonds, property and precious metals. It is generally paid when your taxes are filed for the given tax year, not immediately upon selling an asset.

Why is my capital loss limited to $3,000?

However, if you had significant capital losses during a tax year, the most you could deduct from your ordinary income is just $3,000. Any additional losses would roll over to subsequent tax years. The issue is that $3,000 loss limit was established back in 1978 and hasn't been updated since.

How much tax do I pay when I sell a stock?

The current capital gains tax rates are generally 0%, 15% and 20%, depending on your income. Even a 20% tax “may be a small price to pay for success,” says Joe Curtin, head of CIO Portfolio Management, Chief Investment Office, Merrill and Bank of America Private Bank.

What is the US withholding tax on sale of stock?

The main rate of US withholding tax is 30%, and this could apply to income you receive from US investments, even in a tax wrapper (like an ISA), where investments are exempt from UK taxes. The US-UK tax treaty lets you complete an official form to lower the rate of US withholding tax.

Does selling shares count as income?

Any money that you receive from your investments will be added to all your other types of income, including wages, personal pensions and rental income. Depending on all your earnings, you will then be taxed at the bracket that is applicable to you.

How do I not pay taxes when selling stocks?

7 ways to avoid capital gains tax on stocks for any investor
  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.
  6. Offset your capital gains with losses (aka tax-loss harvesting).

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 to calculate capital gains on sale of stock?

Subtract the cost basis from the selling price. The resulting number is your capital gain (or loss). Apply the appropriate tax rate—either the short-term rate, or the long-term rate—depending on how long you've held the asset.

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.

How do wealthy avoid capital gains tax?

Wealthy family buys stocks, bonds, real estate, art, or other high-value assets. It strategically holds on to these assets and allows them to grow in value. The family won't owe income tax on the growth in the assets' value unless it sells them and makes a profit.

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.

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.

How do you get rid of a stock that no longer trades?

To abandon a security, you must permanently surrender and relinquish all rights in the security and receive no consideration in exchange for it. Treat worthless securities as though they were capital assets sold or exchanged on the last day of the tax year.

Do you pay taxes on stocks if you sell at a loss?

Selling a stock for profit locks in "realized gains," which will be taxed. However, you won't be taxed anything if you sell stock at a loss. In fact, it may even help your tax situation — this is a strategy known as tax-loss harvesting. Note, however, that if you receive dividends, you will have to pay taxes on those.