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

The federal tax rate on capital gains is either 0%, 15%, or 20%, determined by two things: whether you held the asset for more than one year (long-term) or one year or less (short-term), and your taxable income bracket for that year. Long-term gains receive preferential rates. Short-term gains are taxed as ordinary income at your regular tax bracket, which can range from 10% to 37% depending on your total earnings.

Your state may also tax capital gains. Some states have no capital gains tax at all. Others tax them as regular income. A few states have a separate capital gains tax rate. The amount you owe in state tax varies significantly by where you live and file.

The rates and income thresholds change each year because they are adjusted for inflation. The 2024 thresholds are different from 2023, and 2025 thresholds will differ again. You need the rates for the specific year you sold the asset, not a general rule.

Key Takeaways

  • Long-term capital gains (held over one year) are taxed at 0%, 15%, or 20% federally, based on your income bracket that year.
  • Short-term capital gains (held one year or less) are taxed as ordinary income at rates from 10% to 37%.
  • Your state may add its own tax on top of federal rates, ranging from 0% to over 13% depending on where you live.
  • Income thresholds for each rate tier shift annually, so the rate you pay depends on your total taxable income in the year of the sale.

Long-Term Capital Gains Rates (assets held over one year)

Long-term gains receive three possible federal rates: 0%, 15%, or 20%. Which rate applies depends on your taxable income for that year and your filing status (single, married filing jointly, head of household, or married filing separately).

The 0% rate applies to the lowest income earners. For 2024, single filers with taxable income up to $47,025 pay 0% on long-term gains. Married couples filing jointly pay 0% on gains up to $94,050 of taxable income. These thresholds rise slightly each year.

The 15% rate applies to middle-income filers. For 2024, single filers with taxable income between $47,025 and $518,900 pay 15%. Married couples filing jointly pay 15% on income between $94,050 and $583,750. Again, these numbers shift annually.

The 20% rate applies to the highest earners. For 2024, single filers with taxable income over $518,900 pay 20%. Married couples filing jointly pay 20% on income over $583,750. High-income earners may also owe an additional 3.8% net investment income tax, bringing their total federal rate to 23.8%.

Short-Term Capital Gains Rates (assets held one year or less)

Short-term gains are taxed as ordinary income using your regular tax bracket. The federal rates are 10%, 12%, 22%, 24%, 32%, 35%, and 37%, depending on your total income and filing status for that year.

Short-term gains do not receive the preferential rates that long-term gains do. A short-term gain of $10,000 is treated exactly like $10,000 in wages or salary — it pushes your total income higher and may move you into a higher tax bracket. This is why holding an asset for more than one year before selling usually results in a lower tax bill.

How state taxes add to your federal rate

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

Most other states tax capital gains as ordinary income, meaning your state rate depends on your state tax bracket. State rates range from roughly 1% in states like Colorado to over 13% in states like California and New York. A few states — including Washington and Oregon — have enacted separate capital gains taxes that apply only to gains above a certain threshold, typically $250,000 or more.

Your effective total rate is the federal rate plus your state rate. A long-term gain taxed at 15% federally and 10% at the state level results in a 25% total tax on that gain. This is why your state of residence matters significantly to your tax bill.

How your income bracket determines your rate

Capital gains rates are tied to your taxable income for the year, not to the size of the gain itself. Taxable income includes wages, self-employment income, interest, dividends, and the capital gains you are reporting. If you have a large gain in a year when your other income is low, you may pay a lower rate than if you had the same gain in a year when you earned more from your job.

This is why timing matters. Selling an asset in a year when you have little other income might keep you in the 0% or 15% bracket. Selling in a year when you earned a large bonus or had high self-employment income might push you into the 20% bracket. Some people spread large gains across multiple years or time sales to years when their income is lower, though this requires planning and is not always possible.

How to find the exact rate for your situation

The IRS publishes tax rate tables each year on its website. Search for "2024 capital gains tax rates" (or the year you need) to find the current income thresholds for your filing status. The tables show the exact income ranges for 0%, 15%, and 20% long-term rates.

Your state's revenue or taxation department publishes its own rates and thresholds. Search your state name plus "capital gains tax" to find the current state rate and any special rules that apply. Some states have different rates for residents versus nonresidents, or different rules for gains on real estate versus stocks.

A tax professional or accountant can calculate your specific rate based on your total income, filing status, and state of residence. If you have a large gain or complex income situation, this is often worth the cost to avoid overpaying or underpaying.

Frequently Asked Questions

Do I pay capital gains tax on every investment I sell?

You pay tax on the gain — the difference between what you paid for the asset and what you sold it for. If you sold an investment for less than you paid, you have a loss, which can offset other gains. If you break even, there is no gain and no tax owed on that particular sale.

Is the rate the same if I sell a house versus stocks?

The federal rates are the same, but there are special rules. If you lived in your home as your primary residence for at least two of the last five years, you can exclude up to $250,000 (single) or $500,000 (married filing jointly) of gain from tax entirely. Stocks do not have this exclusion. State rules also vary — some states tax real estate gains differently than investment gains.

What if I sell an investment at a loss?

Capital losses can offset capital gains dollar-for-dollar. If you have $5,000 in gains and $3,000 in losses, you report a net gain of $2,000. If losses exceed gains, you can deduct up to $3,000 of the excess loss against other income in that year. Unused losses carry forward to future years.

Do I owe capital gains tax if I inherit an investment?

No tax is owed on the inheritance itself. However, if you later sell the inherited asset, you owe tax on the gain from the date you inherited it, not from the date the original owner bought it. This is called a "stepped-up basis" and is a significant tax benefit of inherited assets.

Can I reduce my capital gains tax by donating the investment to charity instead of selling it?

Yes. If you donate an appreciated investment directly to a may have access to charity, you avoid the capital gains tax entirely and can deduct the full fair market value of the donation. You must donate the actual asset, not the proceeds from selling it, to receive this benefit.