Tax-loss harvesting can help reduce the tax impact of investment gains without abandoning a long-term plan. This guide explains how tax-loss harvesting works, what to track, how wash-sale rules affect stocks and ETFs, and how to run a year-end review without allowing tax savings to push your portfolio away from its intended allocation.
Overview
Tax-loss harvesting is the process of selling an investment in a taxable account for less than its adjusted cost basis and using the realized loss to offset eligible capital gains. The proceeds can then be reinvested in another investment that serves a similar portfolio purpose, provided the replacement does not create an unintended wash sale.
The strategy applies to realized losses, not simply to positions that are currently below their purchase price. An unrealized loss exists on paper until the position is sold. Once sold, the result becomes a realized gain or loss for tax reporting purposes.
Tax-loss harvesting is not automatically beneficial. A sale may reduce a current tax bill, but it can also create trading costs, change market exposure, produce a future taxable gain, or leave an investor out of a desired market segment. The decision should begin with the portfolio's allocation and investment horizon, not with taxes alone.
This article uses a general U.S. federal-tax framework. Tax rules, filing thresholds, state treatment, brokerage reporting, and deadlines can change. Review the rules for the relevant tax year and consider qualified tax advice for complicated transactions.
What to track
Realized and unrealized results
Start with a position-level inventory of taxable holdings. Record the security, number of shares, purchase date, adjusted cost basis, current value, unrealized gain or loss, and whether the position has already been sold during the tax year. Include holdings across taxable brokerage accounts, not just one account, because a wash-sale issue can arise when a replacement purchase occurs elsewhere.
Brokerage estimates are useful, but they are not always a complete tax record. Reinvested dividends, multiple lots, corporate actions, transfers, inherited assets, and securities moved between firms can affect basis. Compare the account's information with trade confirmations and prior tax documents.
Short-term versus long-term gains and losses
The holding period matters. Short-term gains and losses generally receive different tax treatment from long-term gains and losses. In many situations, using a short-term loss against a short-term gain can be especially relevant because short-term gains may be taxed at ordinary income rates. Tax rules apply ordering conventions, so do not assume that a loss can be matched however you prefer.
List expected realized gains by holding period, then list potential losses. If losses exceed gains, net capital losses may generally offset a limited amount of other income under federal rules, with unused losses carried forward to future years. Confirm the applicable limit, filing status, and state treatment for the year being reviewed.
Wash-sale exposure
A wash sale can disallow a loss when an investor sells a security at a loss and buys the same or a substantially identical security within the relevant window around the sale. The commonly used window covers 30 days before and 30 days after the sale, but the exact tax consequences depend on the transaction. A replacement purchase in an IRA or another account can also create complications.
For ETFs, buying a different fund is not automatically safe or automatically prohibited. Two funds tracking the same broad market may be viewed differently from two share classes of the same fund, but investors should not rely on a ticker change alone. When in doubt, choose a genuinely different investment exposure or ask a tax professional.
| Item | What it means | What to check |
|---|---|---|
| Unrealized loss | The holding is below its adjusted basis but has not been sold. | Whether selling fits the allocation and tax plan. |
| Realized loss | The position was sold below its adjusted basis. | Trade date, proceeds, basis, and tax-lot selection. |
| Short-term loss | Loss from an asset held for the shorter holding period under tax rules. | Potential interaction with short-term gains. |
| Long-term loss | Loss from an asset held for the longer holding period under tax rules. | Potential interaction with long-term gains and carryforwards. |
| Wash sale | A loss may be disallowed after a substantially identical replacement purchase. | Transactions in every account during the surrounding window. |
| Carryforward | An unused net capital loss retained for a future tax year. | Prior returns and the remaining balance before selling more assets. |
Cadence and checkpoints
A practical tax-loss harvesting process can be completed in five steps:
- Scan taxable holdings. Export or review positions with unrealized losses, then group them by security, tax lot, holding period, and account.
- Estimate the tax effect. Compare potential losses with realized gains, prior-year carryforwards, expected income, and any applicable state considerations. A loss has value only if it can be used under the relevant rules.
- Check the investment decision. Ask whether the position still belongs in the portfolio. If it does, define the target exposure before selling so the tax action does not become an unplanned market-timing decision.
- Select a replacement. Choose an investment with a suitably different structure or index exposure that preserves the intended diversification without being substantially identical. Check expense ratios, concentration, liquidity, and risk.
- Document and monitor. Save confirmations, basis information, the reason for the trade, and the date on which the wash-sale monitoring period ends. Review the replacement afterward and decide whether to keep it, switch back, or rebalance.
Review the portfolio at least quarterly and again before the tax-year deadline. A market decline can create harvesting opportunities at any time, but rushing near year-end increases the chance of missing settlement, overlooking another account, or buying a replacement too soon.
How to interpret changes
The most important question is not “How large is the loss?” but “What does the loss accomplish?” A larger realized loss may be less useful if the investor has no gains, already holds substantial carryforwards, or expects to need the money soon. Conversely, a modest loss may be useful when it offsets a gain that would otherwise produce a meaningful tax liability.
Consider the trade-off between immediate tax savings and portfolio drift. Selling a technology ETF and replacing it with a broad-market ETF may reduce concentration, but it also changes exposure. Selling an individual stock and replacing it with a sector fund may preserve an industry theme while reducing company-specific risk. The replacement should be evaluated using the same discipline applied to any investment: diversification, fees, liquidity, volatility, and fit with the target allocation.
Also account for future taxes. A replacement bought at a lower price can produce a larger taxable gain if it later appreciates. Tax deferral is not the same as permanent tax elimination. The value of harvesting depends on the investor's current and expected future tax situation, holding period, charitable plans, estate considerations, and need for liquidity.
When to revisit
Use this checklist at the start of each quarter, after a sharp market decline, when receiving a large capital gain, and during year-end planning:
- Review every taxable account and confirm adjusted cost basis.
- Separate realized gains and losses by holding period.
- Update capital-loss carryforwards from prior tax returns.
- Check purchases made in the 30 days before and after any proposed loss sale.
- Include automatic dividend reinvestment and recurring investment plans in the wash-sale review.
- Confirm current federal and state rules, reporting forms, and tax-year deadlines.
- Recheck the replacement investment after the monitoring period and rebalance only if it still fits the plan.
Keep a simple annual log with sale dates, lots sold, proceeds, basis, replacement trades, and carryforward amounts. That record makes tax preparation easier and gives the next quarterly review a reliable starting point. Tax-loss harvesting should support a written investment plan—not replace one—and professional advice is appropriate when transactions involve options, partnerships, inherited assets, retirement accounts, spouses, or several brokerage firms.