Federal capital gains tax rates depend on your income and how long you held the asset

The federal government taxes capital gains at three rates: 0%, 15%, or 20%. Which rate you pay depends on two things: your total taxable income for the year, and whether you held the asset for more than one year (long-term) or one year or less (short-term). Short-term gains are taxed as ordinary income, which means they use the same brackets as wages and salary — currently 10%, 12%, 22%, 24%, 32%, 35%, or 37% depending on your income.

Long-term capital gains — the kind most people think of when they sell a house or stock they've owned for years — use the preferential 0%, 15%, or 20% rates. The 0% rate applies to single filers with taxable income up to $47,025 in 2024 (married filing jointly: $94,050). The 15% rate covers income from $47,026 to $518,900 for single filers (married: $94,051 to $583,750). Anything above that is taxed at 20%. These income thresholds change each year with inflation.

Key Takeaways

  • Long-term capital gains (assets held over one year) are taxed at 0%, 15%, or 20% based on your total income for the year, not the gain itself.
  • Short-term capital gains (assets held one year or less) are taxed as ordinary income at rates from 10% to 37%.
  • Your tax bracket for capital gains is separate from your wage income bracket, so you may pay a different rate than you expect.
  • State and local taxes on capital gains vary widely — some states have no capital gains tax, while others tax them as ordinary income or at special rates.
  • The income thresholds for each federal rate change annually, so you should check the current year's numbers before calculating what you owe.

How holding period changes what you pay

The distinction between short-term and long-term is strict: you must own the asset for more than one year to may have access to for the lower long-term rates. If you sell on day 366, you get the preferential rate. If you sell on day 365, you pay ordinary income tax. The holding period starts the day after you purchase and ends on the day you sell.

Short-term gains are taxed at your ordinary income tax bracket, which can be significantly higher. If you're in the 24% ordinary income bracket and sell a stock you owned for six months, that gain is taxed at 24%, not 15%. This is why timing a sale to cross the one-year mark can save substantial money on larger gains.

State and local capital gains taxes vary widely

Federal tax is only part of what you owe. Most states either tax capital gains as ordinary income, apply a special capital gains tax, or don't tax them at all. California, for example, taxes long-term capital gains as ordinary income at rates up to 13.3%. New York taxes them at ordinary income rates up to 10.9%. Washington state has a 7% tax on long-term capital gains over $250,000, even though it has no income tax. Nine states — Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, Wyoming, and New Hampshire — have no capital gains tax at all.

Some states have recently introduced or changed their capital gains taxes, so the rate in your state may have shifted. Your total tax bill on a capital gain can easily be 30% to 50% when you combine federal and state taxes, depending on where you live and your income level.

How to calculate your tax bracket for capital gains

Capital gains don't sit on top of your other income — they're stacked on top of it. If you earn $50,000 in wages and have a $30,000 long-term capital gain, your taxable income is $80,000. The capital gain is taxed starting at the point where your wages end. This matters because it can push you into a higher capital gains bracket.

For example, a single filer earning $40,000 in wages with a $20,000 long-term capital gain has $60,000 in taxable income. The first $7,025 of the gain falls in the 0% bracket (up to $47,025), and the remaining $12,975 falls in the 15% bracket. You don't pay 15% on the whole gain — only on the portion above the threshold.

Special rules for certain assets and situations

Collectibles — art, antiques, coins, and similar items — are taxed at a maximum 28% federal rate even if they're long-term gains, which is higher than the standard 20% top rate. may have access to small business stock held for more than five years may be taxed at a 0% rate on gains up to $10 million or ten times your basis, whichever is larger, though this is subject to income limits and other conditions.

If you inherit an asset, you receive a "step-up in basis," meaning your cost basis becomes the asset's value on the date of death, not what the original owner paid. This can eliminate capital gains tax on appreciation that occurred before you inherited it. However, this rule may change in the future depending on legislation.

How capital losses offset gains and income

If you sell an asset at a loss, you can use that loss to offset capital gains from other sales. If your losses exceed your gains, you can deduct up to $3,000 of the excess loss against ordinary income in a single year. Any remaining loss carries forward to future years indefinitely until it's used up. This is called "tax-loss harvesting" and is a common strategy to reduce your overall tax bill.

For example, if you have a $10,000 long-term gain and a $7,000 long-term loss, you report a net gain of $3,000. If instead you have a $5,000 gain and a $12,000 loss, you report a net loss of $7,000 — you can deduct $3,000 against other income this year and carry the remaining $4,000 forward.

Frequently Asked Questions

Do I have to pay capital gains tax if I reinvest the money?

Yes. The tax is based on the gain itself, not what you do with the proceeds. If you sell a stock for $50,000 that you bought for $30,000, you owe tax on the $20,000 gain regardless of whether you spend it, save it, or buy another stock immediately. Reinvesting does not defer or eliminate the tax.

What if I sell my primary home?

You can exclude up to $250,000 of gain if you're single, or $500,000 if you're married filing jointly, as long as you owned and lived in the home for at least two of the last five years. This exclusion applies once every two years. Gains above the exclusion amount are taxed as long-term capital gains at the standard rates.

Are cryptocurrency gains taxed the same way?

Yes. Selling cryptocurrency is treated as a capital gain or loss. If you held it for more than one year, it's taxed at the long-term rates (0%, 15%, or 20%). If you held it for one year or less, it's taxed as ordinary income. Trading one cryptocurrency for another is also a taxable event, even if you don't convert to dollars.

Can I reduce my capital gains by donating appreciated assets to charity?

Yes. If you donate appreciated securities or property to a may have access to charity, you avoid the capital gains tax on the appreciation and can deduct the full fair market value as a charitable contribution. This is often more tax-efficient than selling the asset and donating the proceeds, especially for large gains.