Building a taxable investment portfolio is not only about generating returns. Taxes can materially affect how much of those returns remain available for reinvestment, particularly when a portfolio produces substantial capital gains through rebalancing, security sales, or other taxable transactions.
Tax-loss harvesting (TLH) is a strategy that can help investors manage this tax liability. It involves selling an investment that has declined in value and realizing the capital loss, which may then be used to offset realized capital gains under applicable tax rules.
However, effective tax-loss harvesting requires more than finding investments that have fallen in value. Investors must consider holding periods, capital-gain netting rules, the wash-sale rule, replacement securities, automatic purchases, and transactions across related accounts.
How Tax-Loss Harvesting Works
A capital loss occurs when an investment is sold for less than its adjusted tax basis.
For example, suppose an investor purchased shares for $20,000 and later sells them for $15,000. The transaction generally creates a $5,000 realized capital loss.
That loss can potentially offset capital gains realized elsewhere in the taxable portfolio.
Short-Term and Long-Term Gains
Capital gains and losses are generally classified according to the holding period of the investment.
- Short-term: Generally applies to assets held for one year or less.
- Long-term: Generally applies to assets held for more than one year.
The tax calculation generally nets short-term gains and losses separately from long-term gains and losses before applying the applicable cross-netting rules.
This distinction matters because long-term capital gains can receive preferential federal tax rates, while short-term gains are generally taxed at ordinary income tax rates.
Consequently, realizing a short-term capital loss may be particularly useful when an investor has short-term gains that would otherwise be taxed at ordinary income rates.
The $3,000 Capital-Loss Deduction
If total capital losses exceed total capital gains for the year, individuals can generally deduct up to $3,000 of net capital losses against ordinary income.
For married taxpayers filing separately, the annual limit is generally $1,500.
Losses exceeding the applicable annual deduction limit can generally be carried forward to future tax years.
For example, an investor with $20,000 of net capital losses and no capital gains may generally use $3,000 against ordinary income in the current year, with the remaining $17,000 carried forward, subject to the applicable rules.
This makes tax-loss harvesting potentially useful beyond the current tax year.
The Wash-Sale Rule
The most important compliance issue in tax-loss harvesting is the wash-sale rule.
Under the federal tax rules, a loss can be disallowed when an investor sells or otherwise disposes of stock or securities at a loss and acquires substantially identical stock or securities within the applicable 61-day period.
The period includes:
- The 30 days before the loss sale
- The day of the sale
- The 30 days after the sale
The rule is designed to prevent an investor from claiming a tax loss while effectively maintaining the same investment position through a substantially identical purchase.
Why Automatic Purchases Matter
An investor does not necessarily have to manually repurchase the security to trigger a wash sale.
Automatic dividend reinvestment, recurring investment programs, or scheduled purchases can create an unexpected purchase inside the wash-sale period.
For example, an investor could sell an ETF at a loss in a taxable brokerage account and unintentionally trigger a wash sale if an automatic dividend reinvestment purchases additional shares of the same ETF shortly afterward.
Before harvesting a loss, review recurring transactions throughout the relevant accounts.
Wash Sales Across Accounts
Tax-loss harvesting cannot always be evaluated by looking at one brokerage account in isolation.
Transactions involving accounts owned by the investor, and in certain circumstances transactions involving a spouse, can affect the wash-sale analysis.
This is particularly important when the same security appears in:
- Taxable brokerage accounts
- Joint brokerage accounts
- Spousal accounts
- Traditional IRAs
- Roth IRAs
- Other investment accounts
Purchases inside an IRA deserve particular attention. If substantially identical securities are acquired in an IRA in connection with a loss sale in a taxable account, the loss can be disallowed, and the usual cost-basis adjustment available for a purchase in a taxable account does not necessarily apply.
This can make automatic IRA contributions particularly important to review before harvesting losses.
What Happens When a Wash Sale Occurs?
A wash sale generally does not mean the economic investment loss disappears.
For a qualifying replacement purchase in a taxable account, the disallowed loss is generally added to the basis of the replacement shares, effectively deferring recognition of the loss.
The result is different from achieving the immediate tax benefit originally intended by the investor.
For transactions involving retirement accounts, however, the tax consequences can be less favorable because the loss may not receive the same basis adjustment treatment.
Investors should therefore review transactions across all relevant accounts before executing a tax-loss harvesting strategy.
Choosing Replacement Investments
After selling an investment at a loss, an investor may want to maintain a similar asset allocation without purchasing a substantially identical security.
This is where replacement securities become important.
For example, an investor selling one broad U.S. equity ETF might consider another fund with a different underlying index or methodology.
The goal is to preserve the desired market exposure while avoiding a purchase that could be treated as substantially identical.
However, the IRS does not provide a comprehensive list defining every pair of securities that is or is not substantially identical.
Therefore, investors should avoid treating differences in ticker symbols or fund providers as automatic protection from the wash-sale rule.
Maintaining Portfolio Exposure
Tax-loss harvesting does not necessarily require an investor to remain in cash for 30 days.
A common approach is to replace the sold security with an investment that provides similar, but not necessarily identical, economic exposure.
For example, an investor harvesting a loss in one large-cap U.S. equity fund might consider another diversified large-cap or broader-market fund with materially different underlying holdings or tracking methodology.
The replacement should be evaluated based on:
- Asset-class exposure
- Investment objective
- Index methodology
- Portfolio holdings
- Expense ratio
- Tracking characteristics
- Tax implications
- Wash-sale considerations
The objective is not simply to find something with a different name. The investor needs to consider whether the replacement provides the desired portfolio exposure without creating an avoidable tax problem.
Specific Identification and Tax Lots
Investors who accumulate shares over many purchases can potentially improve tax management by using specific identification when selling.
Suppose an investor owns the same ETF purchased through several transactions:
| Tax Lot | Purchase Cost | Current Value |
|---|---|---|
| Lot A | $8,000 | $10,500 |
| Lot B | $9,500 | $10,500 |
| Lot C | $12,000 | $10,500 |
Selling Lot C would generally realize a $1,500 loss, while selling Lot A would create a $2,500 gain.
When permitted by the brokerage and properly documented, specific-lot identification can give the investor greater control over which tax consequences are realized.
Investors should confirm that the brokerage actually uses the selected tax lot when processing the sale.
Managing Automatic Reinvestment
Before executing tax-loss harvesting, review automatic transactions.
Potential sources of unintended purchases include:
- Dividend reinvestment plans
- Automatic ETF purchases
- Recurring brokerage contributions
- Automatic retirement contributions
- Scheduled transfers into investment accounts
- Purchases made by another account owner
If a security is being harvested, temporarily reviewing or changing automated purchases may help prevent an accidental wash sale.
The relevant purchase window should be considered both before and after the loss sale.
A Structured Tax-Loss Harvesting Process
1. Review Unrealized Losses
Identify taxable investments whose current market value is below their adjusted tax basis.
Focus on individual tax lots rather than simply looking at the total position.
2. Identify Existing Capital Gains
Review realized and expected gains for the tax year.
Determine whether the portfolio contains short-term gains, long-term gains, or both.
3. Check the Wash-Sale Window
Review purchases during the previous 30 days and planned purchases during the following 30 days.
Include relevant accounts rather than limiting the review to one brokerage account.
4. Select the Tax Lot
Where available, use specific identification to determine which shares will be sold.
Confirm the broker's execution and cost-basis records.
5. Evaluate a Replacement Security
If maintaining market exposure is important, identify a replacement investment that fits the portfolio's asset-allocation objectives without creating an avoidable wash-sale issue.
6. Maintain Detailed Records
Keep records of:
- Purchase dates
- Purchase prices
- Tax lots
- Sale dates
- Sale proceeds
- Replacement purchases
- Cost-basis adjustments
- Capital gains and losses
Brokerage tax forms can assist with reporting, but investors remain responsible for accurately reporting their transactions.
When Tax-Loss Harvesting May Not Make Sense
Tax-loss harvesting is not automatically beneficial for every investor or every transaction.
Selling an investment can create transaction costs, spreads, portfolio changes, and potential exposure to a market rebound.
An investor should also consider whether the replacement investment continues to satisfy the original investment objective.
Tax considerations should not be the only reason to sell an investment that otherwise fits a long-term strategy.
For investors with substantial portfolios, concentrated positions, multiple brokerage accounts, or complicated tax circumstances, professional tax advice may be appropriate.
The Bottom Line
Tax-loss harvesting can help taxable investors manage capital gains by realizing qualifying investment losses and using them to offset gains under applicable federal tax rules.
The strategy becomes more complicated when multiple accounts, automatic purchases, retirement accounts, and similar investment products are involved.
The key principles are straightforward: understand your tax lots, distinguish short-term from long-term gains and losses, monitor the wash-sale period, carefully evaluate replacement securities, and maintain accurate records.
When implemented as part of a broader tax-efficient investment strategy, tax-loss harvesting can potentially reduce current tax liabilities while allowing an investor to maintain a long-term portfolio structure.
References
- Internal Revenue Service (IRS) — Capital gains and losses, wash-sale rules, investment income, and federal tax reporting.
- IRS Publication 550: Investment Income and Expenses — Detailed guidance concerning investment income, capital gains and losses, and wash sales.
- FINRA — Investor education resources concerning investment accounts, tax considerations, and portfolio management.