FinovativeHub

Tax-Loss Harvesting 2026: How to Use Investment Losses Before December 31 Without Triggering the Wash Sale Rule

Tax-loss harvesting means selling an investment at a loss in a taxable account so the loss can offset capital gains, and up to $3,000 of other income, on your 2026 return. For 2026 the sale has to be completed by December 31, which falls on a Thursday this year, and it only works if you avoid the wash sale rule: buying the same or a substantially identical investment within 30 days before or after the sale cancels the loss for now. This guide walks through the rules, four worked examples with the arithmetic, a pre-sale checklist and the limits of what the IRS pages say.

Financial education only, not tax or investment advice. Examples use made-up numbers. Rules and thresholds were checked against the IRS and statute pages listed under Sources Reviewed on November 3, 2026; your situation may differ, so confirm with a tax professional.

In this guide

How tax-loss harvesting works

Selling an investment for less than your cost basis creates a capital loss. The IRS explains that if you hold an asset for more than one year before you dispose of it, the gain or loss is long-term; one year or less, short-term. Those losses first cancel capital gains from other sales. If losses are larger than gains, a limited amount can reduce other income, and the rest carries forward.

Harvesting only matters in a taxable brokerage account. Gains and losses inside a 401(k), traditional IRA or Roth IRA are not reported on your return as they happen, so there is nothing to harvest there. It also does not erase a tax bill permanently in most cases. You usually lower the basis of what you hold or defer tax, which is why harvesting is a timing strategy rather than free money.

How gains and losses net against each other

Three rules from the IRS and the Internal Revenue Code drive every example below:

  1. Losses offset gains. Under 26 U.S.C. 1211(b), capital losses are allowed to the extent of capital gains, plus the lower of $3,000 ($1,500 if married filing separately) or the excess of losses over gains.
  2. The $3,000 limit. IRS Topic 409 says the amount of excess loss you can claim to lower your income is the lesser of $3,000 ($1,500 if married filing separately) or your total net loss shown on Schedule D.
  3. Carryforward. If your net capital loss is more than the limit, you can carry the loss forward to later years. Under 26 U.S.C. 1212(b), a carried-over net short-term loss stays short-term and a carried-over net long-term loss stays long-term.

Short-term and long-term results are first netted within their own group, then against each other. That order matters because short-term gains are taxed at ordinary rates while long-term gains get the lower capital gains rates, so a loss that wipes out a short-term gain is usually worth more than one that wipes out a long-term gain. The IRS pages we could read confirm the netting definitions in Topic 409; the full netting-order text sits in Schedule D instructions and Pub. 550, so use Schedule D (or your tax software) for your actual numbers.

What the long-term gain rates look like for 2026

IRS Rev. Proc. 2025-32 sets the top of the 0% and 15% long-term capital gains ranges for 2026 (taxable income):

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

Above the 15% range, IRS Topic 409 says a 20% rate applies. Some higher-income investors also owe the 3.8% net investment income tax, which applies at modified adjusted gross income above $200,000 (single or head of household) or $250,000 (married filing jointly), per IRS Topic 559. To see where your taxable income sits, our 2026 tax brackets and standard deduction guide shows the ordinary brackets and thresholds.

Four worked examples

All figures are hypothetical and ignore state tax, the net investment income tax and fees. Savings are shown at a 15% long-term rate or a stated ordinary rate.

Example 1: Offsetting a gain you already took

You sold one fund in March for a $12,000 long-term gain. In December another holding is down $8,000 from your cost. You sell it, so net long-term gain falls from $12,000 to $4,000. At 15%, the tax on the gain drops from $1,800 to $600, a $1,200 difference. If you want to stay invested, the replacement has to avoid the wash sale rule (see below).

Example 2: Losses bigger than gains

You have no gains this year and harvest a $10,000 loss. You can deduct $3,000 against other income now and carry forward $7,000 to 2027. If your top ordinary bracket is 22%, the $3,000 deduction is worth about $660; at 12% it is about $360. The $7,000 carryforward can offset future gains or up to $3,000 a year of other income until it is used.

Example 3: The wash sale trap

You own 100 shares with a total cost of $8,000 ($80 each). You sell at $50, receiving $5,000, for a $3,000 loss. Twenty days later you buy 100 shares back at $52 ($5,200). Because the repurchase falls within 30 days after the sale, the $3,000 loss is disallowed for now. The IRS instructions say the replacement shares’ basis is their cost increased by the disallowed loss: $5,200 + $3,000 = $8,200, or $82 a share. You did not lose the $3,000 permanently; it is built into the new basis and comes back when you sell those shares. But you did not get the 2026 deduction you expected.

Example 4: A short-term gain and a larger long-term loss

You have a $2,000 short-term gain and a $9,000 long-term loss. Netting the two leaves a $7,000 net loss. You deduct $3,000 this year and carry forward $4,000, which stays long-term under section 1212(b) because it came from the net long-term loss. The short-term gain is absorbed by the loss first, and only the remainder is limited by the $3,000 rule.

The wash sale rule

