When you sell a stock, a fund or almost any other investment for more than you paid, the profit is a capital gain, and the IRS taxes it one of two ways. If you held the investment one year or less, the gain is short-term and taxed at the same rates as your paycheck. If you held it more than one year, it's long-term, and most long-term gains are taxed at 0%, 15% or 20%.

That one-day line between the two can change your tax bill by hundreds or thousands of dollars on the same sale. This comparison lays out how each type is taxed in 2026, how the IRS counts the holding period, what happens when you have losses, and the exceptions that catch people off guard. It uses IRS guidance and the 2026 inflation adjustments in Rev. Proc. 2025-32, checked on Nov. 1, 2026. Examples are ours and labeled.

The short answer

Short-term capital gainLong-term capital gain
Holding periodOne year or lessMore than one year
Federal tax rateYour ordinary income rate: 10%, 12%, 22%, 24%, 32%, 35% or 37%Mostly 0%, 15% or 20%, based on taxable income
ExceptionsNone; always ordinary ratesUp to 28% on collectibles and some small business stock; up to 25% on unrecaptured section 1250 gain from real estate
Can 3.8% NIIT apply?Yes, above the income thresholdsYes, above the income thresholds
Where it's reportedForm 8949 and Schedule DForm 8949 and Schedule D

Sources: IRS Topic no. 409, Rev. Proc. 2025-32 and Topic no. 559.

How the IRS counts "more than one year"

The IRS says to count your holding period from the day after you acquired the asset, up to and including the day you sell it. If that adds up to more than one year, the gain or loss is long-term.

In practice, that means the first day you can sell for a long-term result is the day after the one-year anniversary of the purchase. For example (our illustration):

  • You buy shares on March 10, 2026.
  • Your holding period starts March 11, 2026.
  • Sell on March 10, 2027, and you've held exactly one year: short-term.
  • Sell on March 11, 2027, or later: long-term.

Topic 409 notes exceptions for property you received as a gift or inherited, and for some other assets, and points to Publication 544 for the details. Your basis, the cost figure you subtract from the sale price, can also follow special rules for gifts and inheritances; the IRS covers those in Publication 551.

If you reinvest dividends, each reinvested purchase starts its own holding period. Publication 550 says the holding period of each new share begins the day after it was bought. That's why one fund position can contain both short- and long-term lots.

2026 rates on long-term gains

Long-term gains don't have their own separate brackets. They're stacked on top of your other taxable income, and the rate depends on where that total falls. For tax year 2026, Rev. Proc. 2025-32 sets these thresholds:

Filing status0% rate if taxable income is up to15% rate up to20% rate above
Single$49,450$545,500$545,500
Married filing jointly$98,900$613,700$613,700
Married filing separately$49,450$306,850$306,850
Head of household$66,200$579,600$579,600

Source: Rev. Proc. 2025-32, section 4.03.

These 2026 figures apply to sales during calendar 2026, reported on the return you file in 2027. Topic 409 currently shows the 2025 thresholds ($48,350 single and $96,700 joint for the 0% rate), which apply to sales in 2025.

Qualified dividends use the same 0%, 15% and 20% rates and thresholds, so they stack in the same zones as long-term gains. If you're new to brokerage accounts, our investing basics guide covers how gains and income arise in the first place.

2026 rates on short-term gains

Short-term gains are added to your wages and other ordinary income and taxed at the regular brackets. Here are the 2026 brackets for single filers from Rev. Proc. 2025-32:

Single filer's taxable income (2026)Rate on that slice
Up to $12,40010%
$12,400 to $50,40012%
$50,400 to $105,70022%
$105,700 to $201,77524%
$201,775 to $256,22532%
$256,225 to $640,60035%
Over $640,60037%

For married couples filing jointly, the same rates apply with wider bands: 10% up to $24,800, 12% to $100,800, 22% to $211,400, 24% to $403,550, 32% to $512,450, 35% to $768,700, and 37% above.

Topic 409 puts it plainly: "Net short-term capital gains are subject to taxation as ordinary income at graduated tax rates."

Worked examples: the same gain, two tax bills

Each example is a single filer in 2026 selling one investment at a $10,000 profit (or $5,000 or $20,000 where noted). "Other taxable income" means taxable income after the standard deduction, before the gain. We ignore state taxes, credits and the net investment income tax, which doesn't apply at these income levels. Calculations are ours, using the 2026 figures above.

Other taxable incomeGainTax if long-termTax if short-termDifference
$35,000$5,000$0 (total stays under $49,450)$600 (12%)$600
$45,000$10,000$832.50 ($4,450 at 0%, $5,550 at 15%)$1,660 (part at 12%, part at 22%)$827.50
$70,000$10,000$1,500 (15%)$2,200 (22%)$700
$150,000$20,000$3,000 (15%)$4,800 (24%)$1,800

Three patterns stand out:

  1. The 0% rate is real money for moderate incomes. In the first row, the long-term gain is tax-free at the federal level because the total stays inside the 0% zone.
  2. Gains can straddle two rates. In the second row, the first $4,450 of the gain fills the rest of the 0% zone and only the remainder is taxed at 15%.
  3. The gap grows with income. The higher your ordinary bracket, the more a long-term holding period saves.

