stoxhatch

Investing in the US · 7 of 8 · 7 min read

How investments are taxed in the US

In a taxable account you pay tax on dividends, interest and the gains when you sell. Holding for more than a year usually cuts the tax rate on gains.

By the Stoxhatch team · Updated November 19, 2026

Capital gains: short and long term

When you sell an investment for more than you paid, the profit is a capital gain. Held one year or less, it is a short-term gain, taxed at your ordinary income rate. Held more than a year, it is a long-term gain, taxed at 0%, 15% or 20% depending on your income.

You only owe tax when you sell. A stock that has doubled but that you still hold has an unrealized gain, and no tax is due yet.

Dividends and interest

Qualified dividends, from most US companies and many foreign ones, when you have held the shares long enough, are taxed at the lower long-term rates. Other dividends, and interest from savings, CDs and corporate bonds, are taxed as ordinary income.

Interest from US Treasury bonds is free of state income tax, and interest from most municipal bonds is free of federal income tax.

Losses

Selling at a loss offsets capital gains. If losses are bigger than gains, up to $3,000 a year ($1,500 if married filing separately) can be deducted from other income, and the rest carries forward to future years.

The wash-sale rule disallows the loss if you buy the same or a substantially identical investment within 30 days before or after the sale. The loss is added to the cost of the new shares instead.

Things to know

  • Your broker sends Form 1099-B for sales and 1099-DIV for dividends early each year.
  • Investments inside a 401(k), IRA, HSA or 529 aren't taxed year to year.
  • Higher earners pay an extra 3.8% net investment income tax above $200,000 of income for single filers or $250,000 for married couples filing jointly.
  • Most states tax investment income too, at their own rates.
  • A child's investment income above a yearly threshold can be taxed at the parents' rate (the kiddie tax).

Key takeaways

Try it in Stoxhatch

Your Journal shows each trade's cost basis and how long you held it, the two things that decide the tax on a real sale. Start practising, no signup needed.

Words in this guide

Common questions

Do I pay taxes on stocks if I don't sell? Not on the gain. Tax on a capital gain is only due when you sell, though dividends are taxed in the year they are paid in a taxable account.

What is the wash-sale rule? If you sell at a loss and buy the same or a substantially identical investment within 30 days before or after, you can't claim the loss that year; it is added to the cost of the new shares.

Teaching this?

Stoxhatch is owned and operated by Shawata Inc. Practice only — no real money, not financial advice.