The federal capital gains tax rate depends on your income and how long you held the investment

The federal capital gains tax rate is either 0%, 15%, or 20% on profits from selling stocks, real estate, or other investments you owned. Which rate applies to you depends on two things: your total income for the year, and whether you held the investment for more than one year (long-term) or one year or less (short-term).

Long-term capital gains — the profits on investments you held for over a year — get the preferential rates of 0%, 15%, or 20%. Short-term capital gains are taxed as ordinary income, which means they use the same brackets as wages: 10%, 12%, 22%, 24%, 32%, 35%, or 37%, depending on your income level. Most people pay short-term rates only if they trade frequently or sell inherited property within a year.

Your state may also tax capital gains. Some states have no capital gains tax at all. Others tax capital gains as income at rates ranging from 1% to 13.3%. A few states have separate capital gains taxes that apply only to investment profits, ranging from 1% to 7%. The state rate stacks on top of the federal rate.

Key Takeaways

  • Long-term capital gains (held over one year) are taxed at 0%, 15%, or 20% federally, based on your income bracket.
  • Short-term capital gains (held one year or less) are taxed as ordinary income at rates from 10% to 37%.
  • Your state may add a capital gains tax on top of the federal rate, or may have no capital gains tax at all.
  • The 0% long-term rate applies only to lower-income filers; the 15% rate covers most middle-income households; the 20% rate applies to high-income filers.

Long-term capital gains tax brackets for 2024

The 0%, 15%, and 20% rates for long-term gains are tied to income thresholds that change each year. For 2024, the thresholds are:

Filing Status0% Rate (up to)15% Rate (up to)20% Rate (above)
Single$47,025$518,900$518,900
Married Filing Jointly$94,050$583,750$583,750
Head of Household$62,700$551,350$551,350

These numbers are your taxable income, not your total income. Taxable income is what remains after you subtract the standard deduction (which varies by filing status) and any other deductions you claim. If your taxable income falls below the first threshold, you owe 0% on long-term gains. If it falls between the first and second threshold, you owe 15%. If it exceeds the second threshold, you owe 20% on the gains above that line.

These thresholds adjust upward each year for inflation. The IRS publishes updated numbers in late 2023 for the following tax year.

How short-term capital gains are taxed differently

Short-term capital gains — profits on investments held for one year or less — are taxed as ordinary income. This means they use the same tax brackets as your wages, salary, or self-employment income. For 2024, those brackets range from 10% to 37%, depending on your filing status and total income.

Short-term gains are added to your other income, which can push you into a higher bracket. For example, if you earn $50,000 in wages and realize $20,000 in short-term gains, your taxable income becomes $70,000, and the gains may be taxed at a higher rate than your wages. This stacking effect is why short-term gains are usually more expensive than long-term gains.

Most individual investors hold stocks and funds for longer than a year to avoid this higher rate. Day traders and people who sell inherited property quickly are more likely to face short-term rates.

State capital gains taxes

Nineteen states and Washington, D.C. tax capital gains in some form. The approach varies widely:

  • States with no capital gains tax: Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming do not tax capital gains at all.
  • States that tax capital gains as income: Most states that tax capital gains treat them as ordinary income and apply their regular income tax rates, which range from 1% to 13.3%. This includes California, New York, and Massachusetts.
  • States with a separate capital gains tax: A few states — including Washington and Oregon — have enacted separate taxes that apply only to long-term capital gains, typically at rates of 1% to 7%, with high income thresholds.

If you live in a state with no capital gains tax and sell an investment, you owe only the federal rate. If you live in a state that taxes capital gains, you owe both the federal rate and the state rate. Some states offer credits for capital gains taxes paid to other states if you moved or sold property in multiple states.

Net investment income tax

High-income filers may also owe a 3.8% Net Investment Income Tax (NIIT) on top of the capital gains rate. This tax applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds a threshold. For 2024, the thresholds are $200,000 for single filers and $250,000 for married couples filing jointly.

Net investment income includes capital gains, dividends, interest, rental income, and royalties. If you sell an investment and your income exceeds the threshold, part or all of your gain may be subject to the 3.8% tax. This is a federal tax separate from the capital gains rate itself.

For example, a single filer with $250,000 in taxable income who realizes $30,000 in long-term capital gains would owe the 20% long-term rate on the gains (because income exceeds the 15% threshold) plus the 3.8% NIIT, for a combined federal rate of 23.8% on that gain.

How to report capital gains on your tax return

You report capital gains on Schedule D (Form 1040), which is filed with your federal income tax return. You list each sale separately: the date you bought it, the date you sold it, the sale price, and your cost basis (what you paid for it, plus any improvements). The form calculates whether each gain is long-term or short-term based on the holding period.

Your brokerage or investment firm sends you a Form 1099-B (Proceeds from Broker and Barter Exchange Transactions) showing the sales you made during the year. You use this form to fill out Schedule D. If you sold real estate, you may receive a Form 1099-S instead, though you still report it on Schedule D.

If you have losses, you can use them to offset gains. 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.

Frequently Asked Questions

What is the difference between long-term and short-term capital gains?

Long-term gains are on investments you held for more than one year; short-term gains are on investments held one year or less. Long-term gains are taxed at 0%, 15%, or 20% based on income. Short-term gains are taxed as ordinary income at rates from 10% to 37%. Long-term rates are almost always lower.

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

No. If you sell an investment for less than you paid for it, you have a loss, not a gain. You can use losses to reduce your taxable gains. If losses exceed gains, you can deduct up to $3,000 against other income that year, and carry the rest forward to future years.

How do I know if I'm in the 0%, 15%, or 20% bracket?

Calculate your taxable income for the year (wages, self-employment income, and other sources, minus the standard deduction and any other deductions). Compare that number to the income thresholds for your filing status. If your taxable income is below the first threshold, you're in the 0% bracket. Between the first and second threshold is 15%. Above the second threshold is 20%.

Do I have to pay capital gains tax on inherited investments?

You inherit investments at their "stepped-up basis," meaning the cost basis resets to the market value on the date of death. If you sell the inherited investment shortly after, you typically owe little or no capital gains tax. If you hold it longer and the value rises, you owe tax only on the gains after the inheritance date.

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

Yes, in some cases. If you have both gains and losses, you can sell losing investments to offset gains in the same year. You can also spread sales across two tax years to stay in a lower bracket. However, the "wash sale rule" prevents you from buying back the same investment within 30 days of selling it at a loss.