Tax-Loss Harvesting Explained: How Wash Sales Work and When Harvesting Helps
This article is for education only and is not tax, legal, or personalized financial advice. Tax rules change, and your situation may differ--consider a qualified tax professional before acting.
Tax-loss harvesting sounds like a Wall Street trick. In practice, it is a straightforward idea: when an investment you hold in a taxable brokerage account is worth less than you paid, you can sell it, lock in the loss for tax purposes, and often reinvest the proceeds so you stay in the market.
Done carefully, harvesting can lower your tax bill this year or create a loss you carry forward. Done carelessly--especially around the wash sale rule--it can accomplish almost nothing except paperwork.
Here is how the pieces fit together, when harvesting helps, and where people get tripped up.
What tax-loss harvesting actually does
When you sell an investment for less than your cost basis, you realize a capital loss. That loss can:
- Offset capital gains from other sales (including gains from funds that distribute capital gains)
- Offset up to $3,000 of ordinary income per year if you are filing singly (or jointly, under current federal rules many households use)--with unused losses generally carried forward to future years
Illustrative example (not a prediction or guarantee): Suppose you bought a stock for $10,000 and it is now worth $7,000. Selling realizes a $3,000 capital loss. If you also sold another holding for a $2,000 gain in the same year, the harvested loss could cancel that gain and still leave $1,000 of loss that might offset ordinary income (subject to the annual limit and your full tax picture).
The goal is not "selling losers for its own sake." The goal is using a real economic loss you already have on paper to reduce taxable gains--or ordinary income within the limit--while keeping your long-term investment plan intact.
Taxable accounts only (for the deduction)
The capital-loss benefit that matters for harvesting lives in taxable accounts. Selling at a loss inside a traditional IRA or 401(k) does not create a capital-loss line item on Form 1040 the way a taxable brokerage sale can. Roth accounts are also not the usual place for this strategy.
That does not mean you never rebalance inside retirement accounts. It means "harvest for a tax deduction" is primarily a taxable-brokerage conversation.
The wash sale rule in everyday language
The IRS does not want you to sell something purely to claim a loss and immediately buy the same thing back. The wash sale rule generally disallows a loss if you buy a substantially identical security within 30 days before or 30 days after the sale (a 61-day window).
If a wash sale occurs, you typically do not get to use that loss on this year's return. Instead, the disallowed loss is usually added to the cost basis of the replacement shares. You have not lost the economic loss forever--you have deferred when you get to use it.
What "substantially identical" tends to mean
Exact same stock or same share class of the same fund is the clearest case. Two different S&P 500 index ETFs from different issuers are often treated as very similar in spirit; whether they count as "substantially identical" can be a gray area that depends on facts and professional judgment. Many investors prefer a clearly different fund--for example, replacing a broad U.S. total-market fund with a large-cap blend from another family, or shifting temporarily to a related but not identical exposure--rather than playing edge cases.
Buying the same security in a different account you control (including some IRA situations) can also create wash-sale problems. Coordinating across accounts matters.
A simple timeline
- Day 0: You sell Fund A at a loss.
- Days -30 through +30: Avoid buying Fund A (or something the IRS would treat as substantially identical) if you want that loss allowed now.
- After the window: You can repurchase Fund A if that still fits your plan; the earlier loss should generally be usable (assuming no other wash-sale trigger).
Waiting out the window while holding cash means you might miss a rebound. That is why many people buy a replacement investment right away--similar role in the portfolio, not the same security.
When harvesting helps most
Harvesting tends to be most useful when several conditions line up:
You have (or expect) capital gains to offset. Gains from selling winners, from taxable mutual fund distributions, or from other realizations make harvested losses more immediately valuable.
The position is meaningfully underwater. Tiny losses may not justify the hassle, bid-ask spreads, or tracking complexity.
You can stay invested without violating the wash sale rule. A thoughtful replacement keeps market exposure while preserving the tax lot.
You are not about to need the cash for spending. Harvesting is a tax and portfolio tool, not a substitute for an emergency fund or near-term cash needs.
Your tax rate context makes the deferral valuable. Harvesting often pushes tax liability later or reduces it against gains. It is not free money; it is timing and characterization of taxes you might otherwise owe.
Year-end is a popular time because people review gains and losses together--but opportunities can appear any time markets drop. Waiting until December is not required.
When harvesting helps less (or backfires)
No gains and little ordinary-income room. If you have no capital gains and already use the $3,000 ordinary-income offset (or would carry losses forward for years with little benefit), urgency drops.
Wash sales wipe the benefit. Buying back too soon--or buying the same thing in another account--can disallow the loss when you thought you banked it.
Transaction costs and tracking. Frequent small harvests can create a maze of lots, basis adjustments, and statements. Broker 1099-B reporting helps, but you still need clean records.
Bad replacements. Selling a core holding and parking everything in cash "for tax reasons" can leave you underinvested. Selling a diversified fund and concentrating into a single stock "replacement" changes risk in ways that may not match your plan.
Short-term vs long-term character. Losses and gains have holding-period rules. Mixing short- and long-term items follows IRS netting order. The educational takeaway: know whether a lot is short- or long-term before you assume how it nets.
A practical walkthrough (illustrative)
Imagine you hold ETF X with a $12,000 cost basis, now worth $9,000, in a taxable account. You also realized $4,000 of long-term gains earlier this year from selling another position.
One approach many investors study (not a recommendation):
- Sell ETF X and realize a $3,000 long-term loss (illustrative numbers).
- Immediately buy ETF Y--a similar asset class, different fund--so you stay invested.
- Avoid ETF X (and close substitutes your tax pro would flag) for 31+ days after the sale, and check the 30 days before as well.
- Use the $3,000 loss against part of the $4,000 gain, reducing net taxable gain (again, illustrative; your forms and netting order apply).
Later, if you still prefer ETF X, you might switch back after the wash-sale window--accepting that any rebound in Y (or X) is part of normal market movement.
Cost basis, lots, and "which shares did I sell?"
Brokers often default to average cost or specific identification rules depending on the security and your settings. Specific identification of lots can matter: selling the highest-basis shares may create a larger loss (or smaller gain) than selling older low-basis shares.
Before you harvest, know:
- Which lots you are selling
- Acquisition dates (short-term vs long-term)
- Whether dividend reinvestment created many small lots
Messy lot history is one reason people harvest less often than blogs suggest--and why clean records help.
Harvesting vs "just holding"
If you never sell a loser in a taxable account, you never realize that loss for tax purposes--but you also never trigger wash-sale complexity. Holding can still be right if the investment fits your plan and you have no gains to offset.
Harvesting is optional. It is a tool for taxable accounts when losses, gains, rules, and replacement choices line up. It is not a requirement of "being a serious investor."
A short checklist before you click sell
- Is this in a taxable account?
- Do I understand my cost basis and holding period?
- Do I have a replacement that keeps my allocation without being substantially identical?
- Have I checked other accounts I control for wash-sale risk?
- Am I harvesting for a real tax reason--not just to "do something" in a down market?
- Will I keep records for next year's return?
If those answers are muddy, pause. A clear plan beats a rushed December trade.
Bottom line
Tax-loss harvesting turns an investment that is already down into a potential tax asset--mainly by offsetting gains and, within limits, ordinary income--while you try to stay invested through a careful replacement. The wash sale rule is the guardrail: sell and buy substantially identical securities inside the 61-day window, and the loss you wanted this year may be deferred into basis instead.
Used thoughtfully in taxable accounts, harvesting can be a useful part of year-round tax awareness. Used as a reflex every time a ticker turns red, it can create clutter without much benefit. Understand the mechanics, respect the wash sale window, and treat the strategy as one education tool among many--not a guarantee of better after-tax results.
Frequently Asked Questions
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0
Comments (0)