Federal capital gains tax rates depend on your income and how long you held the asset

The federal tax rate on capital gains is either 0%, 15%, or 20%, depending on your total income for the year and whether you held the asset for more than one year. The IRS calls gains from assets held one year or less short-term capital gains, and taxes them as ordinary income — meaning the rate matches your regular income tax bracket, which can be as high as 37%. Gains from assets held longer than one year are long-term capital gains, and those use the lower 0%, 15%, or 20% rates.

Which rate you pay depends on your filing status and your total taxable income for that year. For 2024, a single filer pays 0% on long-term gains up to $47,025 of income, 15% from $47,025 to $518,900, and 20% above that. A married couple filing jointly pays 0% up to $94,050, 15% from $94,050 to $583,750, and 20% above that. These income thresholds change each year.

State and local taxes add to the federal rate. Some states tax capital gains as ordinary income; others tax them at a lower rate or not at all. New York, for example, taxes long-term gains at the same rate as ordinary income. Washington State has no income tax but recently introduced a 7% tax on long-term gains over $250,000. Your state's rate depends on where you live and file taxes.

Key Takeaways

  • Long-term capital gains (assets held over one year) are taxed at 0%, 15%, or 20% federally, depending on your total income; short-term gains are taxed as ordinary income at rates up to 37%.
  • The income thresholds that determine your rate vary by filing status and change yearly — a tax professional or the IRS website can tell you which bracket applies to you.
  • State and local taxes add to the federal rate, and the amount varies widely: some states tax capital gains as ordinary income, others at a lower rate, and a few not at all.
  • You report capital gains on Schedule D of your tax return, and the IRS requires you to track the purchase date and cost basis to prove how long you held the asset.

How the 0%, 15%, and 20% brackets work

The three federal long-term capital gains rates are stacked, meaning you fill the lower bracket before moving to the next. If you are a single filer with $60,000 in taxable income and $30,000 in long-term capital gains, the first $47,025 of your income (including the gains) is taxed at 0%, and the remaining $42,975 is taxed at 15%. You do not pay 15% on all $30,000 of gains.

Short-term gains do not get this preferential treatment. They are added to your ordinary income and taxed at your regular income tax bracket. If you are in the 24% bracket and sell a stock you held for six months, that gain is taxed at 24%, not at the capital gains rates. This is why holding an asset for more than one year often saves money in taxes.

The income thresholds are indexed to inflation and published by the IRS each January. The 2024 thresholds are listed above; for 2025 and beyond, check the IRS website or ask a tax preparer. If your income is close to a bracket boundary, even a small change in gains or deductions can move you into a different rate.

State and local capital gains taxes

Most states that have an income tax treat capital gains as ordinary income and tax them at the same rate as wages and salary. A few states tax capital gains at a lower rate. Washington State, as of 2022, taxes long-term gains over $250,000 at 7% — a separate tax from income tax. Oregon taxes long-term gains at a lower rate than short-term gains but still higher than the federal long-term rate.

Seven states have no income tax at all: Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, and Wyoming. Residents of these states pay no state capital gains tax, though they still owe federal tax. New Hampshire and Tennessee tax only investment income, not wages.

Some cities and counties add local taxes on top of state and federal rates. New York City, for example, adds a city income tax that applies to capital gains. If you live in a high-tax state or city, your total capital gains tax rate can exceed 50% on short-term gains.

Cost basis and how it affects what you owe

Your capital gain is the sale price minus your cost basis — usually the price you paid for the asset plus any fees or commissions. If you bought a stock for $5,000 and sold it for $8,000, your gain is $3,000. If you bought it for $8,000 and sold it for $6,000, you have a $2,000 loss, which can offset other gains.

Tracking cost basis is your responsibility. If you inherited an asset, your cost basis is usually the market value on the date of death, not what the original owner paid. This is called a step-up in basis and can eliminate or reduce the tax on inherited assets. If you received stock as compensation, your cost basis is the fair market value on the date you received it.

Brokers are required to report cost basis to the IRS on Form 1099-B, but only for assets bought after 2011. For older assets, you may need to find old statements or receipts. If you cannot prove your cost basis, the IRS may assume your entire sale price is a gain, which results in a much larger tax bill.

How to report capital gains on your tax return

You report capital gains and losses on Schedule D, which is part of your federal tax return. For each asset you sold, you list the date purchased, date sold, cost basis, sale price, and gain or loss. The form separates short-term and long-term gains, and the IRS uses this to calculate your tax.

If your total losses exceed your gains in a year, you can deduct up to $3,000 of the net loss against ordinary income. Any loss above $3,000 carries forward to future years. This is called loss harvesting and is a common strategy to reduce taxes.

If you sold mutual funds or stocks through a brokerage, the broker sends you a 1099-B form showing the proceeds. You use this to fill out Schedule D. If you sold real estate, you may also file Form 8949 to reconcile the broker's report with your own records. A tax preparer or tax software can walk you through these forms.

Special situations: real estate, inherited assets, and gifts

If you sell a home you lived in for at least two of the last five years, you can exclude up to $250,000 of gain if you are single, or $500,000 if you are married filing jointly. This exclusion applies only once every two years. The gain above the exclusion is taxed as a long-term capital gain.

Inherited assets receive a step-up in basis to the fair market value on the date of death. If your parent bought a house for $200,000 and it was worth $400,000 when they died, your cost basis is $400,000. If you sell it immediately for $400,000, you owe no capital gains tax. If you sell it later for $450,000, you owe tax only on the $50,000 gain.

If you receive an asset as a gift, your cost basis is the donor's cost basis, not the gift value. If your friend bought stock for $1,000 and gave it to you when it was worth $5,000, your cost basis is $1,000. If you sell it for $8,000, your gain is $7,000, not $3,000. The donor does not owe tax on the gift, but you inherit their tax liability.

Frequently Asked Questions

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

No, you do not owe tax on a loss. You can use losses to offset gains from other assets. If your losses exceed your gains, you can deduct up to $3,000 against ordinary income in that year, and carry forward any remaining loss to future years.

What if I sold stock but reinvested the money right away?

Reinvesting does not change your tax bill. You owe capital gains tax on the sale regardless of what you do with the proceeds. The IRS taxes the transaction, not the use of the money afterward.

How do I know if my gain is short-term or long-term?

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

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

Yes. If you donate an appreciated asset directly to a may have access to charity, you avoid the capital gains tax entirely and can deduct the fair market value as a charitable contribution. You must own the asset for more than one year for this to work. Consult a tax professional or financial advisor before donating appreciated assets.

What happens if I do not report a capital gain on my tax return?

The IRS receives a copy of your 1099-B from your broker and will eventually notice if you do not report it. Unreported gains can result in penalties, interest, and potential criminal charges for tax evasion. If you made a mistake, file an amended return as soon as you notice the error.