Capital gains can move you into a higher tax bracket, but the way this happens depends on whether your gains are long-term or short-term

Short-term capital gains (assets held one year or less) are taxed as ordinary income, which means they stack on top of your wages and other income. If your wages already put you near the top of your current bracket, short-term gains can push you over into the next one, raising your tax rate on that portion of the gains.

Long-term capital gains (assets held more than one year) use their own tax brackets, which are lower than ordinary income brackets. These gains do not directly bump you into a higher ordinary income bracket. However, they can affect your bracket placement in two ways: they count toward your total income when determining whether you owe the Net Investment Income Tax, and they can push you into a higher long-term capital gains bracket if you have enough of them.

The practical difference matters. A person earning $60,000 in wages who sells stock for a $20,000 short-term gain faces tax on $80,000 of ordinary income. The same person with a $20,000 long-term gain pays tax on the gain using the long-term brackets, which are separate and lower.

Key Takeaways

  • Short-term capital gains stack on top of your ordinary income and can push you into a higher ordinary income tax bracket.
  • Long-term capital gains use their own lower tax brackets and do not directly raise your ordinary income tax bracket.
  • Long-term gains can still affect your tax situation by pushing you into a higher long-term capital gains bracket or triggering the Net Investment Income Tax.
  • The year you realize a gain is the year it counts toward your income and bracket placement, regardless of when you bought the asset.

How short-term gains stack on your ordinary income

When you sell an asset you have held for one year or less, the IRS treats the profit as ordinary income. This means it goes into the same income pool as your salary, freelance earnings, and interest income. The IRS adds it all together to determine your tax bracket for that year.

Tax brackets are cumulative. If you are single and earn $45,000 in wages, you are in the 22% bracket (as of 2024). If you then realize a $10,000 short-term capital gain, your total income is $55,000. That extra $10,000 may push some of your income into the 24% bracket. You do not pay 24% on all $55,000 — only on the portion that falls into that bracket — but the gain has moved you up.

This stacking effect is why the timing of selling assets matters. Selling in a year when your wages are lower may keep you in a lower bracket than selling in a year when you have a bonus or a second job.

Why long-term gains use separate brackets

Long-term capital gains have their own tax rate structure: 0%, 15%, or 20% for most taxpayers (as of 2024). These rates are lower than the ordinary income brackets, which range from 10% to 37%. The IRS calculates long-term gains separately, after it has stacked your ordinary income.

Here is how the order works: first, the IRS fills up your ordinary income brackets with wages, interest, and short-term gains. Then it applies long-term gains on top, using the long-term brackets. This means a long-term gain does not directly push your ordinary income into a higher bracket.

However, if you have a large long-term gain, it can push you into a higher long-term capital gains bracket. The 15% long-term bracket ends at different income levels depending on your filing status. A single filer in 2024 moves into the 20% long-term bracket at $492,300 of total income. If your ordinary income is $400,000 and you have a $100,000 long-term gain, part of that gain will be taxed at 20% instead of 15%.

When gains trigger the Net Investment Income Tax

Capital gains can indirectly affect your tax bracket through the Net Investment Income Tax (NIIT), a 3.8% tax on investment income for higher earners. This tax applies when your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly).

Both long-term and short-term capital gains count toward this threshold. If your ordinary income is $195,000 and you realize a $10,000 long-term gain, your total is $205,000, which triggers the NIIT on the portion of investment income above $200,000. The gain itself has not changed your ordinary income tax bracket, but it has created a new tax liability.

How to calculate your bracket with mixed income types

The order matters when you have both ordinary income and capital gains. Start with your ordinary income (wages, self-employment, interest, short-term gains). Find which bracket that lands you in. Then add long-term gains on top and see if they push you into a higher long-term capital gains bracket.

Example: You are single, earn $50,000 in wages, and have a $30,000 long-term gain. Your ordinary income of $50,000 puts you in the 22% bracket. The $30,000 long-term gain is then taxed at the 15% long-term rate (because $50,000 + $30,000 = $80,000, which is still below the 20% threshold of $492,300). You do not pay 22% on the gain, and the gain does not push your ordinary income into a higher bracket.

If instead you had a $30,000 short-term gain, it would stack on your ordinary income, making your total $80,000. Depending on the exact brackets for your filing status, some of that $80,000 might fall into the 24% bracket, raising your overall tax rate.

State and local taxes on capital gains

Some states tax capital gains as ordinary income, while others have separate capital gains taxes or no capital gains tax at all. A few states — California, New York, and others — have their own tax brackets that can be affected by capital gains in the same way federal brackets are.

If you live in a state that taxes capital gains as ordinary income, a large gain can push you into a higher state bracket on top of any federal bracket movement. States with separate capital gains taxes (like Washington and Colorado) have their own rate structures and thresholds. Check your state's tax authority website to see how capital gains are treated in your location.

Planning around bracket creep from capital gains

Because short-term gains stack on ordinary income, some people time the sale of assets to avoid moving into a higher bracket. If you are close to a bracket threshold, selling in a different year might save you money. This is most relevant for short-term gains; long-term gains are less likely to cause bracket creep because they use lower rates.

Another consideration is whether you can harvest losses to offset gains. If you sell an asset at a loss in the same year you realize a gain, the loss reduces your net capital gain for the year. This can keep you below a bracket threshold or reduce the amount of gain subject to a higher rate.

These strategies work only if you are selling assets you already own. You cannot buy and sell the same asset repeatedly just to trigger losses — the IRS has rules against this, called the wash-sale rule, which applies to losses on substantially identical securities.

Frequently Asked Questions

Can a long-term capital gain push me into a higher ordinary income tax bracket?

No. Long-term gains use their own tax brackets and are calculated after your ordinary income. They do not raise your ordinary income tax rate. However, they can push you into a higher long-term capital gains bracket if the gain is large enough.

What if I have both short-term and long-term gains in the same year?

Short-term gains are added to your ordinary income first, which may push you into a higher ordinary income bracket. Long-term gains are then stacked on top, using the long-term brackets. You could end up in a higher ordinary income bracket from the short-term gains and a higher long-term gains bracket from the long-term gains.

Does selling a loss offset my capital gains for bracket purposes?

Yes. Capital losses reduce capital gains dollar-for-dollar. If you have a $10,000 short-term gain and a $3,000 short-term loss, your net short-term gain is $7,000, which is what counts toward your ordinary income. This can keep you below a bracket threshold.

How do I know which tax bracket applies to my capital gains?

First, add up your ordinary income (wages, interest, short-term gains). Find your ordinary income bracket. Then add long-term gains on top and check the long-term capital gains brackets for your filing status. The IRS publishes updated brackets each year on its website.

Does the Net Investment Income Tax count as a higher tax bracket?

No, it is a separate 3.8% tax that applies on top of your regular income tax. It triggers when your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), and it applies to the lesser of your net investment income or the amount above the threshold.