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

The federal tax rate on investment profits ranges from 0% to 20%, depending on two things: whether you held the investment for more than one year (long-term) or sold it within a year (short-term), and your total taxable income for that year. Long-term gains get lower rates. Short-term gains are taxed as ordinary income, which means they use the same brackets as wages — up to 37% at the highest bracket.

Your state may also tax capital gains. Some states add 5% to 13% on top of the federal rate. A few states (like Washington and Oregon) have recently passed capital gains taxes that apply only to certain high-value sales. Others, like Florida and Texas, have no state income tax at all.

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

Key Takeaways

  • Long-term capital gains (assets held over one year) are taxed at 0%, 15%, or 20% federally, based on your income bracket and filing status.
  • Short-term capital gains (assets sold within one year) are taxed as ordinary income, using the same rates as your wages, up to 37%.
  • Your state may add its own capital gains tax on top of the federal rate, ranging from 0% to 13% depending on where you live.
  • The rate you pay is determined by your total taxable income for the year, not by the size of the gain alone.

Long-term capital gains tax brackets for 2024

Long-term gains are taxed at three federal rates: 0%, 15%, or 20%. Which rate applies depends on your taxable income and filing status. The income thresholds change each year to account for inflation.

Filing Status0% Rate15% Rate20% Rate
Single$0 to $47,025$47,025 to $518,900Over $518,900
Married Filing Jointly$0 to $94,050$94,050 to $583,750Over $583,750
Head of Household$0 to $62,975$62,975 to $551,350Over $551,350

These thresholds are based on your total taxable income for the year, including wages, interest, dividends, and other income. If you earn $50,000 in wages and have a $20,000 long-term gain, your total taxable income is $70,000, which determines your capital gains rate.

The 0% bracket is often overlooked. If your income is low enough, you can sell investments with no federal tax on the gain. This is most useful for people in early retirement, those taking a year off work, or retirees with modest pensions.

Short-term capital gains are taxed like wages

If you sell an investment you held for one year or less, the gain is taxed as ordinary income. This means it uses the same tax brackets as your salary — 10%, 12%, 22%, 24%, 32%, 35%, or 37%, depending on your total income and filing status.

Short-term gains are added to your other income and taxed at whatever bracket that combined total falls into. A $5,000 short-term gain could push you into a higher bracket, raising the tax rate on both the gain and some of your other income.

Because short-term rates are much higher than long-term rates, many investors hold assets for at least one year before selling. The difference between a 37% short-term rate and a 20% long-term rate is substantial on large gains.

State capital gains taxes vary widely

Most states tax capital gains as part of ordinary income, using their standard income tax rates. If your state has a 5% income tax, you pay 5% on capital gains. If it has no income tax (like Florida, Texas, Wyoming, or Nevada), you pay no state capital gains tax.

Some states have recently created separate capital gains taxes that apply only to investment profits, not wages. Washington taxes long-term gains over $250,000 at 7%. Oregon taxes long-term gains over $125,000 at rates up to 9.9%. These are newer laws and the thresholds or rates may change.

A few states tax capital gains at a lower rate than ordinary income. For example, some states offer preferential rates for long-term gains, though this is less common than it once was.

How to calculate your capital gains tax

Start by finding your gain or loss: the sale price minus what you paid for the asset (your cost basis), minus any selling costs like broker fees. If you bought 100 shares at $10 each and sold them at $15 each, your gain is $500.

Determine whether the gain is long-term or short-term. Count the days from the purchase date to the sale date. If it is more than one year, it is long-term. If one year or less, it is short-term. The IRS counts the purchase date as day zero and the sale date as day one.

For long-term gains, find your taxable income for the year (wages, interest, other gains, minus deductions). Use that total to find your tax bracket in the long-term capital gains table above. For short-term gains, add them to your ordinary income and use the standard income tax brackets.

Multiply your gain by the applicable rate. If you have a $10,000 long-term gain and your bracket is 15%, you owe $1,500 in federal tax. Then add any state capital gains tax based on your state's rules.

Special situations that affect your rate

If you have capital losses in the same year, you can subtract them from your gains. A $5,000 loss reduces a $10,000 gain to $5,000 of taxable gain. If losses exceed gains, you can deduct up to $3,000 of the net loss against ordinary income in that year. Any remaining loss carries forward to future years.

If you inherit an investment, the cost basis "steps up" to the market value on the date of death. If your parent bought a stock for $1,000 and it was worth $10,000 when they died, your new cost basis is $10,000. If you sell it immediately for $10,000, you have no gain and pay no tax. This step-up applies to most inherited assets.

Certain investments get different treatment. Collectibles (art, coins, stamps) are taxed at a maximum 28% rate on long-term gains, not 20%. may have access to small business stock may be partially excluded from taxation under Section 1202. Real estate held for personal use (your home) gets a $250,000 exclusion for single filers and $500,000 for married couples filing jointly.

Frequently Asked Questions

Do I pay capital gains tax on investments in a 401(k) or IRA?

No. Gains inside retirement accounts are not taxed when you sell. You only pay tax when you withdraw money from the account (and then the entire withdrawal is taxed as ordinary income, not as capital gains). This is one major benefit of using retirement accounts.

What if I sold an investment at a loss?

Capital losses reduce your taxable gains dollar-for-dollar. If you have $10,000 in gains and $3,000 in losses, you report $7,000 of net gain. If losses exceed gains, you can deduct up to $3,000 against other income that year, and carry unused losses forward indefinitely.

Does the rate change if I hold an investment for more than five years?

No. The long-term capital gains rate is the same whether you hold an asset for one year or fifty years. The only threshold that matters is one year — anything longer than that gets the long-term rate.

Do I have to report small gains to the IRS?

Yes. You must report all capital gains, regardless of size. Even a $100 gain must be reported on your tax return. The IRS receives records from brokers, so unreported gains are likely to be caught.

What if I sold stock and bought it back a few weeks later?

Each transaction is separate. If you sold at a loss and bought back within 30 days (or 30 days after), the "wash sale" rule prevents you from deducting that loss. But if you sold at a gain, there is no wash sale rule — you owe tax on the gain regardless of whether you buy back.