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

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 asset for more than one year (long-term) or one year or less (short-term).

Short-term capital gains — profits on assets you sold within one year — are taxed as ordinary income. That means they use the same tax brackets as your wages or salary, which range from 10% to 37% depending on your income. Long-term capital gains get the preferential rates of 0%, 15%, or 20%, which are lower than ordinary income rates for most people.

Your state may also tax capital gains. Some states charge no capital gains tax at all. Others tax it as income at rates between 1% and 13.3%. The federal rate and your state rate stack on top of each other.

Key Takeaways

  • Long-term capital gains (assets held over one year) are taxed at 0%, 15%, or 20% federally, depending on your income bracket.
  • Short-term capital gains (assets held one year or less) are taxed as ordinary income, using tax brackets that go up to 37%.
  • Your filing status and total taxable income determine which rate bracket you fall into, not the size of the gain itself.
  • State capital gains taxes range from 0% to 13.3% and apply on top of the federal rate in most states.
  • You report capital gains on Schedule D of your tax return and may owe estimated taxes if the gain is large.

Long-term capital gains tax brackets for 2024

The 0% rate applies to long-term gains if your total taxable income falls below a certain threshold. For single filers in 2024, that threshold is $47,025. For married filing jointly, it is $94,050. For head of household, it is $62,975. If your income is below these amounts, you pay no federal tax on long-term gains.

The 15% rate applies to income above those thresholds but below higher limits. For single filers, the 15% bracket runs from $47,025 to $518,900. For married filing jointly, it runs from $94,050 to $583,750. For head of household, it runs from $62,975 to $551,350. Most people with investment income fall into this bracket.

The 20% rate applies to long-term gains above the top of the 15% bracket. For single filers, that means gains on income over $518,900. For married filing jointly, over $583,750. For head of household, over $551,350. These thresholds adjust slightly each year for inflation.

How short-term gains are taxed differently

Short-term capital gains use the ordinary income tax brackets, which are steeper. The 2024 ordinary income brackets range from 10% at the bottom to 37% at the top. Your short-term gain is added to your other income — wages, interest, dividends — and taxed at whatever bracket your total income reaches.

This means a short-term gain can push you into a higher tax bracket. If you earn $60,000 in wages and realize a $50,000 short-term gain, your total taxable income is $110,000, and the gain portion is taxed at the marginal rate that applies to that $110,000 total, not at a flat rate.

Long-term gains are stacked on top of your other income too, but they use the preferential 0%, 15%, or 20% rates instead of the ordinary brackets. This is why holding an investment for more than one year before selling usually results in lower tax.

State capital gains taxes

Nine states have no capital gains tax at all: Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, Wyoming, and New Hampshire (though New Hampshire taxes only dividends and interest, not capital gains). In these states, you pay only the federal rate.

Other states tax capital gains as ordinary income. California taxes long-term and short-term gains at the same rates as wages, up to 13.3%. New York taxes them at rates up to 10.9%. Illinois taxes them at 4.95%. The rate depends on your state and your income level within that state.

A few states have separate capital gains tax rates. Washington State, for example, recently enacted a 7% tax on long-term gains over $250,000. Maryland taxes long-term gains at rates between 5.75% and 8.75%. Check your state's tax authority website to learn what applies where you live.

How to report capital gains on your tax return

You report capital gains on Schedule D (Form 1040), which is part of your federal tax return. Schedule D asks you to list each sale: the asset, the date you bought it, the date you sold it, your cost basis (what you paid), the sale price, and the gain or loss. The IRS uses the holding period to determine whether each gain is long-term or short-term.

Your brokerage or investment account sends you a Form 1099-B after the year ends, which lists all your sales. You use this to fill out Schedule D. If you have losses, you can use them to offset gains — you subtract losses from gains and report only the net amount.

If your net capital gain for the year is large, you may owe estimated tax payments. Estimated taxes are quarterly payments you make to the IRS if you expect to owe more than $1,000 when you file. Your tax software or a tax professional can calculate whether you need to make them.

The difference between cost basis and sale price

Your capital gain is the difference between what you paid for an asset (your cost basis) and what you sold it for. If you bought 100 shares of stock at $50 per share and sold them at $75 per share, your gain is $2,500 (100 × $25).

Cost basis is not always straightforward. If you inherited stock, your basis is usually the value on the date of death, not what the original owner paid. If you received stock as compensation, your basis is the fair market value on the date you received it. If you reinvested dividends, each reinvestment adds to your basis. Keep records of all these transactions.

Some investment accounts track cost basis for you automatically. Others require you to specify which shares you are selling (using methods like "first in, first out" or "highest cost first") to calculate the gain correctly. Ask your brokerage how they handle it, because the method you choose affects your tax bill.

Frequently Asked Questions

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

No federal tax is due on a loss. You can use the loss to offset capital gains from other sales in the same year. If your losses exceed your gains, you can deduct up to $3,000 of the net loss against ordinary income. Any loss beyond that carries forward to future years.

What if I held an investment for exactly one year?

The holding period is measured from the date you bought it to the date you sold it. If you bought on January 15, 2023, and sold on January 15, 2024, you held it for exactly one year, which qualifies as long-term. If you sold on January 14, 2024, it is short-term.

Does the capital gains rate change if I am retired?

Your tax bracket depends on your total taxable income for the year, not your age or employment status. If you are retired and living on Social Security and investment income, your capital gains are taxed based on where that total income falls in the brackets. Withdrawals from traditional retirement accounts count as ordinary income and may push you into a higher bracket.

Can I avoid capital gains tax by donating the investment to charity?

Yes. If you donate appreciated securities directly to a may have access to charity, you avoid the capital gains tax on the appreciation and may also deduct the full fair market value as a charitable contribution. You must donate the actual shares, not the cash proceeds from selling them.

What if I sold a rental property or investment real estate?

Real estate capital gains follow the same rules as stock: long-term if held over one year, short-term if held one year or less. However, if you used the property as your primary residence, you may be able to exclude up to $250,000 of the gain (or $500,000 if married filing jointly) if you meet the ownership and use tests. Rental properties do not may have access to for this exclusion.