The tax rate on capital gains depends on how long you held the asset and your income level

Capital gains tax is not one flat rate. The federal government taxes gains differently depending on whether you held the asset for less than a year (short-term) or more than a year (long-term). Your total income for the year also matters — the higher your income, the higher your rate, up to a maximum. State and local taxes add on top of the federal rate.

Short-term capital gains are taxed as ordinary income, meaning the same rate as your salary or wages. Long-term capital gains have their own lower brackets: 0%, 15%, or 20% at the federal level. Most people pay 15%. The difference between short-term and long-term can mean thousands of dollars in tax on the same sale.

Key Takeaways

  • Short-term capital gains (assets held under one year) are taxed at your ordinary income tax rate, which ranges from 10% to 37% depending on your income bracket.
  • Long-term capital gains (assets held over one year) are taxed at 0%, 15%, or 20% federally, with most people in the 15% bracket.
  • Your total income for the year determines which capital gains rate you pay, not just the gain itself.
  • State and local taxes add to the federal rate and vary widely — some states have no capital gains tax, others charge up to 13% or more.
  • You only pay tax on the gain (the difference between what you paid and what you sold it for), not the full sale price.

Short-term capital gains rates: taxed as ordinary income

If you sell an asset you owned for one year or less, the gain is short-term. The IRS taxes it at your ordinary income tax bracket. The 2024 federal brackets range from 10% to 37%, depending on your total income for the year.

For example, if you are in the 24% tax bracket and sell stock you held for six months at a $5,000 gain, you owe $1,200 in federal tax on that gain (before state taxes). The holding period does not matter — only that it was under one year.

Short-term gains are added to your other income, which can push you into a higher bracket. If you have a $50,000 salary and a $30,000 short-term gain, the IRS treats you as having $80,000 in income for the year, which may move you to a higher tax bracket for all of it.

Long-term capital gains rates: 0%, 15%, or 20%

If you hold an asset for more than one year before selling, the gain is long-term. The federal tax rate is 0%, 15%, or 20%, depending on your income level. These rates are much lower than ordinary income brackets, which is why holding assets longer often saves money on taxes.

The 0% rate applies to lower-income filers. For 2024, single filers with taxable income up to roughly $47,000 pay 0% on long-term gains. The 15% rate covers most middle-income filers. The 20% rate applies to higher-income filers — single filers with taxable income over roughly $518,000.

The income thresholds change each year with inflation. Your tax professional or the IRS website can tell you which bracket applies to you in your tax year. Long-term gains do not push you into a higher bracket the way short-term gains do — they are taxed in their own separate brackets.

How your total income determines your capital gains rate

Your capital gains rate is not based on the size of the gain alone. It is based on your total taxable income for the year, including wages, interest, dividends, and short-term gains. This total determines which long-term capital gains bracket you fall into.

If you have a $40,000 salary and a $20,000 long-term gain, your total income is $60,000. You may be in the 15% bracket for the gain. But if you have a $600,000 salary and the same $20,000 gain, you are in the 20% bracket. The gain itself is identical; the tax is different because of your other income.

This also means you can sometimes lower your capital gains rate by timing the sale. If you expect a lower-income year, selling in that year may put you in a lower bracket. A tax professional can model this for you.

State and local capital gains taxes

Most states tax capital gains as ordinary income, adding their state income tax rate on top of the federal rate. State rates range from 0% (in states with no income tax) to over 13% (in high-tax states like California and New York). A few states have separate capital gains taxes that apply only to investment income.

If you live in California and sell a long-term asset at a 15% federal rate plus California's 13.3% state rate, your total is 28.3%. If you live in Texas, which has no state income tax, you pay only the 15% federal rate. The state you live in when you sell matters.

Some states tax capital gains only if you are a resident. If you move before selling, or if you sell property in a state where you do not live, the tax rules can be complex. A tax professional in your state can tell you what applies.

How the gain itself is calculated

You only pay tax on the gain, not the full sale price. The gain is the difference between what you paid for the asset (your basis) and what you sold it for (your sale price), minus any selling costs like broker fees or commissions.

If you bought a stock for $10,000 and sold it for $15,000, your gain is $5,000. If you paid $200 in broker fees to sell, your gain is $4,800. You pay tax only on the $4,800, not the $15,000 sale price.

Your basis is usually what you paid, but it can be different if you inherited the asset, received it as a gift, or had it adjusted for stock splits or dividends. Keep records of what you paid and any fees. When you sell, your broker will report the sale to the IRS, and you will need to report your basis to calculate the gain correctly.

Special situations: collectibles, real estate, and net investment income tax

Most long-term capital gains are taxed at 0%, 15%, or 20%. But collectibles — art, antiques, coins, and similar items — are taxed at a maximum of 28%, even if they are long-term. Real estate has its own rules: you may be able to exclude up to $250,000 of gain if you lived in the home for two of the last five years (or $500,000 if married filing jointly).

If your modified adjusted gross income exceeds certain thresholds ($200,000 for single filers, $250,000 for married filing jointly), you also owe a 3.8% net investment income tax on top of the capital gains rate. This applies to long-term gains, short-term gains, dividends, and other investment income. It is a separate tax, not part of the capital gains rate itself.

Frequently Asked Questions

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

No. If you sell an asset for less than you paid, you have a capital loss, not a gain. You can use losses to offset gains from other sales. If losses exceed gains, you can deduct up to $3,000 of the excess loss against ordinary income in that year, and carry forward any remaining loss to future years.

What if I inherit an asset — do I pay capital gains tax on it?

Usually not immediately. Inherited assets receive a "step-up in basis," meaning your basis becomes the asset's value on the date of death, not what the original owner paid. If you sell it shortly after inheriting it, you typically owe little or no capital gains tax. If you hold it and it increases in value, you pay tax only on the gain after inheritance.

How do I report capital gains on my tax return?

You report capital gains on Schedule D (Form 1040). Your broker sends you a Form 1099-B showing sales and proceeds. You calculate the gain (sale price minus basis and fees) and report it on Schedule D, which separates short-term and long-term gains. The totals transfer to your main tax return.

Can I avoid capital gains tax by holding an asset forever?

You avoid tax only if you never sell. Once you sell, you owe tax on the gain. If you pass the asset to heirs, they get the step-up in basis and can sell with little or no tax. But during your lifetime, selling triggers the tax.

What is the difference between capital gains and dividends?

Capital gains come from selling an asset for more than you paid. Dividends are payments a company makes to shareholders from its profits. may have access to dividends (from U.S. companies held for a certain period) are taxed like long-term capital gains. Unqualified dividends are taxed as ordinary income. They are separate types of investment income with different tax rates.