Skip to content
The Evergreen Edit
Save app to home screen
Investing

Capital Gains Taxes Explained: Short-Term vs. Long-Term

When you sell an investment for a profit, you may owe capital gains tax. Here's how it works and ways investors manage it.

By Kiara Miller, Founder & Editor

Published · Last reviewed: · 9 min read

Man working out taxes with a brokerage statement, tax form and calculator

When you sell a stock, fund, bond or property for more than you paid, the profit is a capital gain, and the IRS wants a share. How big a share depends mostly on one thing you control: how long you owned the asset before selling. Here’s how the rules work for 2026, with real numbers so you can see the difference.

How are short-term and long-term capital gains taxed?

Gains on assets you held one year or less are short-term and taxed at your ordinary income rate, which runs as high as 37%. Gains on assets held more than one year are long-term and taxed at 0%, 15% or 20%, depending on your taxable income. For most investors, waiting past the one-year mark lowers the bill.

What counts as a capital gain

A capital gain is the difference between what you sell an asset for and its cost basis. Your basis is usually what you paid, plus costs such as commissions. Capital assets include most things you own for investment: stocks, bonds, mutual funds, ETFs, real estate, and collectibles like coins and art.

A gain is only taxed when it’s realized, meaning when you sell. If your index fund climbs 20% this year and you don’t sell, that’s an unrealized gain and there’s no tax due yet. That timing control is the foundation of nearly every strategy in this article.

Brokers report your sales to you and the IRS on Form 1099-B, and for most shares bought in recent years they also report your cost basis. Reinvested dividends add to your basis, since you already paid tax on those dividends, so keep good records and don’t pay tax twice on the same money.

The one-year line: short-term vs. long-term

The IRS explains that if you hold an asset for more than one year before you sell, the gain or loss is long-term. Hold it one year or less and it’s short-term. The test is “more than” one year, so to be safe, wait until at least the day after the one-year anniversary of your purchase before selling.

Net short-term gains are added to your other income and taxed at your regular bracket, from 10% up to 37%. Long-term gains get their own, lower rate schedule.

2026 long-term capital gains rates

For tax year 2026, the IRS set these thresholds in Revenue Procedure 2025-32. The rate depends on your total taxable income (after deductions), not just the size of the gain.

  • Single: 0% on taxable income up to $49,450; 15% up to $545,500; 20% above that.
  • Married filing jointly: 0% up to $98,900; 15% up to $613,700; 20% above that.
  • Head of household: 0% up to $66,200; 15% up to $579,600; 20% above that.
  • Married filing separately: 0% up to $49,450; 15% up to $306,850; 20% above that.

Long-term gains are stacked on top of your ordinary income. Your wages and other ordinary income fill the brackets first, and your gains land in whatever room is left. That’s why someone with modest wages can have part of a gain taxed at 0% and the rest at 15%.

For context, the 2026 standard deduction is $16,100 for single filers and $32,200 for married couples filing jointly. A single filer with about $65,550 in gross income and no other deductions would have taxable income right at the $49,450 edge of the 0% bracket.

A worked example: same gain, different holding period

Meet a single filer we’ll call Dana. Her taxable income from her job, after the standard deduction, is $60,000 in 2026. She bought shares for $10,000 that are now worth $20,000, so selling would produce a $10,000 gain.

If she sells after 11 months, the gain is short-term. Her total taxable income becomes $70,000. In 2026 the 22% bracket for single filers runs from $50,400 to $105,700, so the whole $10,000 is taxed at 22%: $10,000 × 22% = $2,200.

If she waits and sells after 13 months, the gain is long-term. Her ordinary income of $60,000 already fills the 0% capital gains range (which ends at $49,450), so the full gain is taxed at 15%: $10,000 × 15% = $1,500.

Waiting two extra months saves Dana $700, or 7% of her profit, assuming the share price holds steady. That last part is the real tradeoff: a tax saving is only worth it if the investment doesn’t lose more than that while you wait.

A second example: using the 0% bracket

Now take a married couple filing jointly with $80,000 of taxable ordinary income who sell long-held stock for a $30,000 long-term gain. Their total taxable income is $110,000.

  1. Room left in the 0% bracket: $98,900 − $80,000 = $18,900, taxed at 0%.
  2. Remaining gain: $30,000 − $18,900 = $11,100, taxed at 15%.
  3. Federal tax on the gain: $11,100 × 15% = $1,665.

That works out to an effective rate of about 5.6% on the $30,000 gain. Couples in early retirement, or anyone with a low-income year, can sometimes sell appreciated investments and owe little or no federal tax on the gains. Many states tax capital gains as regular income, so check your state too.

The 3.8% net investment income tax

Higher earners may owe an extra 3.8% on investment income, including capital gains. According to the IRS, the net investment income tax applies when modified adjusted gross income exceeds $200,000 for single and head of household filers, $250,000 for married couples filing jointly, or $125,000 for married filing separately. It’s charged on the smaller of your net investment income or the amount you’re over the threshold. Our guide to the net investment income tax walks through the math.

Put it together and the top federal rate on most long-term gains is 23.8% (20% plus 3.8%), while the top rate on short-term gains is 40.8% (37% plus 3.8%).

