1. TurboTax /
  2. Tax Calculators & Tips /
  3. Tax Tips Guides & Videos /
  4. Investments and Taxes /
  5. Should Taxes on Stock Influence Your Decision to Buy or Sell?

Should Taxes on Stock Influence Your Decision to Buy or Sell?

Updated for Tax Year 2022 • December 1, 2022 08:25 AM


Buying and selling stocks has tax implications. You'll need to report capital gains and dividends as well as use any losses to offset gains and other income. Learn how taxes can influence your decision to buy or sell stocks.

Person reading papers in front of desktop computer

Gains and losses

If you're an investor, it's likely that at some point you've had both winning and losing investments. Knowing about the tax consequences of selling stocks for both gains and losses in taxable brokerage accounts is an important part of making smart investment choices.

What are the tax consequences of gains from your investments?

When you sell an investment for a profit, the amount earned is likely to be taxable. The amount that you pay in taxes is based on the capital gains tax rate. Typically, you'll either pay short-term or long-term capital gains tax rates depending on your holding period for the investment. Short-term rates are the same as for ordinary income such as the tax on wages.

  • For 2022, these rates range from 10% to 37% depending on taxable income.
  • Long-term gains are typically taxed at 0%, 10%, or 20% also depending on your taxable income.

What are the tax consequences of loses from your investments?

If you sell an investment for less than your cost, you have a capital loss. You can possibly use that capital loss to reduce your capital gains in the same year. If you have more losses than gains, you may be able to use up to $3,000 of the excess loss to offset ordinary income on your taxes in the same year. After using $3,000 of the excess loss to offset other income, the rest can be carried forward to the following year to offset gains and other income again.

What are short-term and long-term capital gains and losses?

Short-term and long-term capital gains are typically taxed at different rates. Short-term capital gains are gains on investments you've held for one year or less. These gains are taxed at a rate equal to the rate you're taxed on your ordinary income such as wages and taxable interest income. These rates range from 10% to 37% in 2022 and depend on your taxable income.

Long-term capital gains are gains you have on investments you've held for longer than one year, and they're usually taxed at a lower rate than short-term gains and other ordinary income. The long-term capital gains rates for 2022 are 0%, 15%, or 20% and, like short term rates, depend on your taxable income.

Are there restrictions on deducting investment losses from my taxable income?

Typically, you can use losses to offset gains. You must first match short-term losses to short-term gains and long-term losses to long-term gains. After this, the net long-term gain or loss is matched against the net short-term gain or loss. Once you've used all of your losses to reduce your gains, up to $3,000 of the loss can be used to offset other ordinary income in the tax year. Any additional leftover loss can be carried forward to the following year.

Investors often choose to take a capital loss on investments in order to offset a capital gain during the same tax year. This is known as “tax-loss harvesting.” If you want to take a loss from a losing investment, you need to be aware of the “wash sale” rule. This rule doesn’t allow you to take the loss if you (or your spouse) buy the same or substantially the same investment within 30 days before or after the sale of the investment.

The opposite of “tax-loss harvesting” is “gain harvesting.” This is when investors sell an investment at a gain and then immediately buy it back. When done on a routine basis – perhaps just over a year – the gain can be small enough that it's taxed a low long-term capital gains rate – perhaps 0% - rather than selling it after several years when the gains may be taxed at a higher rate of 10% or 20%. Unlike with short-term losses, there is not a wash sale rule for gains.

What if an investment became worthless?

You can't take a deduction on an investment until the year the investment becomes worthless, so you'll have to show that the stock had value at the beginning of the year but not at the end of the year. Likewise, if you bought stock in a company that went bankrupt, you won't be able to deduct anything until the bankruptcy is discharged and you know whether you can collect anything.

If you believe that the stock won't ever pay off, but you can't prove it's worthless, you may sell it on the open market for a few pennies or a dollar to nail down your deduction. If you can't sell the security, you can abandon it by giving up all rights in the security and not receiving anything in return.

If you learn your investment became worthless in a prior year, you can file an amended tax return for that year to possibly claim a refund. Though you usually have a time limit of three years to file an amended return, in the case of worthless investments, you have up to seven years from the date your original return was due to claim a deduction.

How do I report short-term and long-term capital gains from the sale of stocks?

You report capital gains and losses on Schedule D of your tax return. If the cost basis of any investments that you sold were not reported to the IRS or if you need to make any adjustments to the transactions reported to you on form 1099-B or 1099-S, then you should also file Form 8949.

  • The information from Form 8949 is used to completed Schedule D.
  • The amounts from Schedule D are then transferred to Form 1040.

TurboTax easily guides you through the interview and puts your tax information on the appropriate forms.

Should taxes on stock or stock market performance influence my buying and selling?

You can see from the above information that there are strategies that can influence when to sell certain investments whether they're at a gain or a loss. Understanding how certain losses and gains affect your taxes the way they do is important in making good investments decisions.

Let a tax expert do your investment taxes for you, start to finish. With TurboTax Live Full Service Premier, our specialized tax experts are here to help with anything from stocks to crypto to rental income. Backed by our Full Service Guarantee. You can also file your own taxes with TurboTax Premier. Your investment tax situation, covered. File confidently with America’s #1 tax prep provider.

Let a tax expert do your investment taxes for you

Get year-round expert advice & every dollar you deserve, guaranteed with Live Full Service Premier.

Get your investment taxes done right

For stocks, crypto, ESPPs, rental property income and more, TurboTax Premier has you covered.

Looking for more information?