What Tax Loss Harvesting Actually Means (and What It Does Not)

Tax loss harvesting is the intentional sale of a security at a loss in a taxable brokerage account in order to realize a capital loss for tax purposes. The defining feature is intent and planning: you are selling a position specifically to generate a loss you can use, not because you have given up on the investment thesis. In most cases, the strategy involves replacing the sold position with a similar but not identical investment so your portfolio stays roughly where you want it while the tax benefit is captured.

That distinction matters, because the term gets used loosely. Any time you sell a position in a taxable account for less than you paid, that loss shows up on your tax return through Form 8949 and Schedule D. Some people call that tax loss harvesting. It is not, at least not in the meaningful sense. Reporting a loss is a mechanical outcome. Harvesting is a deliberate decision made before the sale, with a replacement investment already identified and the tax impact already considered.

The difference is not just semantic. A taxpayer who sells a losing position in December because they are frustrated with it and happens to get a tax deduction is not doing the same thing as a taxpayer who reviews their portfolio in November, identifies positions trading below cost, evaluates replacement options, confirms no wash sale exposure, and executes a planned trade. The second taxpayer is harvesting. The first taxpayer got lucky on the tax side.

Two other boundaries worth drawing clearly:

  • Tax-advantaged accounts do not apply. Positions held inside an IRA, 401(k), or other tax-advantaged account do not generate reportable capital gains or losses when sold inside the account. There is nothing to harvest. Tax loss harvesting is exclusively a taxable brokerage account strategy.
  • The loss has to be realized. A position that has declined in value but has not been sold is an unrealized loss. It has no current tax effect. Harvesting requires an actual sale.

The mechanics of how a realized capital loss flows through your return, what it offsets, and what happens when the loss exceeds your gains are covered in the next section. The wash sale rule, which is the primary constraint on executing this strategy, gets its own section after that.

What the Strategy Accomplishes: Offsets, the $3,000 Limit, and Carryforwards

When you sell a security at a loss in a taxable brokerage account, the realized loss flows through Form 8949 and then to Schedule D, where it is netted against your capital gains for the year. That netting happens dollar-for-dollar, with no annual ceiling on how much can be offset against gains. A taxpayer with $30,000 of capital gains who harvests a $20,000 loss reduces the taxable gain to $10,000.

The character of the loss matters. Under IRC §1222, gains and losses are classified as short-term (positions held one year or less) or long-term (positions held more than one year). The netting follows a specific order: short-term losses offset short-term gains first, and long-term losses offset long-term gains first. Excess losses of one character then cross over to offset gains of the other. This matters because short-term gains are taxed at ordinary income rates while long-term gains are taxed at preferential rates, so the sequencing affects how much tax is actually saved.

Once capital gains are fully offset, the next question is what happens to any remaining net loss. Under IRC §1211(b), individual taxpayers can deduct up to $3,000 of net capital loss against ordinary income in a given year ($1,500 if married filing separately). That deduction applies against wages, business income, or other ordinary income, which is taxed at higher rates than long-term capital gains, so even a modest deduction can have real value.

Any net loss beyond the $3,000 threshold is not lost. Under IRC §1212(b), unused capital losses carry forward to future tax years indefinitely, retaining their short-term or long-term character. A $50,000 net capital loss in one year, with no gains to absorb it, produces a $3,000 deduction this year and a $47,000 carryforward that can offset future gains or generate future $3,000 deductions until it is exhausted.

The mechanics of the $3,000 limit and carryforward treatment are covered in more detail in Why Was Only $3,000 of My Capital Loss Deducted on My Tax Return? If you are unfamiliar with how carryforwards work in practice, that article is worth reading alongside this one.

The Wash Sale Rule Under IRC §1091

The wash sale rule is the primary constraint on tax loss harvesting. Under IRC §1091, a loss is disallowed if you purchase the same or a substantially identical security within 30 days before or 30 days after the sale that generated the loss. That creates a 61-day window centered on the sale date. If a purchase falls anywhere inside that window, the loss is disallowed for that tax year.

The phrase "substantially identical" is where most of the practical difficulty lives. The IRS has not published a bright-line definition, so the analysis is fact-specific. A few general principles hold up:

  • Selling a fund and buying back the exact same fund, or a different share class of the same fund, is substantially identical. The loss will be disallowed.
  • Selling one ETF and buying a different ETF that tracks the same index is a gray area. The funds are not literally identical, but regulators and courts have not definitively resolved whether tracking the same index makes them substantially identical. Most practitioners treat this as a risk to avoid.
  • Selling an ETF tracking one index and buying a different ETF tracking a different but economically similar index is generally considered safe, provided the indexes are not constructed to be interchangeable. This is the approach most commonly used to maintain market exposure while avoiding the wash sale rule.

A disallowed loss is not permanently gone. IRC §1091 requires the disallowed amount to be added to the basis of the replacement security. When you eventually sell the replacement, that higher basis reduces the gain or increases the loss at that time. The loss is deferred, not erased.

One detail that catches people off guard: the wash sale rule applies across all accounts you control, not just the account where the sale occurred. If you sell a position at a loss in a taxable brokerage account and then buy the same security inside an IRA within the 61-day window, the loss is disallowed. The IRA purchase counts. Unlike a taxable account, the IRA does not receive a basis adjustment for the disallowed amount, which means the loss is effectively lost permanently in that situation rather than deferred.

