Finance Trend Wire

Markets · Policy · Companies · Money
Person working at a glass table with a laptop, notebook, and coffee mug
Personal financeIndependently verified

What is tax-loss harvesting, and how does it work?

By Akash Soni·

Photo: kaboompics / Pexels

Tax-loss harvesting turns investment losses into a tax offset, but the IRS caps the benefit, the wash sale rule can wipe it out, and the tax is usually deferred rather than erased. Here are the 2026 rules, from the netting order to the December 31 deadline.

Tax-loss harvesting is selling an investment for less than you paid so the realized loss cancels out capital gains on your federal tax return. Leftover losses can reduce other income by up to $3,000 a year, or $1,500 if married filing separately, with the rest carried forward. It works only in taxable accounts.

The idea gets more attention in a falling market, and November 2026 delivered one: the S&P 500 slid into a correction this month. Here is how the rules work, where people trip up, and what the tactic does and does not do.

How the loss turns into a tax benefit

Only a sale realizes a loss. Once sold, the loss goes on Form 8949 and is summarized on Schedule D of Form 1040, according to IRS Topic No. 409, which the IRS last reviewed on November 9, 2026.

The holding period sets the type of loss. IRS Topic No. 409 says an asset held more than one year produces a long-term gain or loss; one year or less is short-term. Short-term gains are taxed at ordinary income rates; long-term gains get lower rates. Our guide to how capital gains are taxed in 2026 sets out those rates and thresholds.

The netting order on Schedule D

Losses are not applied in whatever order you like. Schedule D works in a fixed sequence:

  • Short-term losses first offset short-term gains, giving a net short-term figure (line 7).
  • Long-term losses first offset long-term gains, giving a net long-term figure (line 15).
  • The two nets are then combined into a total (line 16), per IRS Publication 550.
  • If the total is a loss, you can deduct the lesser of $3,000 ($1,500 married filing separately) or the total net loss against other income.
  • Anything left carries over to the next year and keeps going "until it is completely used up," in the words of Publication 550. When figuring the carryover, short-term losses are used first.

So a harvested loss is worth most against gains taxed at a high rate, and least when only the $3,000 slice of income absorbs it.

A detailed view of a tax return form with a pen and magnifying glass, perfect for financial themes
Harvested losses are reported on Form 8949 and summarized on Schedule D of Form 1040. Photo: Nataliya Vaitkevich / Pexels

A worked example (hypothetical)

These figures are invented to show the mechanics.

Suppose an investor sold shares earlier in 2026 for an $8,000 short-term gain. They still hold Fund A, bought eight months ago for $20,000 and now worth $12,000, and Fund B, bought three years ago for $15,000 and now worth $9,000.

“This adjustment postpones the loss deduction until the disposition of the new stock or securities.”

Internal Revenue Service, Publication 550 (2025), Investment Income and Expenses, on wash sales
  • Selling Fund A realizes an $8,000 short-term loss. It offsets the $8,000 short-term gain, so net short-term is zero.
  • Selling Fund B realizes a $6,000 long-term loss. With no long-term gains, net long-term is a $6,000 loss.
  • The total net loss is $6,000. The investor deducts $3,000 against other income for 2026 and carries $3,000 forward to 2027.

It defers tax, it rarely erases it

Harvesting usually postpones tax rather than eliminating it. If the investor in the example reinvests the $12,000 from Fund A in a similar fund, the new cost basis is $12,000, not $20,000. If that holding later grows back to $20,000 and is sold, the $8,000 gain shows up then.

The deferral can still be worth something: money not paid in tax today stays invested, and the later gain may qualify for long-term rates. But a lower basis is the price of today's deduction.

The wash sale rule

IRS Publication 550 says a wash sale occurs when you sell stock or securities at a loss and, 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 acquire them for your IRA or Roth IRA. That is a 61-day window centered on the sale date.

A wash sale does not destroy a loss in a taxable account. Publication 550 says the disallowed loss is added to the cost of the new shares, and the holding period carries over. The deduction is simply pushed into the future.

Three traps stand out:

  • Your IRA. Buying the same security in an IRA or Roth IRA within the window also triggers the rule, and Publication 550 excludes that case from the basis adjustment. Rev. Rul. 2008-5, published in Internal Revenue Bulletin 2008-3 on January 22, 2008, held that the loss is disallowed and that the IRA's basis is not increased. The loss is effectively gone.
  • Your spouse. Publication 550 says that if you sell and your spouse, or a corporation you control, buys substantially identical stock, you also have a wash sale.
  • Automatic purchases. Dividend reinvestment and scheduled contributions can buy the same fund inside the window without anyone noticing.

