The tax rate depends on how long you held the stock and your income level
Capital gains tax on stocks is either 0%, 15%, or 20% at the federal level, depending on two things: how long you owned the stock before selling it, and your total taxable income for the year. Stocks you hold for more than one year get long-term capital gains rates (the three rates above). Stocks you sell within one year get short-term capital gains rates, which are taxed as ordinary income — meaning they use the same brackets as wages, ranging from 10% to 37% depending on your income.
Most people pay 15% on long-term gains. You pay 0% only if your income is low enough to fall in the lowest tax bracket. You pay 20% only if your income is high enough to fall in the highest bracket. Your state may also tax capital gains, and that rate varies by state — some states do not tax them at all, while others charge up to 13%.
Key Takeaways
- Long-term capital gains (stocks held over one year) are taxed at 0%, 15%, or 20% federally; short-term gains are taxed as ordinary income at rates up to 37%.
- Your capital gains rate is determined by your total taxable income for the year, not by the profit amount alone.
- You report capital gains on Schedule D (Form 1040) when you file taxes, and you must specify the purchase date and sale date for each stock.
- State capital gains taxes range from 0% to 13% and apply on top of federal tax in most states.
- You can reduce capital gains by offsetting them with capital losses from other investments sold at a loss in the same year.
Long-term vs. short-term: the one-year holding period matters
The difference between long-term and short-term capital gains is your holding period. If you buy a stock on March 15, 2023, and sell it on March 16, 2024, you have held it for more than one year, and any profit is a long-term gain. If you sell it on March 15, 2024, you have held it for exactly one year, which does not count as "more than one year" — it is a short-term gain.
Short-term gains are taxed at your ordinary income tax rate. If you are in the 24% tax bracket for wages, short-term capital gains are also taxed at 24%. Long-term gains use their own lower brackets: 0%, 15%, or 20%. This is why holding a stock past one year can save you significant tax money. A $10,000 gain taxed as short-term at 24% costs $2,400. The same gain taxed as long-term at 15% costs $1,500.
How your income level determines your long-term capital gains rate
The 0%, 15%, and 20% long-term rates are tied to income thresholds that change each year. For 2024, the thresholds are approximately:
| Filing Status | 0% Rate (up to) | 15% Rate (up to) | 20% Rate (above) |
|---|---|---|---|
| Single | $47,025 | $518,900 | $518,900 |
| Married Filing Jointly | $94,050 | $583,750 | $583,750 |
| Head of Household | $62,700 | $551,350 | $551,350 |
These numbers refer to your total taxable income for the year, not just the capital gain. If you are single and earn $40,000 in wages, and you sell a stock for a $20,000 gain, your total taxable income is $60,000. The first $7,025 of your gain falls in the 0% bracket (up to $47,025), and the remaining $12,975 falls in the 15% bracket. You would owe $0 on the first portion and $1,946.25 on the second.
These thresholds adjust for inflation each year, so check the IRS website or your tax software for the current year's numbers before calculating your tax.
How to report capital gains when you file taxes
You report stock sales on Schedule D (Form 1040), which is part of your federal tax return. For each stock you sold, you list the date you bought it, the date you sold it, the purchase price, the sale price, and the gain or loss. Your brokerage firm sends you a Form 1099-B in January or February showing all your sales from the previous year, and you use that to fill out Schedule D.
If you sold stocks at a loss, you report those losses on Schedule D as well. Capital losses can offset capital gains dollar-for-dollar. If you have $15,000 in gains and $5,000 in losses, you report a net gain of $10,000. If your losses exceed your gains in a year, you can deduct up to $3,000 of the excess loss against ordinary income, and carry forward any remaining losses to future years.
You file Schedule D along with your Form 1040 by April 15 of the following year (or October 15 if you file an extension). If you use tax software, it usually walks you through entering your 1099-B information and calculates your capital gains tax automatically.
State capital gains taxes add to your federal bill
Most states tax capital gains as part of ordinary income, using their own tax brackets. A few states — including Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming — do not tax capital gains at all. California taxes long-term capital gains at the same rate as ordinary income, up to 13.3%. New York tops out at 10.9%. Maryland, Minnesota, and Vermont also charge double-digit rates.
If you live in a state with a capital gains tax, you report your gains on your state tax return as well as your federal return. The state tax is separate from the federal tax and is calculated using your state's own brackets and rules. Some states allow you to deduct federal capital gains tax paid, which slightly reduces your state bill, but most do not.
Strategies to reduce capital gains tax
One common approach is tax-loss harvesting: selling stocks at a loss to offset gains from other sales in the same year. If you have a stock that has lost value and you want to sell it anyway, selling it in a year when you also have capital gains can reduce your overall tax bill. You can then buy a similar (but not identical) stock to maintain your investment position.
Holding stocks for more than one year is the simplest way to reduce your rate. Moving from short-term (taxed as ordinary income) to long-term (taxed at 0%, 15%, or 20%) can cut your tax bill by half or more, depending on your income level.
Donating appreciated stocks to charity is another option if you itemize deductions. You avoid capital gains tax on the appreciation and receive a charitable deduction for the full fair-market value of the stock. This works only if you have held the stock for more than one year.
Frequently Asked Questions
Do I owe capital gains tax if I sell at a loss?
No, you do not owe tax on a loss. You report the loss on Schedule D, and it can offset capital gains from other sales in the same year. If losses exceed gains, you can deduct up to $3,000 against other income, with any remainder carried forward to future years.
What if I inherited stock — do I owe capital gains tax when I sell it?
Inherited stock receives a "step-up in basis," meaning your cost basis is the stock's value on the date of death, not what the original owner paid. If you sell it shortly after inheriting it, you typically owe little or no capital gains tax, even if it has appreciated significantly since the original purchase.
Can I avoid capital gains tax by not selling?
Yes. Capital gains tax is owed only when you sell. If you hold a stock that has gained value but never sell it, you owe no federal tax on the gain during your lifetime. However, your heirs will receive a step-up in basis when you pass away, so they can sell without owing tax on the appreciation that occurred during your life.
Do I owe capital gains tax on dividends?
Dividends are taxed separately from capital gains. may have access to dividends (from most U.S. stocks held over 60 days) are taxed at long-term capital gains rates. Non-may have access to dividends are taxed as ordinary income. You report dividends on Schedule B of your tax return, not on Schedule D.