The practical implication is that any tax loss harvesting plan needs to account for all accounts you own or control before executing the trade, not just the account where the sale is taking place.

Deferral, Not Elimination: The Economic Reality

Tax loss harvesting is often described as a way to reduce your tax bill. That framing is not wrong, but it is incomplete. In most cases, the strategy defers tax rather than eliminating it. Understanding why matters, because the benefit is real but it works differently than people expect.

Here is the mechanics of why. When you sell a position at a loss and buy a replacement, your cost basis in the replacement security is whatever you paid for it. That is the rule under IRC §1012. If you sold a fund at $40 per share after buying it at $60, you harvested a $20 loss. But your replacement position starts with a $40 basis. When you eventually sell the replacement at, say, $80, you recognize a $40 gain. Had you never harvested, you would have sold the original position at $80 and recognized only a $20 gain. The harvested loss did not disappear the tax. It moved it forward.

The genuine benefit comes from three places:

  • Time value of the deferred liability. A tax dollar you do not pay today is worth more than a tax dollar you pay in ten years. The longer the deferral, the more valuable it is. This is the core economic argument for the strategy, and it is strongest when the replacement position is held for a long time.
  • Rate arbitrage. If the harvested loss offsets a short-term gain taxed at ordinary income rates, and the future gain on the replacement is eventually taxed at long-term capital gain rates, you come out ahead on the rate difference, not just the timing. A loss that saves you 37 cents on the dollar today, offset against a gain that costs you 20 cents on the dollar later, produces a real net benefit beyond deferral.
  • Basis step-up at death. Under current law, assets held until death receive a stepped-up basis to fair market value. If the replacement position is never sold during your lifetime, the deferred gain may never be taxed at all. This is a meaningful consideration for investors with long time horizons and estate planning goals, though it depends on law that could change.

The deferral framing also clarifies when the strategy is less compelling. If you expect to sell the replacement position within a year or two, the time value benefit is modest. If you are already in a low capital gains bracket, rate arbitrage may not apply. And if transaction costs, tracking complexity, or the risk of a wash sale disallowance are significant, the math may not favor harvesting at all.

None of this means tax loss harvesting is not worth doing. For investors with meaningful taxable accounts, real capital gains to offset, and long holding periods ahead, the cumulative benefit of systematic deferral can be substantial. The point is simply that the benefit is a function of time, rates, and what happens to the replacement position, not a permanent reduction in what you owe.

When Tax Loss Harvesting Makes Sense and When It Does Not

The mechanics of tax loss harvesting are straightforward enough. Whether it is worth doing in a given situation is a separate question, and the answer depends on a few conditions that are easy to check before acting.

Conditions that support harvesting a loss

  • You have a taxable brokerage account with positions trading below your cost basis. This is the starting point. Without an unrealized loss in a taxable account, there is nothing to harvest.
  • You have capital gains to offset, either in the current year or carried forward from a prior year. Harvesting a loss against a short-term gain is especially valuable, since short-term gains are taxed at ordinary income rates. Offsetting a long-term gain still helps, but the rate differential matters when you are evaluating how much benefit you are actually capturing.
  • A suitable replacement investment exists. If you cannot find a non-substantially-identical security that maintains the market exposure you want, you are choosing between taking on unintended risk and triggering the wash sale rule. Neither outcome is the point of the strategy.
  • The expected tax savings exceed the transaction costs and the added complexity of tracking a new cost basis lot. For a small position, the math sometimes does not work. A $400 loss that saves $88 in federal tax at a 22 percent rate is not worth significant time or brokerage fees to execute.

Conditions that argue against it

  • The position is held inside an IRA, 401(k), or other tax-advantaged account. Sales inside those accounts do not produce reportable capital gains or losses. There is no loss to harvest, regardless of what the position is worth relative to what you paid.
  • The position is too small to justify the effort. Harvesting is a deliberate transaction with real administrative consequences: a new cost basis to track, a replacement security to monitor, and a 30-day window to manage. If the numbers are small, the effort is not proportionate to the benefit.
  • No acceptable replacement exists. Some positions are concentrated or specialized enough that a non-substantially-identical substitute either does not exist or would materially change your exposure. Selling and sitting in cash to avoid the wash sale rule means you are out of the market for at least 30 days, which introduces its own risk.
  • Portfolio logic would require you to buy back within 30 days. If you know you would need to repurchase the original or a substantially identical security within the wash sale window for rebalancing or other reasons, harvesting the loss now will likely disallow it. The timing has to work.

One broader consideration

Tax loss harvesting is most useful as part of ongoing portfolio management, not as a once-a-year December exercise. Losses are available when markets create them. A position that is down meaningfully in March may have recovered by November. Waiting until year-end to look for opportunities means you are working with whatever the market has left you, rather than acting when conditions are actually favorable.

It also works best when someone is watching the full picture: what gains have already been realized, what the carryforward balance looks like, what rate applies to the gains being offset, and whether the replacement security actually accomplishes what you intend. Those are not complicated questions, but they require knowing the answers before executing the trade, not after.