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

The federal tax rate on capital gains ranges from 0% to 20%, depending on your total income for the year and whether you held the asset for more than one year. Long-term capital gains (assets held over one year) get lower rates than short-term gains (assets sold within one year). Short-term gains are taxed as ordinary income, which means they use the same brackets as wages — currently 10%, 12%, 22%, 24%, 32%, 35%, or 37%.

Your state may also tax capital gains. Some states charge no capital gains tax at all. Others tax capital gains as regular income using their state tax brackets. A few states — including California, New York, and Washington — have separate capital gains taxes that apply only to investment profits, typically at rates between 7% and 8.82%. You owe both federal and state tax on the same gain.

The exact rate you pay depends on your filing status and your total taxable income for that year, not just the size of the gain itself. A $10,000 gain might be taxed at 0% for one person and 20% for another, based entirely on their income level.

Key Takeaways

  • Long-term capital gains are taxed at 0%, 15%, or 20% depending on your income bracket; short-term gains use ordinary income tax rates of 10% to 37%.
  • Your state may add its own capital gains tax on top of the federal rate, ranging from 0% to 8.82% depending on where you live.
  • The tax rate you pay is determined by your total income for the year, not by the size of the gain alone.
  • You must hold an asset for more than one year to may have access to for long-term capital gains rates; selling before that triggers the higher short-term rate.

Long-term capital gains tax brackets for 2024

Long-term capital gains use three federal tax brackets. The 0% bracket applies to single filers with taxable income up to $47,025 and married couples filing jointly with income up to $94,050. The 15% bracket covers single filers from $47,025 to $518,900 and married couples from $94,050 to $583,750. Any income above those thresholds is taxed at 20%.

These income thresholds change each year. The IRS adjusts them for inflation, so the exact numbers will be different in 2025 and beyond. You can find the current year's brackets on the IRS website or through a tax software program.

Your "taxable income" for this calculation includes wages, interest, dividends, and other income, minus deductions. A capital gain is added to that total, and the combined amount determines which bracket applies. If you are near the edge of a bracket, a large capital gain can push you into a higher rate.

Short-term capital gains and ordinary income tax rates

Short-term capital gains — profits from assets held one year or less — are taxed as ordinary income. This means they use the same seven tax brackets as wages: 10%, 12%, 22%, 24%, 32%, 35%, and 37%. The bracket you fall into depends on your total income for the year.

For 2024, a single filer in the 22% bracket has taxable income between $47,150 and $100,525. A married couple filing jointly in that same bracket has income between $94,300 and $201,050. These ranges also adjust annually for inflation.

Because short-term gains use higher tax brackets than long-term gains, holding an asset for just over one year can save you significant money. A $50,000 short-term gain might be taxed at 24%, costing $12,000. The same $50,000 as a long-term gain could be taxed at 15%, costing $7,500 — a $4,500 difference.

How state capital gains taxes add to your federal bill

Nine states currently have a separate capital gains tax that applies only to investment profits: California, Connecticut, Illinois, Maryland, Minnesota, New Jersey, New York, Oregon, and Washington. These taxes are in addition to any state income tax you owe on wages and other income.

California's capital gains tax is 13.3% on gains over $250,000 per year. Washington's is 7% on long-term gains over $250,000. New York's is 8.82% on gains over $1 million. The other states have different thresholds and rates. If you live in one of these states and sell an asset at a profit, you calculate your federal tax, then add your state's capital gains tax on top.

Thirty-eight states tax capital gains as part of ordinary income, using their regular state income tax brackets. If your state has a 5% income tax bracket, you pay 5% on capital gains in that bracket. Seven states have no income tax at all, so residents pay no state capital gains tax.

What counts as a capital gain and when you owe tax

A capital gain occurs when you sell an asset for more than you paid for it. Common examples are stocks, bonds, real estate, cryptocurrency, and collectibles. The gain is the difference between your sale price and your original purchase price, minus any costs of sale like broker fees or commissions.

You owe capital gains tax only in the year you sell the asset. Holding a stock that increases in value does not trigger tax — the gain is "unrealized" until you sell. Once you sell, the gain becomes "realized" and is taxable in that tax year.

Some assets have special rules. Long-term capital gains on certain small-business stock can be partially excluded from tax. Inherited assets receive a "step-up in basis," meaning the tax is calculated from the asset's value on the date of death, not the original purchase price. Primary residence sales may exclude up to $250,000 of gain (or $500,000 for married couples) if you meet ownership and use requirements.

How to report capital gains on your tax return

You report capital gains on Schedule D (Form 1040), which lists each asset you sold during the year. For each sale, you enter the date acquired, date sold, sales price, and cost basis (what you paid plus any improvements or costs). The form calculates your gain or loss automatically.

If you sold stocks or mutual funds, your broker sends you a Form 1099-B showing the sales. If you sold real estate, you may receive a Form 1099-S from the title company or real estate agent. These forms go to the IRS, so your reported gains should match what the IRS already knows about.

Tax software programs like TurboTax, H&R Block, and TaxAct walk you through entering each sale. If you use a tax preparer or accountant, bring them documentation of every asset you sold: purchase date, sale date, purchase price, and sale price. The more organized your records, the faster the process moves.

Losses, deductions, and reducing your capital gains tax

Capital losses — profits from sales where you sold at a loss — can offset capital gains. If you sold a stock for $5,000 less than you paid, that $5,000 loss reduces your taxable gains dollar-for-dollar. If your losses exceed your gains in a year, you can deduct up to $3,000 of the excess loss against ordinary income (wages, interest, etc.). Any remaining loss carries forward to future years.

This is why some investors "harvest losses" late in the year — they sell losing positions to offset gains from winning positions, reducing their total tax bill. You cannot immediately repurchase the same security, but you can buy a similar one. The IRS "wash sale" rule prevents you from selling a security at a loss and buying it back within 30 days before or after the sale.

Charitable donations of appreciated assets can also reduce your tax burden. If you donate stock that has increased in value, you avoid capital gains tax on the appreciation and receive a charitable deduction for the full current value. This is often more tax-efficient than selling the stock and donating the proceeds.

Frequently Asked Questions

Do I owe capital gains tax if I sell my house?

You may not owe tax if you lived in the house as your primary residence for at least two of the last five years. You can exclude up to $250,000 of gain (or $500,000 if married filing jointly) from tax. Gains above that threshold are taxed as long-term capital gains. If you did not live there as a primary residence, the entire gain is taxable.

What is the difference between realized and unrealized gains?

A realized gain occurs when you sell an asset and lock in the profit — that is when you owe tax. An unrealized gain is the increase in value while you still own the asset. You owe no tax on unrealized gains, no matter how large. Tax is due only in the year you sell.

Can I deduct investment losses from my taxes?

Yes. Capital losses offset capital gains dollar-for-dollar. If losses exceed gains, you can deduct up to $3,000 of the excess against wages and other ordinary income in that year. Any remaining loss carries forward to future years and can be used the same way.

Are cryptocurrency gains taxed differently than stock gains?

No. The IRS treats cryptocurrency as property, not currency. When you sell crypto at a profit, it is taxed as a capital gain using the same rates as stocks — 0%, 15%, or 20% for long-term gains, or ordinary income rates for short-term gains. You report it on Schedule D just like any other asset sale.

What if I inherited an asset that increased in value after I inherited it?

You owe tax only on the gain after you inherited it. The asset receives a "step-up in basis" to its value on the date of death, so the inherited increase is not taxed. Any increase in value after you inherit it is taxed as a capital gain when you sell, using the stepped-up value as your cost basis.