How capital losses lower your bill

When you sell for less than your basis, you have a capital loss. Losses first offset gains. If your losses are larger than your gains, you can deduct up to $3,000 of the excess against other income such as wages each year, or $1,500 if you’re married filing separately. Anything left over carries forward to future years.

Example: you have $5,000 of gains and $12,000 of losses this year. The losses wipe out the $5,000 of gains, leaving a $7,000 net loss. You deduct $3,000 against your other income and carry the remaining $4,000 into next year, where it can offset future gains or another $3,000 of income.

Some investors sell losing positions on purpose to capture these benefits, a strategy covered in our guide to tax-loss harvesting.

Ways to keep more of your gains

  • Check the purchase date before you sell. If a winning position is a few weeks short of the one-year mark, waiting may move the gain into the long-term rates.
  • Invest through tax-advantaged accounts. Trades inside a 401(k) or IRA don’t create capital gains tax. Traditional account withdrawals are taxed as ordinary income, and qualified Roth withdrawals are tax-free. See our comparison of Roth vs. traditional IRAs.
  • Pick your shares. Many brokers let you choose which lots to sell (specific identification) instead of first in, first out. Selling higher-basis shares shrinks the taxable gain.
  • Time sales to low-income years. A sabbatical, career gap or the years between retirement and Social Security can open up room in the 0% bracket.
  • Pair gains with losses before December 31. Reviewing your taxable account in the fall leaves time to offset gains without rushing.
  • Give appreciated shares instead of cash. Donating stock held more than a year to a qualified charity can let you deduct its fair market value, within IRS limits, without paying tax on the appreciation.
  • Mind fund distributions. Mutual funds can pay out capital gains even if you never sold a share, which is taxable in a regular brokerage account.

Inherited investments are treated differently: the basis generally resets to the asset’s value when the original owner died, which can erase years of built-up gain for heirs. Rules here have exceptions, so confirm the details for your situation.

Selling your home

Your main home gets special treatment. The IRS says you may be able to exclude up to $250,000 of gain, or $500,000 on a joint return, if you owned the home and lived in it as your main residence for at least two of the five years before the sale. You generally can’t use the exclusion if you claimed it on another home sale within the prior two years. Gain above the exclusion is taxed as a capital gain.

Your pre-sale checklist

  1. Find the purchase date for each lot and confirm whether it’s been held more than one year.
  2. Look up your cost basis, including reinvested dividends.
  3. Estimate your 2026 taxable income to see which capital gains bracket your gain lands in.
  4. Check whether your income could cross the $200,000 or $250,000 net investment income tax threshold.
  5. Look for losses you could realize to offset the gain, and avoid repurchasing the same security within 30 days.
  6. Set money aside for the tax, or adjust withholding or estimated payments if the gain is large.

What this means for you

If you’re a newer investor with a regular brokerage account, the single most useful habit is checking the holding period before you hit sell. On a $10,000 gain, the gap between a 22% short-term rate and a 15% long-term rate is $700. If you’re just getting started, our guide on how to open a brokerage account covers the basics.

What to watch next: the IRS adjusts the capital gains thresholds for inflation each year, usually announcing the next year’s figures in the fall, so confirm the current numbers before you plan a large sale. For big or complicated situations, such as rental property, business assets or a concentrated stock position, a tax professional can model the outcome before you act.

Frequently asked questions

How long do I have to hold a stock to get long-term capital gains rates?

More than one year. If you sell one year or less after buying, the gain is short-term and taxed at your ordinary income rate.

What is the 0% capital gains threshold for 2026?

Long-term gains are taxed at 0% on taxable income up to $49,450 for single filers and $98,900 for married couples filing jointly, per IRS Revenue Procedure 2025-32. Your ordinary income fills that room first.

How much in capital losses can I deduct each year?

After offsetting your gains, you can deduct up to $3,000 of net capital loss against other income ($1,500 if married filing separately). The rest carries forward to future years.

Do I pay capital gains tax on trades inside my IRA or 401(k)?

No. Buying and selling inside these accounts doesn’t trigger capital gains tax. Traditional account withdrawals are taxed as ordinary income, while qualified Roth withdrawals are tax-free.

Content on The Evergreen Edit is for educational and informational purposes only and is not individualized financial, investment, tax or legal advice. Learn more.

Compound growth estimate

Estimated total

$17,175

Your contributions

$13,000

This is an estimate, not a prediction. Monthly compounding; taxes, fees and inflation are excluded.

This article is for educational purposes only and isn't personalized financial, tax or legal advice. Consider talking with a qualified professional about your situation.

Kiara Miller

Kiara Miller — Founder & Editor

Kiara Miller is the founder and editor of The Evergreen Edit. He has been doing independent finance research for two decades, is a tax preparer, and reviews every article before it's published.

More about Kiara →

Get smarter about your money.

Join readers who get money stories on their chosen topics, daily or as new articles post.

Which topics do you want in your inbox? Pick up to 3
Email frequency

We'll use your answers to send articles you care about and to plan new content. We never sell your info. Privacy Policy

Recommended reading