The IRS Schedule D instructions define the rule: a wash sale occurs when you sell stock or securities, including a contract or option to acquire or sell them, at a loss and, within 30 days before or after the sale, you do any of these:

  • buy substantially identical stock or securities;
  • acquire substantially identical stock or securities in a fully taxable trade;
  • enter into a contract or option to acquire substantially identical stock or securities; or
  • acquire substantially identical stock or securities for your IRA or Roth IRA.

The statute, 26 U.S.C. 1091, sets the window as the period beginning 30 days before the sale and ending 30 days after it. That is a 61-day span counting the sale date. Two practical points follow:

  • The IRA rule catches people. Selling in a taxable account and buying the same fund in your IRA counts under the IRS instructions. In that case the instructions do not add the disallowed loss to the basis of the replacement, so the loss may never be recovered. Avoid it.
  • Automatic purchases still count. A dividend reinvestment or payroll-driven purchase is still a purchase. Because the rule looks at buys within the window, pause automatic buys of the same holding (our reading of the rule text, not a separate IRS statement).

On Form 8949 the IRS tells you to use code W when you have a nondeductible loss from a wash sale and to enter the disallowed amount as a positive number in column (g). If your Form 1099-B shows an amount that is wrong, the instructions say to enter the correct amount.

What counts as “substantially identical”?

The IRS Schedule D pages we read use the phrase but do not list examples. Pub. 550 has a “Substantially identical” subsection, but the version we could read stopped before it, so we are not stating a bright line here. Selling shares of one company and buying the same company is the clear case. Swapping between funds tracking different benchmarks is generally treated more cautiously than swapping between two funds on the same index; if you plan a swap, read Pub. 550 or ask a tax professional before relying on it.

Crypto and digital assets

The IRS digital assets page says digital assets are treated as property for U.S. tax purposes, and the Schedule D instructions say the wash sale rules generally apply to digital asset transactions that are also stock or securities, such as tokenized securities. None of the IRS pages we read says whether wash sales apply to other crypto, and section 1091 refers to stock or securities. Treat that as an open question and get professional advice before trading around it.

Who benefits, and who may not

SituationHarvesting usually helps?Why
Realized large gains this yearOften yesLosses cancel gains dollar for dollar
High ordinary bracket, short-term gainsOften yesOffsets income taxed at ordinary rates
Income in the 0% long-term rangeOften noGains may be untaxed already, so a loss adds less
Only retirement accountsNoNo taxable gains or losses to report
Small loss, high trading costsMaybe notFees or a bad replacement can outweigh savings

If you are in the 0% range, the mirror strategy, selling winners to reset basis, can be worth considering, but it needs careful income projections. Our Roth conversion guide covers a related bracket-filling idea, and the charitable deduction guide shows another year-end lever that interacts with taxable income.

Year-end checklist

  1. List taxable holdings with cost basis and purchase dates (your broker’s gain/loss page helps).
  2. Total your realized gains and losses so far in 2026, short-term and long-term separately.
  3. Pick positions with losses large enough to matter after fees.
  4. Decide the replacement before you sell: cash, a different company, or a clearly different fund.
  5. Check every account, including IRAs and automatic reinvestment (Pub. 550 also covers purchases by related parties; check it if a spouse or a company you control holds the same investment), for purchases of the same holding 30 days before or after.
  6. Place the sale early enough that it executes by December 31, and confirm the final trading day with your broker.
  7. Keep records for Form 8949 and Schedule D and review the broker’s Form 1099-B when it arrives.

Common mistakes

  • Buying back too soon. A purchase on day 30 after the sale still falls inside the window.
  • Forgetting the days before the sale. The 30 days before also count, so a recent purchase of the same holding can turn a later sale into a wash sale.
  • Ignoring other accounts. The IRS instructions single out buying for an IRA or Roth IRA.
  • Letting tax drive the whole decision. A replacement that no longer fits your plan can cost more than the tax saved.
  • Assuming the loss disappears. In a wash sale it is added to basis, not erased.

FAQ

Is there a deadline for tax-loss harvesting?

For 2026 the sale needs to be completed within the 2026 tax year, so by December 31. Confirm market hours and your broker’s cutoffs.

How much loss can I deduct against my paycheck?

Up to $3,000 a year of net capital loss ($1,500 if married filing separately), with the rest carried forward, per IRS Topic 409.

Can I harvest losses and buy the same investment back right away?

Not without triggering the wash sale rule. You would need to wait more than 30 days, or buy something that is not substantially identical.

Does tax-loss harvesting work in an IRA?

No. Gains and losses in retirement accounts are not reported as they happen.

Will harvesting lower my taxes forever?

Usually it shifts tax to later because your cost basis is lower after a replacement purchase. It can still be valuable through deferral, bracket differences and the annual $3,000 deduction.

Sources Reviewed

All pages below were read on November 3, 2026 unless noted. Where a section could not be read in full, the article says so.

Published by the FinovativeHub Editorial Team. Last fact-checked November 3, 2026.

Related tax guides: 2027 tax brackets and standard deduction and Roth conversion before December 31, 2026.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top