None of this means you should hold an investment you'd otherwise sell just to reach the one-year mark. Prices can fall while you wait, and a tax saving doesn't help if the gain shrinks by more. It does mean the calendar is worth checking before you sell.

When losses enter the picture

A capital loss happens when you sell for less than your basis. The IRS nets your gains and losses in a specific order, and the result decides what's taxed.

  • Netting. On Schedule D, you first total your short-term gains and losses, then your long-term gains and losses. Publication 550 says to combine the net short-term result with the net long-term result to get your total net gain or loss. Topic 409 defines "net capital gain," the amount eligible for the lower rates, as net long-term gain minus any net short-term loss.
  • Example (ours): a $6,000 long-term gain and a $2,000 short-term loss in the same year leave a $4,000 net capital gain, taxed at long-term rates.
  • The $3,000 limit. If your losses exceed your gains, you can deduct the lesser of $3,000 ($1,500 if married filing separately) or your total net loss against other income.
  • Carryover. Any loss above that limit carries forward to later years. Publication 550 and the Schedule D instructions include a worksheet for figuring the carryover.
  • Personal-use property. Losses on things like your home or car aren't deductible, the IRS says.

The wash sale rule

You can't claim a loss on a stock or security if, within 30 days before or after the sale, you buy substantially identical stock or securities, acquire them in a fully taxable trade, acquire a contract or option to buy them, or buy them in your IRA or Roth IRA. A purchase by your spouse or a corporation you control also counts, according to Publication 550.

The loss isn't gone forever in most cases. The IRS adds the disallowed loss to the basis of the new shares and carries over the old holding period. Its example: you buy 100 shares for $1,000, sell them for $750, and within 30 days buy 100 shares of the same stock for $800. You can't deduct the $250 loss, but your basis in the new shares becomes $1,050. The exception is the IRA case: when the replacement shares are bought in an IRA or Roth IRA, the basis adjustment doesn't apply.

Exceptions and special cases

Higher maximum rates. Topic 409 lists gains that can be taxed above 20%:

  • Collectibles, such as coins or art: maximum 28%.
  • The taxable part of a gain from section 1202 qualified small business stock: maximum 28%.
  • Unrecaptured section 1250 gain from selling real property: maximum 25%.

Fund distributions. Mutual funds and REITs can pay capital gain distributions even when you didn't sell anything. Publication 550 says to report them as long-term capital gains "regardless of how long you owned your shares." They appear on Form 1099-DIV, box 2a. Our comparison of index funds and ETFs covers how fund structure affects these payouts.

The net investment income tax (NIIT). On top of the regular rate, a 3.8% tax applies to the lesser of your net investment income or the amount by which your modified adjusted gross income exceeds $200,000 (single or head of household), $250,000 (married filing jointly) or $125,000 (married filing separately), per Topic no. 559. Capital gains count as investment income.

Selling your home. If you meet the ownership and use tests (generally, you owned and lived in the home for at least two of the five years before the sale), you may exclude up to $250,000 of gain, or $500,000 on a joint return, according to Topic no. 701.

Retirement accounts. Everything above applies to taxable brokerage accounts. Retirement accounts such as 401(k)s and IRAs follow their own tax rules; our comparison of a brokerage account vs. an IRA explains the trade-offs.

Practical steps before you sell

These are general habits, not advice for your situation:

  1. Check the purchase date of the exact lot. If you bought shares at different times, each lot has its own date and basis. Publication 550 describes ways to identify which shares you sold, including specific identification and first-in, first-out.
  2. Estimate where your taxable income will land. A gain that falls inside the 0% zone in 2026 might not in 2027, or the reverse.
  3. Look at losses you already have. Realized losses can offset gains, but keep the 30-day wash sale window in mind before you rebuy.
  4. Plan for the payment. The IRS says a taxable capital gain may require estimated tax payments. Publication 505 covers the rules.
  5. Keep records. Your own records of purchase dates and costs help you check what your broker reports and fill in Form 8949. Our tax filing checklist lists what to gather, and our explainer on deductions vs. credits shows how the $3,000 loss deduction differs from a credit.

If your situation involves large gains, inherited assets, business property or real estate, a CPA or enrolled agent can help you plan the timing.

Methodology and limitations

This comparison covers federal income tax for individuals. It doesn't cover state income taxes, which vary and may tax capital gains as ordinary income, or the alternative minimum tax. The worked examples assume a single filer, a single sale, taxable income as stated, and no other gains, losses, credits or deductions beyond what is described. The long-term tax applies the 2026 thresholds from Rev. Proc. 2025-32 by stacking the gain on top of other taxable income; the short-term tax is the difference in regular tax with and without the gain, using the 2026 single brackets.

Sources

  • Internal Revenue Service: Topic no. 409, Capital gains and losses (last reviewed Sept. 24, 2026); Rev. Proc. 2025-32 (2026 tax brackets, section 4.01; maximum capital gains rate amounts, section 4.03); Publication 550, Investment Income and Expenses (for 2025 returns; wash sales, capital gain distributions, holding period of reinvested shares, total net gain or loss, share identification); Topic no. 559, Net investment income tax; Topic no. 701, Sale of your home.

All sources were checked on Nov. 1, 2026.

This content is for general education and is not tax, financial or investment advice. Tax rules and thresholds change; check current IRS guidance or a tax professional before you act. Updated Nov. 1, 2026.