Tax-Loss Harvesting Guide: Rules, Workflow, and Portfolio Replacement Ideas
tax planningcapital gainstax-loss harvestingwash sale ruletaxable investing

Tax-Loss Harvesting Guide: Rules, Workflow, and Portfolio Replacement Ideas

MMarket Insight Lab
2026-11-19
8 min read

Learn how to harvest investment losses, estimate the tax benefit, avoid wash-sale issues, and choose replacement securities without losing portfolio discipline.

Tax-loss harvesting can turn an investment loss into a tax-planning decision without abandoning your portfolio’s intended exposure. This guide explains a repeatable workflow for identifying eligible tax lots, estimating the potential benefit, avoiding wash-sale problems, choosing replacement investments, and deciding when the strategy is not worth the cost or tracking error.

Overview

Tax-loss harvesting is the sale of an investment held in a taxable brokerage account for less than its tax basis. The realized capital loss may offset realized capital gains, subject to applicable tax rules. If losses exceed gains, some of the remaining loss may be usable against other income, with additional losses generally carried forward under the rules that apply to the taxpayer.

The purpose is not to make a losing investment disappear. It is to realize a tax loss while maintaining a portfolio that still matches your asset-allocation plan. That usually means selling one security and purchasing another investment with similar economic exposure, but not one that is considered substantially identical under the wash-sale rules.

Tax-loss harvesting is most useful when three conditions overlap:

  • You have an unrealized loss in a taxable account.
  • You have realized gains, expect to realize gains, or have a reason to use a permitted loss against other income.
  • The expected tax benefit is greater than trading costs, fund expenses, bid-ask spreads, and the risk that the replacement investment behaves differently.

This is different from selling an investment solely because its outlook has deteriorated. Tax considerations should support, not override, your investment plan. Review the decision alongside your broader asset allocation strategy and any planned rebalancing.

How to estimate

Begin with tax lots rather than the account’s total position. A single purchase may contain multiple lots with different dates, quantities, and cost bases. Your brokerage may display an unrealized gain or loss, but its figure may not include every tax consideration, such as reinvested distributions, transferred assets, prior wash-sale adjustments, or lots held at another institution.

  1. List candidate lots. Record the security, quantity, purchase date, adjusted cost basis, current value, and unrealized gain or loss for each lot.
  2. Separate gains by holding period. Identify whether a gain or loss is short-term or long-term under the applicable tax rules. Holding period can affect how gains and losses are netted and how valuable a particular loss may be.
  3. Estimate the tax position before the sale. List realized short-term gains, realized long-term gains, expected year-end gains, prior capital-loss carryforwards, and any planned sales of appreciated assets.
  4. Calculate the gross loss. A basic estimate is: adjusted cost basis of the selected lots minus sale proceeds, adjusted for allowable transaction costs. Confirm the result using your brokerage’s tax-lot records.
  5. Estimate the possible tax value. The loss does not have one universal cash value. Its value depends on the gains it offsets, the investor’s tax situation, the timing of future gains, and whether the loss is carried forward. Treat the result as an estimate, not a guaranteed refund.
  6. Compare the benefit with implementation costs. Include commissions if any, bid-ask spreads, fund expense differences, taxes on distributions, and the possible cost of tracking a different benchmark.
  7. Choose a replacement before selling. Decide how the portfolio will maintain its target exposure and document the reason the replacement is not substantially identical.
  8. Monitor the entire 61-day window. The wash-sale window generally includes the 30 days before the sale, the sale date, and the 30 days after it. Check all accounts and any automatic investment or dividend-reinvestment instructions that could purchase the original security.

A simple decision rule is to proceed only when the estimated tax value is comfortably greater than the all-in cost and the replacement fits the portfolio. Avoid making the decision based solely on the size of the displayed loss.

Taxable-account situationPossible replacement approachMain trade-off
Broad stock fund with a lossUse a different broad-market fund with a comparable, but not substantially identical, mandateExposure may differ by index, holdings, sector weights, and tracking error
Single company stock with a lossUse a diversified sector or industry fund if it fits the portfolioThe replacement will not replicate company-specific risk or return
Sector fund with a lossUse another fund covering a related sector, preferably with a distinct methodologyFund structures and holdings may be similar enough to require careful review
Bond fund with a lossConsider a fund with a comparable duration and credit profile but a different portfolio or mandateYield, duration, credit exposure, and tax treatment may change
Loss but no current gainsHarvest only if future use, carryforward value, and portfolio maintenance justify itThe tax benefit may be delayed, while the replacement can introduce tracking risk

Inputs and assumptions

