Guide
Tax-loss harvesting explained
Markets fall. Positions go red. For investors with taxable brokerage accounts, those unrealized losses are not just pain — they can be tax assets if you harvest them deliberately. Tax-loss harvesting means selling a losing position to realize a capital loss, then using that loss to offset capital gains (or, within limits, ordinary income) while keeping your long-term portfolio exposure intact. Done well, it lowers your tax bill without changing your economic bet. Done poorly — ignoring wash-sale rules, churning for tiny savings, or harvesting inside retirement accounts that already shelter gains — it wastes effort or creates surprises at filing time.
How tax-loss harvesting works
Every taxable sale produces a realized gain or loss equal to proceeds minus your cost basis (what you paid, including fees, adjusted for splits and corporate actions). Losses do not help until they are realized; a stock down 30% in your portfolio is only a tax event when you sell.
Harvested losses offset gains in a priority order that matters for planning:
- Short-term losses offset short-term gains first (both taxed at ordinary income rates in the US).
- Long-term losses offset long-term gains (typically lower preferential rates).
- Net losses of one type can spill into the other bucket after the same-type gains are exhausted.
- If you still have net capital losses after offsetting all gains, up to $3,000 per year (US, married filing jointly; half that for single filers in some years — verify current law) can offset ordinary income, with excess carried forward indefinitely.
The goal is not to abandon your strategy. You sell the loser, book the loss, and redeploy proceeds into a similar — but not substantially identical — exposure so your allocation stays on plan. Robo-advisors automate this with paired ETFs; self-directed investors can do the same manually once they understand the rules.
The wash-sale rule — the trap most harvesters miss
US tax law disallows a loss if you buy a substantially identical security within 30 days before or after the sale (the “wash-sale window”). The disallowed loss is added to the basis of the replacement shares instead of vanishing — but you lose the immediate offset, which defeats the purpose of harvesting.
What counts as substantially identical is fact-specific, but common safe patterns include:
- Sell Vanguard Total Stock Market (VTI), buy iShares Core S&P Total U.S. Stock (ITOT) — broad overlap but not the same fund.
- Sell an individual stock, wait 31 days, or buy an ETF in the same sector rather than the same ticker.
- Avoid repurchasing the exact same lot in another account (IRA counts) during the window — wash sales can cross accounts under your tax ID.
Crypto sits in a gray zone: the IRS treats many digital assets as property, and historically some practitioners argued wash-sale rules did not apply to crypto because no identical “security” definition matched. Legislation and enforcement evolve; treat aggressive same-coin repurchases as risky. If you harvest SOL or BTC losses, swapping into a different large-cap crypto or waiting out the window is safer than selling and rebuying the same token hours later. Staking rewards add a separate income line — see our Solana staking guide and recent Tax Court staking ruling coverage for why reward income and capital losses are different buckets.
Short-term vs long-term — timing the harvest
Holding period drives tax rate. Assets held more than one year (US) generally qualify for long-term rates; shorter holds are short-term. Harvesting a short-term loss is often more valuable per dollar because it offsets gains taxed at higher ordinary rates — but do not let tax tail wag the investment dog.
Practical scenarios:
- Year-end gain trimming — You realized $10k in long-term gains from rebalancing. Harvest $10k in long-term losses from a lagging sector ETF to net to zero.
- Crypto drawdown after a bull run — You have $5k short-term gains from spring trades and an altcoin bag down $8k. Harvesting the altcoin (with wash-sale caution) can offset the short-term gains plus $3k of wages.
- Carryforward planning — Big losses in a crash year exceed gains; carry the remainder to future years instead of forcing unnecessary sales.
Pair harvesting with the discipline in our portfolio diversification guide: losses are most useful when they come from positions you would trim anyway at rebalancing bands, not from panic-selling core holdings you still believe in.
Where harvesting belongs — and where it does not
Taxable brokerage accounts — yes. Every realized loss can offset taxable gains or the annual ordinary-income allowance.
Traditional IRA / 401(k) / Roth accounts — generally no benefit. Trades inside these accounts do not generate annual capital-gains tax; harvesting there is just trading. Keep tax-location strategy in mind: hold tax-inefficient assets (REITs, active funds, crypto you trade frequently) in sheltered accounts when possible, and hold broad index ETFs in taxable accounts where harvesting adds value.
ETF core portfolios — ideal for systematic harvesting. Broad index ETFs dip together in selloffs; swapping between correlated but non-identical funds after a 15% drawdown is a standard robo-advisor playbook. Our ETF guide covers expense ratios and tax efficiency — harvesting sits on top of that foundation.
Crypto-specific considerations
Digital assets introduce wrinkles equity harvesters rarely face:
- Every swap is a taxable event — Trading SOL for USDC, not just SOL for fiat, can realize gain or loss. Track basis per lot; wallets do not do this for you.
- Staking and yield — Rewards may be ordinary income at receipt (US), even if the token price later falls. A capital loss on sale does not erase income you already owed on rewards.
- DeFi and bridges — Wrapping, LP entry/exit, and airdrops can create dozens of micro-lots. Harvesting without records is guesswork; export CSVs from exchanges and chain explorers.
- Wash-sale ambiguity — Until rules are explicit, avoid rapid rebuys of the same asset after a harvest sale.
- Lost keys and theft — Casualty/theft deductions for crypto are narrow and often disallowed; do not assume a hack equals a harvestable loss without professional advice.
None of this is tax advice. Jurisdictions differ; US readers should confirm current IRS guidance and state treatment. The economic lesson stands: after a drawdown like the June 2026 crypto selloff, many holders sit on harvestable losses — but only if they have documentation and a replacement plan that respects wash-sale logic.
Implementation checklist
- Inventory lots — List every taxable position with purchase date, basis, and current market value. Identify lots underwater by holding period.
- Estimate year-to-date gains — Include mutual fund distributions and crypto trades, not just stock sales.
- Pick harvest candidates — Prefer positions you would sell for investment reasons anyway; avoid harvesting $200 losses that cost $50 in spreads and hours of paperwork.
- Choose replacements — Identify a non-identical substitute or plan a 31-day cash wait before re-entry.
- Check all accounts — Spouse accounts, IRAs, and dividend reinvestment plans can trigger wash sales if they auto-buy the same security.
- Execute before year-end — Settlement must complete in the tax year you want the loss to count; late December trades need T+1 buffer.
- File correctly — Schedule D and Form 8949 (US); carryforward losses on future returns.
Automated platforms rebalance and harvest in one flow; DIY investors often harvest in October–December once gain/loss estimates stabilize. Combining harvesting with dollar-cost averaging works if DCA buys do not re-enter the wash-sale window on a position you just sold.
Costs, benefits, and when to skip it
Benefits are real but bounded. Harvesting $20,000 of losses against $20,000 of short-term gains might save several thousand in tax depending on bracket — meaningful. Harvesting $500 of losses against zero gains only helps via the $3,000 ordinary-income offset; the absolute dollar benefit may not justify transaction costs and complexity.
Skip or defer harvesting when:
- You are in a 0% capital-gains bracket (some low-income years) — gains are already cheap.
- You expect higher future tax rates and would rather realize gains now — the mirror strategy (gain harvesting) sometimes applies for Roth conversions.
- Trading costs and spreads on illiquid altcoins exceed expected tax savings.
- Emotional churn risk — if selling triggers revenge trading, the behavioral cost exceeds the tax alpha.
Position sizing and risk caps from our risk management guide should govern whether you still want the exposure at all — tax optimization never justifies holding a position that fails your thesis.
Common mistakes
- Harvesting in IRAs — No current-year benefit; pointless churn.
- Ignoring the 30-day window — Especially dividend reinvestment on the same ticker.
- Confusing income with capital loss — Staking rewards taxed as income do not become losses when the token price drops.
- Poor lot selection — Selling highest-basis lots (HIFO) vs lowest (FIFO) changes the loss amount; specify lots if your broker allows.
- Forgetting state taxes — Federal offset does not always mirror state rules.
- Chasing tiny losses — Administrative overhead and spread eat the savings.
Key takeaways
- Tax-loss harvesting realizes capital losses in taxable accounts to offset gains and, up to annual limits, ordinary income.
- The wash-sale rule blocks the loss if you rebuy a substantially identical asset within 30 days — plan substitutes or wait.
- Short-term losses are often more valuable per dollar because they offset higher-taxed short-term gains.
- Crypto adds swap-as-sale complexity, staking income separation, and wash-sale uncertainty — document every lot.
- Harvest in service of your allocation plan, not as a substitute for risk management or long-term conviction.
Related reading
- Portfolio diversification and asset allocation — rebalancing bands where harvesting fits naturally
- ETFs explained — tax-efficient cores and substitute funds for wash-sale avoidance
- Dollar-cost averaging explained — scheduling buys without tripping wash sales
- Risk management and position sizing — when to exit regardless of tax optics