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

The federal capital gains tax is not a single fixed rate. Instead, it is a tax on profit from selling an asset — like stock, real estate, or cryptocurrency — and the rate you pay depends on two things: your total income for the year and whether you held the asset for more than one year.

If you held an asset for one year or less before selling it, the profit is taxed as short-term capital gains, which means it is taxed at your ordinary income tax rate. That rate ranges from 10% to 37% depending on your income bracket.

If you held an asset for more than one year, the profit is taxed as long-term capital gains, which has lower rates: 0%, 15%, or 20%, depending on your income. Most people fall into the 15% bracket.

Key Takeaways

  • Short-term capital gains (assets held one year or less) are taxed at your regular income tax rate, which can be as high as 37%.
  • Long-term capital gains (assets held more than one year) are taxed at 0%, 15%, or 20%, with 15% applying to most middle-income households.
  • Your filing status and total income for the year determine which long-term rate applies to you.
  • State and local taxes may add to your federal capital gains tax, and some states tax capital gains differently or not at all.

Long-term capital gains rates and income thresholds for 2024

The 0%, 15%, and 20% long-term rates apply based on your taxable income — not the amount of the gain itself. The income thresholds change each year and vary by filing status.

For single filers in 2024, the 0% rate applies to taxable income up to $47,025. The 15% rate applies from $47,025 to $518,900. Income above $518,900 is taxed at 20%. For married couples filing jointly, those thresholds are roughly double: 0% up to $94,050, 15% from $94,050 to $583,750, and 20% above that.

These thresholds are adjusted each year for inflation, so they will be different in 2025. The IRS publishes updated thresholds in late fall of the prior year. Your tax software or a tax professional can tell you which bracket you fall into based on your specific situation.

How state and local taxes affect your total capital gains tax

Federal capital gains tax is only part of what you owe. Most states also tax capital gains, though the rate and rules vary widely. Some states tax capital gains as ordinary income. Others have a separate, lower rate. A few states — including Alaska, Florida, Nevada, South Dakota, Tennessee, Texas, Washington, and Wyoming — do not tax capital gains at all.

California, for example, taxes long-term capital gains at the same rate as ordinary income, which can be as high as 13.3%. New York taxes long-term gains at ordinary income rates up to 10.9%. If you live in a state with a capital gains tax, that amount is added on top of your federal tax.

Some cities and counties also impose local taxes on capital gains or investment income. New York City, for instance, has a local income tax that applies to capital gains. Check your state's tax authority website or speak with a tax professional to understand what applies where you live.

The difference between short-term and long-term capital gains

The holding period matters because short-term and long-term gains are taxed very differently. Short-term capital gains — profit from selling an asset you owned for one year or less — are taxed at your ordinary income tax rate. For someone in the 24% income bracket, a short-term gain of $10,000 would be taxed at 24%, or $2,400.

The same $10,000 gain held for more than one year would be taxed at the long-term rate. For someone in the 15% long-term bracket, that same gain would be taxed at 15%, or $1,500. The difference is $900 — a significant incentive to hold assets longer.

The IRS counts the holding period from the day after you buy the asset to the day you sell it. If you buy stock on January 15 and sell it on January 16 of the following year, that is a long-term gain. If you sell it on January 15 of the following year, it is still short-term.

Special situations: Net investment income tax and capital gains from home sales

If your income exceeds certain thresholds, you may owe an additional 3.8% Net Investment Income Tax (NIIT) on top of the regular capital gains tax. This applies to single filers with income over $200,000 and married couples filing jointly with income over $250,000. The NIIT is calculated on the lesser of your net investment income or the amount your income exceeds the threshold.

Home sales have their own rule. If you sell a primary residence and meet certain conditions — you owned it and lived in it for at least two of the last five years — you can exclude up to $250,000 of gain from taxation (or $500,000 if married filing jointly). This exclusion applies once every two years. Gains above that threshold are taxed as long-term capital gains.

How to report capital gains on your tax return

When you sell an asset, your broker or the person who bought it from you will send you a Form 1099-B (for stocks and securities) or similar document showing the sale price and your cost basis. You report this information on Schedule D (Capital Gains and Losses), which attaches to your Form 1040.

Schedule D separates short-term and long-term gains and losses. You add up all short-term gains and losses, then all long-term gains and losses. If you have losses, they can offset gains dollar-for-dollar. 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.

If you have a large number of transactions or complex gains, tax software can help organize the information, or you can work with a tax professional. The key is having your 1099 forms and your own records of what you paid for each asset (your cost basis).

Frequently Asked Questions

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

No. If you sell an asset for less than you paid for it, you have a capital loss, not a gain. You do not owe tax on it. Instead, you can use the loss to reduce any capital gains you have that year. If losses exceed gains, you can deduct up to $3,000 against ordinary income and carry forward the rest to future years.

What counts as an asset for capital gains tax purposes?

Common assets include stocks, bonds, mutual funds, real estate, cryptocurrency, and collectibles. Ordinary income from your job, interest from a savings account, and dividends (in some cases) are not capital gains. The IRS has specific rules for different types of property, so check the rules for your particular asset type.

If I inherit stock, do I owe capital gains tax on it?

Not immediately. When you inherit an asset, you receive what is called a "stepped-up basis" — the value is reset to what it was worth on the date of death. If you sell it shortly after inheriting it, you owe tax only on gains that occur after you inherited it, not on gains that occurred before. This can save significant tax.

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

Yes, in some cases. If you have both gains and losses in a year, you can use losses to offset gains. You can also choose which shares to sell if you own multiple lots of the same stock — selling the ones with the highest cost basis reduces your gain. Some people also spread large sales across two tax years to stay in a lower bracket. A tax professional can help with this strategy.

Are capital gains taxed differently if I am retired?

Not by the IRS — the rates are the same. However, if you are on Medicare, higher capital gains can trigger higher Medicare premiums. And if you are receiving Social Security, capital gains count toward the income threshold that determines how much of your benefits are taxed. These indirect effects make it worth planning ahead with a tax professional.