Use a worksheet with five groups of inputs: tax lots, realized activity, account restrictions, replacement choices, and implementation costs.

Tax-lot information

Capture acquisition date, number of shares, original cost, adjusted basis, current market value, and whether the lot has already been affected by a wash-sale adjustment. Select specific lots when your brokerage permits it, and confirm that the trade confirmation reflects the intended selection. If no specific identification is made, the broker’s default lot method may produce a different taxable result.

Tax position

Record realized short-term and long-term gains and losses separately. Include prior-year capital-loss carryforwards and planned sales before year-end. A 1099-B can help reconcile proceeds and basis, but it is not a substitute for reviewing the complete transaction history. Realized sales are commonly reported through Form 8949 and Schedule D, although the appropriate forms depend on the taxpayer’s circumstances.

Wash-sale review

Search for purchases of the same or a substantially identical security in every account you control, including automatic contributions and dividend reinvestment. Be especially cautious when the same investment appears in a spouse’s account or in an individual retirement account. Brokerage reporting may not capture every cross-account transaction, and tax treatment can differ depending on the account involved.

There is no universal list that determines whether two securities are substantially identical in every situation. Compare the issuer, fund structure, holdings, objective, index, and other relevant characteristics. When the distinction is uncertain, ask a qualified tax professional before trading.

Costs and portfolio assumptions

Estimate the spread between the buy and sell prices, commissions, fund expense ratios, potential redemption charges, and the cost of switching back later. Also note the intended holding period, target allocation, rebalancing schedule, and acceptable tracking error. A replacement that is slightly different can be reasonable; a replacement that changes the portfolio’s risk profile is a separate investment decision.

Worked examples

Example 1: Loss offsets a realized gain. Suppose an investor has a taxable position with an adjusted basis of $12,000 and estimated sale proceeds of $9,000. Before costs, the realized loss is $3,000. The investor also has a realized gain from another taxable investment. Selling the losing position may allow the loss to offset gains under the applicable netting rules. The investor replaces the position with a comparable fund that provides the desired broad-market exposure but has a different portfolio construction. The decision still requires a wash-sale review and a comparison of expense ratios and tracking differences.

Example 2: Loss with no current gains. Another investor has a $2,400 unrealized loss but no realized gains. The loss could have value in a later year, subject to the rules and the investor’s tax situation, but the benefit is delayed. If selling creates a wide spread, changes sector exposure, or leaves the investor out of the market during a sharp rebound, harvesting may not be worthwhile. The investor could instead keep the position, or harvest only part of it if there is a clear portfolio or tax reason.

Example 3: Multiple lots. An investor owns three lots of the same fund: one with a large loss, one near breakeven, and one with a gain. Selling only the loss lot may produce the intended tax result while preserving the older or more favorable lots. The investor should use specific-lot instructions and verify the confirmation. If the security is repurchased within the wash-sale window, some or all of the loss may be disallowed and added to the basis of the replacement shares.

These examples illustrate the process, not a promised tax outcome. The actual result depends on tax jurisdiction, filing status, income, holding periods, basis records, other transactions, and future sales.

When to recalculate

Review the analysis after a meaningful market decline, before selling an appreciated asset, during year-end tax planning, and whenever your income or filing circumstances change. Recalculate if you transfer an account, change dividend-reinvestment settings, add recurring purchases, or move holdings between taxable and retirement accounts.

Update the worksheet when brokerage tax-lot information changes, a replacement fund changes its objective or structure, or trading costs and fund expenses change. Revisit the portfolio impact after the replacement trade and again when the wash-sale window closes. If you later sell the replacement, remember that a disallowed loss can change its adjusted basis and holding period.

Before acting, use this checklist:

  • Confirm the account is taxable and identify the exact lots to sell.
  • Reconcile realized gains, losses, and carryforwards.
  • Search all relevant accounts for purchases during the wash-sale window.
  • Select a replacement that preserves the intended allocation without creating an avoidable substantially identical position.
  • Estimate spreads, fees, expense differences, and tracking error.
  • Save trade confirmations, lot reports, and the reasoning behind the replacement.
  • Ask a tax professional about uncertain wash-sale questions, unusual basis records, retirement-account transactions, or significant dollar amounts.

Tax-loss harvesting is best treated as an annual portfolio-management process rather than a reaction to every down day. Repeating the same inputs—tax lots, gains, losses, costs, replacement exposure, and wash-sale checks—helps keep the decision tax-aware without allowing tax considerations to dictate the entire investment strategy.

Related Topics

#tax planning#capital gains#tax-loss harvesting#wash sale rule#taxable investing
M

Market Insight Lab

Investing and Personal Finance Editor

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.