Tax-loss harvesting can reduce the tax impact of an investment portfolio, but only when the sale, replacement purchase, tax lot, and holding period are reviewed together. This guide explains how tax-loss harvesting works, how the wash-sale rule can limit a claimed loss, and how to use a repeatable checklist before making a trade.
Overview
Tax-loss harvesting is the process of selling an investment that is below its tax cost basis and using the realized loss to offset eligible capital gains. The investor may then reinvest the proceeds, often in a different investment that serves a similar portfolio purpose. The objective is not simply to sell a declining asset. It is to manage taxes while keeping the portfolio aligned with its intended allocation.
A realized loss is created only after a sale. An unrealized loss—the decline visible in a brokerage account but not yet sold—does not generally provide a tax deduction by itself. Once realized, losses may offset capital gains under the applicable tax rules. Depending on jurisdiction and the investor's situation, unused losses may also be available for future years or may have limited uses against other income. Confirm the treatment for your tax residence before acting.
The main constraint is the wash-sale rule. In the United States, a loss can be disallowed when an investor sells a security at a loss and buys the same or a substantially identical security within the relevant period around the sale. The rule can also involve purchases in another account, a spouse's account, an employer plan, or an option or contract that creates similar exposure. Other countries use different rules, and some do not use the same terminology.
Tax-loss harvesting is therefore a portfolio-management decision, not a reason to trade mechanically. Taxes are one input alongside asset allocation, risk, transaction costs, liquidity, and the possibility that a replacement investment performs differently.
A quick comparison
| Situation | What it means | What to review |
|---|---|---|
| Realized gain | A sale produces proceeds above the relevant tax basis. | Gain amount, short- or long-term classification, and available losses. |
| Realized loss | A sale produces proceeds below the relevant tax basis. | Whether the loss is eligible, reportable, and affected by a wash sale. |
| Replacement investment | A new holding restores some or all of the portfolio exposure. | Similarity, diversification, fees, tracking difference, and trading costs. |
| Holding period | The time an investment was held can affect tax treatment. | Acquisition dates for each tax lot and the applicable local rules. |
| Wash-sale scenario | A replacement purchase may cause some or all of a loss to be disallowed or deferred. | Purchases before and after the sale across all linked accounts. |
Checklist by scenario
Scenario 1: You have realized gains
- Download or review the current tax-lot report from every taxable brokerage account.
- Separate realized gains by the holding-period categories used in your jurisdiction.
- Identify holdings with losses and compare their tax basis with their current market value.
- Estimate how much loss would be needed to offset the gains. Avoid selling more than the portfolio plan supports merely to create a tax result.
- Check whether any earlier or planned purchases could trigger wash-sale treatment.
A tax loss is not automatically valuable at its face amount. Its practical benefit depends on the tax rate, the type of gain it offsets, the timing of the tax payment, and whether the replacement trade changes the portfolio's risk.
Scenario 2: You hold an investment below cost
- Confirm that the holding is in a taxable account. Selling in a tax-advantaged account may have different consequences.
- List every tax lot, including its purchase date, quantity, basis, and estimated gain or loss.
- Ask whether the investment still fits your target allocation and original thesis.
- If selling, decide in advance whether to use a specific lot, the highest-basis lot, or another method permitted by the broker and tax rules.
- Choose a replacement only after reviewing its exposure, concentration, costs, and potential tax consequences.
For example, an investor might replace a broad-market fund with another fund that provides a different index or portfolio construction approach. The key is to avoid assuming that two investments are safely different—or substantially identical—without checking the holdings, mandate, and applicable guidance.
Scenario 3: You are approaching year-end
- Begin the review early enough to allow for trade execution, settlement, recordkeeping, and professional advice.
- Review trades made during the relevant look-back and look-forward period, not only trades placed in December.
- Search all accounts for purchases of the same or potentially substantially identical security, including automatic reinvestments and recurring contributions.
- Record the sale date, quantity, proceeds, basis, realized loss, replacement security, and account used.
- Recheck the final brokerage tax documents against your own trade log.
Year-end planning should also consider whether harvesting would interrupt a rebalancing plan. The portfolio allocation and rebalancing checklist can help keep tax decisions connected to the investor's wider risk plan.
What to double-check
Tax lots and basis
Do not rely only on an account's headline gain or loss. Verify the cost basis for each lot, especially after transfers, corporate actions, reinvested distributions, partial sales, or holdings moved between institutions. Ask the broker how it will identify lots and whether your instruction was recorded.
All related accounts
A wash-sale review may need to include taxable accounts, retirement accounts, a spouse's account, managed portfolios, automatic dividend reinvestment, employee plans, and standing investment instructions. A purchase that seems unrelated to the sale can matter if it involves the same or a substantially identical security under the applicable rules.
Replacement exposure
Compare the proposed replacement's asset class, geographic exposure, sector concentration, duration, credit risk, liquidity, expense structure, and tracking approach. A tax benefit is not a good trade if the replacement creates an unintended portfolio risk. Investors using funds can also review the ETF comparison guide before selecting an alternative.
Holding period and future tax impact
A replacement purchase starts a new holding period for that investment. If a wash sale applies, the loss may be deferred and attached to the replacement position's basis rather than permanently eliminated, but the details depend on the transaction and jurisdiction. Keep documentation rather than assuming the brokerage statement tells the entire story.
Professional review
Coordinate with a qualified tax professional when the portfolio includes options, short sales, digital assets, partnership interests, employee stock, multiple jurisdictions, or retirement-account transactions. Rules can change, and brokerage reporting may not identify every related-account issue.
Common mistakes
- Chasing losses: Selling an investment solely because it fell can turn a tax exercise into an unplanned change in strategy.
- Ignoring automatic purchases: Dividend reinvestment and recurring contributions can create a replacement purchase without a new manual order.
- Using an overly similar substitute: A different ticker does not necessarily mean a different security for wash-sale purposes.
- Forgetting transaction costs: Commissions, spreads, fund costs, and market movement can reduce or outweigh the expected tax benefit.
- Harvesting inside the wrong account: Tax treatment differs between taxable and tax-advantaged accounts.
- Counting an unrealized loss: The loss usually must be realized through a qualifying sale before it can be considered in tax planning.
- Failing to record the decision: Save trade confirmations, lot selections, calculations, and the reason for the replacement choice.
Tax-loss harvesting should also be considered alongside broader financial priorities. Investors carrying expensive debt may find that paying down balances is more valuable than optimizing a taxable portfolio; a debt payoff plan can help compare those uses of cash.
When to revisit
Use this checklist during quarterly portfolio reviews, after a material market decline, before year-end tax planning, and whenever a new account or automatic investment instruction is added. Revisit it after changing brokers, transferring securities, receiving employer stock, or beginning to trade options or digital assets.
At each review, update four items: the current tax-lot file, realized gains and losses, purchases across linked accounts, and the portfolio's target allocation. Then ask:
- Has the investment thesis changed, or is the proposed sale tax-driven only?
- Which gains could eligible losses offset under the current rules?
- Could a purchase before or after the sale create a wash-sale issue?
- Does the replacement maintain the intended risk and diversification?
- Are the records complete enough for a tax professional to verify?
Tax rules, reporting practices, and thresholds can change, so confirm jurisdiction-specific details for the relevant tax year. When the transaction is complex or the potential tax consequence is material, pause before trading and obtain professional advice. The best tax-loss harvesting strategy is one that reduces avoidable tax friction without compromising the investment plan.