What the capital gains tax rate is in 2024

The federal capital gains tax rate depends on how long you held the asset before selling it. If you held it for one year or less, the gain is taxed as ordinary income — meaning it uses the same tax brackets as wages or salary, which range from 10% to 37% depending on your total income. If you held it for more than one year, the gain qualifies for long-term capital gains rates, which are lower: 0%, 15%, or 20%, again based on your total income for the year.

These federal rates have been in place since 2013 and have not changed. However, your actual tax bill also depends on your state — some states add their own capital gains tax on top of the federal rate, while others do not tax capital gains at all. Additionally, if your income exceeds certain thresholds ($200,000 for single filers, $250,000 for married filing jointly), you may owe an extra 3.8% net investment income tax.

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 at rates from 10% to 37%.
  • Your state may add its own capital gains tax, or may not tax capital gains at all — this varies by where you live.
  • High earners may owe an additional 3.8% net investment income tax if their income exceeds $200,000 (single) or $250,000 (married).

How holding period changes your tax rate

The difference between short-term and long-term rates is significant. Suppose you buy stock for $10,000 and sell it nine months later for $15,000. That $5,000 gain is short-term and taxed as ordinary income. If you are in the 24% tax bracket, you owe $1,200 in federal tax on that gain. If you had held the stock for 13 months instead, the same $5,000 gain would be taxed at the long-term rate of 15% (assuming your income puts you in that bracket), and you would owe $750 — a difference of $450.

The IRS counts the holding period from the day after you purchase the asset to the day you sell it. If you buy on January 15 and sell on January 15 of the following year, that is exactly one year, and the gain qualifies as long-term. Selling one day earlier would make it short-term.

Income brackets that determine your capital gains rate

Your long-term capital gains rate depends on which income bracket you fall into, not on the size of the gain itself. The brackets change each year for inflation. For 2024, the 0% long-term rate applies if your taxable income is below $47,025 (single) or $94,050 (married filing jointly). The 15% rate applies to income between those thresholds and $518,900 (single) or $583,750 (married). Anything above those amounts is taxed at 20%.

These brackets mean that a person with low income can sell an asset and owe zero federal capital gains tax, while a high-income person selling the same asset pays 20%. It also means that if you are near a bracket boundary, timing when you sell — or how much you sell in a given year — can affect your rate.

State capital gains taxes vary widely

Thirteen states currently tax capital gains: California, Connecticut, Delaware, Illinois, Iowa, Maryland, Minnesota, Missouri, Montana, New Jersey, New York, Oregon, and Vermont. The rates and rules differ in each state. California taxes long-term capital gains as ordinary income (up to 13.3%), while Illinois has a flat 4.5% capital gains tax. Some states exempt certain types of gains — for example, Montana excludes gains on the sale of a primary residence.

Thirty-seven states do not tax capital gains at all. If you live in one of those states, you pay only the federal rate. If you move to a different state after selling an asset, the state where you lived when you sold it is generally the one that can tax the gain, though the rules are complex and depend on when you moved and what type of asset you sold.

How capital losses offset your gains

If you sell an asset at a loss, you can use that loss to reduce your capital gains. If you sold stock for a $5,000 gain and another stock for a $3,000 loss in the same year, your net capital gain is $2,000, and you are taxed on that amount only. This is called tax-loss harvesting when done intentionally to reduce your tax bill.

If your capital losses exceed your capital gains in a year, you can deduct up to $3,000 of the excess loss against ordinary income (wages, salary, interest). Any losses beyond that $3,000 carry forward to future years, where they can offset future gains or be deducted against ordinary income again, up to $3,000 per year, until the loss is fully used.

What counts as a capital asset

Capital gains tax applies when you sell a capital asset — something you own for investment or personal use. This includes stocks, bonds, mutual funds, real estate, cryptocurrency, and collectibles like art or jewelry. It does not include assets you hold for business inventory or sale. For example, if you are a home builder and sell a house you built, that sale is business income, not a capital gain.

The sale of your primary residence has special treatment: you can exclude up to $250,000 of gain (or $500,000 if married filing jointly) from tax if you owned and lived in the home for at least two of the past five years. This exclusion applies once every two years.

Frequently Asked Questions

Do I owe capital gains tax if I have not sold the asset yet?

No. Capital gains tax is due only when you sell the asset and realize the gain. If you own stock worth $15,000 that you bought for $10,000, you owe no tax until you sell it. The unrealized gain is not taxable, even if you hold it for decades.

What if I inherited an asset — do I owe capital gains tax on it?

Generally, no. Inherited assets receive a "step-up in basis," meaning the tax basis is reset to the asset's value on the date of death. If you inherit stock worth $50,000 and sell it a month later for $50,500, you owe tax only on the $500 gain, not on the $50,000 increase that happened before you inherited it.

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

Yes, in a way. If you donate an appreciated asset 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 of the asset as a charitable contribution. You cannot do this if you sell the asset first and then donate the proceeds — the tax is due at the sale.

Does the capital gains rate change if I am retired?

The rate itself does not change, but your income situation does. If you are retired and living on a small amount of income, you may fall into the 0% long-term capital gains bracket, meaning you could sell appreciated assets and owe no federal tax. This is different from when you were working and had higher income.

What if I sell cryptocurrency — is that a capital gain?

Yes. The IRS treats cryptocurrency as property, not currency. When you sell it for more than you paid, the difference is a capital gain subject to the same rates and rules as stock or real estate. If you trade one cryptocurrency for another, that is also a taxable event, even though no dollars changed hands.