How to Offset Short-Term Capital Gains: Tax-Loss Harvesting Rules

To offset short-term capital gains, sell investments that are down and use those realized losses against the gains in the same tax year. The tax code requires a specific order: short-term losses first cancel short-term gains, any remainder reduces long-term gains, and up to $3,000 of what’s still left comes off ordinary income like wages. Anything beyond that carries forward to future years with no expiration.

Why Offsetting Short-Term Gains Saves the Most Tax

Short-term capital gains — profits on assets held one year or less — are taxed at your ordinary income rates.1Office of the Law Revision Counsel. 26 USC 1222 – Other Terms Relating to Capital Gains and Losses For 2026 those rates run from 10 percent up to 37 percent, with the top bracket kicking in above $640,600 for single filers and $768,700 for married couples filing jointly.2Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026

Long-term gains sit at 0, 15, or 20 percent depending on income.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses That rate gap is the whole reason short-term gains are the most valuable target for losses: a dollar of loss applied against a short-term gain can save up to 37 cents, while the same dollar applied against a long-term gain saves 15 or 20 cents.

If your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), the 3.8 percent Net Investment Income Tax also applies to capital gains on top of the regular rate. Those thresholds are not adjusted for inflation.4Internal Revenue Service. Net Investment Income Tax Reducing your net gain reduces exposure to this surtax as well.

The Required Netting Order

You cannot choose which gains to offset first. The IRS dictates the sequence:

  1. Net short-term gains against short-term losses within that category. Do the same on the long-term side.
  2. If one side ends in a net loss and the other in a net gain, cross-apply the loss against the gain.
  3. Combine the results to arrive at your overall capital gain or loss for the year.

This ordering works in your favor. Short-term losses hit short-term gains first, protecting income that would otherwise be taxed at your highest marginal rate. Only after short-term gains are wiped out does a leftover short-term loss move over to reduce long-term gains, where the per-dollar benefit is smaller.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses

Two boundaries worth knowing. Collectibles like art, coins, and antiques carry a maximum long-term rate of 28 percent, and gains from prior depreciation on real estate (unrecaptured Section 1250 gain) are capped at 25 percent.3Internal Revenue Service. Topic No. 409, Capital Gains and Losses Qualified dividends, though taxed at long-term capital gains rates, are not capital gains and are not directly canceled by capital losses.

Tax-Loss Harvesting in Practice

Tax-loss harvesting is the deliberate sale of losing positions to generate offsetting losses. It works best in volatile markets when individual holdings are down even while the overall portfolio is up.

A few practical points shape whether it actually saves you money:

  • Prioritize losses that will land against short-term gains. Because of the netting order, that generally means realizing short-term losses in years you have short-term gains to soak them up.
  • Reinvest the proceeds in something similar but not substantially identical if you want to keep your market exposure. Swapping one broad-market index fund for a different index tracking a different benchmark is a common approach.
  • Watch the calendar. A loss counts for the current tax year only if the sale occurs by December 31, and for exchange-traded stocks and bonds the trade date controls, not the settlement date.5Internal Revenue Service. Instructions for Form 8949
  • Harvest losses even in years with no gains. Up to $3,000 comes off ordinary income, and the rest carries forward.

The Wash Sale Rule

The rule that trips up most people: if you sell a security at a loss and buy a substantially identical security within 30 days before or after the sale, the IRS disallows the loss for that year.6Office of the Law Revision Counsel. 26 USC 1091 – Loss From Wash Sales of Stock or Securities The window runs in both directions, so 61 days total sit inside the danger zone (30 before, the sale itself, 30 after).

The rule captures purchases, exchanges, and options or contracts to acquire the same security. It also reaches across accounts. Selling a stock at a loss in your taxable brokerage account and repurchasing it in your IRA within the window will trigger it.

A disallowed loss is not gone forever. The amount rolls into the cost basis of the replacement shares and defers the benefit until you eventually sell them cleanly. Sell shares at a $250 loss, buy the same stock back for $800 within 30 days, and the replacement shares’ basis becomes $1,050.7Internal Revenue Service. Income – Capital Gain or Loss Workout

To harvest cleanly, wait at least 31 days before repurchasing the same security, or move to a similar but not substantially identical investment right away.

Deducting Excess Losses Against Ordinary Income

If your total losses for the year exceed your total gains, up to $3,000 of the excess deducts against ordinary income (wages, salary, business income). The limit is $1,500 for married taxpayers filing separately.8Office of the Law Revision Counsel. 26 USC 1211 – Limitation on Capital Losses The deduction reduces adjusted gross income dollar-for-dollar.

So if you have $10,000 in net capital losses and no gains, $3,000 comes off this year’s taxable income and $7,000 waits for next year.

Carrying Unused Losses Forward

Whatever is left after the $3,000 deduction carries forward indefinitely. The character of the loss survives the trip: a short-term loss carried in from last year enters this year still as short-term, and long-term stays long-term.9Office of the Law Revision Counsel. 26 USC 1212 – Capital Loss Carrybacks and Carryovers Once in the new year, it runs through the same netting sequence as any current-year loss, meaning a carried-forward short-term loss still gets first crack at short-term gains.

You track the running balance using the Capital Loss Carryover Worksheet in the Schedule D instructions. The IRS does not track it for you. Miss a year and you lose that year’s benefit — the carryover balance is a record-keeping obligation on the taxpayer.

How to Report It

Each sale gets an individual line on IRS Form 8949, showing the description, acquisition and sale dates, proceeds, and basis, with short-term and long-term transactions in separate sections.5Internal Revenue Service. Instructions for Form 8949 The totals flow to Schedule D, where Part I handles short-term, Part II handles long-term, and the netting plays out on the page before the combined figure moves to Form 1040.10Internal Revenue Service. Instructions for Schedule D (Form 1040)

Prior-year carryovers go directly on Schedule D, not on Form 8949. Keep completed copies of both forms and the carryover worksheet — this year’s ending balance is next year’s starting number.