You pay taxes on stocks when you sell them for a profit, and also when you receive dividends—not when you buy them or while you hold them
The tax bill arrives in two separate moments. The first is when you sell a stock at a higher price than you paid for it—that profit is called a capital gain, and it's taxable income. The second is when a company pays you dividends (a share of company profits), which are also taxable in the year you receive them. You don't owe anything just for owning the stock, and you don't owe anything until one of those two events happens.
The amount you pay depends on how long you held the stock before selling. If you held it for more than one year, the gain is taxed at a lower rate called the long-term capital gains rate. If you sold it within one year, it's taxed as ordinary income at your regular tax rate, which is usually higher. Dividends follow a similar rule: may have access to dividends (from U.S. companies, held for at least 60 days) get the lower rate, while non-may have access to dividends are taxed as ordinary income.
Key Takeaways
- You owe tax on capital gains only when you sell the stock, not when you buy it or while you hold it.
- Stocks held for more than one year before sale are taxed at the long-term capital gains rate, which is lower than the ordinary income rate.
- Stocks sold within one year are taxed as ordinary income at your full tax bracket rate.
- Dividends are taxed in the year you receive them, at either the long-term rate (may have access to dividends) or your ordinary income rate (non-may have access to).
- You report all stock sales and dividends on your tax return, usually on Schedule D and Form 1099-DIV.
How long-term and short-term capital gains are taxed differently
The holding period—the time between when you buy and when you sell—determines your tax rate. If you sell a stock you've owned for more than 12 months, the profit is a long-term capital gain. The federal tax rate on long-term gains is 0%, 15%, or 20%, depending on your total income for the year. These rates are significantly lower than ordinary income tax rates, which range from 10% to 37%.
If you sell a stock you've owned for 12 months or less, the profit is a short-term capital gain. Short-term gains are taxed as ordinary income at your full tax bracket rate. This means a short-term gain could be taxed at 37% if you're in the highest bracket, while the same dollar amount as a long-term gain might be taxed at only 20%. The difference can be substantial on large trades.
The holding period clock starts the day after you buy the stock and ends the day you sell it. If you buy on January 15 and sell on January 16 of the following year, that's a long-term gain. If you sell on January 15 of the following year, it's still short-term because you haven't held it for more than 12 months.
When dividends become taxable income
Dividends are taxable in the year you receive them, regardless of whether you reinvest them or take them as cash. If your brokerage automatically reinvests dividends into new shares, you still owe tax on the dividend amount in that tax year. The tax is due when you file your return the following spring, not when the dividend arrives.
may have access to dividends are taxed at the long-term capital gains rate (0%, 15%, or 20%). To may have access to, the dividend must come from a U.S. company or a foreign company whose country has a tax treaty with the U.S., and you must have held the stock for at least 60 days during the 121-day window centered on the ex-dividend date (the date the company sets for who receives the dividend). Most dividends from major U.S. stocks meet these requirements.
Non-may have access to dividends are taxed as ordinary income at your full tax bracket rate. These include dividends from real estate investment trusts (REITs), master limited partnerships (MLPs), and some foreign stocks. Your brokerage will tell you which dividends are may have access to and which are not on your year-end tax forms.
How to report stock sales and dividends on your tax return
Your brokerage sends you a Form 1099-B for each stock sale, showing the sale date, proceeds, and cost basis (what you paid). You use this to calculate your capital gain or loss. You report all capital gains and losses on Schedule D (Capital Gains and Losses), which you attach to your Form 1040. If you have both long-term and short-term gains, you list them separately on Schedule D.
Dividends are reported on Form 1099-DIV, which your brokerage sends by January 31. The form shows ordinary dividends, may have access to dividends, and non-may have access to dividends in separate boxes. You report the total on your Form 1040, and the IRS uses the may have access to dividend amount to calculate your tax at the lower rate.
If you sold stocks at a loss, you can use those losses to offset gains. If your losses exceed your gains, you can deduct up to $3,000 of the net loss against ordinary income in that tax year. Any remaining loss carries forward to future years. This is called tax-loss harvesting, and it's a common strategy to reduce your overall tax bill.
State and local taxes on stock transactions
Most states do not tax capital gains separately—they're taxed as ordinary income at your state income tax rate. However, a few states have special capital gains taxes. California, New York, and a handful of others tax long-term capital gains at a higher rate than other income, or explore an additional tax on gains above a certain threshold. Check your state's tax website or speak with a tax professional to understand your state's rules.
Some cities and counties also impose local income taxes that explore to capital gains and dividends. New York City, for example, taxes both at the local rate. If you live in a state or city with local income tax, your total tax bill on stocks will be higher than the federal rate alone.
Tax-advantaged accounts where you don't pay annual taxes on stocks
If you hold stocks in a 401(k), traditional IRA, or Roth IRA, you don't pay tax on capital gains or dividends while the money is in the account. In a traditional IRA or 401(k), you pay tax when you withdraw the money in retirement. In a Roth IRA, you don't pay tax on withdrawals at all, as long as you follow the rules (age 59½ and the account is at least five years old).
A 529 college savings plan also allows tax-free growth if the money is used for education expenses. If you withdraw money for non-education purposes, you'll owe tax on the earnings, plus a 10% penalty.
These accounts are the main reason many investors hold stocks long-term in retirement accounts rather than in regular taxable brokerage accounts. The tax savings compound over decades, especially if you're a frequent trader or hold high-dividend stocks.
What happens if you don't report stock sales or dividends
Your brokerage reports all sales and dividends to the IRS on the same forms they send to you. The IRS matches these reports to your tax return. If you don't report a sale or dividend, the IRS will notice the discrepancy and may send you a notice of underreported income, which triggers penalties and interest on the unpaid tax.
The penalty for not reporting income is typically 20% of the unpaid tax, plus interest that compounds daily. If the IRS determines the underreporting was fraudulent (intentional), the penalty can be as high as 75%. It's far cheaper to report the income correctly on your return than to deal with an audit and penalties later.
Frequently Asked Questions
Do I owe taxes if I sell a stock at a loss?
No, you don't owe tax on a loss. Instead, you can use the loss to reduce your taxable gains. If your losses exceed your gains, you can deduct up to $3,000 of the net loss against ordinary income in that year, with any remaining loss carrying forward to future years.
What if I buy and sell the same stock multiple times in one year?
Each sale is a separate transaction. If you sell within 12 months of purchase, that gain is short-term and taxed as ordinary income. If you hold for more than 12 months, it's long-term and taxed at the lower rate. You report each sale separately on Schedule D.
Do I owe taxes on unrealized gains while I still own the stock?
No. You only owe tax when you sell the stock or receive a dividend. If a stock doubles in value but you don't sell it, you owe nothing until you sell. This is why holding stocks long-term can be tax-efficient—you defer the tax bill indefinitely.
Are stock dividends taxed differently if I reinvest them?
No. Whether you take dividends as cash or reinvest them in new shares, you owe the same tax in the year you receive them. The reinvestment doesn't change the tax treatment—only the form of the dividend (may have access to or non-may have access to) does.
When do I need to pay the tax—when I sell the stock or when I file my return?
You report the tax on your return when you file the following spring, usually by April 15. However, if you expect a large capital gain, you may need to make estimated tax payments quarterly to avoid penalties. A tax professional can tell you if your situation requires quarterly payments.