Yes, you owe taxes on stocks — but the amount depends on how long you held them and whether you sold at a profit
The IRS taxes stock profits, not the stocks themselves. If you buy a share for $50 and sell it for $75, that $25 gain is taxable income. If you hold it and the price rises to $100 but you never sell, you owe nothing until you sell. The tax rate depends on two things: how long you owned the stock before selling, and your overall income for the year.
You also owe taxes on dividends — payments some companies send to shareholders — even if you don't sell the stock. The tax rate on dividends varies depending on the type of dividend and your income level.
Losses work in your favour. If you sell a stock for less than you paid, you can use that loss to reduce your taxable gains from other stocks, and in some cases to reduce other income.
Key Takeaways
- Stock profits are taxed as capital gains, with rates ranging from 0% to 20% depending on how long you held the stock and your income level.
- Long-term capital gains (stocks held over one year) are taxed at lower rates than short-term gains (stocks held one year or less), which are taxed as ordinary income.
- Dividends are taxable in the year you receive them, even if you reinvest them or don't sell the stock.
- You can use stock losses to offset gains and reduce your overall tax bill, a strategy called tax-loss harvesting.
- You report stock transactions and gains on Schedule D of your tax return, which feeds into your Form 1040.
Long-term vs. short-term capital gains — the holding period matters
The IRS taxes stock profits differently depending on how long you owned the stock. If you sell within one year of buying, it's a short-term capital gain, taxed at your ordinary income tax rate — the same rate as wages or salary. That can be 10%, 12%, 22%, 24%, 32%, 35%, or 37%, depending on your income bracket for the year.
If you hold the stock for more than one year before selling, it's a long-term capital gain, taxed at a lower rate: 0%, 15%, or 20%. Most people pay 15%. The exact rate depends on your income level and filing status, not on the stock price or profit size.
The one-year clock starts the day after you buy. If you buy on January 15 and sell on January 16 of the next year, it counts as long-term. If you sell on January 15, it's short-term.
How dividends are taxed
When a company pays a dividend to shareholders, you owe tax on that payment in the year you receive it. may have access to dividends — ordinary payments from US companies or certain foreign companies — are taxed at the same long-term capital gains rates (0%, 15%, or 20%). You don't have to hold the stock for any minimum time to get this rate, though the company must have paid the dividend and you must have owned the stock for at least 60 days around the dividend date.
Non-may have access to dividends — including dividends from real estate investment trusts (REITs) and some preferred stocks — are taxed as ordinary income at your regular tax bracket rate, which is higher.
If you reinvest dividends automatically, you still owe tax on them. The fact that the money stayed in your brokerage account and bought more shares doesn't change the tax obligation. Your brokerage will send you a Form 1099-DIV showing what you received.
Using losses to reduce your tax bill
If you sell a stock at a loss, you can use that loss to offset capital gains from other stock sales. If you sold Stock A for a $3,000 gain and Stock B for a $2,000 loss, your net gain is $1,000, and you owe tax only on that $1,000.
If your losses exceed your gains in a year, you can deduct up to $3,000 of the excess loss against other income — wages, salary, interest, or anything else. Any loss beyond that $3,000 carries forward to future years, so you can use it later.
This strategy, called tax-loss harvesting, is common among investors who want to reduce their tax bill. The catch: if you sell a stock at a loss and buy the same stock (or a substantially identical one) within 30 days before or after the sale, the IRS disallows the loss under the wash-sale rule. You can buy a different stock in the same sector or a similar index fund without triggering this rule.
What you report and when
Your brokerage sends you a Form 1099-B in January or February showing every stock transaction from the previous year — buys, sells, and proceeds. You use this to fill out Schedule D, which lists each sale, the purchase price, the sale price, the gain or loss, and whether it was long-term or short-term. Schedule D totals your gains and losses and feeds the result into your Form 1040, your main tax return.
If you have a lot of transactions, your brokerage may also provide a summary or upload the data directly to tax software. Many tax programs can import this information automatically, though you should always verify it matches your records.
You must report all stock sales, even small ones. The IRS cross-checks your return against the 1099-B your brokerage filed, so omitting a sale creates a mismatch.
Tax-advantaged accounts reduce or eliminate stock taxes
If you buy and sell stocks inside a 401(k), IRA, or Roth IRA, you don't owe capital gains tax on the profits in that account. You can buy and sell as much as you want without triggering a tax bill. In a traditional 401(k) or IRA, you owe tax only when you withdraw the money in retirement. In a Roth IRA, you owe no tax on withdrawals at all, as long as you follow the rules.
This is one reason financial advisors recommend maxing out retirement accounts before investing in regular taxable brokerage accounts. The tax savings compound over time.
529 college savings plans also allow tax-free growth on stock investments, as long as you use the money for education expenses.
State and local taxes on stocks
Most states don't tax capital gains separately — they're taxed as ordinary income at your state income tax rate. A few states — California, New York, and others — tax capital gains at higher rates than ordinary income, or have special rules. Some states have no income tax at all.
Check your state's tax rules or ask a tax professional if you live in a high-tax state and have large stock gains. The difference can be significant.
Frequently Asked Questions
Do I owe taxes if the stock price goes up but I don't sell?
No. Taxes are owed only when you sell the stock or receive a dividend. An unrealized gain — profit on paper that you haven't cashed in — is not taxable. You can hold a stock for decades and owe nothing as long as you don't sell.
What if I lost money on stocks — can I deduct that?
Yes, but only against capital gains or up to $3,000 of other income per year. If you lost $10,000 on stocks and had no gains, you can deduct $3,000 against wages or other income this year, and carry the remaining $7,000 loss forward to future years.
Do I have to pay taxes on stocks in a Roth IRA?
No. Stocks held in a Roth IRA grow tax-free, and you owe no tax on withdrawals in retirement, as long as the account is at least five years old and you're at least 59½ when you withdraw.
How do I know if a dividend is may have access to or non-may have access to?
Your brokerage reports this on Form 1099-DIV, separating may have access to and non-may have access to dividends. Most dividends from large US companies are may have access to. REITs and some preferred stocks pay non-may have access to dividends, which are taxed at higher rates.
Can I avoid taxes by holding stocks forever?
Yes, as long as you never sell. But if you die, your heirs inherit the stock at its value on the date of your death, not your original purchase price. This "step-up in basis" means they can sell immediately with no tax. This is a major reason some wealthy investors hold stocks long-term.