Tax loss harvesting lets investors use realized losses in a taxable brokerage account to offset investment gains and, in some cases, reduce ordinary income. After a market decline, selling an investment at a loss can also help bring a portfolio back toward its intended mix, but a purchase made around the sale can trigger the wash sale rule.
How tax loss harvesting can affect your tax bill
A loss becomes relevant for this strategy when an investment is sold for less than its purchase price. The realized loss can offset gains from other investments sold for a profit. If losses exceed gains, up to $3,000 of the excess can be used to reduce ordinary income for the year. Any losses left over can carry forward to future tax years.
That carryforward means a loss may have tax value beyond the year the investment is sold. It could offset gains in a later year, although the timing and amount depend on the investor’s future gains and losses. The strategy does not erase the investment loss: it changes how that loss may count when calculating taxes.
Filip Telibasa, a certified financial planner and owner of Benzina Wealth, says volatile markets can create more chances to realize losses as prices move. Selling a position at a loss can also help rebalance a portfolio when different investments have moved in different directions. The decision has two sides: a tax result and a change to the investments held.
| Situation | How the loss may be used | Key limit |
|---|---|---|
| Losses and realized gains in the same year | Losses can offset gains from other investments. | The amount depends on the gains and losses realized. |
| Losses exceed gains | Up to $3,000 of excess losses can reduce ordinary income for the year. | Unused losses carry forward to future tax years. |
| Investment held in a taxable brokerage account | A realized loss may count toward the tax calculation. | A wash sale can disallow the deduction. |
| Investment held in a retirement account | Losses inside the account do not offset an annual tax bill. | Tax loss harvesting does not apply to these accounts. |
Alvin Carlos, a certified financial planner and founder of District Capital Management, notes that carrying a loss forward can help offset gains in a later year. Investors considering a sale should keep track of the realized loss and any unused amount carried into a future tax year. The tax benefit is not the same as recovering the money lost when the investment fell.

The 30 day wash sale window can cancel a deduction
The IRS wash sale rule applies when an investor sells a security at a loss and acquires the same or a substantially identical security within 30 days before or after the sale date. If the rule applies, the loss cannot be deducted on the tax return. That window matters on both sides of the sale, not only in the weeks that follow it.
The rule is intended to prevent someone from claiming a tax loss while quickly buying back the same investment to keep the same position. Austin Lee, a certified financial planner and founder of Lee Financial Group, describes that as the kind of transaction the rule is designed to address. A loss sale therefore needs to be considered alongside purchases made during the surrounding 30 day period.
One option is to wait at least 31 days after the sale before buying the same security. Another is to choose a similar investment that is not substantially identical. For instance, Christopher Stroup, a certified financial planner and founder of Silicon Beach Financial, points to selling an S&P 500 index fund and considering a total market fund to maintain broad market exposure.
That example is not a guarantee that every pair of funds will be treated as different under the rule. The important distinction is that similarity alone does not answer whether investments are substantially identical. Before acting, investors can review the holdings they sold, check purchase dates around the sale, and confirm that the replacement is not the same or substantially identical security.
Why account type changes the strategy
Tax loss harvesting applies to taxable brokerage investments, not to investments inside retirement accounts. A loss inside a tax deferred account does not reduce the investor’s annual tax bill, so there is no taxable gain for that loss to offset in the same way.
That difference can matter when investments are held in more than one type of account. A loss sale in a taxable brokerage account may qualify for the tax treatment described above, subject to the wash sale rule. By contrast, selling an investment at a loss inside a 401(k) account or an IRA does not create a deductible loss against annual income or gains.
Before making a move, identify the account holding the investment and write down its purchase and sale dates. Then compare the planned sale with any purchases of the same or substantially identical security during the 30 days before and after it. If the goal is to keep similar exposure, consider whether a different holding fits the portfolio, or whether waiting 31 days or longer suits the plan. The tax rules can affect the deduction, while the sale itself can change the portfolio’s balance.