Tax Loss Harvesting Explained: Rules, Limits and the Wash Sale Trap

Tax loss harvesting explained: sell at a loss to offset gains and up to $3,000 of income a year. Watch the wash sale rule or the deduction disappears.

By Galactic News Editorial · Published 2026-11-16T19:46:04+00:00 · Updated 2026-11-16T19:46:04+00:00

Tax loss harvesting explained rules limits and the wash sale trap

Tax loss harvesting means selling an investment that has fallen in value, so the loss can offset capital gains and lower your tax bill. Tax loss harvesting is a legitimate, widely used technique. It is also easy to get wrong. One rule, the wash sale rule, can wipe out the deduction entirely if you buy the same investment back too soon. This guide explains how tax loss harvesting works, the limits, and the traps to avoid.

Everything here is educational information based on IRS publications, not tax advice. Tax rules change, and individual circumstances matter. Check the IRS sources or talk to a tax professional before acting.

What Tax Loss Harvesting Is

When you sell a capital asset, such as a stock, for less than your adjusted basis, the difference is a capital loss. Tax loss harvesting is the deliberate act of realizing that loss in a year when it can offset gains. The loss first offsets capital gains of the same type. Short-term losses offset short-term gains. Long-term losses offset long-term gains. Then remaining losses offset gains of the other type.

If losses exceed gains, the excess can offset up to $3,000 of ordinary income per year, or $1,500 if you are married and file separately. That limit comes from IRS Topic 409, and it is the lesser of $3,000 or your total net loss shown on Schedule D. Any loss beyond that carries forward to later years. There is no expiration on the carryforward. You figure the amount with the Capital Loss Carryover Worksheet in IRS Publication 550 or in the Schedule D instructions.

A simple tax loss harvesting example shows the idea. You buy shares for $10,000. They fall to $7,000. You sell them and realize a $3,000 loss. In the same year you sold other shares for a $3,000 gain. The loss offsets the gain, and no tax is due on that gain. The numbers are an illustration, not a promise. Your result depends on your gains, your income, and your tax rates.

How Tax Loss Harvesting Works, Step by Step

  1. Find a loss for tax loss harvesting in a taxable account. Tax loss harvesting only works in a taxable brokerage account. Losses in a traditional IRA, Roth IRA, or 401(k) are not reportable on Schedule D, because those accounts already grow tax-deferred or tax-free.
  2. Check the holding period. A gain or loss is short-term if you held the asset one year or less, and long-term if you held it more than one year. The holding period matters because short-term and long-term gains are taxed at different rates, and losses net against the same type first.
  3. Sell before year end to complete the tax loss harvesting for that tax year. The trade date, not the settlement date, sets the tax year. A sale with a trade date on or before December 31 counts in that tax year.
  4. Do not buy the same security back too soon after tax loss harvesting. This is the wash sale rule, covered below. Wait, or buy a different investment that keeps your portfolio balanced without being substantially identical.
  5. Report the tax loss harvesting correctly. Report most sales on Form 8949, then summarize capital gains and deductible capital losses on Schedule D of Form 1040. Losses from personal-use property, such as your home or car, are not deductible.

Tax loss harvesting does not make the loss disappear from your portfolio. You still lost money on the investment. The technique turns a loss you already have into a tax reduction. That is the whole point of tax loss harvesting. It never justifies selling a good investment solely for the tax effect.

The $3,000 Limit and the Carryforward

The $3,000 limit on tax loss harvesting often surprises people. It applies only to the amount of net loss that can offset ordinary income, such as wages, in one year. It does not limit how much loss can offset capital gains. If you have $20,000 of losses and $20,000 of gains in the same year, the losses can offset all of the gains. The $3,000 cap bites only on the leftover loss after all gains are offset.

Suppose your tax loss harvesting produced $10,000 of losses and no gains. You can deduct $3,000 against ordinary income this year. The remaining $7,000 carries forward to next year, where it offsets next year's gains first, then up to $3,000 of ordinary income again. The carryforward has no expiration, but it does not survive forever in practice: it is used up year by year, and it ends with the taxpayer.

Long-term gains, which tax loss harvesting often offsets, are taxed at different rates depending on overall taxable income. For tax years beginning in 2025, the rate on most net capital gain is no higher than 15 percent for most individuals, according to IRS Topic 409. Some or all net capital gain may be taxed at zero percent at lower incomes. The exact rate depends on your taxable income, so the value of a harvested loss varies from person to person.

The Wash Sale Trap

The wash sale rule is the rule that most often surprises people doing tax loss harvesting. Under IRS Publication 550, 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. Counting the sale day, that is a 61-day window: 30 days before, the sale day, and 30 days after.

If the rule is triggered, the tax loss harvesting loss is disallowed for now. It is not lost forever in most cases. The disallowed loss is generally added to the cost basis of the replacement shares, which postpones the deduction until you sell those shares. But the tax benefit you wanted this year is gone.

The window runs in both directions, and that catches people doing tax loss harvesting. Buying the same shares two weeks before you sell at a loss can trigger the rule, just as buying them back two weeks after can. The rule also reaches across accounts. Buying the same security in your IRA can trigger a wash sale, under IRS Revenue Ruling 2008-5. Purchases by your spouse can also count. Dividend reinvestment plans can trigger it too, if they buy shares inside the window.

What counts as substantially identical for tax loss harvesting? The IRS has never published a bright-line test for stocks. The same company's shares clearly qualify. Shares of a different company in the same industry generally do not. For funds, the question is harder: two index funds that track the same index may be treated as substantially identical, while funds tracking different indexes usually are not. Because the line is fuzzy, the safe approach is to replace a sold fund with one that tracks a different index or holds a different basket, and to wait out the full 30 days before repurchasing the same security.

One more gap to know: the wash sale rule as written applies to stocks and securities. Whether it reaches cryptocurrency is unsettled. Legislation to extend the rule to traded digital assets has been introduced but was not law as of October 2026. Crypto investors should check the current status before assuming the rule does or does not apply.

Common Tax-Loss Harvesting Mistakes

Bottom Line

Tax loss harvesting turns investment losses into tax savings: losses offset gains first, then up to $3,000 of ordinary income a year, with the rest carried forward indefinitely. The wash sale rule is the guardrail for tax loss harvesting. Do not buy the same or a substantially identical security within 30 days before or after the sale, in any account, including an IRA. Keep the tax loss harvesting loss in a taxable account, mind the trade date, and remember that a tax saving never justifies selling an investment you still believe in. When the amounts are large, or the facts are complicated, a tax professional is worth the fee.