Tax Rules for Selling Stock at a Loss in 2026

Your tech stocks dropped 30% — here's how to reduce your tax bill

Your Tech Stocks Dropped 30% — Here's How Selling Them Reduces Your Tax Bill

You bought $20,000 of tech stocks two years ago. They're now worth $14,000 — a $6,000 paper loss. You're wondering if you should sell to "lock in" the loss for a tax benefit, even though you believe the stocks will recover.

This strategy is called tax-loss harvesting. The mechanics are real, the savings are specific, and the wash sale rule limits how you can execute it.

The $3,000 Annual Loss Deduction Limit

Capital losses first offset capital gains. If you have no gains, up to $3,000 in net capital losses can reduce ordinary income per year.

Scenario A: You have $4,000 in gains and $6,000 in losses. Net loss: $6,000 - $4,000 = $2,000. This $2,000 directly reduces your ordinary income (like salary). At the 22% bracket, you save $440 in federal tax.

Scenario B: You have no gains and $6,000 in losses. You deduct $3,000 this year (the annual limit) and carry forward the remaining $3,000 to 2027. Next year, that $3,000 carryforward offsets either gains or ordinary income.

The $3,000 cap means large losses take multiple years to fully use. A $30,000 portfolio crash with no offsetting gains would take 10 years to fully deduct — assuming you never have gains in that period.

Long-Term vs Short-Term Loss Treatment

The tax treatment depends on how long you held the stock:

  • Short-term loss (held under 1 year): First offsets short-term gains (taxed at ordinary income rates). Any excess offsets long-term gains or ordinary income.
  • Long-term loss (held over 1 year): First offsets long-term gains (taxed at 0%, 15%, or 20%). Any excess offsets short-term gains or ordinary income.

At your $20,000 investment held 26 months, the $6,000 loss is long-term. If you have $6,000 in long-term gains elsewhere, that loss zeroes out gains that would have been taxed at 15% (assuming $75K-$500K income for 2026). Tax savings: $900.

The Wash Sale Rule: The 30-Day Restriction That Trips People Up

The IRS wash sale rule voids the tax loss if you buy "substantially identical" securities within 30 days before or after the sale. The window is 61 days total: 30 days before the sale, the day of the sale, and 30 days after.

What violates the wash sale rule:

  • Selling XYZ stock at a loss on March 1, then rebuying XYZ stock on March 20 (19 days — inside the 30-day window)
  • Selling an S&P 500 ETF at a loss and immediately buying a nearly identical S&P 500 ETF from a different provider (IRS has targeted this; outcome uncertain)
  • Your IRA or spouse's taxable account buys the same security within the window (wash sales apply across accounts)

What does NOT violate the rule:

  • Selling XYZ and buying a different company in the same sector
  • Selling an S&P 500 fund and buying a total market fund (different composition)
  • Selling on March 1 and rebuying on April 2 (32 days — outside the window)

If you trigger a wash sale, the disallowed loss isn't permanent — it adds to your cost basis in the replacement shares. When you eventually sell those shares without triggering another wash sale, you recover the deduction.

Practical Tax-Loss Harvesting: A Year-End Example

It's November. You have:

  • $8,000 in short-term gains from selling a position in August
  • $3,000 in unrealized losses in a tech ETF you've held for 8 months

Selling the tech ETF before December 31 generates a short-term loss that directly offsets your $8,000 short-term gain. You reduce taxable short-term gains from $8,000 to $5,000 — saving $660 at the 22% ordinary income rate ($3,000 × 22%).

To maintain your sector exposure, wait 31 days and rebuy the same ETF, or immediately buy a different ETF tracking a similar (but not identical) index.

When Tax-Loss Harvesting Doesn't Make Sense

Two situations where the strategy backfires:

You're in the 0% capital gains bracket. For 2026, singles earning under $47,025 and joint filers under $94,050 pay 0% on long-term capital gains. If you're in this bracket, your gains cost nothing — harvesting losses is pointless.

You believe the position will recover significantly. If your $14,000 position grows to $30,000 in 5 years, you'd owe capital gains tax on $16,000 of gains. Selling now for a $6,000 loss saves $1,350 today (15% rate) but creates a much larger taxable gain later. You're not eliminating the tax — you're deferring it while resetting your cost basis lower.

The math favors harvesting when: (1) your current savings are significant, (2) you can reinvest in a similar but not identical position, and (3) you'll be in a higher tax bracket now than when you eventually sell.

Using Loss Carryforwards Strategically

Capital loss carryforwards accumulate when your annual losses exceed the $3,000 deduction limit. If you harvested $18,000 in losses this year with no offsetting gains, you'd use $3,000 this year and carry forward $15,000 to future years.

Those carryforwards become valuable in years when you have large capital gains — selling a property, exercising stock options, or rebalancing a concentrated position. A $15,000 carryforward offsets $15,000 of capital gains that would otherwise be taxed at 15-20%.

Track your carryforward balance on Schedule D each year. Tax software handles this automatically, but many investors don't realize they're sitting on carryforward balances from years-ago losses that could offset gains today.

If you're approaching a year where you plan to sell a significant asset at a gain, consider harvesting available losses in the same year rather than the prior year. Timing losses to offset large expected gains maximizes the present-value benefit of the deduction.

This article provides general tax information for educational purposes. Tax situations vary — verify specifics with a licensed tax professional.

Wash Sale Rule Calculator

Check if your planned sale violates the wash sale rule

Try this tool →