"Substantially identical" has no bright-line test. Publication 550 says you must consider all the facts and circumstances, and that shares of one corporation are ordinarily not substantially identical to shares of another.

The December 31 deadline

For a loss to count on a 2026 return, the sale has to happen in 2026. Publication 550 ties the holding period and the reporting year to the trade date, not the settlement date. Its own example: a sale on December 31, 2025 that settled in January 2026 belonged on the 2025 return. The same logic makes December 31, 2026 the last trade date for the 2026 tax year. Note that a December sale opens a wash sale window that runs into January.

Taxable accounts only

Gains and losses inside a traditional IRA, Roth IRA or 401(k) are not reported year by year, so there is nothing to harvest there.

Crypto: a gap Congress is debating

Publication 550 treats digital assets as property, and its wash sale section refers to stock and securities. That is why crypto has generally been understood to fall outside the rule, so a holder can sell at a loss and rebuy straight away. The House Ways and Means Committee approved H.R. 10357, the Digital Asset Tax Certainty Act, by a 38 to 5 vote on September 16, 2026, according to EY The bill would apply wash sale rules to digital assets. We found no record that it has become law as of November 22, 2026, and the effective date in any final version is not yet clear.

Robo-advisors and automation

Many automated investing services harvest losses for you. Betterment's published methodology, dated November 18, 2026, describes scanning portfolios regularly and swapping a fund at a loss into an alternate fund in the same asset class to avoid a wash sale. It notes the software cannot see holdings outside its own accounts, including a spouse's, so an outside purchase can still trigger a wash sale.

What to watch

The key dates are December 31 for 2026 sales and the 30-day windows on either side of any loss sale. On the policy side, watch whether H.R. 10357 reaches the House floor and what effective date it carries. A tax deduction does not make a sale a good decision on its own, and a tax professional can apply these rules to a specific situation.

Frequently asked questions

What is tax loss harvesting?

Tax-loss harvesting is selling an investment for less than you paid so the realized loss offsets capital gains on your federal return. If losses exceed gains, up to $3,000 a year ($1,500 married filing separately) can reduce other income, per IRS Topic No. 409, and the rest carries forward. It applies only to taxable accounts.

How much can I deduct from tax-loss harvesting each year?

Losses first offset capital gains without limit. Beyond that, IRS Publication 550 allows a deduction of the lesser of $3,000 ($1,500 if married filing separately) or your total net loss. Any excess carries over to later years until it is used up.

What is the wash sale rule?

Under IRS Publication 550, you cannot deduct a loss if within 30 days before or after the sale you buy substantially identical stock or securities, get them in a taxable trade, buy an option on them, or buy them in your IRA or Roth IRA. A purchase by your spouse or a corporation you control also counts.

Can buying in my IRA trigger a wash sale?

Yes. Publication 550 lists IRA and Roth IRA purchases as wash sales, and Rev. Rul. 2008-5 held that the loss is disallowed and the IRA's basis is not increased. Unlike a taxable-account wash sale, the loss is not added to a new basis, so it is effectively lost.

What is the deadline for tax-loss harvesting in 2026?

The sale must take place in 2026. Publication 550 ties gains and losses to the trade date, not the settlement date, so December 31, 2026 is the last trade date for the 2026 tax year. A late December sale still opens a 30-day wash sale window into January.

Does the wash sale rule apply to crypto?

IRS Publication 550 treats digital assets as property, and its wash sale section refers to stock and securities, so crypto has generally been understood to fall outside it. H.R. 10357, which would apply wash sale rules to digital assets, passed the Ways and Means Committee 38 to 5 on September 16, 2026, but we found no record of it becoming law as of November 22, 2026.

Sources

What each one is, and whose it is.

  1. 1

    Topic no. 409, Capital gains and losses, Internal Revenue Service (November 9, 2026)

    DocumentationIndependent of the vendor
  2. 2

    Publication 550 (2025), Investment Income and Expenses, Internal Revenue Service (November 22, 2026)

    DocumentationIndependent of the vendor
  3. 3

    Internal Revenue Bulletin 2008-3 (Rev. Rul. 2008-5), Internal Revenue Service (January 22, 2008)

    DocumentationIndependent of the vendor
  4. 4

    Ways and Means approves digital assets tax bill, EY Tax News (September 16, 2026)

    Press reportIndependent of the vendor
  5. 5

    Betterment's tax-loss harvesting methodology, Betterment (November 18, 2026)

    OtherThe vendor’s own
  6. 6

    Tax-loss harvesting, Fidelity Investments (December 8, 2025)

    OtherIndependent of the vendor