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
- Holding for more than a year usually means a lower tax rate on gains.
- Losses offset gains, and up to $3,000 a year of other income.
- Retirement and education accounts avoid tax on trades inside them.
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
- Cost basis — Cost basis is the average price you paid per share, and it is the number every profit or loss is measured against.
- Unrealized P/L — Unrealized P/L is the profit or loss you would make if you sold right now — real on screen, but not banked until you sell.
- Dividend — A dividend is a share of profit a company pays out in cash to the people who own its shares.
- Position — A position is what you currently own in one company: how many shares, and what you paid for them.
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?
- Why did you buy it? Writing an investment thesis — a free 45-minute lesson plan with a hands-on activity.
- Don't put all your eggs in one basket: diversification — a free 45-minute lesson plan with a hands-on activity.