Tax-Loss Harvesting Basics
Tax-loss harvesting means selling a security at a loss to realize that loss for tax purposes, then buying a replacement position to keep the portfolio’s exposure aligned with your goals. The realized loss can offset realized capital gains, and if losses exceed gains, the excess can offset up to a limited amount of other income under U.S. federal rules.
For example, if you sold a taxable account holding for a $3,000 loss and you had $1,200 of capital gains from other sales, the $3,000 loss first offsets the $1,200 gain. The remaining $1,800 loss can reduce taxable income up to the annual limit for capital loss deductions, with any additional loss carried forward to future years.
Harvesting is usually most relevant in taxable brokerage accounts, because tax rules for retirement accounts differ and many investors cannot realize capital gains or losses in the same way inside tax-deferred or tax-exempt wrappers. A practical detail: if you use a tool like a brokerage “tax lots” view, you’ll often see gains and losses by lot, which is where harvesting decisions start.
Common Mistakes And Pain Points
Many investors treat harvesting like a free tax refund, then run into constraints that are easy to miss when you focus only on the loss amount. The wash-sale rule is the most common trap: if you sell a security at a loss and buy a “substantially identical” security within a short window, the loss may be disallowed and added to the cost basis of the replacement.
Under U.S. wash-sale rules, the disallowance window is generally 30 days before and 30 days after the sale date. That window can catch you even when you intend to “rebalance later,” or when an automatic reinvestment plan buys shares during the restricted period. I’ve seen investors get surprised by dividend reinvestment in the same fund family, which can create a wash sale even when the investor did not place a deliberate buy order.
Another pain point is confusing realized losses with unrealized losses. Harvesting requires a sale to realize the loss; holding a position underwater does not create a tax benefit. Transaction costs and bid-ask spreads also matter, especially for small accounts or frequent rebalancing schedules.
Finally, investors often ignore the interaction with their broader tax picture. If you have no capital gains to offset and you are not in a bracket where the capital loss deduction meaningfully reduces taxes, the benefit may be delayed through carryforward. That delay can be fine, but it changes how you should evaluate the trade.
How To Harvest Losses Safely
Check Account Type And Tax Lots
Start by confirming where the trades occur. In U.S. taxable brokerage accounts, realized capital gains and losses generally flow into your Form 1040 reporting. In IRAs and other retirement accounts, the tax treatment differs because gains and losses typically do not trigger annual capital gains tax in the same way.
Next, use tax-lot accounting to identify which lots are at a loss. Many brokerages show “specific identification” options for cost basis; if your plan supports it, you can choose the lots that create losses without selling the entire position. A small aside: on some platforms, the tax-lot selector appears only after you switch the order type to “sell shares” and open the “cost basis” details panel.
Realistic outcome expectation: if you harvest $5,000 of net capital losses in a year and you have enough capital gains or income offset capacity, the tax impact depends on your marginal tax rate and the annual deduction limit for capital losses. Without those inputs, the “savings” number stays uncertain.
Avoid Wash Sales With Care
Before placing any replacement trade, map the wash-sale risk. The rule focuses on “substantially identical” securities, which often includes the same fund or closely matching share class. Replacement choices commonly use a different issuer or a different index exposure, but the boundary is not defined by a simple checklist, so you should treat “similar” as a risk category rather than a guarantee.
Practical method: set a calendar around the sale date and review any buys you made in the prior 30 days and any expected buys in the next 30 days. If you reinvest dividends automatically, consider temporarily disabling reinvestment for the affected security during the window, then re-enable after the wash-sale period passes.
Because the wash-sale definition can be fact-specific, investors who want high confidence sometimes consult a tax professional for their exact holdings. That step matters most when you hold concentrated positions, use frequent rebalancing, or rely on automated contributions that could trigger buys inside the window.
Choose Replacements That Match Exposure
After harvesting, you usually want to keep the portfolio’s risk profile aligned. That means selecting replacement securities that track the same broad factor exposure, such as U.S. large-cap equity, total market equity, or intermediate-term bonds, while avoiding a wash-sale trigger.
In practice, investors often replace a specific index fund with another fund that tracks a similar index but is not “substantially identical.” For example, replacing one S&P 500 fund with a different large-cap index fund can reduce wash-sale risk, though the exact outcome depends on how similar the holdings are and how the IRS views “substantially identical” in context.
Outcome measurement should include more than taxes. Track whether the replacement increases tracking error, changes duration in bond funds, or introduces higher expense ratios. A loss harvested today can be offset by higher costs or a mismatch in risk exposure over the holding period.
Model The Net Benefit Before Trading
Tax-loss harvesting decisions should compare the expected tax benefit against trading friction and opportunity cost. Trading friction includes commissions (if any), bid-ask spread, and any platform fees. Opportunity cost shows up when the replacement position behaves differently than the original holding during the period you would have held it.
A simple modeling approach: estimate your net capital losses for the year, then apply your expected ability to offset capital gains and the annual limit for deducting net capital losses against ordinary income. If you expect to carry losses forward, estimate how long it might take based on your projected realized gains.
For a concrete planning example, if you harvest $4,000 of net losses and you expect $2,000 of capital gains in the same year, the remaining $2,000 loss may offset ordinary income up to the annual limit. If your gains are lower, more of the loss carries forward, and the tax benefit shifts to later years.
Educational Case Examples
Case 1: Harvesting With Capital Gains
An investor holds a taxable brokerage position in a broad equity ETF with an unrealized loss. In March 2026, they sell shares from a specific tax lot for a realized loss of $6,500. They also have $2,000 of realized capital gains from trimming another position earlier in the year.
They offset the $2,000 gains with $2,000 of the harvested loss, leaving $4,500 of net capital loss. Under U.S. rules, up to the annual limit can offset ordinary income, and the remainder carries forward. They choose a replacement ETF with similar equity exposure but different fund structure and confirm no purchases of substantially identical shares occurred within the wash-sale window.
In this scenario, the investor’s net tax impact depends on their marginal tax rate and the annual capital loss deduction limit, while the portfolio impact depends on whether the replacement tracks the same factor exposures.
Case 2: Harvesting With No Gains Yet
A second investor has a taxable account with unrealized losses but no realized capital gains in the year. They harvest $3,000 of net capital losses by selling a losing lot and buying a replacement with similar risk exposure.
Because there are no gains to offset, the harvested loss primarily reduces ordinary income up to the annual limit for capital loss deductions. If the investor’s income is high enough to benefit from the deduction, the tax savings show up in the current year. If their income is lower or they have other deductions that already reduce taxable income, the benefit may be smaller than expected, and any unused loss carries forward.
This case often feels slower because the investor cannot “see” a tax refund immediately unless they compare their projected tax return before and after the harvest.
Checklist For Decision Support
| Decision Step | What To Verify | Common Failure Mode | What Good Looks Like |
|---|---|---|---|
| Account Type | Taxable vs retirement wrapper | Expecting capital loss benefits in an IRA | Harvesting occurs in taxable brokerage |
| Lot Selection | Which shares are sold | Selling the wrong lot and losing the tax benefit | Using specific identification when available |
| Wash-Sale Window | Buys around the sale date | Dividend reinvestment triggers disallowance | Reviewing 30 days before and after |
| Replacement Exposure | Risk and factor match | Replacing with a meaningfully different bet | Choosing a similar exposure without identical holdings |
| Net Benefit | Tax savings vs costs | Ignoring spreads and carryforward timing | Modeling outcomes with your tax situation |
Use this checklist before each harvest trade, not after. The wash-sale review and lot selection steps often take longer than the sale order itself, which is why investors who wait until the last week of December can run into avoidable mistakes.
Common Mistakes To Avoid
One mistake is harvesting too late in the year without confirming your tax-lot settings. If your brokerage defaults to first-in-first-out or another method, the realized loss amount can differ from what you expected, and the mismatch can carry into your tax filing.
Another mistake is treating “similar” securities as safe. Wash-sale disallowance hinges on “substantially identical” securities, and the facts matter. If you hold the same fund across multiple accounts, a sale in one account can still interact with purchases in another account within the wash-sale window.
Investors also underestimate how replacement choices affect portfolio risk. A bond fund replacement can change duration, credit exposure, or interest-rate sensitivity, which can alter the portfolio’s behavior even if the ticker looks close. Expense ratios and tracking differences can also matter over time.
Finally, some investors ignore their own cash-flow needs. If you harvest losses and then need liquidity soon after, you may end up selling the replacement at a gain or loss that changes the tax outcome. Planning the harvest around expected withdrawals can reduce that friction.
FAQ
Does Tax-Loss Harvesting Work In IRAs?
Tax-loss harvesting generally targets taxable brokerage accounts because capital gains and losses in IRAs do not trigger the same annual tax reporting. Losses inside IRAs typically do not create a deduction in the same way as taxable accounts.
What Triggers A Wash Sale?
A wash sale can occur when you sell a security at a loss and buy a substantially identical security within about 30 days before or after the sale date. Dividend reinvestment and automatic contributions can also trigger the buy side of the rule.
How Do I Choose Which Shares To Sell?
Use your brokerage’s tax-lot or specific identification features to select the lots with losses. If your account supports it, choosing specific lots can change the realized gain or loss reported for the year.
Can I Harvest Losses Every Month?
Frequent harvesting can increase wash-sale risk and trading costs, especially when automatic buys occur. A periodic review schedule with a wash-sale calendar often reduces mistakes, though the right cadence depends on your trading and contribution pattern.
How Do I Estimate The Tax Benefit?
Estimate net capital losses for the year, then compare them to your realized capital gains and your ability to deduct net capital losses against ordinary income under current federal limits. State taxes can change the outcome, so use your state’s rules if you file outside a flat-tax state.
Author's Insight
Tax-loss harvesting is a tax accounting strategy, not a market-timing strategy. The main work happens before the trade: selecting tax lots, checking the wash-sale window, and choosing replacements that keep the portfolio’s exposure aligned. The tax benefit depends on realized gains, your marginal tax rate, and the annual limits for capital loss deductions, so the same $1,000 loss can produce different outcomes for different investors.
Because “substantially identical” can be fact-specific, investors who have concentrated positions or frequent automatic purchases often benefit from a careful review of their transaction history rather than relying on broad assumptions. A spreadsheet that lists sale dates, replacement dates, and any buys in the surrounding 60 days can prevent most avoidable errors.
Key Takeaways
- Harvesting requires a sale to realize losses; unrealized losses do not create tax benefits.
- Wash-sale rules can disallow losses when substantially identical securities are bought within the window around the sale date.
- Replacement securities should match your intended exposure while avoiding substantially identical holdings.
- Model the net benefit using your expected capital gains, capital loss deduction limits, and trading costs, then document the lot and date choices for tax filing.