Tax-loss harvesting can turn an investment loss into a useful tax-planning decision without abandoning a long-term strategy. This guide explains how tax-loss harvesting works, how to estimate its potential value, how to choose replacement investments, and how to avoid common wash-sale mistakes. The examples are illustrative and use general U.S. taxable-account concepts; check the rules that apply to your country, account type, and tax year before trading.
Overview
Tax-loss harvesting is the process of selling an investment that is worth less than its adjusted cost basis and using the realized loss to help offset taxable investment gains. The proceeds can then be reinvested in an asset that preserves your intended portfolio exposure, provided the transaction does not create an unacceptable wash-sale risk.
A simple example: you bought an investment for $10,000 and its adjusted cost basis is still $10,000. If you sell it for $7,500, you have a $2,500 realized capital loss before accounting for transaction details. That loss may be used against eligible realized gains under the tax rules that apply to you. If losses exceed gains, some jurisdictions may allow part of the remaining loss to offset other income or be carried forward, subject to applicable limits and requirements.
Harvesting is not automatically beneficial. A tax saving today may be offset by a future tax bill, trading costs, a different holding period, or the risk of moving out of the market. The decision should begin with portfolio needs, not with the tax result alone. Review your investment policy, risk tolerance, and asset allocation before selling.
Tax-loss harvesting generally applies to taxable accounts, not tax-deferred or tax-free accounts in the same way. It also does not make an unsuitable investment suitable. For broader portfolio decisions, compare the process with your portfolio rebalancing rules and long-term allocation plan.
How to estimate
Use a repeatable four-step process rather than reacting to a single market decline.
- List unrealized losses. Export holdings from each taxable account and record the security, number of shares, adjusted cost basis, current value, and estimated unrealized loss. Confirm whether the account uses specific-lot identification, average cost, or another basis method.
- Estimate realized gains and losses. Add completed sales for the tax year. Separate short-term and long-term transactions where your tax reporting distinguishes them. Include distributions or other items that may affect your estimate, and compare the result with your tax records.
- Estimate the potential tax effect. A simplified estimate is: usable loss × applicable marginal tax rate. This is only a planning estimate. The actual result can depend on the type of gain, income level, deductions, filing status, state or local taxes, carryforward rules, and changes to tax law.
- Choose a replacement and document the trade. Decide whether to buy a similar but not substantially identical investment, wait outside the relevant review period, or leave the proceeds in cash temporarily. Record the sale date, purchase date, basis, proceeds, replacement security, and wash-sale review.
Do not treat the estimated tax benefit as guaranteed cash. A harvested loss can reduce the tax cost of gains, but selling may also create commissions, bid-ask spreads, fund expenses, or a period of unwanted market exposure.
Replacement-asset options
| Replacement approach | Potential use | Main caution |
|---|---|---|
| Different fund tracking a similar market segment | Maintain broad exposure while changing the investment vehicle | Check whether the two holdings could be treated as substantially identical under applicable rules |
| Another security in the same asset class | Keep a target allocation while reducing single-security or fund-specific exposure | Correlation may be lower than expected, changing portfolio behavior |
| Temporary cash or short-term holding | Avoid an immediate replacement when the wash-sale analysis is unclear | Missing a market rebound can affect long-term results |
| Planned portfolio rebalance | Use the sale to move toward a documented target allocation | Do not let taxes override diversification or risk controls |
The wash-sale rule is a frequent source of mistakes. Broadly, it can restrict recognition of a loss when you sell an investment and acquire the same or a substantially identical investment within the applicable period. The review may need to include purchases in other taxable accounts, automatic dividend reinvestments, recurring contributions, spouse or partner accounts, and transactions involving options or similar instruments. Rules differ by jurisdiction, so do not rely on a ticker change alone as proof that the risk has been removed.
Inputs and assumptions
Before calculating, gather complete and consistent inputs. A brokerage display may not contain every adjustment needed for tax reporting, particularly after transfers, corporate actions, inherited assets, reinvested distributions, or securities acquired through more than one account.
- Security and lot: name, identifier, quantity, acquisition date, and selected tax lot.
- Adjusted cost basis: basis after reinvested distributions, splits, mergers, or other adjustments.
- Expected sale proceeds: estimated price multiplied by quantity, less relevant fees and costs.
- Existing tax position: realized short-term gains, long-term gains, realized losses, and any carryforwards.
- Replacement plan: proposed security, purchase date, allocation role, and reason it fits the portfolio.
- Account review: taxable accounts and any related accounts where automatic purchases could create wash-sale exposure.
Use this worksheet for each candidate transaction:
| Field | Record |
|---|---|
| Security and account | ____________________________ |
| Sale date and quantity | ____________________________ |
| Adjusted cost basis | $__________________________ |
| Estimated sale proceeds | $__________________________ |
| Estimated realized gain or loss | $__________________________ |
| Existing gains and losses for the year | $__________________________ |
| Replacement investment and purchase date | ____________________________ |
| Other-account purchase check completed? | Yes / No |
| Notes and supporting documents | ____________________________ |
Worked examples
Example one: partial offset. Assume an investor has a $4,000 eligible realized gain and identifies a separate holding with a $2,500 unrealized loss. Selling that lot would create a $2,500 realized loss, leaving an estimated net gain of $1,500 before other tax items. The investor could then select a replacement that supports the same target allocation, after reviewing wash-sale risk and trading costs.
Example two: losses larger than gains. Assume the investor has no realized gains and sells a position at a $6,000 loss. The loss may not produce an immediate, dollar-for-dollar tax benefit. Depending on the applicable rules, part may be available against other income and the remainder may carry forward. The investor should record the loss carefully and confirm how it must be reported rather than assuming the entire amount can be used at once.
Example three: automatic reinvestment risk. An investor sells a fund at a loss but an automatic dividend reinvestment buys the same fund in a related account during the relevant period. That purchase may create a wash-sale issue or adjust the recognized loss. Before selling, pause or review automatic purchases and recurring contributions, then preserve the confirmation statements for tax records.
These examples show why tax-loss harvesting is a coordination exercise. The best trade may be different for an investor focused on maintaining market exposure, one preparing for a planned rebalance, and one who expects to need the money soon. For allocation decisions, a diversified ETF portfolio framework can help distinguish a tax-driven trade from a strategic investment choice.
When to recalculate
Revisit the analysis after a substantial market decline, before the end of the tax year, after receiving updated brokerage tax-lot information, and when preparing your tax return. Also recalculate after a gain-producing sale, a change in income, a portfolio rebalance, or a change in automatic investment instructions. Tax rules, brackets, contribution limits, reporting requirements, and wash-sale guidance can change, so confirm the current rules for the relevant tax year.
Use this tax-loss harvesting checklist:
- Review taxable-account holdings and identify losses by lot.
- Confirm adjusted basis and acquisition dates.
- Estimate realized gains, losses, and available carryforwards.
- Calculate potential tax impact using clearly stated assumptions.
- Check related accounts, recurring purchases, reinvestments, options, and similar transactions.
- Select a replacement that fits the portfolio, not merely one that looks different.
- Compare expected tax value with spreads, fees, market exposure, and complexity.
- Save confirmations, basis records, and the replacement-investment rationale.
- Ask a qualified tax professional about uncertain or complex transactions.
Finally, review whether the harvested position still belongs in your investment plan. Tax management works best when it supports a disciplined allocation, emergency reserve, and long-term objective. It should not encourage unnecessary trading or replace a broader review of risk, diversification, and withdrawal needs. Investors planning retirement may also wish to coordinate taxable-account decisions with a sustainable retirement withdrawal strategy.