The tax rate on capital gains depends on how long you held the asset and your income level

Capital gains tax is not a single rate. The federal government taxes gains differently based on two things: whether you held the asset for more than one year (long-term) or one year or less (short-term), and your total taxable income for the year. Short-term gains are taxed as ordinary income at your regular tax bracket rate, which ranges from 10% to 37% depending on your income. Long-term gains are taxed at lower rates: 0%, 15%, or 20%, again based on your income level.

Your state may also tax capital gains. Some states tax them as ordinary income; others have separate capital gains tax rates; some tax them only on certain types of assets like stocks or real estate. A few states do not tax capital gains at all. The state rate stacks on top of the federal rate, so your total tax bill depends on where you live.

Key Takeaways

  • Short-term capital gains (assets held one year or less) are taxed at your ordinary income tax rate, which can be as high as 37% federally.
  • Long-term capital gains (assets held more than one year) are taxed at 0%, 15%, or 20% federally, depending on your income bracket.
  • Your state may add its own capital gains tax on top of the federal rate, ranging from 0% to over 13% depending on where you live.
  • The tax rate you pay is determined by your total taxable income for the year, not just the size of the gain itself.

Long-term capital gains rates and income thresholds

Long-term gains receive preferential tax treatment because you held the asset for more than one year. The three federal rates are 0%, 15%, and 20%. Which rate applies depends on your taxable income and filing status.

For 2024, the 0% rate applies to single filers with taxable income up to $47,025, married filing jointly up to $94,050, and heads of household up to $62,975. The 15% rate applies to income above those thresholds up to $518,900 (single), $583,750 (married filing jointly), and $551,350 (head of household). Income above those amounts is taxed at 20%. These income thresholds change each year with inflation.

The income threshold that matters is your total taxable income for the year, not the amount of the gain. If you are single, earn $40,000 in wages, and sell stock for a $10,000 gain, your taxable income is $50,000. The first $7,025 of your gain falls in the 0% bracket, and the remaining $2,975 is taxed at 15%.

Short-term capital gains and ordinary income tax brackets

Short-term gains are taxed as ordinary income at your marginal tax rate. The federal rates for 2024 are 10%, 12%, 22%, 24%, 32%, 35%, and 37%, depending on your income and filing status. A short-term gain is any profit from selling an asset you owned for one year or less.

Because short-term gains use your regular tax bracket, they can be taxed at much higher rates than long-term gains. A high-income earner in the 37% bracket who sells a stock after holding it for six months pays 37% tax on the gain. The same person holding the stock for 13 months pays only 20%. This is why holding periods matter significantly to your tax bill.

State capital gains taxes vary widely

Most states tax capital gains as part of ordinary income, so your state income tax rate applies on top of the federal rate. A few states have separate capital gains tax rates. California taxes long-term gains at ordinary income rates up to 13.3%. Washington State has a 7% capital gains tax on long-term gains from stocks and certain other investments, with no income tax otherwise. New York taxes long-term gains at ordinary income rates up to 10.9%.

Nine states have no income tax at all, which means no capital gains tax: Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, Wyoming, and New Hampshire (which taxes only investment income, not capital gains). If you live in one of these states, you pay only the federal rate.

Some states tax capital gains only on specific assets. Washington's 7% tax applies only to stocks, bonds, and certain other securities, not to real estate or business assets. Oregon taxes capital gains on all assets at ordinary income rates up to 9.9%. Understanding your state's rules is essential because the state tax can equal or exceed the federal tax.

How the holding period affects your tax rate

The one-year holding period is a hard line. Own an asset for 365 days and sell it on day 366, and it qualifies for long-term treatment. Sell on day 365, and it is short-term. The difference can be substantial: a $50,000 gain taxed at 37% (short-term, high earner) costs $18,500. The same gain taxed at 20% (long-term, high earner) costs $10,000. That is an $8,500 difference based purely on timing.

The holding period is measured from the date you acquire the asset to the date you sell it. If you inherit an asset, you receive a "stepped-up basis," which means the holding period resets and the asset is treated as long-term immediately for tax purposes. If you receive a gift, the holding period carries over from the giver, so a gift of an asset held for six months means you need to hold it another six months to reach long-term status.

How to calculate what you owe

Start with the sale price of the asset minus what you paid for it (your basis). That is your gain. If you sold stock for $15,000 that you bought for $10,000, your gain is $5,000. If you sold for $8,000, you have a $2,000 loss.

Next, determine whether the gain is long-term or short-term based on your holding period. Then find your tax bracket based on your total taxable income for the year. For long-term gains, use the 0%, 15%, or 20% rates. For short-term gains, use your ordinary income tax bracket (10% through 37%). Multiply the gain by the rate. If you have losses, you can offset gains dollar-for-dollar. Unused losses can be carried forward to future years, up to $3,000 per year against ordinary income.

Add your state capital gains tax rate to the federal rate to find your total tax. A $10,000 long-term gain in California for a high-income earner is taxed at 20% (federal) plus 13.3% (state) for a total of 33.3%, or $3,330 in tax.

Special situations and exceptions

Certain gains receive preferential treatment or are excluded entirely. If you sell a primary residence and meet the ownership and use tests (owned and lived in the home for at least two of the last five years), you can exclude up to $250,000 of gain if single or $500,000 if married filing jointly. This exclusion applies once every two years.

Collectibles (art, antiques, precious metals) are taxed at a maximum rate of 28% federally, even if you are in a higher bracket. Certain small business stock held for more than five years may may have access to for a 50% exclusion on gains, reducing the taxable amount. may have access to opportunity zone investments have deferral and exclusion benefits if held for specific periods. These exceptions are narrow and have strict requirements, so consult a tax professional if you think one applies to you.

Frequently Asked Questions

Do I pay capital gains tax if I sell at a loss?

No. If you sell an asset for less than you paid, you have a capital loss, not a gain. You can use losses to offset gains from other sales. If your losses exceed your gains, you can deduct up to $3,000 of the excess against ordinary income in that year. Any remaining loss carries forward to future years.

What if I inherit an asset and then sell it?

You receive a stepped-up basis, meaning the value of the asset on the date of death becomes your new cost basis. If the asset was worth $100,000 when the person died and you sell it for $105,000 a year later, your gain is only $5,000, not the gain the deceased person would have had. The stepped-up basis applies regardless of holding period, so inherited assets are treated as long-term for tax purposes.

How do I report capital gains on my tax return?

You report capital gains on Schedule D (Form 1040) and then transfer the totals to your main tax return. Your broker or investment company sends you a Form 1099-B showing sales proceeds. You calculate the gain or loss by subtracting your basis from the proceeds. Long-term and short-term gains are reported separately because they are taxed differently.

Can I reduce my capital gains tax by timing when I sell?

Yes, by managing which year you recognize the gain and by pairing gains with losses. If you have a large gain in one year and a loss in another, selling both in the same year can offset them. You can also harvest losses in December to offset gains and carry forward unused losses. However, the wash-sale rule prevents you from buying back the same or substantially identical security within 30 days of selling at a loss.

Are dividends taxed the same as capital gains?

may have access to dividends are taxed at the same long-term capital gains rates (0%, 15%, or 20%). Non-may have access to dividends are taxed as ordinary income at your regular bracket rate. Your broker reports which dividends are may have access to on your 1099-DIV. Most dividends from U.S. stocks held for more than 60 days are may have access to.