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

The federal capital gains tax rate is either 0%, 15%, or 20% on profits from selling investments you owned for more than one year. Which rate applies to you depends on your total taxable income for that year, not on the investment itself. If you sell an investment you owned for one year or less, the profit is taxed as ordinary income at your regular tax bracket rate, which can be much higher.

The three long-term rates (0%, 15%, 20%) are set by federal law and do not change year to year, but the income thresholds that determine which bracket you fall into do adjust annually for inflation. Your state may also charge its own capital gains tax on top of the federal rate.

Key Takeaways

  • Long-term capital gains (assets held over one year) are taxed at 0%, 15%, or 20% depending on your total taxable income that year.
  • Short-term capital gains (assets held one year or less) are taxed at your ordinary income tax rate, which is typically higher than long-term rates.
  • The income thresholds for each bracket change each year based on inflation, so you need to check the current year's IRS tables.
  • Some states impose their own capital gains tax in addition to federal tax, ranging from 3% to over 13% depending on where you live.

How the three federal long-term capital gains brackets work

If you held an investment for more than one year before selling it, your profit falls into one of three federal brackets. The 0% bracket applies to lower-income filers. The 15% bracket covers most middle-income filers. The 20% bracket applies to higher-income filers. Your filing status (single, married filing jointly, head of household) determines which income threshold puts you in each bracket.

For example, in 2024, a single filer with taxable income up to $47,025 pays 0% federal tax on long-term gains. A single filer with taxable income between $47,025 and $518,900 pays 15%. A single filer with taxable income above $518,900 pays 20%. A married couple filing jointly has higher thresholds: 0% up to $94,050, 15% from $94,050 to $583,750, and 20% above $583,750. These numbers shift each year.

You do not pay tax on the full sale price—only on the profit. If you bought a stock for $5,000 and sold it for $7,000, your capital gain is $2,000. That $2,000 is what gets taxed at your applicable rate.

Short-term capital gains are taxed much higher

If you sell an investment you owned for one year or less, the profit is treated as ordinary income and taxed at your regular income tax bracket rate. Those rates range from 10% to 37% depending on your income and filing status. This is almost always higher than the long-term rate you would pay if you had held the asset longer.

The one-year holding period is measured from the date you purchased the asset to the date you sold it. If you bought stock on March 15, 2023, and sold it on March 14, 2024, it is still short-term. You must hold it until March 15, 2024, or later to may have access to for long-term treatment.

State capital gains taxes add to your federal bill

Most states do not charge a separate capital gains tax—they tax investment profits as part of ordinary income. However, some states do impose a dedicated capital gains tax on top of federal tax. California taxes long-term gains at 13.3%. Washington State taxes long-term gains at 7%. New York taxes them at rates up to 10.9%. Other states with capital gains taxes include Oregon, Minnesota, Vermont, and Illinois, each with different rates and rules.

A few states—including Florida, Texas, and Wyoming—have no state income tax at all, so residents pay only the federal rate. If you live in a state with a capital gains tax and sell an investment at a profit, you owe both the federal rate and your state's rate on the same gain.

How to find the exact tax rate that applies to you

To determine your rate, you need to know your total taxable income for the year and your filing status. The IRS publishes tax bracket tables each year on its website (irs.gov). Search for "capital gains tax rates" and the current year. You will find a table showing the income thresholds for 0%, 15%, and 20% for single filers, married filing jointly, married filing separately, and head of household.

Add up all your income for the year—wages, self-employment income, interest, dividends, and any other taxable income. Then add your capital gains to that total. Find where that total falls in the IRS table for your filing status. That tells you which federal rate applies. Then check your state's tax authority website for your state's rate, if your state has one.

If you have both short-term and long-term gains in the same year, the short-term gains are taxed first at your ordinary rate, and then the long-term gains are taxed at the lower long-term rate on the income above that.

Capital losses can reduce or eliminate your tax bill

If you sell an investment at a loss, you can use that 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 your ordinary income in that year. Any remaining loss carries forward to future years and can be used to offset future gains or ordinary income.

For example, if you sold one stock for a $5,000 gain and another for a $2,000 loss, your net gain is $3,000, and you pay tax only on that $3,000. If you had a $5,000 gain and a $7,000 loss, your net loss is $2,000. You can deduct $2,000 against your ordinary income that year, reducing your taxable income.

Frequently Asked Questions

Do I owe capital gains tax if I inherited an investment?

No. Inherited investments receive a "step-up in basis," meaning the tax value resets to the market price on the date of death. If you inherit stock worth $50,000 and sell it a week later for $50,000, you owe no capital gains tax, even if the original owner bought it for $10,000.

What if I sold my home—do I pay capital gains tax on the profit?

Most homeowners do not. If you are single and lived in the home as your primary residence for at least two of the last five years, you can exclude up to $250,000 of gain from tax. Married couples filing jointly can exclude up to $500,000. This exclusion applies once every two years.

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

Yes, by controlling which year the sale occurs. If you sell in a year when your income is lower, you may fall into a lower tax bracket. You can also harvest losses in one year to offset gains in another. A tax professional can help you plan the timing of sales to minimize your tax bill.

Are dividends taxed the same way as capital gains?

may have access to dividends are taxed at the same 0%, 15%, or 20% long-term capital gains rates if you held the stock long enough. Non-may have access to dividends are taxed as ordinary income at your regular bracket rate. Check with your brokerage to see which dividends you received are may have access to.