Tax-Loss Harvesting: A Practical Guide
Tax-loss harvesting sounds clever and is occasionally useful. It also has a specific failure mode: the wash sale rule, which converts your loss into a deferred loss, a permanent loss, or nothing at all depending on what you do next. This guide explains when harvesting is worth the effort and when it is not.
What harvesting actually does
You sell an investment at a loss, which realises a loss you can use to offset a gain elsewhere in the portfolio. If the gain you offset was taxed at 15%, and the loss you harvested would have been taxed at 0% because you were in the 0% long-term bracket, harvesting can convert a 0% loss into a 15% saving — but it also permanently gives up the loss. If you had no gains to offset, the loss offsets up to $3,000 of ordinary income and the rest is carried forward indefinitely.
When it is worth doing
- You have gains in the 15% or 20% bracket. This is the central condition. The value of a loss is the rate it offsets.
- Your income is unusually low this year. A loss is worth more in a year when you are in a low bracket, because you can use it against ordinary income at your marginal rate.
- You want to reduce exposure to a specific holding. If you are worried about a particular position, selling it and harvesting the loss is the right move regardless — the harvesting is a bonus.
- Your portfolio has drift. Rebalancing naturally realises losses, and treating that as deliberate harvesting captures the tax benefit of something you were going to do anyway.
When it is not worth doing
The most important case is the one people get wrong: if your gains are already in the 0% bracket, harvesting makes things worse.
Losses do not offset the 0% rate on long-term gains. If you have $50,000 of long-term gains taxed at 0% and you harvest $5,000 of losses, you now pay tax on $45,000 — still at 0%. You have permanently surrendered a $5,000 loss and received nothing for it.
Three other cases where it does not work:
- You have no other gains and your income is low. You get $3,000 of ordinary income offset at perhaps 12%, and carry the rest forward for years, tying up capital and creating a record-keeping tail.
- The position is down slightly and you want to keep it. Selling and rebuying costs a wash sale or leaves you with an adjusted basis and no diversification benefit.
- The transaction costs exceed the tax benefit. Bid-ask spreads and commissions on a small position can exceed the saving. On a $2,000 loss in a 15% bracket, you saved $300. If the spread and commission cost $150, you have gained $150 and taken on risk.
The wash sale rule
If you sell a security at a loss and buy a substantially identical security within 30 days before or after the sale, the loss is disallowed for that year. It is added to the cost basis of the replacement shares instead, and you recognise it later — when you sell those replacements without triggering another wash sale.
Three points that catch people:
- The window is 61 days wide — 30 days before and 30 days after the sale. Buying on day 29 before you sell can trigger it.
- It crosses accounts. Buying the replacement in an IRA or in your spouse's account triggers the rule.
- Buying in an IRA is the worst option. IRA basis is not tracked for adjustment, so the loss becomes permanently disallowed rather than deferred. You lose it entirely.
The strategy that works
When you harvest, change what you own rather than when you sell. Sell the losing position and move the money into something genuinely different — a different sector, a different asset class, or a broad index fund. This avoids the wash sale entirely because the replacement is not substantially identical, and it also fixes any concentration problem that prompted the sale.
If you want to keep the same holding, the alternative is to wait the full 31 days before repurchasing. You accept the market risk of that gap, and in exchange you capture the loss immediately.
Record keeping
The IRS requires you to be able to show which units you disposed of when you use specific identification. A brokerage statement that does not break down per-lot cost basis is not enough. Export your transaction history before you need it, and keep the sale confirmation with the lot identifiers.
For crypto this is harder still: many exchanges cannot produce per-transaction cost basis at all, and some cannot report cost basis for specific units. If you are relying on HIFO or LIFO, check that your exchange can actually produce the data before you transact.
The rule of thumb
Harvest when you have realised gains in a bracket above zero, and harvest into a different asset. Ignore it when your gains are already at 0%, when you have no gains, and when the position is one you intend to hold regardless.
And remember the sequence: realise the loss, let 31 days pass or buy something different, and only then reinvest the proceeds. Doing it in that order costs nothing and keeps the whole benefit intact.