Yes, you pay taxes on stocks — but the amount depends on how long you held them and what type of income they generated

The IRS taxes stock profits and dividends as income. When you sell a stock for more than you paid for it, that profit is taxable. When a company pays you a dividend, that payment is taxable. The tax rate you pay depends on two things: whether the gain is short-term (you held the stock less than a year) or long-term (you held it a year or more), and whether the dividend is ordinary or may have access to.

Short-term gains are taxed at your regular income tax rate, which can be as high as 37% depending on your income bracket. Long-term gains get preferential rates — 0%, 15%, or 20% depending on your income — which is why holding stocks longer often saves you money on taxes. may have access to dividends also get the long-term rate treatment. Ordinary dividends are taxed as regular income.

Key Takeaways

  • Profits from selling stocks held less than a year are taxed at your regular income tax rate, which is higher than the rate for longer-held stocks.
  • Profits from selling stocks held a year or more may have access to for long-term capital gains rates, which are 0%, 15%, or 20% depending on your total income.
  • Dividends paid by companies are taxed either as ordinary income or at long-term rates, depending on whether the dividend is may have access to.
  • You report stock sales on Schedule D and dividends on Schedule B when you file your tax return.
  • Losses on stock sales can offset gains and reduce your taxable income by up to $3,000 per year.

Short-Term vs. Long-Term Capital Gains

The holding period matters because the tax code treats short-term and long-term gains differently. A short-term capital gain is a profit on a stock you sold within one year of buying it. This gain is added to your other income for the year and taxed at your ordinary income tax rate — the same rate you pay on wages or salary.

A long-term capital gain is a profit on a stock you held for more than one year. These gains get preferential tax treatment. Instead of your ordinary rate, you pay 0%, 15%, or 20% depending on your total income for the year. For most people in the middle income brackets, the rate is 15%. This is why financial advisors often recommend holding stocks longer — the tax savings can be substantial.

The one-year 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 15 the next year, that is a long-term gain. If you sell on January 14, it is short-term.

How Dividends Are Taxed

Companies sometimes pay shareholders dividends — a portion of company profits distributed to stock owners. These dividends are taxable income in the year you receive them, even if you do not sell the stock.

Most dividends fall into one of two categories. may have access to dividends are paid by U.S. corporations or certain foreign corporations and meet holding period requirements. You must have owned the stock for more than 60 days during a 121-day window around the dividend payment date. may have access to dividends are taxed at the long-term capital gains rates (0%, 15%, or 20%). Ordinary dividends do not meet these requirements and are taxed at your regular income tax rate.

Your brokerage will send you a Form 1099-DIV in January showing which dividends were may have access to and which were ordinary. You report this on your tax return, and the IRS knows the amounts because your brokerage reports them too.

What Happens When You Sell at a Loss

If you sell a stock for less than you paid for it, you have a capital loss. This loss can work in your favor on taxes. You can use capital losses to offset capital gains dollar-for-dollar. If you had $5,000 in gains and $3,000 in losses, you would report a net gain of $2,000.

If your losses exceed your gains in a year, you can deduct up to $3,000 of the excess loss against your ordinary income. Any losses beyond that $3,000 carry forward to future years, where you can use them to offset future gains or take another $3,000 deduction against ordinary income.

This is why some investors practice tax-loss harvesting — selling losing positions late in the year to offset gains and reduce their tax bill. However, there is a catch: the IRS has a wash-sale rule that prevents you from buying the same stock (or a substantially identical one) within 30 days before or after the sale. If you do, the loss is disallowed and added to the cost basis of the new purchase instead.

Reporting Stock Transactions on Your Tax Return

You report stock sales using Schedule D (Form 1040), which is the capital gains and losses form. Your brokerage sends you a Form 1099-B in January showing all your sales from the previous year — the date bought, date sold, proceeds, and cost basis. You use this form to fill out Schedule D.

Dividends go on Schedule B (Form 1040) if you received more than $1,500 in dividend income. If you received less, you can report them directly on Form 1040. Your brokerage sends you a Form 1099-DIV showing ordinary and may have access to dividends separately.

If you use tax software, it often imports these forms directly from your brokerage, which reduces the chance of errors. If you file by hand or work with a tax preparer, bring the 1099 forms with you.

Tax-Advantaged Accounts and Stock Taxes

Stocks held inside a 401(k), IRA, or other tax-advantaged retirement account are not taxed when you sell them or receive dividends. You only pay taxes when you withdraw money from the account in retirement (or in some cases, never, depending on the account type).

This is one reason retirement accounts are powerful: you can buy and sell stocks within the account without triggering capital gains taxes each year. The gains compound tax-free until withdrawal. Regular brokerage accounts do not have this benefit — every sale and dividend is taxable in the year it occurs.

If you are deciding where to hold stocks, tax-advantaged accounts are usually the better choice for frequent trading or high-dividend stocks. Regular accounts work better for stocks you plan to hold long-term and want to pass to heirs, because of the step-up in basis rule that resets the cost basis at death.

State and Local Taxes on Stock Income

Federal taxes are not the only taxes on stock income. Most states tax capital gains and dividends as income. A few states — including Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming — do not tax income at all, so residents pay no state tax on stock profits.

Other states tax capital gains at the same rate as ordinary income. A few states, including California and New York, have separate capital gains taxes on top of regular income tax. The rates vary widely, so your total tax bill depends on where you live.

If you live in a high-tax state and do a lot of trading, the state tax can be as significant as the federal tax. This is another reason to consider holding stocks longer — the federal long-term rate is lower, and many states offer no break for long-term gains, so the federal savings matter more.

Frequently Asked Questions

Do I have to pay taxes if I have not sold the stock yet?

Not on the gain itself. You only pay capital gains tax when you actually sell the stock. However, if the stock pays dividends, you pay tax on those dividends in the year you receive them, regardless of whether you sell. Unrealized gains — profits on stocks you still own — are not taxed.

What if I made a small profit, like $200?

You still owe tax on it. There is no minimum threshold. Even a $1 gain is taxable. The amount of tax depends on your income bracket and whether it was short-term or long-term, but you must report it.

Can I deduct the cost of my brokerage account or trading fees?

No. Brokerage fees and account maintenance costs are not deductible. However, if you are a professional trader (not just an investor), you may be able to deduct trading expenses. The IRS has strict rules about this, so consult a tax professional if you think you may have access to.

Do I owe taxes on stocks I inherited?

You do not owe taxes on the inheritance itself. However, if you later sell the inherited stock, you may owe capital gains tax on any profit above the value on the date of death. This is called the step-up in basis, and it is one of the tax benefits of inheriting appreciated assets.

What if my brokerage sends me the wrong 1099 form?

Contact your brokerage and ask for a corrected form. They will issue a corrected 1099-B or 1099-DIV. If you already filed your return, you may need to file an amended return (Form 1040-X) once you have the correct information. The IRS matches your return to the 1099 forms they receive, so discrepancies can trigger an audit.